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 DISTINCT + - 93 * + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT + col1 DIV + + col2 + col1 AS col1 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-5629
SELECT + col1 / + + col2 + col1 AS col1 FROM tab0 AS cor0
----
1
23
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL ( - - col2 ) DIV + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL ( - - col2 ) / + col1 FROM tab0
----
0
0
99

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + col2 + 94
----

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

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

query I rowsort
SELECT + col0 * - - col2 * + col0 AS col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - 42 - + + ( - - SUM( + col0 ) ) AS col1 FROM tab1
----
-269

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - 42 - + + ( - - SUM ( + col0 ) ) AS col1 FROM tab1
----
-269

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT - 92 + - col1 * - + col0 * - ( - - col0 ) / col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - COUNT( * ) + 10 col1 FROM tab1 WHERE NULL IS NULL
----
7

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <= + col0 - 17 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + + - 5 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT col1 DIV col0 + + col2 AS col2 FROM tab0 cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-5640
SELECT col1 / col0 + + col2 AS col2 FROM tab0 cor0
----
10
52
99

query I rowsort
SELECT DISTINCT col2 + - - col2 * - col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

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

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

query I rowsort
SELECT ALL 30 * + - 39 * - 56 AS col0 FROM tab2
----
65520
65520
65520

query I rowsort
SELECT DISTINCT col0 * 0 FROM tab1
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * + + 59 col1 FROM tab0 AS cor0
----
295

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

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

query I rowsort
SELECT ALL col2 + - - 35 * + - col2 * - col1 AS col1 FROM tab0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - + 9 + + 97 FROM tab0
----
-632
-92
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT DISTINCT + MAX( ALL col1 ), - 58 AS col0 FROM tab1 AS cor0
----
47
-58

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT + MAX ( ALL col1 ), - 58 AS col0 FROM tab1 AS cor0
----
47
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL <> ( - col0 * col0 * - 74 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL <> ( - col0 * col0 * - 74 )
----
0

query I rowsort
SELECT DISTINCT ( + ( + - col1 ) ) FROM tab1 AS cor0 WHERE - 88 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 26 + + col1 - + col2 AS col1 FROM tab1 cor0
----
-28
-56
5

query I rowsort
SELECT DISTINCT - col1 * - - col0 + - - 24 AS col2 FROM tab0 AS cor0
----
-1191
-1803
-73

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

query I rowsort
SELECT + col0 * col2 * + 7 AS col2 FROM tab1
----
34272
35105
43316

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL <> + col2 + - - 64 + + col1 / - - col2 * - + 45 - + 77 + + 2 / + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5663
SELECT DISTINCT 18 + + 25, ( - 59 ) * COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
43
-531

skipif mysql # not compatible
query II rowsort label-5663
SELECT DISTINCT 18 + + 25, ( - 59 ) * COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
43
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT + CAST( + SUM( DISTINCT + + 21 ) AS SIGNED ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5664
SELECT + CAST ( + SUM ( DISTINCT + + 21 ) AS INTEGER ) FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT - 98 DIV col0 + col2 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 98 / col0 + col2 AS col0 FROM tab1
----
58
67
95

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

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

query I rowsort
SELECT + col2 + - 76 AS col2 FROM tab1
----
-17
-8
20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + ( - + MIN( ALL col0 ) ) + + + 88 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + ( - + MIN ( ALL col0 ) ) + + + 88 FROM tab2 cor0
----
42

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

skipif mysql # not compatible
query II rowsort label-5671
SELECT DISTINCT - 82 + 0, - COUNT ( * ) AS col1 FROM tab1
----
-82
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT + 98 DIV - 7 + - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 98 / - 7 + - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT + col0 - + - 44 + col0 FROM tab0
----
218
238
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <= - col2 * 57 )
----

query I rowsort
SELECT + col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - COUNT( col0 ) * - 10 AS col2 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-5676
SELECT - COUNT ( col0 ) * - 10 AS col2 FROM tab0 cor0
----
30

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL <> 86
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT + 30 * + COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5681
SELECT + 30 * + COUNT ( * ) FROM tab1 AS cor0
----
90

query II rowsort
SELECT + 35 * - + col0 AS col0, 8 AS col2 FROM tab0 AS cor0
----
-3045
8
-3395
8
-525
8

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

skipif mysql # not compatible
query I rowsort label-5683
SELECT MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col1 FROM tab1
----
51
85
91

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

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

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

query I rowsort
SELECT DISTINCT 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
75

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 16 col2, ( + 25 ) + col0 + 18 AS col2 FROM tab0
----
16
130
16
140
16
58

query I rowsort
SELECT - + col1 * + + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 + + col2 + - 23 = + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - - 38 * 38 col2 FROM tab2 AS cor0
----
1490
1490
1490

query I rowsort
SELECT ALL 16 * + + col1 AS col0 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT DISTINCT - - col2 + - 15 AS col2 FROM tab0 AS cor0
----
-5
32
84

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

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

query I rowsort
SELECT ALL - 83 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-170
-180
-98

query I rowsort
SELECT ALL - 54 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-8
10
21

query I rowsort
SELECT - - col2 + + 62 + ( 61 ) * - + 27 FROM tab0 AS cor0
----
-1486
-1538
-1575

query I rowsort
SELECT - 0 + + ( + - col2 ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + ( - 75 ) + + col0 AS col0 FROM tab1
----
-24
10
16

query II rowsort
SELECT DISTINCT + 76 + - col0, col0 AS col2 FROM tab2
----
1
75
12
64
30
46

query I rowsort
SELECT - 73 * + 37 FROM tab1
----
-2701
-2701
-2701

query I rowsort
SELECT DISTINCT + 69 + + col0 FROM tab2
----
115
133
144

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - col2 AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-5708
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - col2 AND NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT DISTINCT + CAST( - ( 91 ) AS SIGNED ), col2 FROM tab0 AS cor0
----
-91
10
-91
47
-91
99

skipif mysql # not compatible
query II rowsort label-5709
SELECT DISTINCT + CAST ( - ( 91 ) AS INTEGER ), col2 FROM tab0 AS cor0
----
-91
10
-91
47
-91
99

query I rowsort
SELECT + - 69 * + 95 AS col0 FROM tab2 AS cor0
----
-6555
-6555
-6555

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

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

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

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab1 cor0 WHERE NOT - col0 / + col2 + + col1 < + 52 * + - col1 + - - 43
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT ALL - 50 DIV + 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - 50 / + 96 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + col0 * - col0 * - 38 FROM tab0 AS cor0
----
287622
357542
8550

query I rowsort
SELECT ALL 97 + + - col2 + 18 + + - 79 + - col1 + - col2 - + - col1 * - 52 * - + col0 * + + 45 AS col0 FROM tab0
----
226817
2842961
4275175

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT + + col0 DIV + 42 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5718
SELECT + + col0 / + 42 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT ALL - 55 + + col2 + - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
104
89
92

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - 55 + + col2 + - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
104
89
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 + + col1 * col0 col1 FROM tab0 cor0
----
0
1118
1730

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT 83 + + MAX( ALL + 8 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5723
SELECT 83 + + MAX ( ALL + 8 ) FROM tab0
----
91

query I rowsort
SELECT 63 + + 6 AS col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL + 8 * COUNT( * ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + 8 * COUNT ( * ) AS col1 FROM tab1
----
24

query I rowsort
SELECT col0 + ( + 25 ) AS col2 FROM tab0
----
112
122
40

query I rowsort
SELECT ALL + 59 * - - col0 * + col0 AS col0 FROM tab0
----
13275
446571
555131

query I rowsort
SELECT ( + + col0 ) + - 25 AS col1 FROM tab0
----
-10
62
72

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

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

query I rowsort
SELECT DISTINCT + - 48 * - + col1 FROM tab1 cor0
----
2256
240
672

query I rowsort
SELECT ALL - 37 + - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
22
31
59

query I rowsort
SELECT DISTINCT - 31 * + - 26 FROM tab1
----
806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 93 - - 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + 33 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT - + 9 FROM tab0 cor0
----
-9

query I rowsort
SELECT - - col1 * col2 * + col2 AS col0 FROM tab2 cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL - col0 DIV - + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5738
SELECT ALL - col0 / - + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

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

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL < - col1 + + 19
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * - + ( + + 11 ) * + 37 < - - col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT ALL 41 DIV + + 22 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL 41 / + + 22 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT 97 + - - 95 + ( - col2 ) AS col1 FROM tab2
----
134
152
169

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 + + + col2 col1 FROM tab2 WHERE NOT NULL >= + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT COUNT( * ) + - 83 AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-5748
SELECT COUNT ( * ) + - 83 AS col2 FROM tab0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 13 + + 26 + col0 * + col1 * + 4 col2 FROM tab2 cor0
----
19725
20113
9397

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / - 2 = col0 - col0
----

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

query II rowsort
SELECT + 31 AS col0, + 11 AS col1 FROM tab0 AS cor0
----
31
11
31
11
31
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL SUM( ALL + col1 ) * - 25 AS col1 FROM tab0
----
-2575

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL SUM ( ALL + col1 ) * - 25 AS col1 FROM tab0
----
-2575

query III rowsort
SELECT * FROM tab0 WHERE - 8 / + col2 * - col0 * + ( - ( + col2 ) ) * - - col2 + + 99 * + col0 * + 93 + - col1 IS NULL
----

query I rowsort
SELECT ALL + col0 + + + col1 AS col0 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - 30 + - col0 col0 FROM tab2 AS cor0
----
-2326
-2344
-2355

query I rowsort
SELECT DISTINCT + - 80 + - ( + 54 ) * - 96 * col0 AS col1 FROM tab1 AS cor0
----
264304
440560
471664

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT - COUNT( * ) + + 1 * - MIN( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5760
SELECT - COUNT ( * ) + + 1 * - MIN ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL MIN( col0 ) - - MIN( DISTINCT col0 ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL MIN ( col0 ) - - MIN ( DISTINCT col0 ) AS col1 FROM tab2
----
92

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col1 FROM tab0
----
-705
-870
-9603

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

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT 47 - + MAX ( - col2 ) * COUNT ( * ) AS col0 FROM tab1
----
224

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE - 72 IS NOT NULL
----
141
142
97

query I rowsort
SELECT ALL - 78 - + ( - col0 ) - - col2 AS col1 FROM tab2 cor0
----
-9
26
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5768
SELECT 24 * ( - COUNT( - CAST( + 31 AS SIGNED ) ) ) - - COUNT( ALL - ( - col0 ) ) DIV + ( - - MIN( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5768
SELECT 24 * ( - COUNT ( - CAST ( + 31 AS INTEGER ) ) ) - - COUNT ( ALL - ( - col0 ) ) / + ( - - MIN ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT - + col1 * + 41 AS col2 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT - - col0 DIV - - 48 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - - col0 / - - 48 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + 53 * - + col2 AS col0 FROM tab0 cor0
----
-2491
-5247
-530

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT - 47, MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-47
-97

skipif mysql # not compatible
query II rowsort label-5775
SELECT - 47, MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-47
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab0 AS cor0 WHERE 65 + col2 IS NULL
----

query II rowsort
SELECT - col1, - col0 FROM tab1 WHERE NOT NULL IN ( - col0, col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - - 55 FROM tab1
----
-3245
-3740
-5280

onlyif mysql # DIV for integer division: 
query II rowsort label-5779
SELECT DISTINCT col0 DIV - 33 AS col2, col0 FROM tab0
----
-2
87
-2
97
0
15

skipif mysql # not compatible
query II rowsort label-5779
SELECT DISTINCT col0 / - 33 AS col2, col0 FROM tab0
----
-2
87
-2
97
0
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT COUNT( * ) + 95 AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT COUNT ( * ) + 95 AS col1 FROM tab1
----
98

query I rowsort
SELECT DISTINCT col2 + - - col1 + 84 AS col1 FROM tab0 AS cor0
----
115
184
212

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT COUNT( + - col2 ) + 16 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT COUNT ( + - col2 ) + 16 FROM tab1 cor0
----
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * col0 * 44 * + + col1 AND col1
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5787
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) / - + col1 - - 2 + + 61 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) / - + col1 - - 2 + + 61 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5789
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - + ( + + CAST( NULL AS SIGNED ) ) + - 4 + + - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5789
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - + ( + + CAST ( NULL AS INTEGER ) ) + - 4 + + - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + - col0 + 83 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-2
-8
32

query I rowsort
SELECT ALL 8 * - col0 + col0 FROM tab2 AS cor0
----
-322
-448
-525

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col0 ) + + 83 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT DISTINCT + col1 * ( 8 ) * - 91 * + col0 - + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
-1329969
-70519
-884505

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + col1 * ( 8 ) * - 91 * + col0 - + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
-1329969
-70519
-884505

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ALL - 72 DIV + col1 + - col1 FROM tab0
----
-24
-73
-81

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - 72 / + col1 + - col1 FROM tab0
----
-24
-73
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL + SUM( ALL col0 ) - + - 33 col1 FROM tab2
----
218

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT col1 DIV - 68 + + + col2 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-5797
SELECT col1 / - 68 + + + col2 FROM tab0
----
10
46
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) * - MAX( + 84 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( + 84 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col2 ), - 40 col0 FROM tab1
----
-59
-40
-68
-40
-96
-40

query I rowsort
SELECT + + col2 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 73 > + 56 + - col0 * + + col0 * 46 * - col0 )
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5801
SELECT - COUNT( * ) DIV + + CAST( + - 68 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT - COUNT ( * ) / + + CAST ( + - 68 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT - col0 >= - - ( + col0 ) + col0 + + 88
----
14
47
5

query I rowsort
SELECT + col0 * + ( col1 ) + + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT DISTINCT - 88 DIV - - 7 AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - 88 / - - 7 AS col1 FROM tab1 AS cor0
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5806
SELECT DISTINCT - - 21 + + CAST( col1 AS SIGNED ) * ( + + 95 ) AS col0, + 59 AS col2 FROM tab2 AS cor0
----
4866
59
6386
59
7336
59

skipif mysql # not compatible
query II rowsort label-5806
SELECT DISTINCT - - 21 + + CAST ( col1 AS INTEGER ) * ( + + 95 ) AS col0, + 59 AS col2 FROM tab2 AS cor0
----
4866
59
6386
59
7336
59

query I rowsort
SELECT DISTINCT - - 26 + 26 AS col1 FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + COUNT( + col2 ) + - + COUNT( * ) * - 7 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5808
SELECT + COUNT ( + col2 ) + - + COUNT ( * ) * - 7 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT MIN( col2 ) + - 43 col0 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5809
SELECT MIN ( col2 ) + - 43 col0 FROM tab1
----
16

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

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT COUNT ( DISTINCT - col1 ) / 29 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5811
SELECT SUM( + + CAST( + 7 AS SIGNED ) ) + - 97 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-5811
SELECT SUM ( + + CAST ( + 7 AS INTEGER ) ) + - 97 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL - MAX( DISTINCT - 39 ) * + + MIN( DISTINCT + 66 ) AS col0 FROM tab0
----
2574

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - MAX ( DISTINCT - 39 ) * + + MIN ( DISTINCT + 66 ) AS col0 FROM tab0
----
2574

query III rowsort
SELECT * FROM tab2 WHERE col1 * - - col1 < ( - 28 + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 93 + + 1 AS col1 FROM tab0 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 1 col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - ( + 34 ) + col0 FROM tab0 AS cor0
----
-19
53
63

query I rowsort
SELECT - 69 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----
0

query I rowsort
SELECT - ( ( 72 ) ) + + + 86 + - 70 FROM tab1 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 > + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 15 * + col0 * col2 col1, col1 AS col2 FROM tab0 AS cor0
----
10575
81
13050
21
144045
1

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

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

query I rowsort
SELECT DISTINCT - 60 + - col0 FROM tab0 AS cor0
----
-147
-157
-75

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

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

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL MIN ( DISTINCT ( - - col0 ) ) - + - MAX ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE + 38 * + + col0 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT ALL + 99 + + col2 - col1 FROM tab2 cor0 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN col2 AND + col1
----
62
71
90

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + 99 + + col2 - col1 FROM tab2 cor0 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN col2 AND + col1
----
62
71
90

query I rowsort
SELECT + col2 * 39 AS col2 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # DIV for integer division: 
query III rowsort label-5830
SELECT DISTINCT * FROM tab0 WHERE + - col2 DIV col0 * + col2 NOT BETWEEN - col2 AND NULL
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5830
SELECT DISTINCT * FROM tab0 WHERE + - col2 / col0 * + col2 NOT BETWEEN - col2 AND NULL
----
15
81
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT MAX( 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT MAX ( 41 ) FROM tab0
----
41

query I rowsort
SELECT + 19 * 33 FROM tab1
----
627
627
627

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

query I rowsort
SELECT - 64 * - + col0 AS col2 FROM tab0 AS cor0
----
5568
6208
960

query I rowsort
SELECT DISTINCT - + 83 * - + col1 FROM tab1 AS cor0
----
1162
3901
415

query II rowsort
SELECT ALL - col1 AS col0, col2 - + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-51
1081
-67
4408
-77
2600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - ( + SUM( ALL - - col0 ) ) * MAX( - col2 ) AS col2 FROM tab1 cor0
----
13393

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - ( + SUM ( ALL - - col0 ) ) * MAX ( - col2 ) AS col2 FROM tab1 cor0
----
13393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL - CAST( 27 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - CAST ( 27 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT + - col2, - col1 * + col2 + col1 * - 95 AS col2 FROM tab0 AS cor0
----
-10
-2205
-47
-11502
-99
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT 62 * + COUNT( * ) AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-5842
SELECT 62 * + COUNT ( * ) AS col1 FROM tab2
----
186

query I rowsort
SELECT - 33 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + + + 24 AS col2 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT DISTINCT - 56 + col0 AS col1 FROM tab0 AS cor0
----
-41
31
41

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 / - - 67 BETWEEN + 61 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col1 * + 73 * + 88 <= ( - - 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL COUNT( col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5850
SELECT ALL COUNT ( col2 ) col1 FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT col2 * + - 80 AS col1 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT + 56 * + + col0 FROM tab1
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL MIN( DISTINCT 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL MIN ( DISTINCT 41 ) FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT + 8 * COUNT( * ) + - - MIN( DISTINCT - - col1 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 8 * COUNT ( * ) + - - MIN ( DISTINCT - - col1 ) FROM tab2
----
75

query I rowsort
SELECT - col0 + + - 19 FROM tab2
----
-65
-83
-94

query I rowsort
SELECT + 24 + col0 AS col1 FROM tab1
----
109
115
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL COUNT( * ) * + 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL COUNT ( * ) * + 55 FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - COUNT( * ) + - ( 68 ) AS col0 FROM tab1 AS cor0 WHERE + 43 IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-5859
SELECT - COUNT ( * ) + - ( 68 ) AS col0 FROM tab1 AS cor0 WHERE + 43 IS NULL
----
-68

query I rowsort
SELECT DISTINCT - - col1 + + + col0 * - 30 + + 96 + 33 AS col2 FROM tab1 AS cor0 WHERE NULL = 46 + - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT col1 + + - col1 DIV + - 42 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-5862
SELECT col1 + + - col1 / + - 42 FROM tab0 AS cor0
----
1
21
82

query I rowsort
SELECT DISTINCT + ( - - col2 ) + + col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5864
SELECT - col2 AS col1, col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5864
SELECT - col2 AS col1, col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT 94 * - - SUM( + col1 ) * ( + + 77 ) FROM tab1
----
477708

skipif mysql # not compatible
query I rowsort label-5865
SELECT 94 * - - SUM ( + col1 ) * ( + + 77 ) FROM tab1
----
477708

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * + + col0 * 7 IS NULL
----

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

query II rowsort
SELECT DISTINCT 67 AS col0, + col0 + + - col0 FROM tab0 AS cor0
----
67
0

query II rowsort
SELECT - 2 AS col1, col2 AS col2 FROM tab2 cor0
----
-2
23
-2
40
-2
58

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

query I rowsort
SELECT - 98 * + - col0 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT ALL - SUM( ALL - col0 ) AS col0, - COUNT( * ) FROM tab1
----
227
-3

skipif mysql # not compatible
query II rowsort label-5873
SELECT ALL - SUM ( ALL - col0 ) AS col0, - COUNT ( * ) FROM tab1
----
227
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + ( - col1 ), col1 AS col2, + col2 col2 FROM tab1
----
9 values hashing to 321b2c135a5e3c423b2db85e974cbc82

query I rowsort
SELECT ALL 82 * - - 54 * col1 FROM tab1
----
208116
22140
61992

query I rowsort
SELECT - 96 * 13 FROM tab1
----
-1248
-1248
-1248

query I rowsort
SELECT ( - - ( - - 65 ) ) FROM tab2
----
65
65
65

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + - 20
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT - + SUM( - - ( + 64 ) ) FROM tab0 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5880
SELECT - + SUM ( - - ( + 64 ) ) FROM tab0 cor0
----
-192

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

query I rowsort
SELECT DISTINCT + col2 * + 66 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
3894
4488
6336

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

query I rowsort
SELECT DISTINCT 54 + - col0 AS col0 FROM tab0
----
-33
-43
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - 16 + + COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5885
SELECT - 16 + + COUNT ( * ) FROM tab2
----
-13

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 86 / col2 - + 79 + + - 49 IN ( col0 * - col2 + + col0 + + col2 * col0 + + - col0, + col2, col2, + - col2 + - col0, ( + ( + col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5888
SELECT col1 DIV - CAST( - ( - col0 ) AS SIGNED ) AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT col1 / - CAST ( - ( - col0 ) AS INTEGER ) AS col0 FROM tab2
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT + 2 * - 0 + + 42 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - col1 - - + 82 AS col2 FROM tab2 cor0
----
15
31
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + 71 * col2 AND + 83
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE - ( + + 79 ) + - + 35 + + col0 = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT DISTINCT 82 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT 82 / - col2 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - 57 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT 0 * - COUNT( * ) * + 70 DIV - 9 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT 0 * - COUNT ( * ) * + 70 / - 9 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT - - col1 DIV + 50 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5899
SELECT - - col1 / + 50 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT + 67 DIV - - col1 + + col2 + col0 * + + col0 FROM tab1 AS cor0
----
2701
7297
8350

skipif mysql # not compatible
query I rowsort label-5901
SELECT + 67 / - - col1 + + col2 + col0 * + + col0 FROM tab1 AS cor0
----
2701
7297
8350

query I rowsort
SELECT + col1 * - - 63 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL SUM( ALL + col2 ) * - MAX( - 24 ) AS col0 FROM tab1
----
5352

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL SUM ( ALL + col2 ) * - MAX ( - 24 ) AS col0 FROM tab1
----
5352

query I rowsort
SELECT DISTINCT - ( - ( - - col2 ) ) * + col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT col1 * - ( - + col1 ) AS col2 FROM tab0
----
1
441
6561

query II rowsort
SELECT ALL col0 AS col0, + col1 * + + col2 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5907
SELECT * FROM tab2 WHERE NOT - 82 / - col1 + + - 84 / + CAST( - 8 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5907
SELECT * FROM tab2 WHERE NOT - 82 / - col1 + + - 84 / + CAST ( - 8 AS REAL ) BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + 1 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL 63 AS col0 FROM tab2 WHERE - + col2 >= + 96 / - 58 + + - 94 + - - 93
----

query II rowsort
SELECT DISTINCT col2 * + + col2 * - + 72 AS col0, + col2 * + - col2 * - 15 + + col1 AS col2 FROM tab1
----
-250632
52220
-332928
69407
-663552
138254

query I rowsort
SELECT 89 + - + col0 * + col2 AS col1 FROM tab0
----
-616
-781
-9514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT + 39 / + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + MAX( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 39 / + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + MAX ( - col2 ) FROM tab2
----
NULL

query II rowsort
SELECT ALL col2, + col1 * + + col1 * - - ( + 29 ) FROM tab0
----
10
12789
47
190269
99
29

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 * col1 AS col1 FROM tab2
----
51
2601
67
4489
77
5929

query II rowsort
SELECT ALL col2 AS col2, + 30 AS col0 FROM tab2 AS cor0
----
23
30
40
30
58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL COUNT( * ) - 51 * + COUNT( * ) AS col2 FROM tab2 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL COUNT ( * ) - 51 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-150

query II rowsort
SELECT DISTINCT + col2 - + - col2 * 38 AS col1, col2 AS col1 FROM tab1 AS cor0
----
2301
59
2652
68
3744
96

query I rowsort
SELECT DISTINCT 68 * col1 AS col1 FROM tab1
----
3196
340
952

query I rowsort
SELECT DISTINCT + 61 * col1 AS col1 FROM tab1
----
2867
305
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT - COUNT( * ) DIV 51 FROM tab0 WHERE NOT NULL = - 99 * col2 - 92
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT - COUNT ( * ) / 51 FROM tab0 WHERE NOT NULL = - 99 * col2 - 92
----
0

query I rowsort
SELECT 57 + + col1 * + 13 AS col0 FROM tab2 WHERE NOT col1 / + col2 + col0 * + 74 NOT BETWEEN NULL AND col2 * col2 - - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT - 91 - ( - ( - 98 ) ) DIV - col2 FROM tab0
----
-82
-89
-91

skipif mysql # not compatible
query I rowsort label-5925
SELECT - 91 - ( - ( - 98 ) ) / - col2 FROM tab0
----
-82
-89
-91

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + col0 * + col1 ) AND ( + col2 * + ( + 95 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT - 25 / 62 FROM tab0 WHERE ( - 24 ) - + 68 BETWEEN 84 AND CAST( NULL AS SIGNED ) - + 76
----

skipif mysql # not compatible
query I rowsort label-5927
SELECT - 25 / 62 FROM tab0 WHERE ( - 24 ) - + 68 BETWEEN 84 AND CAST ( NULL AS INTEGER ) - + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT - COUNT( * ) + + 42 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5928
SELECT - COUNT ( * ) + + 42 FROM tab2
----
39

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

skipif mysql # not compatible
query I rowsort label-5929
SELECT - ( MIN ( DISTINCT col0 ) ) AS col0 FROM tab1
----
-51

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

query I rowsort
SELECT + ( 5 ) AS col0 FROM tab0
----
5
5
5

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

query I rowsort
SELECT col1 + - 44 FROM tab1
----
-30
-39
3

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 63 * - col2 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > 86
----

query I rowsort
SELECT DISTINCT - col2 - - 2 AS col1 FROM tab2
----
-21
-38
-56

query I rowsort
SELECT ALL + col2 * 1 AS col0 FROM tab2 cor0
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-5939
SELECT - SUM ( DISTINCT 9 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL 54 + col2 FROM tab0 cor0 WHERE ( 4 ) > NULL
----

query I rowsort
SELECT ALL col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
110
115
64

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

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

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

query I rowsort
SELECT + + col1 + 35 AS col0 FROM tab0 AS cor0
----
116
36
56

query I rowsort
SELECT DISTINCT 27 + + 75 FROM tab0 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + 30 * + col1 col0 FROM tab0 AS cor0
----
2460
60
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL + CAST( 40 AS SIGNED ) + col2 FROM tab2 AS cor0
----
63
80
98

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + CAST ( 40 AS INTEGER ) + col2 FROM tab2 AS cor0
----
63
80
98

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

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

query I rowsort
SELECT 61 * col2 AS col1 FROM tab0
----
2867
6039
610

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

query I rowsort
SELECT ALL col2 - 96 AS col1 FROM tab0
----
-49
-86
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col1 + col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + 18 + col2 AS col2 FROM tab2 AS cor0
----
-10
-19
9

query I rowsort
SELECT - col1 - + 0 + 44 * col2 AS col2 FROM tab2 AS cor0
----
1683
2485
961

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 99 > NULL
----

query I rowsort
SELECT DISTINCT 61 * - 60 * col0 FROM tab2 AS cor0
----
-168360
-234240
-274500

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + 70 * - ( + - MAX( ALL 64 ) ) * COUNT( * ) FROM tab1 AS cor0
----
13440

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + 70 * - ( + - MAX ( ALL 64 ) ) * COUNT ( * ) FROM tab1 AS cor0
----
13440

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 90 >= ( - col0 - col1 )
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 70 * - col2 NOT BETWEEN - 18 * + col1 AND 46 + - col1
----

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

query I rowsort
SELECT col0 * col0 AS col2 FROM tab0 cor0 WHERE NOT ( 25 * + col0 * + 87 ) IN ( col2 )
----
225
7569
9409

query I rowsort
SELECT + 7 * + - col0 * - col2 * + 30 + col2 AS col1 FROM tab1 AS cor0
----
1028256
1053209
1299548

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1, - col0 + - - 36 + + col1 FROM tab2
----
23
41
40
49
58
28

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1, - col0 + - - 36 + + col1 FROM tab2
----
23
41
40
49
58
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT - COUNT( * ) * + 72 AS col0 FROM tab0
----
-216

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

query II rowsort
SELECT col2 * + 9 AS col0, - col0 + - + 99 + + col1 * ( - col2 * - col1 ) AS col0 FROM tab1
----
531
1291
612
150022
864
18666

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) * col1 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + 91 FROM tab2
----
114
131
149

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

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

query I rowsort
SELECT col2 * + 77 AS col2 FROM tab1
----
4543
5236
7392

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 24 ) >= + col0 + + col1 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE ( + col1 / - 87 ) IN ( 45 )
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE ( + col1 / - 87 ) IN ( 45 )
----
0

query I rowsort
SELECT + - col1 + + 11 AS col0 FROM tab1 cor0
----
-3
-36
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN col2 / - col2 + 59 * 6 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE + col1 IN ( + 94 * + 14 + - ( 62 ) * - 70 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + col1 IN ( + 94 * + 14 + - ( 62 ) * - 70 )
----
0

query I rowsort
SELECT col2 + + 52 AS col2 FROM tab2 WHERE col1 + + col2 <= ( col1 - ( + col2 ) )
----

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

skipif mysql # not compatible
query I rowsort label-5981
SELECT COUNT ( * ) * - + SUM ( - 82 ) FROM tab0
----
738

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

query II rowsort
SELECT ALL - col1 AS col2, 95 AS col1 FROM tab1 AS cor0
----
-14
95
-47
95
-5
95

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE + 42 + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 * - col2 * - + 86 AS col0 FROM tab1 cor0
----
-17662589
-27041105
-76087282

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - col0 ) - - col2 * + col2 * + + col0 col0 FROM tab0
----
33105
8526
950503

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

query II rowsort
SELECT DISTINCT - 6 - + col0, col2 FROM tab1
----
-57
96
-91
59
-97
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - SUM( ALL - 99 ) + - - 83 FROM tab0
----
380

skipif mysql # not compatible
query I rowsort label-5991
SELECT - SUM ( ALL - 99 ) + - - 83 FROM tab0
----
380

query I rowsort
SELECT DISTINCT col2 * - + 44 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT + 38 + - col1 + + 89 * col2 AS col0 FROM tab0
----
4140
8848
907

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

query I rowsort
SELECT + 55 * - - 34 AS col0 FROM tab2 AS cor0
----
1870
1870
1870

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col1, col1 + - + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL + + col2 * col1 * - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + + col2 * col1 * - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
197120
291450
53958

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - MAX( col0 ) * + - 80 * - MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
752720

skipif mysql # not compatible
query I rowsort label-6002
SELECT - MAX ( col0 ) * + - 80 * - MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
752720

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT - col1 DIV - - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT - col1 / - - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT ( + col0 ) * + 62 + + ( - col0 ) * - col0 AS col2 FROM tab1 WHERE NOT + 85 = ( NULL )
----

query I rowsort
SELECT - 10 + - 59 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT - col2 + - 26 AS col2 FROM tab0
----
-125
-36
-73

query I rowsort
SELECT - ( + - 50 ) AS col1 FROM tab1
----
50
50
50

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 NOT BETWEEN ( - - col0 + - col2 - - col0 * - 13 ) AND - col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL >= - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= - CAST ( NULL AS INTEGER )
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6015
SELECT ALL + ( COUNT( * ) ), + 28 DIV + 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
1

skipif mysql # not compatible
query II rowsort label-6015
SELECT ALL + ( COUNT ( * ) ), + 28 / + 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
1

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
60

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + + 90 BETWEEN + 48 AND - col2 * - ( 88 ) OR - ( col2 ) * + 42 NOT IN ( + 23 * + col1 + + col0 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - COUNT( col0 ) FROM tab1 cor0 WHERE NULL NOT IN ( - 67, col0 - 53, - col1 * col1 - + + col2 * 69 )
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT - COUNT ( col0 ) FROM tab1 cor0 WHERE NULL NOT IN ( - 67, col0 - 53, - col1 * col1 - + + col2 * 69 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT DISTINCT - 86 DIV 42 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - 86 / 42 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT DISTINCT + col0 + col0, - 82 * 11 * - col2 AS col2 FROM tab2 AS cor0
----
128
36080
150
52316
92
20746

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL >= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6025
SELECT + col1 DIV - + col0 col0, 2 + 83 col0 FROM tab1 AS cor0
----
0
85
0
85
0
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6025
SELECT + col1 / - + col0 col0, 2 + 83 col0 FROM tab1 AS cor0
----
0
85
0
85
0
85

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6028
SELECT ALL + 17 - - - AVG ( + - 50 ) + - CAST( NULL AS DECIMAL ) * - 72 * - - 74 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 17 - - - AVG ( + - 50 ) + - CAST ( NULL AS REAL ) * - 72 * - - 74 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 17 + - - col1 FROM tab0
----
1684
191
880

query I rowsort
SELECT DISTINCT col2 + - col2 + 32 AS col2 FROM tab2
----
32

query I rowsort
SELECT DISTINCT 54 - - 19 AS col1 FROM tab1
----
73

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col0 < ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND col2
----

query I rowsort
SELECT - col1 / - col1 AS col2 FROM tab0 WHERE NOT + col1 <= + 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT - 87 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6036
SELECT - 87 / col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - COUNT( * ) FROM tab1 WHERE NOT + + 98 <> - col2 + - 69 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + + 98 <> - col2 + - 69 + - col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 53 * - - 85 + col2 NOT IN ( col0 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 * - col1 NOT BETWEEN - 5 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL + MAX( + + 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + MAX ( + + 99 ) FROM tab1 AS cor0
----
99

query II rowsort
SELECT - + col0 AS col0, + 73 * - 68 - + col0 AS col0 FROM tab0 AS cor0
----
-15
-4979
-87
-5051
-97
-5061

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

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

query I rowsort
SELECT DISTINCT + - col0 * + 13 + + col2 FROM tab0 AS cor0
----
-1121
-1162
-148

query I rowsort
SELECT + 26 * + ( + - col1 ) AS col2 FROM tab0
----
-2106
-26
-546

query II rowsort
SELECT ALL ( 66 ) AS col2, - 66 - - 75 AS col2 FROM tab1
----
66
9
66
9
66
9

query I rowsort
SELECT DISTINCT - 54 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 + - col2 col0 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT - 24 + + + col0 FROM tab0 AS cor0
----
-9
63
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab1 cor0 WHERE NULL NOT IN ( - col2 * - 89, + 29 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT CAST( NULL AS SIGNED ) + - - 77 FROM tab0 WHERE - col2 BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6053
SELECT CAST ( NULL AS INTEGER ) + - - 77 FROM tab0 WHERE - col2 BETWEEN - + col1 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT + 35 * 68 + + - col2 + - col2 + + col0 * - + 99 + - 62 + - 86 / - col1 * + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + 35 * 68 + + - col2 + - col2 + + col0 * - + 99 + - 62 + - 86 / - col1 * + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + 55 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT + + col0 + col0 * + 71 FROM tab2 AS cor0
----
3312
4608
5400

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 31 + col1 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( - 83, - col1, col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-6059
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( - 83, - col1, col1 ) )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 NOT BETWEEN + 83 AND ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 71 FROM tab0 WHERE 98 - + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * - - 3 * + col1 * + ( col1 ) AS col2 FROM tab1
----
4425
450636
56448

query II rowsort
SELECT DISTINCT col2 * col2 AS col0, 70 AS col2 FROM tab0
----
100
70
2209
70
9801
70

onlyif mysql # DIV for integer division: 
query II rowsort label-6064
SELECT ALL + col0 DIV + + col2 AS col0, - col0 * + ( + 66 ) FROM tab2 WHERE NULL IS NULL
----
1
-4224
1
-4950
2
-3036

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL + col0 / + + col2 AS col0, - col0 * + ( + 66 ) FROM tab2 WHERE NULL IS NULL
----
1
-4224
1
-4950
2
-3036

query I rowsort
SELECT ALL ( - - 0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT ALL SUM( DISTINCT - 85 ) AS col0, 64 AS col2 FROM tab2 AS cor0
----
-85
64

skipif mysql # not compatible
query II rowsort label-6066
SELECT ALL SUM ( DISTINCT - 85 ) AS col0, 64 AS col2 FROM tab2 AS cor0
----
-85
64

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

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + col0 >= col0
----

query I rowsort
SELECT 17 * + col1 * - + col1 FROM tab2
----
-100793
-44217
-76313

query I rowsort
SELECT - - 35 + 80 + - col1 FROM tab0 AS cor0
----
114
34
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT - COUNT( * ) * + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6071
SELECT - COUNT ( * ) * + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + col2 col0 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT - col2 + + ( + col0 ) * col1 DIV col2 FROM tab2 AS cor0
----
28
79
83

skipif mysql # not compatible
query I rowsort label-6073
SELECT - col2 + + ( + col0 ) * col1 / col2 FROM tab2 AS cor0
----
28
79
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT - COUNT( 43 ) FROM tab1 cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT - COUNT ( 43 ) FROM tab1 cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT - 70 + - + 26 DIV col2 + - col1 FROM tab1
----
-117
-75
-84

skipif mysql # not compatible
query I rowsort label-6075
SELECT - 70 + - + 26 / col2 + - col1 FROM tab1
----
-117
-75
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab0
----
-10
-47
-99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 FROM tab2 WHERE - col2 * - + col1 + + 52 IS NOT NULL
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT DISTINCT COUNT( - col2 ) + + SUM( ALL - 81 ), 36 + - 33 AS col1 FROM tab2 cor0
----
-240
3

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT COUNT ( - col2 ) + + SUM ( ALL - 81 ), 36 + - 33 AS col1 FROM tab2 cor0
----
-240
3

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

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

query II rowsort
SELECT - 3 - - col0 AS col2, col0 * - col1 AS col0 FROM tab1
----
48
-714
82
-425
88
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col2 + col1 * col0 col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1343
1858
197

query I rowsort
SELECT ALL - 32 - + col0 AS col1 FROM tab0
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL - ( - MIN( ALL - - 7 ) ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - ( - MIN ( ALL - - 7 ) ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-63

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) > col0 + + - col0 + - + col1 + - 29 * + 93 * + 35 / + col0 / - - col1 - ( 9 ) * + col1
----

query II rowsort
SELECT ALL col0 + - - col2 AS col2, 74 FROM tab0 AS cor0
----
196
74
62
74
97
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT 56 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT 56 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( - 0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6090
SELECT col0 - - + col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT - 2 > col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT col0 - - + col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT - 2 > col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * - ( + + col2 ) col2 FROM tab0 AS cor0
----
-1188
-120
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + 22 * + - COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + 22 * + - COUNT ( * ) FROM tab2
----
-66

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

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL 9 / col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT - CAST( - MAX( - col0 ) AS SIGNED ) FROM tab1
----
-51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT - 50, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-50
-3

skipif mysql # not compatible
query II rowsort label-6096
SELECT - 50, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-50
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6098
SELECT ALL + ( + - ( COUNT( * ) ) ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + ( + - ( COUNT ( * ) ) ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL col2 * ( col1 ) FROM tab0
----
210
3807
99

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

query II rowsort
SELECT DISTINCT 0 AS col1, 51 AS col1 FROM tab0 WHERE - 51 IS NOT NULL
----
0
51

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

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col0 <= NULL
----

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

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

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT BETWEEN + - col0 / - ( - + col0 ) * + col2 / - - 21 AND NULL
----

query I rowsort
SELECT - col1 + - + ( + - 8 ) * col1 FROM tab0 WHERE - ( - ( + col1 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6107
SELECT DISTINCT CAST( + 38 AS SIGNED ) * - col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-1989
-2613
-3003

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT CAST ( + 38 AS INTEGER ) * - col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-1989
-2613
-3003

query I rowsort
SELECT ALL + ( + col1 ) * + col1 + - col2 FROM tab1 AS cor0
----
-34
100
2141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT - + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 84 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6109
SELECT - + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 84 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

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

query I rowsort
SELECT - + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL - CAST( - 65 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - CAST ( - 65 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT - COUNT( * ) * - - 69 + + 99 + + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - COUNT ( * ) * - - 69 + + 99 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

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

query I rowsort
SELECT - 99 * col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT - + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 77 = NULL
----

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

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

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

query I rowsort
SELECT ( + 76 ) + + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + + - col2 NOT BETWEEN + - 58 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col2 * - col0 - 80 + 61
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 * ( 92 ) ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 38 * - col2 col0 FROM tab2
----
117040
147668
44574

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT - CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( 67 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-6125
SELECT - CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( 67 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL CAST( + - ( col1 ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL CAST ( + - ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6127
SELECT DISTINCT + col1 + - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-98
NULL
11
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-6127
SELECT DISTINCT + col1 + - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-98
NULL
11
NULL
34
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6128
SELECT DISTINCT - 34 * + 94 AS col1, - col1 DIV - col2 FROM tab0
----
-3196
0
-3196
1
-3196
2

skipif mysql # not compatible
query II rowsort label-6128
SELECT DISTINCT - 34 * + 94 AS col1, - col1 / - col2 FROM tab0
----
-3196
0
-3196
1
-3196
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - SUM( - col0 ) AS col1, + 63 AS col0 FROM tab0
----
199
63

skipif mysql # not compatible
query II rowsort label-6129
SELECT - SUM ( - col0 ) AS col1, + 63 AS col0 FROM tab0
----
199
63

query I rowsort
SELECT ALL ( col0 ) * 16 - - 90 * + col2 * + - col0 FROM tab1 AS cor0
----
-439824
-449990
-555464

query I rowsort
SELECT ALL - + col1 * - col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6132
SELECT ALL + 10 * CAST( - col1 AS SIGNED ) DIV - + col0 AS col0 FROM tab2 AS cor0
----
11
12
8

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + 10 * CAST ( - col1 AS INTEGER ) / - + col0 AS col0 FROM tab2 AS cor0
----
11
12
8

query II rowsort
SELECT - col2 * - col1 AS col1, + col1 + - + col2 - - - col0 FROM tab1 AS cor0
----
1344
-133
295
-139
3196
-112

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

query I rowsort
SELECT ( col0 ) + + col1 + - + 22 FROM tab2 AS cor0
----
119
120
75

query I rowsort
SELECT - 17 + + col0 AS col0 FROM tab1 AS cor0
----
34
68
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + 74 >= + + ( col1 )
----

query II rowsort
SELECT ALL - 86 + - + col0 + - - col1 * - 52 * - col2 * + col1, col1 FROM tab0 AS cor0
----
16034983
81
229147
21
4965
1

query I rowsort
SELECT DISTINCT + + 97 + - 30 AS col2 FROM tab1 AS cor0
----
67

query II rowsort
SELECT + col1 + - 85 * col0, col1 FROM tab2 AS cor0
----
-3859
51
-5363
77
-6308
67

query I rowsort
SELECT col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT - 2 + ( + - 34 ) AS col0, + col1 AS col2 FROM tab2 AS cor0
----
-36
51
-36
67
-36
77

query I rowsort
SELECT - + col1 + 93 AS col0 FROM tab0 AS cor0
----
12
72
92

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

query I rowsort
SELECT ALL + 66 - - col1 AS col2 FROM tab1
----
113
71
80

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

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

query I rowsort
SELECT DISTINCT - - col1 + + 55 AS col2 FROM tab2 AS cor0
----
106
122
132

query I rowsort
SELECT DISTINCT - - 67 + - 57 + + col0 AS col0 FROM tab2 cor0
----
56
74
85

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 92 NOT BETWEEN NULL AND + 90
----

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

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

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

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

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

query I rowsort
SELECT - col1 * - 12 FROM tab0 cor0
----
12
252
972

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

query II rowsort
SELECT + 78 AS col2, + ( - col1 ) AS col0 FROM tab0
----
78
-1
78
-21
78
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6159
SELECT + col0 DIV + CAST( - col0 AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6159
SELECT + col0 / + CAST ( - col0 AS INTEGER ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col0 * - 60 * + + col2 AS col0 FROM tab2
----
153600
261000
63480

query I rowsort
SELECT ALL + 6 AS col0 FROM tab1 WHERE NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - 46 + + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL - 19 + - MIN( - col2 ) + MIN( - - col2 ) FROM tab1 cor0
----
136

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - 19 + - MIN ( - col2 ) + MIN ( - - col2 ) FROM tab1 cor0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT ( + - COUNT( * ) ) DIV - 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT ( + - COUNT ( * ) ) / - 93 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6167
SELECT * FROM tab0 cor0 WHERE col0 IN ( - col0 * - - col0 + CAST( NULL AS SIGNED ) * + + 58 )
----

skipif mysql # not compatible
query III rowsort label-6167
SELECT * FROM tab0 cor0 WHERE col0 IN ( - col0 * - - col0 + CAST ( NULL AS INTEGER ) * + + 58 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE - 16 / col1 >= + col0 + col2 + col0
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE 41 * + 15 IS NULL
----

query I rowsort
SELECT + + col0 - - col2 * - 43 AS col1 FROM tab2 AS cor0
----
-1656
-2419
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL - 67 * - COUNT( * ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 67 * - COUNT ( * ) AS col0 FROM tab2
----
201

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT ALL - 84 DIV + col1 FROM tab0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - 84 / + col1 FROM tab0
----
-1
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col2 col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL - 54 + + 54 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 14 * - col0 * col0 - + 99 FROM tab2 cor0
----
29525
57245
78651

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT + COUNT( DISTINCT 64 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + COUNT ( DISTINCT 64 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + 46, - 36 AS col2 FROM tab0 AS cor0
----
46
-36

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab0
----
705
870
9603

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 57 col2 FROM tab0 AS cor0
----
57
57
57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) * - 36 * + - col0 col0 FROM tab1 AS cor0
----
-260100
-298116
-93636

query I rowsort
SELECT ALL + 92 * col0 FROM tab0 AS cor0
----
1380
8004
8924

query I rowsort
SELECT - 11 + - + col0 + + - col2 AS col2 FROM tab0
----
-108
-207
-73

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

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

query II rowsort
SELECT col1, col0 * - 56 + + col1 FROM tab1
----
14
-2842
47
-5049
5
-4755

query I rowsort
SELECT - 91 * - col0 AS col2 FROM tab0
----
1365
7917
8827

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

query I rowsort
SELECT col2 + + 7 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
103
66
75

query I rowsort
SELECT ALL + col1 + - ( - 6 ) FROM tab1 cor0
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL + + COUNT( DISTINCT - - 9 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + + COUNT ( DISTINCT - - 9 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT SUM( col1 ) col0 FROM tab0 AS cor0
----
103

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT - COUNT( * ) DIV + - 50 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6196
SELECT - COUNT ( * ) / + - 50 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT col0 * - col0 + - col1 FROM tab2 cor0
----
-2167
-4173
-5692

query I rowsort
SELECT DISTINCT + - 5 + + col2 FROM tab0 AS cor0
----
42
5
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT + col1 DIV + - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6200
SELECT + col1 / + - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 + + - 80 - col0 FROM tab2
----
-67
-75
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT - COUNT( ( - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6202
SELECT - COUNT ( ( - col1 ) ) FROM tab1
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 29 + - col2 + - 7 IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + col2 <= + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 18 AS col0, + col0 col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN + 98 AND NULL
----

query I rowsort
SELECT - col2 * - 10 - - 44 AS col0 FROM tab0
----
1034
144
514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + - col1 col0 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 + col0 col1 FROM tab2 AS cor0
----
2392
4992
5100

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT - - CAST( - 87 AS SIGNED ) AS col2 FROM tab1 cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-6215
SELECT - - CAST ( - 87 AS INTEGER ) AS col2 FROM tab1 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + 74 * - + col0 AS col1 FROM tab2 cor0
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT ALL COUNT( * ) * + COUNT( * ) DIV - 27 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL COUNT ( * ) * + COUNT ( * ) / - 27 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - - - col2 * - col2 = NULL
----

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

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

query I rowsort
SELECT col2 + ( + + col2 ) FROM tab1
----
118
136
192

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT + - col2 DIV 2 FROM tab1 AS cor0
----
-29
-34
-48

skipif mysql # not compatible
query I rowsort label-6222
SELECT + - col2 / 2 FROM tab1 AS cor0
----
-29
-34
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT DISTINCT + + 73 DIV + col2 + 57 + col0 * - 44 col1 FROM tab2 cor0
----
-1964
-2758
-3242

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6223
SELECT DISTINCT + + 73 / + col2 + 57 + col0 * - 44 col1 FROM tab2 cor0
----
-1964
-2758
-3242

query I rowsort
SELECT DISTINCT + col0 - + - col1 AS col2 FROM tab0 cor0
----
108
96
98

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

skipif mysql # not compatible
query I rowsort label-6225
SELECT + MAX ( + col1 ) + + ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
38

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( 35 ) NOT BETWEEN col2 AND NULL
----
15
97

query I rowsort
SELECT ALL col1 + - 90 AS col0 FROM tab0 AS cor0
----
-69
-89
-9

query I rowsort
SELECT ALL ( + col0 ) * + + 16 FROM tab2
----
1024
1200
736

query III rowsort
SELECT ALL + 39 AS col2, + col2 AS col0, + - col2 AS col0 FROM tab1
----
9 values hashing to a74aff1b62634c907dd0681ba9d88d3e

query I rowsort
SELECT + + col2 * - 77 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3619
-7623
-770

query I rowsort
SELECT DISTINCT - col0 * + 70 AS col0 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT SUM( - col2 ) * + 6 AS col1 FROM tab1
----
-1338

skipif mysql # not compatible
query I rowsort label-6232
SELECT SUM ( - col2 ) * + 6 AS col1 FROM tab1
----
-1338

query I rowsort
SELECT - 81 * + - col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT ALL + - 66 AS col2 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + col1 + + 91 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
105
138
96

query I rowsort
SELECT ALL col0 * - - col1 + + + col2 * col1 * + + 41 FROM tab0 AS cor0
----
10437
157302
4156

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL + SUM( - 16 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + SUM ( - 16 ) AS col0 FROM tab2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6238
SELECT DISTINCT + MIN( ( col0 ) ) AS col0, - CAST( NULL AS SIGNED ) * + - ( + MIN( + 52 ) ) col2 FROM tab1
----
51
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6238
SELECT DISTINCT + MIN ( ( col0 ) ) AS col0, - CAST ( NULL AS INTEGER ) * + - ( + MIN ( + 52 ) ) col2 FROM tab1
----
51
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * - col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 89
----

query I rowsort
SELECT DISTINCT ( - 45 ) AS col1 FROM tab2 AS cor0
----
-45

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

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

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

query I rowsort
SELECT - col1 + - col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT 4 + - - col0 + - col2 AS col1 FROM tab1
----
-41
27
30

query II rowsort
SELECT col2, 62 AS col0 FROM tab2
----
23
62
40
62
58
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT ALL - 94 DIV + COUNT( * ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - 94 / + COUNT ( * ) FROM tab0
----
-31

query II rowsort
SELECT - 67 * + col1 + + 58 AS col1, col0 FROM tab0 AS cor0
----
-1349
87
-5369
15
-9
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT - + 31 FROM tab2 AS cor0 WHERE 97 + CAST( NULL AS SIGNED ) + - + col2 + - 45 - - 98 * col0 - + col1 BETWEEN - 78 / - col1 AND - - 56 * + col1 * col1 * - col0 * + col2 - - - col0 / + col0
----

skipif mysql # not compatible
query I rowsort label-6249
SELECT - + 31 FROM tab2 AS cor0 WHERE 97 + CAST ( NULL AS INTEGER ) + - + col2 + - 45 - - 98 * col0 - + col1 BETWEEN - 78 / - col1 AND - - 56 * + col1 * col1 * - col0 * + col2 - - - col0 / + col0
----

query I rowsort
SELECT - 48 * - + ( 69 ) FROM tab2 AS cor0
----
3312
3312
3312

query I rowsort
SELECT ALL ( - col1 ) + + + col2 FROM tab1 AS cor0
----
21
54
82

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

query I rowsort
SELECT 87 - + 11 AS col0 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT 58 + - 49 AS col1 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab2 AS cor0 WHERE NOT + 89 NOT BETWEEN NULL AND + col2 * + + 78 + + - col1 OR NOT NULL IS NOT NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ALL + col2 + - - ( col0 ) - + 1 + 7 * + + col0 * col1 * + 33 FROM tab1 AS cor0
----
165080
98318
988145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT + + COUNT( * ) DIV + 52 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT + + COUNT ( * ) / + 52 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT COUNT( + + col0 ) * + 61 AS col0 FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-6259
SELECT COUNT ( + + col0 ) * + 61 AS col0 FROM tab0 cor0
----
183

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 * - col1 + ( - + 69 ) * - col0 col2, - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
2959
-1344
4399
-3196
5665
-295

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT + - col2 DIV ( + + 22 ) * + 5 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT + - col2 / ( + + 22 ) * + 5 / col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT - col2 * + 59 + - 41 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + + col0 + + + col1 + - 22 FROM tab2 WHERE + 67 + + 9 <> + + ( col1 )
----
119
120
75

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

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

query II rowsort
SELECT - col0 AS col1, ( - - 76 ) FROM tab1 AS cor0
----
-51
76
-85
76
-91
76

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

query II rowsort
SELECT DISTINCT + - col0 + - col2 AS col2, col0 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
-144
85
-147
51
-159
91

query I rowsort
SELECT + 30 * + 31 AS col0 FROM tab0
----
930
930
930

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT 18 + + COUNT( * ) col1 FROM tab1 AS cor0
----
21

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

query I rowsort
SELECT ALL - 79 + - col0 FROM tab0 AS cor0
----
-166
-176
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT ALL col0 DIV + - 33 + 34 FROM tab0 AS cor0
----
32
32
34

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL col0 / + - 33 + 34 FROM tab0 AS cor0
----
32
32
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT DISTINCT 70 + - COUNT( * ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT 70 + - COUNT ( * ) FROM tab2 AS cor0
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL - - COUNT( * ) + - 81 FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - - COUNT ( * ) + - 81 FROM tab1 cor0
----
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 + - 72 AND - col2
----

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

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

query I rowsort
SELECT + col0 FROM tab2 WHERE - 95 IS NULL
----

query I rowsort
SELECT ALL + - col2 + + 23 AS col0 FROM tab1 WHERE NOT ( col1 ) < + 27
----
-45

query II rowsort
SELECT + col1 + 10 AS col0, col0 + col0 AS col0 FROM tab1
----
15
170
24
102
57
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE ( NOT - ( + col0 ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT - ( + col0 ) IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + COUNT( * ) - + 77 AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6283
SELECT + COUNT ( * ) - + 77 AS col2 FROM tab0 AS cor0
----
-74

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT col0 DIV + 25 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-6288
SELECT col0 / + 25 FROM tab0 AS cor0
----
0
3
3

query I rowsort
SELECT DISTINCT col1 * - + col1 * 9 FROM tab2
----
-23409
-40401
-53361

onlyif mysql # DIV for integer division: 
query II rowsort label-6290
SELECT - ( + - col2 ), - 80 DIV - - col2 AS col2 FROM tab1
----
59
-1
68
-1
96
0

skipif mysql # not compatible
query II rowsort label-6290
SELECT - ( + - col2 ), - 80 / - - col2 AS col2 FROM tab1
----
59
-1
68
-1
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT SUM( - + 25 ) AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6291
SELECT SUM ( - + 25 ) AS col1 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT 96 * + + 50 + - col2 * + + col2 * + 93 FROM tab1 cor0
----
-318933
-425232
-852288

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

query I rowsort
SELECT col1 * - ( - + col1 ) FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT ALL + 11 + - + col1 AS col2 FROM tab2 cor0
----
-40
-56
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT + - col2 + 0 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6297
SELECT + - col2 + 0 / + - col1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + + - col2 col2 FROM tab0 AS cor0
----
-110
-162
-73

query I rowsort
SELECT DISTINCT - + 38 + + 79 FROM tab1 AS cor0
----
41

query I rowsort
SELECT col1 * 79 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1106
3713
395

query I rowsort
SELECT DISTINCT - col1 * + col0 + col1 + col1 FROM tab2 AS cor0
----
-2244
-4774
-4891

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

skipif mysql # not compatible
query I rowsort label-6302
SELECT col1 + + CAST ( NULL AS REAL ) * 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT 68 DIV + + 61 + + - col1 - col2 * - - col2 * + col0 + col2 FROM tab0 AS cor0
----
-33168
-8710
-950598

skipif mysql # not compatible
query I rowsort label-6304
SELECT 68 / + + 61 + + - col1 - col2 * - - col2 * + col0 + col2 FROM tab0 AS cor0
----
-33168
-8710
-950598

query I rowsort
SELECT DISTINCT col2 - + + ( 44 ) AS col1 FROM tab0
----
-34
3
55

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6308
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * - col2 * + col0 * - col2 + - + CAST( NULL AS SIGNED ) / + col0 + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6308
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * - col2 * + col0 * - col2 + - + CAST ( NULL AS INTEGER ) / + col0 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col0 < + 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT + 31 DIV - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT + 31 / - 73 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + 82 * 32 + + col1 FROM tab0 AS cor0
----
-2543
-2603
-2623

query I rowsort
SELECT DISTINCT - + col1 + - col2 FROM tab0 WHERE - col2 BETWEEN - col1 + + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 70 >= + + 45 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + + col1 * + col0 col2 FROM tab2 cor0
----
180642
379456
386925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 77 col1 FROM tab0 AS cor0
----
-1617
-6237
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT MIN( DISTINCT - 18 ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT MIN ( DISTINCT - 18 ) AS col1 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COUNT( * ) * + 47 AS col2 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COUNT ( * ) * + 47 AS col2 FROM tab0 AS cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6319
SELECT * FROM tab0 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN - - 84 AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6319
SELECT * FROM tab0 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN - - 84 AND ( col0 )
----

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

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

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT 19 * + 91 FROM tab1 AS cor0
----
1729
1729
1729

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

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

query II rowsort
SELECT ALL - - 89, col2 + + 78 AS col2 FROM tab2 AS cor0
----
89
101
89
118
89
136

query I rowsort
SELECT ALL - 91 AS col0 FROM tab0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= - 28 - 41 * + 20
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT - col0 * + col2 + - ( + CAST( col0 AS SIGNED ) ) DIV - 88 AS col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - col0 * + col2 + - ( + CAST ( col0 AS INTEGER ) ) / - 88 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - 69 * ( - col2 * - col2 ) FROM tab1
----
-240189
-319056
-635904

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + 56 + + 10 ) col1 FROM tab2
----
-2
-20
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT CAST( 90 AS SIGNED ) FROM tab1
----
90
90
90

skipif mysql # not compatible
query I rowsort label-6334
SELECT CAST ( 90 AS INTEGER ) FROM tab1
----
90
90
90

query I rowsort
SELECT ALL ( 58 ) AS col0 FROM tab1 WHERE NOT NULL <= col1 + 80
----

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

query I rowsort
SELECT ALL col2 * 46 FROM tab0 WHERE NOT ( - col2 * col1 ) BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( col0 / - col2 ) NOT IN ( - col1 )
----
46
64
75

query I rowsort
SELECT 60 * col1 FROM tab1
----
2820
300
840

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT ALL - col0 + - CAST( 20 + 53 AS SIGNED ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( + 36 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL - col0 + - CAST ( 20 + 53 AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( + 36 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6343
SELECT DISTINCT * FROM tab1 WHERE ( - 3 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6343
SELECT DISTINCT * FROM tab1 WHERE ( - 3 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 40 IS NULL
----

query I rowsort
SELECT col0 * 62 + - 17 FROM tab0
----
5377
5997
913

query I rowsort
SELECT + col2 - col0 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - 60 ) BETWEEN ( + 60 + - 40 ) AND NULL
----

query I rowsort
SELECT - 42 * 71 FROM tab1
----
-2982
-2982
-2982

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col1 ) + ( + 67 ) > 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 62 - + col0 * + col2 FROM tab1 AS cor0
----
-4834
-4953
-6126

query I rowsort
SELECT col0 - 53 FROM tab0 cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + COUNT( * ) + - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-39

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( * ) + - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-39

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NULL NOT IN ( - 23 + 52 * - col2 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6357
SELECT DISTINCT CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT IN ( col0 * - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT IN ( col0 * - 20 )
----
0

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( - 33 - - col2 )
----

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

query I rowsort
SELECT DISTINCT - col1 * + 62 AS col1 FROM tab2 cor0
----
-3162
-4154
-4774

query I rowsort
SELECT + 7 * + 10 AS col2 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col0 / - 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT - 36 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) NOT BETWEEN + CAST( NULL AS SIGNED ) / - col1 AND col2 + 82
----

skipif mysql # not compatible
query I rowsort label-6365
SELECT - 36 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) / - col1 AND col2 + 82
----

query I rowsort
SELECT ALL + ( col0 ) * 85 FROM tab2 cor0
----
3910
5440
6375

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

query I rowsort
SELECT DISTINCT + 45 * 80 + col0 AS col0 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6369
SELECT DISTINCT CAST( MIN( ALL CAST( NULL AS DECIMAL ) ) AS SIGNED ) / - 61 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT CAST ( MIN ( ALL CAST ( NULL AS REAL ) ) AS INTEGER ) / - 61 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 42 col1 FROM tab1 WHERE NOT ( col2 ) IN ( col2 * + 73 )
----
-43
-49
-9

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

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL col0 / + + col2 AS col0 FROM tab1
----
0
1
1

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT 76 FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) > ( col0 * + col1 )
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6377
SELECT 76 FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) > ( col0 * + col1 )
----
76
76
76

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

query I rowsort
SELECT - ( - col2 ) * 32 FROM tab1 cor0
----
1888
2176
3072

query I rowsort
SELECT ALL col2 + + 58 * + 19 AS col2 FROM tab0
----
1112
1149
1201

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT + 12 + CAST( + 71 AS SIGNED ) FROM tab0 WHERE ( NULL ) IS NULL
----
83
83
83

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 12 + CAST ( + 71 AS INTEGER ) FROM tab0 WHERE ( NULL ) IS NULL
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL SUM( ALL + + 82 ) col0 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6383
SELECT ALL SUM ( ALL + + 82 ) col0 FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + MIN( 14 ) + + 94 col0 FROM tab1 AS cor0 WHERE ( 72 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6384
SELECT + MIN ( 14 ) + + 94 col0 FROM tab1 AS cor0 WHERE ( 72 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT DISTINCT col2 DIV ( + + 2 ) + 3 * - ( col1 ) FROM tab1 cor0
----
-107
14
6

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT col2 / ( + + 2 ) + 3 * - ( col1 ) FROM tab1 cor0
----
-107
14
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - - ( 39 ) * col2 + col2 + + col0 col1 FROM tab0 AS cor0
----
133871
282049
28567

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT 2 DIV - col1 + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6387
SELECT 2 / - col1 + + col1 FROM tab1 AS cor0
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT MIN ( 74 ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
71

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

query I rowsort
SELECT ALL 28 + 32 AS col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6391
SELECT - col1 DIV + + 37 + CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
30
31
31

skipif mysql # not compatible
query I rowsort label-6391
SELECT - col1 / + + 37 + CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
30
31
31

query I rowsort
SELECT col1 + + 70 FROM tab2 AS cor0
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT + MIN( DISTINCT col2 ) + SUM( 82 ) AS col2 FROM tab1 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + MIN ( DISTINCT col2 ) + SUM ( 82 ) AS col2 FROM tab1 AS cor0
----
305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL ( COUNT( + col1 ) ) AS col0 FROM tab0 WHERE ( + col1 ) BETWEEN - col1 / 83 AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL ( COUNT ( + col1 ) ) AS col0 FROM tab0 WHERE ( + col1 ) BETWEEN - col1 / 83 AND ( - col2 )
----
0

query I rowsort
SELECT col1 * col2 + + col2 AS col0 FROM tab2 WHERE ( + + col0 ) BETWEEN + col0 AND + col1
----
1196
3120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT - col1 - - + 36 * 61 DIV col0 col2 FROM tab0
----
21
4
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6399
SELECT - col1 - - + 36 * 61 / col0 col2 FROM tab0
----
21
4
65

query I rowsort
SELECT col0 - - col2 * + + col1 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT MAX( ALL + 15 ) - 16 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6401
SELECT MAX ( ALL + 15 ) - 16 AS col2 FROM tab0 AS cor0
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL CAST( - COUNT( DISTINCT - + 61 ) AS SIGNED ) col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6403
SELECT ALL CAST ( - COUNT ( DISTINCT - + 61 ) AS INTEGER ) col0 FROM tab1 cor0
----
-1

query II rowsort
SELECT ALL - col0 AS col0, + 64 + + col0 AS col2 FROM tab1 AS cor0
----
-51
115
-85
149
-91
155

query II rowsort
SELECT ALL 17, col1 AS col0 FROM tab0 AS cor0
----
17
1
17
21
17
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT - - MAX( ALL - col0 ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT - - MAX ( ALL - col0 ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
-46

query I rowsort
SELECT DISTINCT col0 * 85 * + col1 FROM tab1 cor0
----
36125
363545
60690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL ( 73 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + CAST( + 34 AS SIGNED ) ) AND - col0 + col1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL ( 73 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + CAST ( + 34 AS INTEGER ) ) AND - col0 + col1
----
73
73
73

query I rowsort
SELECT - 79 * 11 * - + 86 AS col0 FROM tab0 AS cor0
----
74734
74734
74734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 8 * - col2 col2 FROM tab0 AS cor0
----
376
792
80

query I rowsort
SELECT ALL + 94 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT 75 / + + col2 + - + 13 - + - ( + col2 ) + col0 IS NULL
----
51
85
91

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

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 WHERE ( NULL ) <= + col1
----

query II rowsort
SELECT 59, ( - col1 ) + - col1 AS col0 FROM tab2
----
59
-102
59
-134
59
-154

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 * - 67 + col1 col2 FROM tab1 AS cor0
----
-623
-656
-665

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 78 ) AND NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - 84 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT + 20 AS col1 FROM tab2 AS cor0 WHERE + ( 47 ) + col2 * + ( + 84 ) NOT IN ( + - 58 )
----
20
20
20

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
32

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

query I rowsort
SELECT ALL - 97 + + + col0 AS col2 FROM tab2
----
-22
-33
-51

query I rowsort
SELECT ALL 84 - + - col2 FROM tab1
----
143
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT - COUNT( * ) * + 71 + ( + 48 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - COUNT ( * ) * + 71 + ( + 48 ) FROM tab2
----
-165

query II rowsort
SELECT DISTINCT 82 - + 39 + - col1 AS col0, + 8 FROM tab0
----
-38
8
22
8
42
8

query I rowsort
SELECT col0 + + - col2 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT 47 + 87 FROM tab2
----
134
134
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6435
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 84 col2 FROM tab2
----
NULL
84
NULL
84
NULL
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

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

query II rowsort
SELECT DISTINCT col0, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT col1 AS col1, - 26 * 35 FROM tab2 AS cor0
----
51
-910
67
-910
77
-910

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT + - SUM( + + 56 ) AS col2 FROM tab0 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT + - SUM ( + + 56 ) AS col2 FROM tab0 cor0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-6442
SELECT DISTINCT 58 AS col1, COUNT( * ) FROM tab0, tab0 AS cor0
----
58
9

skipif mysql # not compatible
query II rowsort label-6442
SELECT DISTINCT 58 AS col1, COUNT ( * ) FROM tab0, tab0 AS cor0
----
58
9

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

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

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

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

query I rowsort
SELECT - col1 + + + 39 AS col2 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT ( ( COUNT( ALL - 22 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT ( ( COUNT ( ALL - 22 ) ) ) FROM tab0
----
3

query I rowsort
SELECT - 56 * col1 + 39 + + col0 AS col1 FROM tab1
----
-156
-2502
-694

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL ( CAST( col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL ( CAST ( col1 AS INTEGER ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT DISTINCT 0 * - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
0

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

query I rowsort
SELECT col1 + - + 59 FROM tab0 WHERE - + col2 BETWEEN + + 24 AND - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL + COUNT( * ) * MAX( col1 ) - + 99 - COUNT( * ) AS col2 FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + COUNT ( * ) * MAX ( col1 ) - + 99 - COUNT ( * ) AS col2 FROM tab0 cor0
----
141

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6456
SELECT + MIN ( + col1 ) col0 FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 70 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 85 - - + col0 + col1 FROM tab2
----
182
226
227

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6459
SELECT ALL 5 - + - CAST( NULL AS DECIMAL ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-6459
SELECT ALL 5 - + - CAST ( NULL AS REAL ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT 73 * + 10 * - - 20 AS col0 FROM tab1
----
14600

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab1 cor0
----
-4896
-5015
-6188

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

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

query I rowsort
SELECT + col2 + + + 8 AS col2 FROM tab1 AS cor0
----
104
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + ( + + 67 ) * - COUNT( * ) + + + ( - SUM( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + ( + + 67 ) * - COUNT ( * ) + + + ( - SUM ( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 57 col0 FROM tab0 AS cor0 WHERE 29 IS NOT NULL
----
-24
36
56

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT ALL + 29 + - COUNT( * ) DIV + - 14 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + 29 + - COUNT ( * ) / + - 14 FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL - col1 + - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 8 * - 88 > + - col2
----

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - col1 + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 8 * - 88 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * 2 + + 76 col1, - col0 FROM tab1 AS cor0
----
-116
-51
-42
-85
-60
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6469
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * 2 + + 76 col1, - col0 FROM tab1 AS cor0
----
-116
-51
-42
-85
-60
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT - col0 AS col2 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6470
SELECT - col0 AS col2 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-46
-64
-75

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE + 24 / - 54 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - 34 FROM tab2, tab2 AS cor0
----
-34

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - - col1 + + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab0 WHERE NULL IS NULL
----
35

query I rowsort
SELECT + 59 * - 71 AS col2 FROM tab2
----
-4189
-4189
-4189

query I rowsort
SELECT - col1 - 54 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT + col1 * + 55 AS col1 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # DIV for integer division: 
query II rowsort label-6480
SELECT DISTINCT + - col1 DIV col1 AS col2, + col1 FROM tab1 AS cor0
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT + - col1 / col1 AS col2, + col1 FROM tab1 AS cor0
----
-1
14
-1
47
-1
5

query II rowsort
SELECT col2 * + col1 AS col0, + 36 AS col0 FROM tab1 cor0
----
1344
36
295
36
3196
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6482
SELECT DISTINCT + 94 DIV + COUNT( * ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + 94 / + COUNT ( * ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + 22 * + - 19 FROM tab1 AS cor0
----
-418
-418
-418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT CAST( + - SUM( ALL + col1 ) AS SIGNED ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6485
SELECT CAST ( + - SUM ( ALL + col1 ) AS INTEGER ) FROM tab2
----
-195

query II rowsort
SELECT col2 AS col2, + col2 * - col1 * - 8 FROM tab2 AS cor0
----
23
9384
40
24640
58
31088

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 37 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + + col1 * 49 FROM tab1 AS cor0
----
2350
250
700

query II rowsort
SELECT DISTINCT - 59, col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT ALL - col2 + + + 25 FROM tab2
----
-15
-33
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - COUNT( * ) + + - 53 + + 15 AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-6493
SELECT - COUNT ( * ) + + - 53 + + 15 AS col0 FROM tab2
----
-41

query I rowsort
SELECT col2 + - + 95 * - 47 * col1 + - col1 FROM tab0
----
361631
4563
93754

query I rowsort
SELECT + 63 + - + col1 FROM tab0
----
-18
42
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT DISTINCT 89 DIV 27 + col2 FROM tab0 AS cor0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT 89 / 27 + col2 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) + - col0 + + + col0 * - 37 FROM tab2 AS cor0
----
2175
2496
598

query I rowsort
SELECT DISTINCT col0 + + ( + 89 ) FROM tab1 AS cor0
----
140
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 * col0 col0 FROM tab2
----
3956
5504
6450

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT COUNT( DISTINCT - - col1 ) - - 75 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) - - 75 FROM tab1
----
78

query II rowsort
SELECT col2 - + ( - col0 ), col2 AS col0 FROM tab1
----
144
59
147
96
159
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + 96 * col2, ( - 76 ) )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT DISTINCT - + COUNT( * ) DIV - + 71 col2 FROM tab1 cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT + + col2 DIV - + ( - col1 ) * 21 + + 84 AS col1 FROM tab2 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-6508
SELECT + + col2 / - + ( - col1 ) * 21 + + 84 AS col1 FROM tab2 AS cor0
----
84
84
84

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6512
SELECT DISTINCT - 14 DIV - COUNT( * ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - 14 / - COUNT ( * ) AS col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT + COUNT( + 79 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6513
SELECT + COUNT ( + 79 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6514
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6514
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab0
----
NULL
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 82 col2, 65 FROM tab0 AS cor0
----
82
65
82
65
82
65

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 + + col2 >= + - col0 + - - ( + - col0 )
----

query I rowsort
SELECT DISTINCT - 23 * + - ( ( - col1 ) ) FROM tab2
----
-1173
-1541
-1771

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 55 > + 46 / col2 + + + col2 + - col1
----
97
1
99

query I rowsort
SELECT ALL 11 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6524
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NOT 42 / - CAST( NULL AS DECIMAL ) * + 44 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6524
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NOT 42 / - CAST ( NULL AS REAL ) * + 44 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 31 IS NULL
----

query I rowsort
SELECT ALL - + col0 + col1 + 93 AS col0 FROM tab1 AS cor0
----
13
49
56

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT - + col0 + 48 DIV - col2 * + col0 DIV + 14 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6529
SELECT - + col0 + 48 / - col2 * + col0 / + 14 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT 43 + + 39 + - SUM( - col1 ) FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-6530
SELECT 43 + + 39 + - SUM ( - col1 ) FROM tab1 AS cor0
----
148

query I rowsort
SELECT col2 + - col0 - + col1 AS col1 FROM tab2
----
-101
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT + col1 + - col1 + - 89 DIV - - col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6532
SELECT + col1 + - col1 + - 89 / - - col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT 77 * + 2 FROM tab1
----
154
154
154

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

query I rowsort
SELECT ALL + 77 * + 60 - col2 + - 85 AS col0 FROM tab0 AS cor0
----
4436
4488
4525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * col2 * + - col0 * col2 - col2 col0 FROM tab0 AS cor0
----
182690
2683888
950598

query I rowsort
SELECT col0 + - - 77 FROM tab0
----
164
174
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT 82 * + COUNT( * ) col2, + 41 + - - 20 AS col2 FROM tab1 AS cor0
----
246
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6539
SELECT 82 * + COUNT ( * ) col2, + 41 + - - 20 AS col2 FROM tab1 AS cor0
----
246
61

query I rowsort
SELECT 33 * col2 + - 49 FROM tab2 cor0
----
1271
1865
710

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

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

skipif mysql # not compatible
query I rowsort label-6542
SELECT MAX ( - + col0 ) FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT DISTINCT - col2 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - col2 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6544
SELECT + CAST( NULL AS DECIMAL ) - - 53 AS col0 FROM tab1 WHERE NOT col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-6544
SELECT + CAST ( NULL AS REAL ) - - 53 AS col0 FROM tab1 WHERE NOT col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT ALL + 53 DIV 29 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT ALL + 53 / 29 col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT ALL col0 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL col0 / - col0 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 * - col0 * - col0 ) NOT IN ( 7, col2, + 66, + col2, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 AS col0, 26 col0 FROM tab2
----
-89
26
-89
26
-89
26

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < NULL OR NULL BETWEEN ( - col2 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + + ( 45 ) - - - COUNT( * ), + COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0 cor0
----
402
0

skipif mysql # not compatible
query II rowsort label-6553
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + + ( 45 ) - - - COUNT ( * ), + COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0 cor0
----
402
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT + 24 DIV - ( - + ( ( - 37 ) ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + 24 / - ( - + ( ( - 37 ) ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + MIN( DISTINCT + + ( - - col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + MIN ( DISTINCT + + ( - - col0 ) ) AS col0 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 37 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT DISTINCT - col2 + 7 + col1 - - 67 / + + col2 * - 3 * - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - col2 + 7 + col1 - - 67 / + + col2 * - 3 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT - 19, - COUNT( * ) + - + 17 + + 28 - + - 36 * + + 90 AS col0 FROM tab0 cor0
----
-19
3248

skipif mysql # not compatible
query II rowsort label-6561
SELECT - 19, - COUNT ( * ) + - + 17 + + 28 - + - 36 * + + 90 AS col0 FROM tab0 cor0
----
-19
3248

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 70
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT DISTINCT ( - col2 ) DIV 71 * + col1 + 91 FROM tab1
----
77
91

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT ( - col2 ) / 71 * + col1 + 91 FROM tab1
----
77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - + MAX( + + 90 ) FROM tab0 WHERE 13 IS NOT NULL
----
-90

skipif mysql # not compatible
query I rowsort label-6565
SELECT - + MAX ( + + 90 ) FROM tab0 WHERE 13 IS NOT NULL
----
-90

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6567
SELECT + 24 + + - CAST( NULL AS DECIMAL ), MAX( DISTINCT - 11 ) AS col0 FROM tab0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-6567
SELECT + 24 + + - CAST ( NULL AS REAL ), MAX ( DISTINCT - 11 ) AS col0 FROM tab0
----
NULL
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL ( + SUM( ALL + CAST( + + 98 AS SIGNED ) ) ) AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL ( + SUM ( ALL + CAST ( + + 98 AS INTEGER ) ) ) AS col2 FROM tab1
----
294

query I rowsort
SELECT DISTINCT 77 + - col2 + col2 AS col0 FROM tab0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 + + col2 col1, 79 * - + 24 AS col2 FROM tab2 AS cor0
----
100
-1896
118
-1896
83
-1896

query I rowsort
SELECT ALL + col2 + - + ( - + col2 ) FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + 96 + MAX( DISTINCT + col1 ) FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 96 + MAX ( DISTINCT + col1 ) FROM tab2
----
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 67 col1, - col1 - - + col0 - col0 + - - col1 AS col1 FROM tab0 AS cor0
----
-67
0
-67
0
-67
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 15
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT COUNT( * ) * ( + 13 ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT COUNT ( * ) * ( + 13 ) AS col2 FROM tab1 AS cor0
----
39

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

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

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

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IN ( col1 - + ( - + col0 ), col2, col0, - col2, col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6581
SELECT ALL - 24 * + col0, - col2 DIV col1 AS col2 FROM tab2
----
-1104
0
-1536
0
-1800
0

skipif mysql # not compatible
query II rowsort label-6581
SELECT ALL - 24 * + col0, - col2 / col1 AS col2 FROM tab2
----
-1104
0
-1536
0
-1800
0

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

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

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

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

query I rowsort
SELECT - col1 * - - 31 AS col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

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

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT - COUNT ( DISTINCT + - 76 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < + - col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6587
SELECT + col0 + + 8 - + col0 * - 7 * col2 * - + col0 - + - CAST( col0 AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-529648
NULL
-6520235
NULL
-73987
NULL

skipif mysql # not compatible
query II rowsort label-6587
SELECT + col0 + + 8 - + col0 * - 7 * col2 * - + col0 - + - CAST ( col0 AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-529648
NULL
-6520235
NULL
-73987
NULL

query I rowsort
SELECT ALL 83 * + 14 FROM tab0 cor0
----
1162
1162
1162

query I rowsort
SELECT + col0 + + - ( - col2 ) * + ( + col0 ) FROM tab0 AS cor0
----
720
957
9700

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

query I rowsort
SELECT ALL col0 + col2 + - col2 - 70 AS col2 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT DISTINCT - col2 - + + col0 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COUNT( * ) * - 29 * - + COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-6593
SELECT - COUNT ( * ) * - 29 * - + COUNT ( * ) FROM tab0
----
-261

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * 74 * + + col1 col0 FROM tab1
----
212158
22570
63196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL - 91 - - COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - 91 - - COUNT ( * ) FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT + col1 / + 42 + - 22 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * + + CAST( NULL AS SIGNED ) * + + 63 + + col0
----

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + col1 / + 42 + - 22 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * + + CAST ( NULL AS INTEGER ) * + + 63 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76, col1 col1 FROM tab0
----
76
1
76
21
76
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT - col2 DIV + - col0 - col0 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-6600
SELECT - col2 / + - col0 - col0 FROM tab1
----
-50
-85
-91

query I rowsort
SELECT + 10 - - col2 AS col0 FROM tab0 AS cor0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL - COUNT( DISTINCT 35 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - COUNT ( DISTINCT 35 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query II rowsort
SELECT DISTINCT - - 22, 17 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
22
17

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

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

query I rowsort
SELECT - + 50 * - + 2 FROM tab1 AS cor0
----
100
100
100

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + col0 < + 21 + + 44
----
1
21

query I rowsort
SELECT ALL - col0 * 91 AS col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL COUNT( + col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 + col2 col2 FROM tab2
----
46
46
64
80
75
116

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

query I rowsort
SELECT + + col1 + + - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 / + col2 + 7 >= + col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT + MAX( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT + MAX ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL - col1 * ( + 63 ) AS col2 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT - ( SUM( + 81 ) ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6615
SELECT - ( SUM ( + 81 ) ) FROM tab0
----
-243

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

query I rowsort
SELECT DISTINCT - - 86 * - col1 * + 18 * + col2 AS col1 FROM tab1 AS cor0
----
-2080512
-456660
-4947408

query I rowsort
SELECT ALL - 61 + col0 FROM tab0 AS cor0
----
-46
26
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT COUNT( - - col0 ) + - 43 AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT COUNT ( - - col0 ) + - 43 AS col1 FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT MIN( + + 85 ) + MIN( - col1 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6621
SELECT MIN ( + + 85 ) + MIN ( - col1 ) AS col1 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT + MIN( ALL + ( 27 ) ) + - COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6622
SELECT + MIN ( ALL + ( 27 ) ) + - COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT ALL col1 + + col0 + + + 72 + - col2 FROM tab0
----
121
170
71

query I rowsort
SELECT DISTINCT 11 - col1 AS col2 FROM tab1
----
-3
-36
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 + 1 col2 FROM tab2
----
142
143
98

query I rowsort
SELECT + 76 * 90 + 37 AS col2 FROM tab0
----
6877
6877
6877

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

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

query I rowsort
SELECT + 33 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 54 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT DISTINCT - 13 DIV COUNT( * ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - 13 / COUNT ( * ) AS col2 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT + + ( - + 56 ) FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6633
SELECT + col0 * - col2 DIV col2 - col1 AS col0, 48 DIV + 6 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-108
8
-96
8
-98
8

skipif mysql # not compatible
query II rowsort label-6633
SELECT + col0 * - col2 / col2 - col1 AS col0, 48 / + 6 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-108
8
-96
8
-98
8

query I rowsort
SELECT DISTINCT - 21 + + 22 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT + 19 FROM tab0 cor0 WHERE NOT ( NOT - - col0 NOT BETWEEN NULL AND - CAST( - - 66 AS SIGNED ) / - col1 )
----
19
19
19

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 19 FROM tab0 cor0 WHERE NOT ( NOT - - col0 NOT BETWEEN NULL AND - CAST ( - - 66 AS INTEGER ) / - col1 )
----
19
19
19

query II rowsort
SELECT - 3 AS col1, - 4 AS col2 FROM tab1 AS cor0
----
-3
-4
-3
-4
-3
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - 83 * + 86 * - ( - ( MIN( + + 1 ) ) ) FROM tab1
----
-7138

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 83 * + 86 * - ( - ( MIN ( + + 1 ) ) ) FROM tab1
----
-7138

query II rowsort
SELECT + 49 * + - 63, col1 FROM tab1
----
-3087
14
-3087
47
-3087
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT + col1 DIV + + col2 + - 15 FROM tab0 AS cor0
----
-13
-14
-15

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + col1 / + + col2 + - 15 FROM tab0 AS cor0
----
-13
-14
-15

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

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

query II rowsort
SELECT ALL 25, col0 FROM tab2
----
25
46
25
64
25
75

query I rowsort
SELECT 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT - 18 / CAST( NULL AS SIGNED ) + - col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE 13 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 18 / CAST ( NULL AS INTEGER ) + - col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE 13 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT ALL col0 DIV - - 11 col0 FROM tab2 AS cor0
----
4
5
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT ALL col0 / - - 11 col0 FROM tab2 AS cor0
----
4
5
6

query I rowsort
SELECT DISTINCT + col0 + - col0 + col1 + + col0 + - + 23 * + - col0 FROM tab1 AS cor0
----
1238
2045
2231

query I rowsort
SELECT - + 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

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

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

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col2 + col2 FROM tab2 AS cor0
----
-12144
-195054
-63960

query I rowsort
SELECT DISTINCT + 81 - - 61 * - + 38 + + 44 FROM tab2 AS cor0
----
-2193

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE - col1 = - + ( - col2 )
----

query I rowsort
SELECT + - 85 FROM tab0 WHERE NULL > - col0
----

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

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 88 / - col0 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + 85 * + 43 * - + col2 FROM tab2
----
-146200
-211990
-84065

query I rowsort
SELECT col2 * - 50 FROM tab0
----
-2350
-4950
-500

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT ALL - col2, 14 DIV + 36 AS col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL - col2, 14 / + 36 AS col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

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

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) * + MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - ( - col2 ) col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 0 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL + CAST( - - COUNT( DISTINCT + - ( + + col2 ) ) AS SIGNED ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT + - col0 = + col0 + - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + CAST ( - - COUNT ( DISTINCT + - ( + + col2 ) ) AS INTEGER ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT + - col0 = + col0 + - - col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT 98 DIV - col1 AS col2 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-6667
SELECT 98 / - col1 AS col2 FROM tab1
----
-19
-2
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - MIN( DISTINCT 42 ) AS col1 FROM tab2, tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6668
SELECT - MIN ( DISTINCT 42 ) AS col1 FROM tab2, tab0 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + MAX( ALL - col0 ) + + 55 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + MAX ( ALL - col0 ) + + 55 FROM tab1 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL - COUNT( * ) * - SUM( + 96 ) * - COUNT( * ) + - 93 FROM tab0 AS cor0
----
-2685

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - COUNT ( * ) * - SUM ( + 96 ) * - COUNT ( * ) + - 93 FROM tab0 AS cor0
----
-2685

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL COUNT( * ) * 18 AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL COUNT ( * ) * 18 AS col2 FROM tab2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT 60 - + 87 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6673
SELECT 60 - + 87 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-24

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

query I rowsort
SELECT + col1 + - col0 * + col0 AS col0 FROM tab2 cor0
----
-2065
-4019
-5558

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 < col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL MIN( + - col0 ) + - COUNT( * ) * + ( SUM( DISTINCT 78 ) ) AS col1 FROM tab0
----
-331

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL MIN ( + - col0 ) + - COUNT ( * ) * + ( SUM ( DISTINCT 78 ) ) AS col1 FROM tab0
----
-331

query I rowsort
SELECT ALL col2 + - 3 AS col2 FROM tab2
----
20
37
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL 58 - COUNT( + col1 ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL 58 - COUNT ( + col1 ) AS col2 FROM tab1
----
55

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab2
----
1035
1800
2610

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

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

query I rowsort
SELECT ALL 4 * 63 FROM tab0
----
252
252
252

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT ALL + + COUNT( * ) col1, MAX( ALL - - 46 ) col2 FROM tab1 cor0
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6685
SELECT ALL + + COUNT ( * ) col1, MAX ( ALL - - 46 ) col2 FROM tab1 cor0
----
3
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT DISTINCT 42 * CAST( NULL AS SIGNED ) + + 95 - + - 28 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT 42 * CAST ( NULL AS INTEGER ) + + 95 - + - 28 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT + 9 * - - MIN( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-864

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + 9 * - - MIN ( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-864

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6688
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab0 WHERE + - CAST( - 36 AS DECIMAL ) + + col2 + ( + col2 ) - - + col0 < 48
----

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab0 WHERE + - CAST ( - 36 AS REAL ) + + col2 + ( + col2 ) - - + col0 < 48
----

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

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

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

query I rowsort
SELECT + col2 + 27 FROM tab2 AS cor0
----
50
67
85

query I rowsort
SELECT DISTINCT - col2 + - + 21 + + ( + 68 ) + + col0 * - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1215
1864
45

query I rowsort
SELECT - col1 + - 12 AS col1 FROM tab2 AS cor0
----
-63
-79
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT + - COUNT( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + - COUNT ( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 + 62, + ( + ( - + 36 ) ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + SUM( DISTINCT col0 ) * + - MAX( + col0 ) * 60 * - MIN( - 53 ) FROM tab1
----
-65689260

skipif mysql # not compatible
query I rowsort label-6699
SELECT + SUM ( DISTINCT col0 ) * + - MAX ( + col0 ) * 60 * - MIN ( - 53 ) FROM tab1
----
-65689260

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

query I rowsort
SELECT ALL + - col0 * + col2 + + 89 - + 67 FROM tab0 AS cor0
----
-683
-848
-9581

query I rowsort
SELECT DISTINCT - col2 * + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 > 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6707
SELECT - col2 AS col0, CAST( NULL AS SIGNED ) - ( - col0 ) AS col1, - col2 + - 79 + + col0 col0 FROM tab2 AS cor0
----
9 values hashing to 88a4bb2c7887066c08eb5d7b71eaf0de

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6707
SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) - ( - col0 ) AS col1, - col2 + - 79 + + col0 col0 FROM tab2 AS cor0
----
9 values hashing to 88a4bb2c7887066c08eb5d7b71eaf0de

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT + + 15 + MIN( + + col2 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + + 15 + MIN ( + + col2 ) FROM tab0 AS cor0
----
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT col2 DIV - - col1 + + - 48 FROM tab0 AS cor0
----
-48
-48
51

skipif mysql # not compatible
query I rowsort label-6710
SELECT col2 / - - col1 + + - 48 FROM tab0 AS cor0
----
-48
-48
51

query I rowsort
SELECT - + 26 * col1 FROM tab0 AS cor0
----
-2106
-26
-546

query I rowsort
SELECT - ( - + 77 ) AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col1 - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT DISTINCT SUM( DISTINCT + 90 ), MAX( - - col0 ) col0 FROM tab1
----
90
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6715
SELECT DISTINCT SUM ( DISTINCT + 90 ), MAX ( - - col0 ) col0 FROM tab1
----
90
91

query I rowsort
SELECT ALL 0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL COUNT( * ) * ( 56 ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL COUNT ( * ) * ( 56 ) FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + SUM( ALL 42 ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6718
SELECT + SUM ( ALL 42 ) FROM tab0 AS cor0
----
126

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

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

query I rowsort
SELECT ALL + - 35 FROM tab0 WHERE + col0 >= col2
----
-35

query II rowsort
SELECT + col0, + col2 * + + col2 + + col2 * col0 AS col2 FROM tab2
----
46
1587
64
4160
75
7714

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

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

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

skipif mysql # not compatible
query I rowsort label-6723
SELECT - - MIN ( + + col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT DISTINCT - SUM( ALL - - col0 ) + - 89, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-288
3

skipif mysql # not compatible
query II rowsort label-6724
SELECT DISTINCT - SUM ( ALL - - col0 ) + - 89, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-288
3

query I rowsort
SELECT + AVG ( - ( - - 81 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT DISTINCT - + col2 + CAST( + 12 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - + col2 + CAST ( + 12 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

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

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

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

query II rowsort
SELECT + 73 AS col2, + 28 * - col0 FROM tab0 AS cor0
----
73
-2436
73
-2716
73
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - + 82 + MAX( DISTINCT - col1 ) - COUNT( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - + 82 + MAX ( DISTINCT - col1 ) - COUNT ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-136

query I rowsort
SELECT ALL + + col2 + + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 62
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 NOT BETWEEN + 11 AND - + 65 + - ( - col2 )
----
97
1
99

query I rowsort
SELECT col0 + col2 * col0 AS col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT DISTINCT + - SUM( + col2 ) AS col2, + SUM( DISTINCT + col1 ) * COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223
198

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT + - SUM ( + col2 ) AS col2, + SUM ( DISTINCT + col1 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223
198

query II rowsort
SELECT DISTINCT - col0 + - 48 AS col0, col0 FROM tab2
----
-112
64
-123
75
-94
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + 27 + - COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + 27 + - COUNT ( * ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL 20 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 58 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * + 55 - + 34 col2 FROM tab1
----
1451
1451
1451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT ALL CAST( - + 35 AS SIGNED ) * - ( + 95 ) AS col2 FROM tab1
----
3325
3325
3325

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL CAST ( - + 35 AS INTEGER ) * - ( + 95 ) AS col2 FROM tab1
----
3325
3325
3325

query I rowsort
SELECT + - col2 - - + 35 AS col0 FROM tab2 AS cor0
----
-23
-5
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT ALL + col1 * + col2 - + col0 DIV + 59 col1 FROM tab0 AS cor0
----
209
3807
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6743
SELECT ALL + col1 * + col2 - + col0 / + 59 col1 FROM tab0 AS cor0
----
209
3807
98

query II rowsort
SELECT ALL - + col2 AS col0, 5 AS col1 FROM tab2 AS cor0
----
-23
5
-40
5
-58
5

query I rowsort
SELECT 73 + + 12 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6748
SELECT + COUNT ( * ) * + - 76 AS col2 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT - 97 * col0 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT - COUNT( * ) AS col0, COUNT( * ) + + - 21 AS col0 FROM tab2
----
-3
-18

skipif mysql # not compatible
query II rowsort label-6750
SELECT - COUNT ( * ) AS col0, COUNT ( * ) + + - 21 AS col0 FROM tab2
----
-3
-18

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT COUNT( * ) col0, + ( - 78 ) AS col2 FROM tab1
----
3
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6752
SELECT DISTINCT COUNT ( * ) col0, + ( - 78 ) AS col2 FROM tab1
----
3
-78

query II rowsort
SELECT + 19, 64 + + col2 AS col1 FROM tab1
----
19
123
19
132
19
160

query II rowsort
SELECT - ( + 41 ) + + 51, + col2 AS col0 FROM tab2 WHERE NOT + 91 + col2 > NULL
----

query II rowsort
SELECT ALL - - col1 AS col0, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + + 64
----

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

query I rowsort
SELECT ALL - 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ALL - col1 * + col1 * col1 * - - col0 FROM tab2 AS cor0
----
-22557225
-29218112
-6101946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT + CAST( + - 18 AS SIGNED ) * + col2 + 0 AS col1 FROM tab2 cor0
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-6760
SELECT + CAST ( + - 18 AS INTEGER ) * + col2 + 0 AS col1 FROM tab2 cor0
----
-1044
-414
-720

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 = + col0
----

query I rowsort
SELECT ALL - 93 * col2 FROM tab0 WHERE NOT col0 IS NULL
----
-4371
-9207
-930

query I rowsort
SELECT ALL - 3 * - ( 35 ) FROM tab0
----
105
105
105

query I rowsort
SELECT + ( + + 29 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL - col1 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - col1 / + + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT MIN( DISTINCT ( - col0 ) ) * + ( - - 45 ) + - 18 FROM tab2 cor0
----
-3393

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT MIN ( DISTINCT ( - col0 ) ) * + ( - - 45 ) + - 18 FROM tab2 cor0
----
-3393

query I rowsort
SELECT DISTINCT - col0 * - ( - - col1 ) + + col1 FROM tab1 cor0 WHERE - 37 * + + ( - col0 ) = col0
----

query II rowsort
SELECT DISTINCT col2 - - col1 * + col0 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
2369
-51
4968
-77
5083
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = - 61
----

query I rowsort
SELECT + col2 * + 36 AS col2 FROM tab0
----
1692
3564
360

query I rowsort
SELECT - col2 - col1 * 46 FROM tab0
----
-145
-3773
-976

query I rowsort
SELECT - ( - col2 ) * col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - 70 * SUM( ALL 34 * 69 ) FROM tab2
----
-492660

skipif mysql # not compatible
query I rowsort label-6773
SELECT - 70 * SUM ( ALL 34 * 69 ) FROM tab2
----
-492660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6774
SELECT ALL COUNT( DISTINCT - col2 ) DIV - 59 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL COUNT ( DISTINCT - col2 ) / - 59 AS col1 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT DISTINCT + col0 DIV 13 AS col1 FROM tab0
----
1
6
7

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + col0 / 13 AS col1 FROM tab0
----
1
6
7

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6778
SELECT * FROM tab0 WHERE NULL NOT IN ( 3 - ( + col1 ) * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6778
SELECT * FROM tab0 WHERE NULL NOT IN ( 3 - ( + col1 ) * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL < - 45
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) <> - col0 + - 38
----

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) <> - col0 + - 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT + col0 * - CAST( NULL AS SIGNED ) + + ( - col2 ) * 77 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6783
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + ( - col2 ) * 77 FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT + SUM( - 60 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-6785
SELECT + SUM ( - 60 ) FROM tab1
----
-180

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

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT MAX ( DISTINCT + col2 ) + - 71 FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 13 col2 FROM tab1
----
18
27
60

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - 43 + - COUNT( * ) * 85 FROM tab0
----
-298

skipif mysql # not compatible
query I rowsort label-6790
SELECT - 43 + - COUNT ( * ) * 85 FROM tab0
----
-298

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col1 * - col1 >= col0 / - 43 - col0
----
-14
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6792
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 18 AND - 35 - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6792
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 18 AND - 35 - CAST ( col2 AS REAL )
----

query I rowsort
SELECT - col2 + - col1 * + 95 FROM tab0
----
-194
-2005
-7742

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT MAX( 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6794
SELECT MAX ( 15 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT SUM( ALL 75 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT SUM ( ALL 75 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT col1 * 14 AS col2 FROM tab1 AS cor0
----
196
658
70

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL ( MAX( 41 ) ) AS col2 FROM tab2 cor0
----
41

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL ( MAX ( 41 ) ) AS col2 FROM tab2 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + MIN( 64 ) + - 75 AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6800
SELECT + MIN ( 64 ) + - 75 AS col2 FROM tab1 AS cor0
----
-11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT col0 DIV - 52 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6802
SELECT col0 / - 52 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col0 * 61 FROM tab1 AS cor0
----
3111
5185
5551

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

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

query I rowsort
SELECT 16 AS col1 FROM tab0 AS cor0 WHERE col2 NOT IN ( 78 )
----
16
16
16

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6807
SELECT DISTINCT - 32 + - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT col1 + - 9 DIV + col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT col1 + - 9 / + col2 FROM tab2 AS cor0
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT + 12 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6810
SELECT + 12 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT - 5 * + col1 FROM tab0 AS cor0 WHERE NULL IN ( - CAST( - 28 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - 5 * + col1 FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( - 28 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE 22 * - 25 < ( col1 - + CAST( - ( + col2 ) AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE 22 * - 25 < ( col1 - + CAST ( - ( + col2 ) AS INTEGER ) )
----
-3

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

skipif mysql # not compatible
query I rowsort label-6813
SELECT COUNT ( * ) + - 61 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = ( 77 / ( col1 ) + - 67 )
----

query I rowsort
SELECT DISTINCT col2 * - 79 AS col0 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT - col1 * - + 57 + - col1 AS col0 FROM tab1
----
2632
280
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT 44 + + CAST( - 80 AS SIGNED ) * col0 FROM tab0
----
-1156
-6916
-7716

skipif mysql # not compatible
query I rowsort label-6817
SELECT 44 + + CAST ( - 80 AS INTEGER ) * col0 FROM tab0
----
-1156
-6916
-7716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL - col1 + - col0 + + 7 * col1 DIV col0 FROM tab1
----
-135
-64
-90

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - col1 + - col0 + + 7 * col1 / col0 FROM tab1
----
-135
-64
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT + COUNT( * ) * + + 47 * 23 FROM tab2
----
3243

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + COUNT ( * ) * + + 47 * 23 FROM tab2
----
3243

query I rowsort
SELECT ALL + col0 + + - col1 AS col1 FROM tab0
----
-66
66
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6824
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( CAST( NULL AS SIGNED ) * 97 )
----

skipif mysql # not compatible
query III rowsort label-6824
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) * 97 )
----

query I rowsort
SELECT DISTINCT 87 FROM tab2 AS cor0 WHERE col1 * - col2 = - col0 * + col2 + + ( - col1 )
----

query I rowsort
SELECT DISTINCT 88 * col1 + col2 * 14 - - col0 FROM tab1 AS cor0
----
1351
2627
5179

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

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

query I rowsort
SELECT ALL + 55 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT - col2 * + 10 AS col1 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT - 50 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

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

query I rowsort
SELECT ALL - col2 * ( - 69 ) AS col2 FROM tab2 AS cor0
----
1587
2760
4002

query I rowsort
SELECT DISTINCT col1 * - col0 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) < 80
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + COUNT( - + 16 ) * - 90 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6834
SELECT + COUNT ( - + 16 ) * - 90 FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL SUM( col1 ) + - 12 AS col2 FROM tab0 AS cor0 WHERE NOT 82 BETWEEN + ( + col2 ) AND NULL
----
-11

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL SUM ( col1 ) + - 12 AS col2 FROM tab0 AS cor0 WHERE NOT 82 BETWEEN + ( + col2 ) AND NULL
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT + COUNT( * ) * 73 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + COUNT ( * ) * 73 FROM tab2 cor0
----
219

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < - 17 / col0
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT 12 * + COUNT( * ) * + + 38 AS col0 FROM tab1
----
1368

skipif mysql # not compatible
query I rowsort label-6843
SELECT 12 * + COUNT ( * ) * + + 38 AS col0 FROM tab1
----
1368

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

query II rowsort
SELECT col2 * - col0 AS col2, - col0 AS col1 FROM tab0
----
-705
-15
-870
-87
-9603
-97

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

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

query I rowsort
SELECT DISTINCT - col2 * - 34 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN ( + - 71 ) AND col1 * - col2 + ( + 29 ) * - 1
----

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

query I rowsort
SELECT ALL + col1 + - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL + - 2 * - + 19 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + + 5 * + col1 AS col2 FROM tab0 AS cor0
----
105
405
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 col0 FROM tab0 AS cor0
----
100
2209
9801

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

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

query I rowsort
SELECT DISTINCT + 95 + + col2 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT - 2 * - + col0 + - col1 + + col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL 99 + + col0 AS col0 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT DISTINCT - + col0 + 50 + col1 FROM tab1 AS cor0
----
-30
13
6

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

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

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

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

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

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

query II rowsort
SELECT col0, 4 FROM tab1 AS cor0
----
51
4
85
4
91
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT COUNT( * ) + + + 35 col1 FROM tab1 AS cor0
----
38

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

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

query I rowsort
SELECT DISTINCT col2 - - 27 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT 18 - - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
21

skipif mysql # not compatible
query I rowsort label-6867
SELECT 18 - - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT + CAST( + 68 AS SIGNED ) - + col1 FROM tab1
----
21
54
63

skipif mysql # not compatible
query I rowsort label-6868
SELECT + CAST ( + 68 AS INTEGER ) - + col1 FROM tab1
----
21
54
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT COUNT( * ) + - 5 col2 FROM tab2 WHERE + col2 * + + 70 * - col1 * - - 10 IS NOT NULL
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6869
SELECT COUNT ( * ) + - 5 col2 FROM tab2 WHERE + col2 * + + 70 * - col1 * - - 10 IS NOT NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6870
SELECT DISTINCT col0 AS col0, - CAST( NULL AS SIGNED ) + 41 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6870
SELECT DISTINCT col0 AS col0, - CAST ( NULL AS INTEGER ) + 41 col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL + + col1, - col0 - + - col1 AS col2 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

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

query I rowsort
SELECT - + col1 + + + 96 AS col2 FROM tab0 cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT DISTINCT 23 AS col1, - COUNT( * ) * + + ( 78 ) col2 FROM tab0 AS cor0
----
23
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6874
SELECT DISTINCT 23 AS col1, - COUNT ( * ) * + + ( 78 ) col2 FROM tab0 AS cor0
----
23
-234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 11 ) AND - 33
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 46 * + + 64 + + 10 ) < col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query I rowsort
SELECT DISTINCT + - 45 + - - 69 FROM tab1 WHERE + - col1 < NULL
----

query I rowsort
SELECT + - ( ( + ( + col1 ) ) ) * - col1 + col2 * - col0 AS col1 FROM tab0 cor0
----
-429
-9602
5856

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col1 col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL - - CAST( - 29 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - - CAST ( - 29 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT ALL ( col0 ) DIV col1 * - - 58 FROM tab0 AS cor0
----
0
232
5626

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL ( col0 ) / col1 * - - 58 FROM tab0 AS cor0
----
0
232
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + 79 * + SUM( ALL + 6 ) FROM tab1 AS cor0
----
1422

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 79 * + SUM ( ALL + 6 ) FROM tab1 AS cor0
----
1422

query I rowsort
SELECT DISTINCT - col2 * 23 AS col2 FROM tab2
----
-1334
-529
-920

query I rowsort
SELECT col0 * + col0 * + col2 AS col2 FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6889
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1, ( - CAST( 5 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-6889
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1, ( - CAST ( 5 AS REAL ) ) )
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col1 >= NULL OR NOT NULL BETWEEN - col1 AND + - col2 + 59 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6892
SELECT + col1 + CAST( NULL AS DECIMAL ) + - 84 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6892
SELECT + col1 + CAST ( NULL AS REAL ) + - 84 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 + - 68 FROM tab0 AS cor0
----
-1283
-165
-1895

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL - 87 + + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - 87 + + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT + + COUNT( * ) + + + 75 AS col1 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT + + COUNT ( * ) + + + 75 AS col1 FROM tab0 cor0
----
78

query I rowsort
SELECT ALL + 78 + + + ( col1 ) - + col2 + - col0 FROM tab2 cor0
----
12
51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL COUNT( * ) + + 50 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL COUNT ( * ) + + 50 FROM tab1
----
53

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT ( ( NULL ) IS NOT NULL ) OR ( NULL <= NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

query I rowsort
SELECT - - 92 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col2 + 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 41 col0 FROM tab1 AS cor0
----
18
27
55

query I rowsort
SELECT + 78 FROM tab2 cor0 WHERE + col2 NOT BETWEEN NULL AND - 89 * + + col2 * + col1 + - col0
----
78
78
78

query I rowsort
SELECT DISTINCT - col2 * + 12 + col0 FROM tab0 AS cor0 WHERE - col1 <= + - ( - + col0 )
----
-1091
-33
-549

query I rowsort
SELECT DISTINCT ( 63 ) - 73 AS col0 FROM tab1
----
-10

query I rowsort
SELECT col2 * + 22 + + 8 FROM tab0
----
1042
2186
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT - MAX( ALL col2 ) + - ( 41 ) * + 49 + - CAST( NULL AS SIGNED ) * + 49 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT - MAX ( ALL col2 ) + - ( 41 ) * + 49 + - CAST ( NULL AS INTEGER ) * + 49 AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT + col1 DIV - - 44 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6910
SELECT + col1 / - - 44 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT - + SUM( col0 ) * - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-6911
SELECT - + SUM ( col0 ) * - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
558

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 * - + col0 AND ( - + col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6914
SELECT + 84 AS col0, CAST( + ( + 33 ) AS SIGNED ) AS col0 FROM tab0
----
84
33
84
33
84
33

skipif mysql # not compatible
query II rowsort label-6914
SELECT + 84 AS col0, CAST ( + ( + 33 ) AS INTEGER ) AS col0 FROM tab0
----
84
33
84
33
84
33

query I rowsort
SELECT ALL + col2 * + col1 * 64 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND 52 * + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 74 / col0 * - + 27 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL MIN ( + + col0 ) FROM tab1
----
51

query II rowsort
SELECT DISTINCT - 7 AS col1, col1 AS col1 FROM tab0
----
-7
1
-7
21
-7
81

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

query I rowsort
SELECT 95 FROM tab0 cor0 WHERE NOT - col0 BETWEEN - col1 AND col2 * + 31 * + - col1
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 74, 34 + ( + 37 ) col1 FROM tab1 AS cor0
----
74
71
74
71
74
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col0 / - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 * - 66 col1 FROM tab0 AS cor0
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6924
SELECT ALL MIN( + 26 ) AS col1, CAST( NULL AS SIGNED ) * + - 41 + 93 FROM tab2 AS cor0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6924
SELECT ALL MIN ( + 26 ) AS col1, CAST ( NULL AS INTEGER ) * + - 41 + 93 FROM tab2 AS cor0
----
26
NULL

query I rowsort
SELECT DISTINCT 68 + - col2 AS col2 FROM tab2 AS cor0
----
10
28
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 * + + 45 col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( col0 + + 85, ( + col0 ) )
----

query I rowsort
SELECT ALL 72 + + col1 FROM tab2 AS cor0
----
123
139
149

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT - COUNT( + col2 ) + + - 76 DIV MAX( - ( col2 ) ) + - + MIN( DISTINCT + + ( - col1 ) ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6929
SELECT - COUNT ( + col2 ) + + - 76 / MAX ( - ( col2 ) ) + - + MIN ( DISTINCT + + ( - col1 ) ) AS col1 FROM tab0
----
85

query I rowsort
SELECT - col1 * + - 92 FROM tab2
----
4692
6164
7084

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 99, + col1 + + - col1, 81, + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + + COUNT( DISTINCT + + 69 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + + COUNT ( DISTINCT + + 69 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

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

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

skipif mysql # not compatible
query I rowsort label-6937
SELECT - 50 * - CAST ( NULL AS REAL ) / + col2 * - col2 / - - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT ( CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6939
SELECT ( CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

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

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

query I rowsort
SELECT DISTINCT + + 52 - - - col0 AS col1 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT DISTINCT + - col0 - col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL SUM( - col2 ) + 13 FROM tab0 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL SUM ( - col2 ) + 13 FROM tab0 AS cor0
----
-143

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= ( - 96 )
----
85
5
59
91
47
68

query II rowsort
SELECT DISTINCT 9 + col1, - 37 FROM tab0 WHERE - 64 IS NULL
----

query I rowsort
SELECT - 53 AS col1 FROM tab2 WHERE NOT ( + + col2 ) NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT 64 * + + col0 AS col1 FROM tab2
----
2944
4096
4800

query I rowsort
SELECT - col2 * - 58 * + 52 FROM tab2
----
120640
174928
69368

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 - + - col1 >= - + 86
----

query I rowsort
SELECT + 10 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= + + col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 69 + + + 78 AS col2 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT + - 72 + COUNT( * ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT + - 72 + COUNT ( * ) FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - COUNT( * ) + 5 * + COUNT( * ) AS col2 FROM tab1 WHERE NOT - - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - COUNT ( * ) + 5 * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - - col0 <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 35 <> + 27 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 13 - - col1 FROM tab1
----
107
23
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT - COUNT( + col1 ) * + + SUM( - col0 ) AS col2, 95 AS col1 FROM tab1
----
681
95

skipif mysql # not compatible
query II rowsort label-6959
SELECT - COUNT ( + col1 ) * + + SUM ( - col0 ) AS col2, 95 AS col1 FROM tab1
----
681
95

query I rowsort
SELECT 27 AS col1 FROM tab1 WHERE NULL BETWEEN + + col2 AND col1
----

query I rowsort
SELECT ALL + 3 + + 96 * col1 FROM tab1
----
1347
4515
483

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL - 2 + - COUNT( * ) * + - 20 AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - 2 + - COUNT ( * ) * + - 20 AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab2 WHERE NULL >= CAST( + 6 AS SIGNED ) + - 97 * - 91 / - 82 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab2 WHERE NULL >= CAST ( + 6 AS INTEGER ) + - 97 * - 91 / - 82 + - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT col2 AS col2 FROM tab0 WHERE + + 2 + - ( + + col2 ) = ( + ( CAST ( + - col2 AS INTEGER ) ) + col0 + - ( + col0 ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + MAX( - 19 ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-6967
SELECT + MAX ( - 19 ) FROM tab1
----
-19

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

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

query I rowsort
SELECT ALL 93 * col1 AS col0 FROM tab1
----
1302
4371
465

query II rowsort
SELECT ALL col0 * col0 * + col0, col2 FROM tab1
----
132651
96
614125
59
753571
68

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0 WHERE NOT + + 83 IS NULL
----
-89

query I rowsort
SELECT 79 * col0 - - 18 AS col2 FROM tab2 cor0
----
3652
5074
5943

query I rowsort
SELECT ALL - 48 * + 14 FROM tab1
----
-672
-672
-672

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 25 NOT IN ( + ( 51 ) * 3 * - + ( - col0 ) )
----

query I rowsort
SELECT - - col1 + + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-97
115
32

query I rowsort
SELECT ALL + col0 + + - col1 * - col0 FROM tab1 cor0
----
4368
510
765

query I rowsort
SELECT ALL 17 + - col2 FROM tab0
----
-30
-82
7

query I rowsort
SELECT col0 * + 96 AS col2 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT ALL - 11 * col2 AS col1 FROM tab2
----
-253
-440
-638

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col1 / + col2 + col2 + + col1 * ( + col1 ) + + col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + col0 ) + - 1 FROM tab2 AS cor0
----
45
63
74

query III rowsort
SELECT * FROM tab0 WHERE + + 31 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - 57 BETWEEN NULL AND - col2 * + col1 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - + MIN( - + 88 ) * - COUNT( * ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-6987
SELECT - + MIN ( - + 88 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT ALL + - 16 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-6988
SELECT ALL + - 16 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-16
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - 12 * - SUM( DISTINCT 17 ) AS col1 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - 12 * - SUM ( DISTINCT 17 ) AS col1 FROM tab0 AS cor0
----
204

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

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

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

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

query I rowsort
SELECT ALL col2 * - + 74 FROM tab2
----
-1702
-2960
-4292

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT DISTINCT + 9 DIV + 77 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + 9 / + 77 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT DISTINCT 8 DIV COUNT( DISTINCT - - 58 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT 8 / COUNT ( DISTINCT - - 58 ) FROM tab2
----
8

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

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

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

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

query I rowsort
SELECT - - col0 - + 2 * + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - ( - col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + 94 * COUNT( * ) * - COUNT( * ) * 4 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + 94 * COUNT ( * ) * - COUNT ( * ) * 4 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 3 + 48 AS col2 FROM tab1 AS cor0
----
51

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

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

query I rowsort
SELECT DISTINCT - col1 + - ( - 11 ) AS col1 FROM tab1 AS cor0
----
-3
-36
6

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

query II rowsort
SELECT ALL + 56 AS col0, + 21 * 82 FROM tab2 AS cor0
----
56
1722
56
1722
56
1722

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7010
SELECT * FROM tab2 AS cor0 WHERE col2 * + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7010
SELECT * FROM tab2 AS cor0 WHERE col2 * + CAST ( NULL AS REAL ) > NULL
----

query II rowsort
SELECT ALL + + col1 AS col1, 74 FROM tab1 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT 46 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - - 26 + + col2 FROM tab2 cor0
----
49
66
84

query I rowsort
SELECT ALL - col0 / ( col2 ) FROM tab1 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT 14 + - COUNT( * ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7015
SELECT 14 + - COUNT ( * ) AS col1 FROM tab1
----
11

query I rowsort
SELECT ALL + col2 - - + 82 AS col1 FROM tab0
----
129
181
92

query I rowsort
SELECT 63 + + + col0 * 73 AS col0 FROM tab2
----
3421
4735
5538

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL - - ( - - COUNT( + - 59 ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - - ( - - COUNT ( + - 59 ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT - 84 + col2 * 95 FROM tab0 AS cor0
----
4381
866
9321

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) / + col0 - + ( - - 47 ) NOT BETWEEN NULL AND col2 / - - col1 + + + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7022
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7022
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + SUM( DISTINCT - - ( + col1 ) ) - COUNT( * ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7024
SELECT + SUM ( DISTINCT - - ( + col1 ) ) - COUNT ( * ) AS col0 FROM tab0
----
100

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + ( + - ( 66 ) ) * 99 + SUM( DISTINCT + + 26 ) AS col0 FROM tab1
----
-6508

skipif mysql # not compatible
query I rowsort label-7026
SELECT + ( + - ( 66 ) ) * 99 + SUM ( DISTINCT + + 26 ) AS col0 FROM tab1
----
-6508

query I rowsort
SELECT DISTINCT - - 53 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + MIN( - - col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT 53 / - - 12 + - - col1 IS NOT NULL )
----
23

skipif mysql # not compatible
query I rowsort label-7030
SELECT + MIN ( - - col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT 53 / - - 12 + - - col1 IS NOT NULL )
----
23

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

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

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

query I rowsort
SELECT + col0 * col0 + + col1 * + col2 FROM tab0 WHERE NOT 98 / col1 IS NULL
----
4032
7779
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT col2 DIV + + 48 col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7034
SELECT col2 / + + 48 col0 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT + 82 * - COUNT( * ) * - MAX( - + 41 ) col0 FROM tab2
----
-10086

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

query I rowsort
SELECT ALL - 49 * - col1 AS col2 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT DISTINCT ( - ( 30 ) ) AS col0 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT col0 + + 3 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 58
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7041
SELECT ALL + col0 col0, - col1 DIV col0 AS 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-7041
SELECT ALL + col0 col0, - col1 / col0 AS col0 FROM tab2
----
46
-1
64
-1
75
0

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - ( + MIN( + - col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7043
SELECT - ( + MIN ( + - col1 ) ) FROM tab1 cor0
----
47

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

query I rowsort
SELECT ALL - + 35 * + col2 FROM tab2 AS cor0
----
-1400
-2030
-805

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 71 + col0 AS col2, - col1 col1 FROM tab0
----
-56
-81
16
-21
26
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7048
SELECT CAST ( NULL AS INTEGER ) + - col1 col1, col2 col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - COUNT( * ) + + COUNT( * ) + - COUNT( * ) * + 71 AS col0 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7049
SELECT - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * + 71 AS col0 FROM tab0 AS cor0
----
-213

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7051
SELECT ALL - - 47 + - 70 * 4 DIV + col1 FROM tab0 AS cor0 WHERE - col1 * - col1 * + CAST( NULL AS SIGNED ) IS NULL
----
-233
34
44

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - - 47 + - 70 * 4 / + col1 FROM tab0 AS cor0 WHERE - col1 * - col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
-233
34
44

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

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

query I rowsort
SELECT DISTINCT col0 + - - 36 FROM tab2
----
100
111
82

query I rowsort
SELECT ALL + 49 - + 77 AS col0 FROM tab1
----
-28
-28
-28

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

query I rowsort
SELECT ALL - 22 - + 88 AS col1 FROM tab0
----
-110
-110
-110

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 78 AND + col0 AND NULL BETWEEN NULL AND col2
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7059
SELECT + col0 - + ( + col1 ) AS col1, 45 DIV - col0 + + 50 AS col0 FROM tab0
----
-66
47
66
50
96
50

skipif mysql # not compatible
query II rowsort label-7059
SELECT + col0 - + ( + col1 ) AS col1, 45 / - col0 + + 50 AS col0 FROM tab0
----
-66
47
66
50
96
50

query I rowsort
SELECT DISTINCT + - 83 * - col1 + - col2 FROM tab0 AS cor0
----
-16
1733
6676

query I rowsort
SELECT - 92 FROM tab2 cor0 WHERE + col1 * + col2 + - + 18 <> + - ( + + 73 )
----
-92
-92
-92

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

query I rowsort
SELECT ALL + 7 + + 38 * col2 AS col0 FROM tab2 AS cor0
----
1527
2211
881

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7064
SELECT - 81, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 NOT IN ( - + 12, col1, + - col1 )
----

skipif mysql # not compatible
query II rowsort label-7064
SELECT - 81, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 NOT IN ( - + 12, col1, + - col1 )
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT - 80 * - col1 AS col1 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT + ( - ( + col2 ) ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query II rowsort
SELECT - col2 * col2, col1 * - 12 AS col2 FROM tab0 AS cor0
----
-100
-252
-2209
-972
-9801
-12

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - 12
----

query I rowsort
SELECT - 36 * 83 FROM tab1 AS cor0
----
-2988
-2988
-2988

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

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

query I rowsort
SELECT + - col2 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2
-32
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT + 18 DIV + 51 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT + 18 / + 51 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 88 + - col2 FROM tab0 AS cor0
----
-11
41
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7080
SELECT DISTINCT col1 DIV col0 + - - 29, col0 FROM tab1 AS cor0
----
29
51
29
85
29
91

skipif mysql # not compatible
query II rowsort label-7080
SELECT DISTINCT col1 / col0 + - - 29, col0 FROM tab1 AS cor0
----
29
51
29
85
29
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col2 * - 57 col2 FROM tab0 AS cor0
----
-2632
-5544
-560

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

query I rowsort
SELECT col0 - + 41 - col2 AS col0 FROM tab1 cor0
----
-15
-18
-86

query I rowsort
SELECT + - 19 - col1 AS col2 FROM tab2 cor0
----
-70
-86
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT col1 - + + 5 DIV + col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7085
SELECT col1 - + + 5 / + col0 FROM tab2 AS cor0
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT - - 15 + 91 FROM tab1 cor0
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7088
SELECT ALL + col0 * - - col2 + + - 87 + - col1 + ( + 80 ) + + 15 - + CAST( NULL AS DECIMAL ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + col0 * - - col2 + + - 87 + - col1 + ( + 80 ) + + 15 - + CAST ( NULL AS REAL ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 7 * 16 + + + 77 * - + col0 + + 87 AS col0 FROM tab1 AS cor0
----
-3728
-6346
-6808

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7091
SELECT ALL CAST( NULL AS SIGNED ) - col0 AS col0, ( - - col0 ) FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL CAST ( NULL AS INTEGER ) - col0 AS col0, ( - - col0 ) FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 67 * col0 + + 20 FROM tab1
----
3437
5715
6117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + - 6 col2 FROM tab0
----
-103
-21
-93

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7096
SELECT DISTINCT - col2 DIV + 8 AS col0, col1 FROM tab2
----
-2
51
-5
77
-7
67

skipif mysql # not compatible
query II rowsort label-7096
SELECT DISTINCT - col2 / + 8 AS col0, col1 FROM tab2
----
-2
51
-5
77
-7
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT - col2 * - 4 * - - col0 DIV col0 FROM tab2
----
160
232
92

skipif mysql # not compatible
query I rowsort label-7097
SELECT - col2 * - 4 * - - col0 / col0 FROM tab2
----
160
232
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - MIN( ALL - 51 ) AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - MIN ( ALL - 51 ) AS col0 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7100
SELECT ALL - 77 AS col2 FROM tab0 cor0 WHERE NULL IN ( - col2 / CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), col2 * - col2 + - 40, - col0 )
----

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - 77 AS col2 FROM tab0 cor0 WHERE NULL IN ( - col2 / CAST ( CAST ( NULL AS REAL ) AS INTEGER ), col2 * - col2 + - 40, - col0 )
----

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

query I rowsort
SELECT - + col1 * - col1 AS col2 FROM tab1 cor0
----
196
2209
25

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

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

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

query I rowsort
SELECT - 18 * col1 * + - col2 * col1 AS col2 FROM tab2 AS cor0
----
1076814
4268880
4686516

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT - MIN( + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - MIN ( + - col0 ) FROM tab2
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7109
SELECT + 59 / + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7109
SELECT + 59 / + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab2
----
NULL
3

query I rowsort
SELECT ALL + col0 * + + col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT + MIN( - + col0 ) + COUNT( * ) + + - 34 * - ( - - 4 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + MIN ( - + col0 ) + COUNT ( * ) + + - 34 * - ( - - 4 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7112
SELECT + ( MIN( ALL + 33 ) ) DIV + 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT + ( MIN ( ALL + 33 ) ) / + 99 FROM tab0
----
0

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

query I rowsort
SELECT - col1 * - 83 * + 31 FROM tab1 AS cor0
----
120931
12865
36022

query I rowsort
SELECT ALL - col1 + - 73 * + col0 FROM tab2 AS cor0
----
-3409
-4749
-5542

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

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT + CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT 82 * COUNT( * ) + - - SUM( col1 ) AS col2 FROM tab1
----
312

skipif mysql # not compatible
query I rowsort label-7117
SELECT 82 * COUNT ( * ) + - - SUM ( col1 ) AS col2 FROM tab1
----
312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + col2 + - 43 * + - 60 col1 FROM tab0
----
2612
2649
2701

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col2 * + col2 * 6
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7121
SELECT DISTINCT + col0 + col0 + + - CAST( NULL AS DECIMAL ) AS col2, + col0 * + + 20 AS col0 FROM tab0 AS cor0
----
NULL
1740
NULL
1940
NULL
300

skipif mysql # not compatible
query II rowsort label-7121
SELECT DISTINCT + col0 + col0 + + - CAST ( NULL AS REAL ) AS col2, + col0 * + + 20 AS col0 FROM tab0 AS cor0
----
NULL
1740
NULL
1940
NULL
300

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT - - col1 DIV 14 + - + col1 AS col2 FROM tab0 AS cor0
----
-1
-20
-76

skipif mysql # not compatible
query I rowsort label-7123
SELECT - - col1 / 14 + - + col1 AS col2 FROM tab0 AS cor0
----
-1
-20
-76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 99 * col1 col0, 61 FROM tab2
----
5049
61
6633
61
7623
61

query I rowsort
SELECT 9 * + col2 * col0 FROM tab2
----
23040
39150
9522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT ALL 66 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL 66 / - + COUNT ( * ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT - MAX( ALL - col1 ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7128
SELECT - MAX ( ALL - col1 ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - + 98 * - 38 AS col0 FROM tab1 AS cor0
----
3724
3724
3724

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT - 89 * ( MIN( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
-2047

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - 89 * ( MIN ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
-2047

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

query I rowsort
SELECT - col2 * ( - 83 ) AS col0 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT - - col0 * + col1 + col0 * - col2 - 50 + + 95 DIV col1 col0 FROM tab2 cor0
----
1239
2319
626

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7133
SELECT - - col0 * + col1 + col0 * - col2 - 50 + + 95 / col1 col0 FROM tab2 cor0
----
1239
2319
626

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= - col2 * col1
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= - col2 * col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT col0 DIV + 19 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-7135
SELECT col0 / + 19 FROM tab2
----
2
3
3

query I rowsort
SELECT DISTINCT 74 * + 50 AS col0 FROM tab2 WHERE NOT NULL < + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - MIN( - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - MIN ( - - col1 ) FROM tab1
----
-5

query I rowsort
SELECT - 44 + - col0 AS col2 FROM tab2
----
-108
-119
-90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT ALL ( + 23 ) + - MIN( + - 65 ) AS col2, 28 AS col2 FROM tab0
----
88
28

skipif mysql # not compatible
query II rowsort label-7141
SELECT ALL ( + 23 ) + - MIN ( + - 65 ) AS col2, 28 AS col2 FROM tab0
----
88
28

query I rowsort
SELECT - 48 + - col0 + + 97 * col1 * + 25 * 1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * ( col1 ) + - - 32 AS col0 FROM tab1 AS cor0
----
-1312
-263
-3164

query I rowsort
SELECT 91 * 97 FROM tab0
----
8827
8827
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + + 17 * COUNT( * ) * 20 - + + COUNT( * ) AS col2 FROM tab2 cor0
----
1017

skipif mysql # not compatible
query I rowsort label-7145
SELECT + + 17 * COUNT ( * ) * 20 - + + COUNT ( * ) AS col2 FROM tab2 cor0
----
1017

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

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

query I rowsort
SELECT + 82 - + - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-14
14
23

query I rowsort
SELECT ALL - col2 + ( 37 ) * - + col0 FROM tab0 AS cor0
----
-3229
-3688
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT COUNT( DISTINCT - 53 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( DISTINCT - 53 ) FROM tab2
----
1

query I rowsort
SELECT ALL + col1 * + + 66 AS col0 FROM tab0
----
1386
5346
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7151
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col0 / - 99 + + CAST( - - col0 AS SIGNED ) + + 73 = - CAST( col0 AS SIGNED ) * + + col2 * - - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7151
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col0 / - 99 + + CAST ( - - col0 AS INTEGER ) + + 73 = - CAST ( col0 AS INTEGER ) * + + col2 * - - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL - + COUNT( * ) * - 15 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - + COUNT ( * ) * - 15 AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - 28 * + col0 AS col1 FROM tab1 cor0
----
-1428
-2380
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT DISTINCT 13 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 13 / + col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 6 * - col1 + col2 + 90 AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / + 31 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT DISTINCT 87 DIV col1 AS col2 FROM tab0
----
1
4
87

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT 87 / col1 AS col2 FROM tab0
----
1
4
87

query I rowsort
SELECT DISTINCT ( + + col0 ) + - col2 FROM tab0 AS cor0
----
-2
-32
77

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

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-6

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IS NULL AND + col0 BETWEEN + 27 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT + - COUNT( * ) + - 70 AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + - COUNT ( * ) + - 70 AS col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT + ( + + 52 ) + 30 AS col2 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7163
SELECT - 84 AS col1, - CAST( 14 AS SIGNED ) * - 99 AS col0 FROM tab2 AS cor0
----
-84
1386
-84
1386
-84
1386

skipif mysql # not compatible
query II rowsort label-7163
SELECT - 84 AS col1, - CAST ( 14 AS INTEGER ) * - 99 AS col0 FROM tab2 AS cor0
----
-84
1386
-84
1386
-84
1386

onlyif mysql # DIV for integer division: 
query II rowsort label-7164
SELECT ALL + col1 + + 29 DIV + 75, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL + col1 + + 29 / + 75, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT DISTINCT col2 DIV + + 27 AS col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT col2 / + + 27 AS col0 FROM tab0
----
0
1
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT MAX( ALL + col0 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT DISTINCT MAX ( ALL + col0 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - + COUNT( ALL + - 50 ) + + MAX( + col2 ) + - 51 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7170
SELECT - + COUNT ( ALL + - 50 ) + + MAX ( + col2 ) + - 51 FROM tab0 AS cor0
----
45

query I rowsort
SELECT ALL - - col2 + + 55 FROM tab0 AS cor0
----
102
154
65

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

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

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

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

query I rowsort
SELECT ALL col0 * - col0 * - col2 + - col2 + + col0 AS col0 FROM tab0
----
10543
75767
931489

query II rowsort
SELECT ALL 60, 8 * + - 20 AS col1 FROM tab2
----
60
-160
60
-160
60
-160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ( ( COUNT( * ) ) ) * MAX( col2 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7177
SELECT ( ( COUNT ( * ) ) ) * MAX ( col2 ) FROM tab0 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT + 61 DIV 89 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 61 / 89 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT COUNT( * ), 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-7179
SELECT COUNT ( * ), COUNT ( * ) col1 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( + col1, + col0, + - col1 + 54 * - col1 )
----

query I rowsort
SELECT - - 3 + + col1 * + + col1 + - col1 FROM tab2 AS cor0 WHERE NOT 88 * + + col1 > NULL
----

query II rowsort
SELECT + - 42 AS col1, - col2 AS col0 FROM tab2 cor0
----
-42
-23
-42
-40
-42
-58

query I rowsort
SELECT col1 * - 63 * + - col0 FROM tab2
----
147798
310464
316575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 49 ) BETWEEN NULL AND + ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 49 ) BETWEEN NULL AND + ( 99 )
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT + + COUNT( * ) + - 86 AS col0 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + + COUNT ( * ) + - 86 AS col0 FROM tab2 AS cor0
----
-83

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7189
SELECT ALL - + CAST( NULL AS DECIMAL ) + - 40 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - + CAST ( NULL AS REAL ) + - 40 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + + 70 AS col1 FROM tab1 AS cor0
----
121
155
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT 37 + - - MIN( + col0 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT 37 + - - MIN ( + col0 ) FROM tab1 AS cor0
----
88

query I rowsort
SELECT 65 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT - AVG ( ALL - col1 ) + 55 * + COUNT( * ) AS col0 FROM tab2 WHERE NOT 97 - 69 <= + 94 AND NOT - 97 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - AVG ( ALL - col1 ) + 55 * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT 97 - 69 <= + 94 AND NOT - 97 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7194
SELECT ALL 96 * col1 DIV ( + col1 ) AS col0, col1 FROM tab0
----
96
1
96
21
96
81

skipif mysql # not compatible
query II rowsort label-7194
SELECT ALL 96 * col1 / ( + col1 ) AS col0, col1 FROM tab0
----
96
1
96
21
96
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT COUNT( * ) * - - ( 67 ) + + 50 * + + COUNT( * ) DIV - COUNT( DISTINCT + - col1 ) AS col2 FROM tab2
----
151

skipif mysql # not compatible
query I rowsort label-7195
SELECT COUNT ( * ) * - - ( 67 ) + + 50 * + + COUNT ( * ) / - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab2
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT ALL COUNT( * ), COUNT( DISTINCT + - ( - - col0 ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL COUNT ( * ), COUNT ( DISTINCT + - ( - - col0 ) ) FROM tab0
----
3
3

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) - - + 40 AS col2 FROM tab1 cor0
----
45
54
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT ALL 73 DIV + - col1 - 78 + 92 - - 51 AS col2 FROM tab0
----
-8
62
65

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL 73 / + - col1 - 78 + 92 - - 51 AS col2 FROM tab0
----
-8
62
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7200
SELECT COUNT( * ), + CAST( + 52 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0
52

skipif mysql # not compatible
query II rowsort label-7200
SELECT COUNT ( * ), + CAST ( + 52 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0
52

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - col1 >= - col0
----
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - MIN( - 94 ) * + - 83 + 5 FROM tab1 AS cor0
----
-7797

skipif mysql # not compatible
query I rowsort label-7202
SELECT - MIN ( - 94 ) * + - 83 + 5 FROM tab1 AS cor0
----
-7797

query I rowsort
SELECT ( - - col0 ) * - col1 + + - 13 + col2 * + 45 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * col1 + + col0 + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col2, + 10 FROM tab2
----
-51
10
-67
10
-77
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT + MIN( - ( 88 ) ), 76 AS col0 FROM tab2
----
-88
76

skipif mysql # not compatible
query II rowsort label-7205
SELECT + MIN ( - ( 88 ) ), 76 AS col0 FROM tab2
----
-88
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7206
SELECT DISTINCT col0, - col0 DIV + - 49 + + 5 DIV - 62 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-7206
SELECT DISTINCT col0, - col0 / + - 49 + + 5 / - 62 FROM tab1
----
51
1
85
1
91
1

query I rowsort
SELECT + + ( + + 27 ) FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 0 <> + col2
----

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

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + MAX ( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT SUM( ALL - - 82 ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT SUM ( ALL - - 82 ) FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT + SUM( ALL + col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7212
SELECT DISTINCT + SUM ( ALL + col1 ) col1 FROM tab1
----
66

query I rowsort
SELECT ALL ( - + 97 ) FROM tab2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + + 76 + + col0 AS col0 FROM tab1 AS cor0
----
127
161
167

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col1 BETWEEN - col1 AND col2
----

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

skipif mysql # not compatible
query I rowsort label-7216
SELECT + MAX ( + ( ( 64 ) ) ) AS col1 FROM tab2
----
64

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

skipif mysql # not compatible
query I rowsort label-7217
SELECT CAST ( col1 AS INTEGER ) FROM tab1 WHERE NOT + 36 + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT ALL + ( 99 ) - CAST( ( - col0 ) AS SIGNED ) FROM tab2
----
145
163
174

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + ( 99 ) - CAST ( ( - col0 ) AS INTEGER ) FROM tab2
----
145
163
174

query I rowsort
SELECT 53 * + 80 + AVG ( 81 ) * + 7 FROM tab1 WHERE NULL = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( * ) * 92 AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( * ) * 92 AS col0 FROM tab0
----
276

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE ( + col0 * col2 ) >= + col1
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + 13 col1 FROM tab0
----
793
793
793

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

query I rowsort
SELECT DISTINCT - 57 + col2 FROM tab1 WHERE ( 52 ) IN ( - col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7225
SELECT * FROM tab0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND 46
----

skipif mysql # not compatible
query III rowsort label-7225
SELECT * FROM tab0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND 46
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 + col1 * ( + col2 ) <= 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - col2 ) * 70 AS col0 FROM tab2
----
1610
2800
4060

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2 WHERE NULL <> + col0 / 63
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT col1 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 84 + 19 FROM tab1
----
103

query I rowsort
SELECT ALL col1 * ( - 79 ) AS col1 FROM tab1
----
-1106
-3713
-395

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT - col0 + - col2 DIV + col1 AS col1 FROM tab0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-7234
SELECT - col0 + - col2 / + col1 AS col1 FROM tab0
----
-15
-196
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL ( COUNT( + 90 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL ( COUNT ( + 90 ) ) FROM tab0
----
3

query I rowsort
SELECT 10 FROM tab0 AS cor0 WHERE 19 NOT IN ( 38 + - 15 )
----
10
10
10

query I rowsort
SELECT - col2 * - col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
3481
4624
9216

query I rowsort
SELECT ( - col1 ) * + col0 + col2 AS col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT DISTINCT - 56 DIV + col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - 56 / + col0 FROM tab2
----
-1
0

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

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 27 + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT MAX( 22 ) FROM tab1 AS cor0 WHERE NOT - 26 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT MAX ( 22 ) FROM tab1 AS cor0 WHERE NOT - 26 NOT IN ( + col0 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT + col1 DIV + 1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7244
SELECT + col1 / + 1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + 22 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

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

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

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1 cor0 WHERE NOT 68 <> NULL
----

query I rowsort
SELECT + 1 * - 85 AS col2 FROM tab1 AS cor0
----
-85
-85
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - - 95 * SUM( - 81 ) col1 FROM tab1 cor0
----
-23085

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7250
SELECT - - 95 * SUM ( - 81 ) col1 FROM tab1 cor0
----
-23085

query I rowsort
SELECT DISTINCT - 6 * col2 + - ( + 55 ) * + col1 FROM tab2 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT DISTINCT SUM( - + ( + 77 ) ) AS col0 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT SUM ( - + ( + 77 ) ) AS col0 FROM tab0
----
-231

query I rowsort
SELECT + 72 FROM tab1 WHERE NOT ( col1 - col2 ) > - col1
----
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * - ( - 98 * col1 + + col2 ) col1 FROM tab0 WHERE col0 NOT BETWEEN ( NULL ) AND - 64
----
43095
639186
96

query I rowsort
SELECT - 61 AS col1 FROM tab0 WHERE NOT NULL >= ( + 71 * col0 )
----

query I rowsort
SELECT ALL - col0 * col2 + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-624
-849
-9602

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND - col1
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL COUNT( + col1 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL COUNT ( + col1 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) <= NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT + AVG ( - 56 ) / - CAST( NULL AS SIGNED ) + 74 FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT + AVG ( - 56 ) / - CAST ( NULL AS INTEGER ) + 74 FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 ) >= NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL MAX ( + + col2 ) FROM tab0
----
99

query I rowsort
SELECT 82 * + 25 AS col1 FROM tab1
----
2050
2050
2050

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT CAST( + + SUM( DISTINCT - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-199

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT col1 DIV 61 col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT col1 / 61 col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT ALL - + 22 * + + col1 * - col2 + 11 AS col2 FROM tab2 AS cor0
----
25817
67771
85503

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT COUNT( * ) * COUNT( ALL + col0 ) + 19 + + 36 AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + col0 ) + 19 + + 36 AS col2 FROM tab1 AS cor0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - COUNT( 55 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - COUNT ( 55 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE - 24 * col2 = + 89 - + col2
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT + SUM( 48 ) FROM tab1 AS cor0 WHERE col2 + col1 <= - CAST( col1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT + SUM ( 48 ) FROM tab1 AS cor0 WHERE col2 + col1 <= - CAST ( col1 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL col2 + + col1 + + 92 * - 85 * col1 FROM tab0 cor0
----
-164189
-633292
-7720

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT - 96 * - 31 * ( - COUNT( * ) ) FROM tab1 cor0
----
-8928

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - 96 * - 31 * ( - COUNT ( * ) ) FROM tab1 cor0
----
-8928

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT ALL 91 * 34 * + + col0 DIV + col0 AS col1 FROM tab1
----
3094
3094
3094

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL 91 * 34 * + + col0 / + col0 AS col1 FROM tab1
----
3094
3094
3094

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-7280
SELECT DISTINCT ( 7 ) - - + COUNT( * ) + + + 92 * - 95 FROM tab0
----
-8730

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT ( 7 ) - - + COUNT ( * ) + + + 92 * - 95 FROM tab0
----
-8730

query I rowsort
SELECT - col1 + col0 + + - col2 AS col0 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL + 5 - - 48 FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7283
SELECT ALL CAST( - 5 AS SIGNED ), ( + + COUNT( * ) ) col0 FROM tab2
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7283
SELECT ALL CAST ( - 5 AS INTEGER ), ( + + COUNT ( * ) ) col0 FROM tab2
----
-5
3

query II rowsort
SELECT DISTINCT - col2 * col0, 0 AS col1 FROM tab2
----
-1058
0
-2560
0
-4350
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + 25 + 47 * - - MAX( ALL - col1 ) col0 FROM tab1
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7285
SELECT + 25 + 47 * - - MAX ( ALL - col1 ) col0 FROM tab1
----
-210

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col1 ) NOT BETWEEN + 17 + col1 / - 16 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7288
SELECT ALL - + 42 * - 22 AS col2, + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
924
3

skipif mysql # not compatible
query II rowsort label-7288
SELECT ALL - + 42 * - 22 AS col2, + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
924
3

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + col0 * - 51 )
----
46
64
75

query I rowsort
SELECT DISTINCT - + col1 + - 65 FROM tab2 AS cor0
----
-116
-132
-142

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN + - col1 AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * 48 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col0 + + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN 47 + + col2 + col1 - 58 AND ( + 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col0 col1 FROM tab0 AS cor0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - + SUM( + 33 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + SUM ( + 33 ) FROM tab2 AS cor0
----
-99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - ( col2 ) ) IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7305
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - ( col2 ) ) IN ( - col1 )
----
3

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

skipif mysql # not compatible
query I rowsort label-7306
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col2 - - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE - col2 + + - col0 <= - col0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( - 99 ) AS col0 FROM tab1
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= col1 / - col0 + + col2
----

query I rowsort
SELECT ALL 39 FROM tab2 WHERE NULL IS NULL AND col1 NOT IN ( 98 )
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 < + - 22 - - 64
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 63 NOT BETWEEN + col2 AND + + 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col2 ) FROM tab1 cor0 WHERE 78 BETWEEN - 41 / col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7314
SELECT ALL - COUNT( * ) + + 43 + ( + CAST( + 98 AS SIGNED ) ) AS col0 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - COUNT ( * ) + + 43 + ( + CAST ( + 98 AS INTEGER ) ) AS col0 FROM tab0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT DISTINCT col2 * + col1 - - - CAST( col0 AS SIGNED ) FROM tab2
----
1127
3016
3811

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT col2 * + col1 - - - CAST ( col0 AS INTEGER ) FROM tab2
----
1127
3016
3811

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

query I rowsort
SELECT DISTINCT - col1 * - + col1 FROM tab1
----
196
2209
25

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

query II rowsort
SELECT col0, + col1 FROM tab2 WHERE + 16 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT + COUNT( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT + COUNT ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * - 31 AS col1 FROM tab0 AS cor0
----
2697
3007
465

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

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

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab1 WHERE NULL = ( - col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ( - MIN( 2 ) ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7326
SELECT ( - MIN ( 2 ) ) FROM tab0 AS cor0
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + COUNT( DISTINCT + col2 ) * - ( + + 75 ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT + 65 > - 21
----
-11

skipif mysql # not compatible
query I rowsort label-7328
SELECT + COUNT ( DISTINCT + col2 ) * - ( + + 75 ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT + 65 > - 21
----
-11

query I rowsort
SELECT + col1 * - - ( - + 74 ) FROM tab2 AS cor0
----
-3774
-4958
-5698

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT - 12 * + CAST( + col2 AS SIGNED ) FROM tab1
----
-1152
-708
-816

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - 12 * + CAST ( + col2 AS INTEGER ) FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT + 85 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( ( - - col0 ) ) IS NULL
----

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

query I rowsort
SELECT 80 + col0 AS col1 FROM tab1
----
131
165
171

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7336
SELECT - + col1 + - 6 + + - ( 88 ) * - col2 DIV col2 AS col1, - ( - - CAST( NULL AS SIGNED ) ) * + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
15
NULL
31
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7336
SELECT - + col1 + - 6 + + - ( 88 ) * - col2 / col2 AS col1, - ( - - CAST ( NULL AS INTEGER ) ) * + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
15
NULL
31
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 + + ( - col1 ) AS col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

skipif mysql # not compatible
query II rowsort label-7337
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 + + ( - col1 ) AS col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

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

query I rowsort
SELECT ALL + 50 + + 67 AS col1 FROM tab1 AS cor0
----
117
117
117

query I rowsort
SELECT ALL + 96 + - col0 AS col1 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT ALL col2 + 13 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT col1 - - col0 * - col1 FROM tab1 cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + COUNT( * ) + + 36 col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7343
SELECT ALL + COUNT ( * ) + + 36 col1 FROM tab2 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 - - - col1 col2, - 45 * - - col2 * 18 FROM tab1 AS cor0
----
-10
-47790
-28
-77760
-94
-55080

query I rowsort
SELECT ALL col1 - + 74 * - col0 * - col2 AS col0 FROM tab0
----
-52089
-64359
-710621

query I rowsort
SELECT DISTINCT + col0 + - + 15 AS col0 FROM tab1
----
36
70
76

query I rowsort
SELECT DISTINCT 46 * - - col2 * + 51 - - col0 AS col1 FROM tab0
----
110277
232351
23547

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 79 ) / + - col0 + col0 * - col0 NOT BETWEEN + col0 AND - - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 46 AS col1 FROM tab2 AS cor0
----
-46
-46
-46

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

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

query II rowsort
SELECT DISTINCT + 50 AS col1, - 56 FROM tab1
----
50
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT MAX( DISTINCT + 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT MAX ( DISTINCT + 83 ) FROM tab2
----
83

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

query II rowsort
SELECT col1 AS col0, - col0 FROM tab2 AS cor0 WHERE NOT + col2 < ( - - 51 )
----
67
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7359
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + - 56 FROM tab0 AS cor0 WHERE NOT - col2 >= col1
----
-35
-55
25

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + - 56 FROM tab0 AS cor0 WHERE NOT - col2 >= col1
----
-35
-55
25

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

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

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

query I rowsort
SELECT ALL col2 * col2 * - + col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7365
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7365
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 39 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

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

query I rowsort
SELECT DISTINCT + - ( col0 ) + - + col2 * col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT ALL + COUNT( * ) DIV - COUNT( * ) col2 FROM tab1 AS cor0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT DISTINCT + ( - col2 ) DIV + - 70 + + 91 AS col0 FROM tab0 AS cor0
----
91
92

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + ( - col2 ) / + - 70 + + 91 AS col0 FROM tab0 AS cor0
----
91
92

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

query II rowsort
SELECT + 47, 47 FROM tab0
----
47
47
47
47
47
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) * - + 21 FROM tab0
----
3
-63

skipif mysql # not compatible
query II rowsort label-7374
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) * - + 21 FROM tab0
----
3
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7375
SELECT ALL + col1 * + - CAST( NULL AS SIGNED ) col1, - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7375
SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) col1, - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT - 1 * + 34 NOT BETWEEN col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT MAX( ALL + 49 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-7377
SELECT MAX ( ALL + 49 ) AS col2 FROM tab1
----
49

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7381
SELECT col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < - - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-7382
SELECT - - COUNT ( + 33 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col1 * - + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

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

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

query I rowsort
SELECT DISTINCT + - col0 * 76 + + col1 FROM tab0 AS cor0
----
-1059
-6591
-7371

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + col2 AND - ( col0 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT COUNT( * ) * 95 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7388
SELECT COUNT ( * ) * 95 FROM tab2 AS cor0
----
285

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

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

query I rowsort
SELECT ALL - ( - 3 ) FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT + 33 + 19 AS col2 FROM tab0
----
52
52
52

query I rowsort
SELECT + col1 FROM tab2 WHERE - col0 >= + 90 / - ( + col2 )
----

query I rowsort
SELECT col1 + 83 AS col1 FROM tab2
----
134
150
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT - 80 + - col1 - + CAST( + 37 AS SIGNED ) * - - col2 * - col2 FROM tab0
----
3599
362556
81572

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 80 + - col1 - + CAST ( + 37 AS INTEGER ) * - - col2 * - col2 FROM tab0
----
3599
362556
81572

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - - 28 IN ( - - col0 / + - col2, - ( 94 ) * - col2 * - 2 )
----

query I rowsort
SELECT + 63 + - col1 FROM tab0 AS cor0
----
-18
42
62

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 53 + - col2 / - col0 BETWEEN - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT - 53 col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( ( col0 ) * ( - - ( - col2 ) ) + - - 18, col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7399
SELECT DISTINCT - 53 col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( ( col0 ) * ( - - ( - col2 ) ) + - - 18, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT + - 2 DIV - col0 * col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT + - 2 / - col0 * col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL + 33 AS col0 FROM tab0 WHERE NOT - - col1 NOT BETWEEN col1 * ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 3 * + - 85 FROM tab1
----
-255

query I rowsort
SELECT ALL - 34 * col1 * - col1 * + col2 * + col1 AS col2 FROM tab1
----
240038776
250750
8956416

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT ALL + 28 DIV - col1 FROM tab0
----
-1
-28
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + 28 / - col1 FROM tab0
----
-1
-28
0

query I rowsort
SELECT DISTINCT + 4 * + col2 * + 11 FROM tab0 WHERE - - 52 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 + - ( ( - col0 ) ) * col0 + - 7 + - 34 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 >= col0 + - col1
----
51
14
96
85
5
59

query II rowsort
SELECT DISTINCT col1 * + 50 * + - col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-154000
64
-194300
75
-58650
46

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

skipif mysql # not compatible
query I rowsort label-7412
SELECT + MAX ( 37 ) AS col0 FROM tab2 cor0
----
37

query I rowsort
SELECT - col1 * - col1 * - 45 AS col0 FROM tab0
----
-19845
-295245
-45

query I rowsort
SELECT + col1 * - ( - col2 ) FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT - ( - ( COUNT( CAST( + col0 AS SIGNED ) ) ) ) FROM tab1 cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT ALL - col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL - col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

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

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

query I rowsort
SELECT - + 9 * + col2 AS col1 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COUNT( + + col0 ) * - 71 + - + COUNT( * ) AS col1 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( + + col0 ) * - 71 + - + COUNT ( * ) AS col1 FROM tab1
----
-216

query I rowsort
SELECT - 8 * + - col0 AS col1 FROM tab2
----
368
512
600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7422
SELECT DISTINCT CAST( - col0 AS DECIMAL ) + + 84 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT CAST ( - col0 AS REAL ) + + 84 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col0 * + + 87 FROM tab0
----
-1305
-7569
-8439

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT ALL + CAST( NULL AS SIGNED ) * + AVG ( ALL - 35 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + CAST ( NULL AS INTEGER ) * + AVG ( ALL - 35 ) FROM tab1 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 * - col0 col2 FROM tab2 AS cor0
----
-2116
-5120
-8700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT - MAX( - 10 ) + + 17 col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT DISTINCT - MAX ( - 10 ) + + 17 col2 FROM tab2 AS cor0
----
27

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

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

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL 82 + - COUNT ( * ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT + COUNT( 30 ) - + 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + COUNT ( 30 ) - + 20 FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT DISTINCT + col2 + - 97 + - 3 + col0 - col1 DIV 9 AS col2 FROM tab0
----
-47
-5
96

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT + col2 + - 97 + - 3 + col0 - col1 / 9 AS col2 FROM tab0
----
-47
-5
96

query I rowsort
SELECT col1 * + col2 * - + 40 + - col0 AS col2 FROM tab2
----
-123264
-155515
-46966

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT 27 - - SUM( - + 7 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT 27 - - SUM ( - + 7 ) FROM tab2
----
6

query I rowsort
SELECT - - col2 * - - 30 + 39 AS col0 FROM tab0 WHERE - - col1 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + 45 * COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + 45 * COUNT ( * ) FROM tab0
----
135

query I rowsort
SELECT + col0 * + 97 FROM tab1 AS cor0
----
4947
8245
8827

query I rowsort
SELECT ALL + 14 * + col0 AS col1 FROM tab2 AS cor0
----
1050
644
896

query II rowsort
SELECT ALL - 71 AS col2, 30 FROM tab1 AS cor0
----
-71
30
-71
30
-71
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT MIN( ALL - - col2 ) * + - 49 col2 FROM tab1 AS cor0
----
-2891

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

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

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

query I rowsort
SELECT + 96 * + 19 AS col2 FROM tab2 AS cor0
----
1824
1824
1824

query I rowsort
SELECT + 67 * - col2 AS col2 FROM tab2 AS cor0
----
-1541
-2680
-3886

query I rowsort
SELECT DISTINCT + - 76 AS col1 FROM tab0 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT - + col0 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - + col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - 67 * - 31 AS col1 FROM tab0
----
2077

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT DISTINCT - 91 DIV + ( + 82 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - 91 / + ( + 82 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT SUM( ALL - - col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7449
SELECT SUM ( ALL - - col1 ) col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - ( SUM( ALL + - col0 ) ) + + + COUNT( * ) FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - ( SUM ( ALL + - col0 ) ) + + + COUNT ( * ) FROM tab0 AS cor0
----
202

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT DISTINCT + 11 + COUNT( * ) AS col1, 51 * + COUNT( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
153

skipif mysql # not compatible
query II rowsort label-7451
SELECT DISTINCT + 11 + COUNT ( * ) AS col1, 51 * + COUNT ( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT MAX( - 46 ) + + COUNT( ALL - col0 ) col0 FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7452
SELECT MAX ( - 46 ) + + COUNT ( ALL - col0 ) col0 FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT + + col1 DIV col0 AS col1 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + + col1 / col0 AS col1 FROM tab0 cor0
----
0
5

query I rowsort
SELECT + 39 / - - col0 / + ( + + col1 ) - 11 + col1 * + - 39 * + 10 * - - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + col2 col2 FROM tab0
----
-30
59
7

query I rowsort
SELECT ALL col2 - + - 13 FROM tab2
----
36
53
71

query I rowsort
SELECT + 26 + - - 33 AS col1 FROM tab1
----
59
59
59

query I rowsort
SELECT DISTINCT + + 6 * - + col2 + + col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT + COUNT( - col1 ) + + + SUM( ALL - col1 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT + COUNT ( - col1 ) + + + SUM ( ALL - col1 ) FROM tab2
----
-192

query I rowsort
SELECT + 24 * + - 8 * - - col0 * + col2 FROM tab0
----
-135360
-167040
-1843776

query I rowsort
SELECT DISTINCT + 87 + - + col1 FROM tab0 AS cor0
----
6
66
86

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 49 AS col0 FROM tab1 cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - 45 col2 FROM tab0 AS cor0
----
-750
-915
-9648

query I rowsort
SELECT ALL - 7 * - col0 AS col2 FROM tab2
----
322
448
525

onlyif mysql # DIV for integer division: 
query II rowsort label-7467
SELECT - col2 col0, col0 DIV + col0 AS col2 FROM tab0
----
-10
1
-47
1
-99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7467
SELECT - col2 col0, col0 / + col0 AS col2 FROM tab0
----
-10
1
-47
1
-99
1

query I rowsort
SELECT 94 * 36 FROM tab1
----
3384
3384
3384

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT DISTINCT - COUNT( * ) AS col2, + ( + MAX( ALL - 25 ) ) FROM tab0
----
-3
-25

skipif mysql # not compatible
query II rowsort label-7469
SELECT DISTINCT - COUNT ( * ) AS col2, + ( + MAX ( ALL - 25 ) ) FROM tab0
----
-3
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT SUM( 61 ) DIV - + COUNT( * ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-7470
SELECT SUM ( 61 ) / - + COUNT ( * ) FROM tab1
----
-61

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT - col1 * CAST( - col1 AS SIGNED ) DIV - col2 FROM tab2
----
-113
-148
-77

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - col1 * CAST ( - col1 AS INTEGER ) / - col2 FROM tab2
----
-113
-148
-77

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - 20 / - col0 IS NOT NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - 79 + + col1 * - 96 AS col2 FROM tab1 cor0
----
-1423
-4591
-559

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT 20 * + COUNT( * ) AS col0, 84 * - ( + COUNT( * ) ) + - 18 + + 29 col0 FROM tab0 AS cor0
----
60
-241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7479
SELECT 20 * + COUNT ( * ) AS col0, 84 * - ( + COUNT ( * ) ) + - 18 + + 29 col0 FROM tab0 AS cor0
----
60
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL + - 61 + + COUNT( DISTINCT + + col2 ) col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7480
SELECT ALL + - 61 + + COUNT ( DISTINCT + + col2 ) col1 FROM tab0 AS cor0
----
-58

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

query I rowsort
SELECT - col1 * + - 6 * + col1 FROM tab0 WHERE - col1 IS NOT NULL
----
2646
39366
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + COUNT( * ) + + 81 FROM tab0, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7483
SELECT + COUNT ( * ) + + 81 FROM tab0, tab0 AS cor0
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - SUM( ALL - 59 ) + - 18 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7485
SELECT - SUM ( ALL - 59 ) + - 18 FROM tab0 AS cor0
----
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT - COUNT( * ) * - - SUM( 57 ) AS col1 FROM tab0 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - COUNT ( * ) * - - SUM ( 57 ) AS col1 FROM tab0 AS cor0
----
-513

query I rowsort
SELECT col0 * col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
4896
5015
6188

query II rowsort
SELECT DISTINCT 4, + 83 AS col0 FROM tab2
----
4
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT - SUM( ALL - 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - SUM ( ALL - 38 ) FROM tab1 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7493
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / ( + + col0 ) - - col2 NOT BETWEEN col2 AND + col2 / + - ( + - 43 ) - col1
----

skipif mysql # not compatible
query III rowsort label-7493
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / ( + + col0 ) - - col2 NOT BETWEEN col2 AND + col2 / + - ( + - 43 ) - col1
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 = NULL
----

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

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

query II rowsort
SELECT DISTINCT 3 AS col0, ( - ( col2 ) ) - - col1 AS col0 FROM tab1 AS cor0
----
3
-21
3
-54
3
-82

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 60 IS NOT NULL
----

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

query I rowsort
SELECT + - col2 * + 27 FROM tab2 AS cor0
----
-1080
-1566
-621

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

query I rowsort
SELECT DISTINCT + 90 + col1 AS col2 FROM tab2 WHERE - col0 * - + col2 + + - 69 BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT COUNT( * ) + - + 96 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-7503
SELECT COUNT ( * ) + - + 96 FROM tab2
----
-93

query I rowsort
SELECT + - col0 + - + 49 AS col1 FROM tab1 AS cor0
----
-100
-134
-140

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( - col2 * col2, + 28, 74 * + - col2, + col0, 38, 50 + col1 )
----

query I rowsort
SELECT ALL + 80 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 + + 79 FROM tab2 AS cor0 WHERE + col0 NOT IN ( col1, 50 )
----
102
119
137

query I rowsort
SELECT DISTINCT + - col2 + + col2 - - col2 + + 69 * col2 * 81 AS col1 FROM tab2 AS cor0
----
128570
223600
324220

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

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

query I rowsort
SELECT ALL 47 * col2 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL + col2 * - col0 * + 86 FROM tab2
----
-220160
-374100
-90988

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT COUNT( * ) - - - 17 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7512
SELECT COUNT ( * ) - - - 17 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL col2 + - 1 FROM tab0 AS cor0
----
46
9
98

query II rowsort
SELECT DISTINCT col0 AS col2, 35 AS col0 FROM tab0 AS cor0
----
15
35
87
35
97
35

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

query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 + 81 * 86 AS col0 FROM tab2 AS cor0
----
6766
6785
6846

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

query I rowsort
SELECT ALL col1 + + 21 AS col0 FROM tab1 AS cor0
----
26
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - + 90 + - - COUNT( * ) AS col0 FROM tab1 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - + 90 + - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-87

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

query I rowsort
SELECT col1 + ( col0 ) AS col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT 44 + + MIN( DISTINCT - ( - + 99 ) ) FROM tab2
----
143

skipif mysql # not compatible
query I rowsort label-7522
SELECT 44 + + MIN ( DISTINCT - ( - + 99 ) ) FROM tab2
----
143

query II rowsort
SELECT DISTINCT col1 - - ( ( + col1 ) ), col1 FROM tab1
----
10
5
28
14
94
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - COUNT( ALL + 99 ) * - 96 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - COUNT ( ALL + 99 ) * - 96 FROM tab0
----
288

query III rowsort
SELECT * FROM tab2 WHERE + 19 BETWEEN NULL AND ( + 48 * - 9 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7526
SELECT 93 * - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT 93 * - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 * - col1 AS col0, + 1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1344
1
-295
1
-3196
1

query II rowsort
SELECT DISTINCT + col2 AS col2, - 36 FROM tab0
----
10
-36
47
-36
99
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT + 34 DIV + col1 FROM tab0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT + 34 / + col1 FROM tab0
----
0
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - - SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7530
SELECT - - SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 15 col1 FROM tab0 AS cor0
----
-1485
-150
-705

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT DISTINCT + - 99 + + COUNT( * ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + - 99 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + - 29 + + + COUNT( * ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7536
SELECT + - 29 + + + COUNT ( * ) FROM tab0 cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT 25 + - col1 DIV + col2 FROM tab2 AS cor0
----
23
24
24

skipif mysql # not compatible
query I rowsort label-7537
SELECT 25 + - col1 / + col2 FROM tab2 AS cor0
----
23
24
24

query I rowsort
SELECT ALL + col2 * - col2 FROM tab0 cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT ALL + 48 + - + 61 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL AND NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 80 AS col2 FROM tab1
----
-4080
-6800
-7280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7542
SELECT - 71 + + CAST( NULL AS SIGNED ) AS col0, - col0 + + + col2 AS col1 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-7542
SELECT - 71 + + CAST ( NULL AS INTEGER ) AS col0, - col0 + + + col2 AS col1 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

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

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

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

query II rowsort
SELECT + col2 * - - col2 AS col0, - col1 FROM tab1 AS cor0
----
3481
-5
4624
-47
9216
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT - SUM( + col0 ) DIV + SUM( ALL + + col0 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7546
SELECT - SUM ( + col0 ) / + SUM ( ALL + + col0 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - - + 4 FROM tab1 AS cor0
----
100
63
72

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

query I rowsort
SELECT 75 - col1 FROM tab0
----
-6
54
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT - col0 - CAST( - col1 AS SIGNED ) * - col1 AS col1 FROM tab1
----
-110
-2300
-247

skipif mysql # not compatible
query I rowsort label-7551
SELECT - col0 - CAST ( - col1 AS INTEGER ) * - col1 AS col1 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT DISTINCT 23 * - - 78 AS col0 FROM tab2
----
1794

query I rowsort
SELECT ALL - col1 * + - 75 FROM tab1
----
1050
3525
375

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT ALL - col0 DIV - 81 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - col0 / - 81 AS col1 FROM tab0
----
0
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT + 47 * + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 47 * + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
47

query II rowsort
SELECT DISTINCT + col2, - 65 + - 49 FROM tab0 AS cor0
----
10
-114
47
-114
99
-114

query I rowsort
SELECT 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT MIN( DISTINCT - + 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT MIN ( DISTINCT - + 0 ) AS col1 FROM tab1 AS cor0
----
0

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

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

query II rowsort
SELECT ALL - col0 + col1 + - col0 * + - 91 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
1431
81
7851
21
8731
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + SUM( - - 28 ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7563
SELECT + SUM ( - - 28 ) AS col2 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL - col0 + 83 * - col1 FROM tab1 AS cor0
----
-1213
-3992
-500

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + 16 ) + + col2 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + 47 + - COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-7568
SELECT + 47 + - COUNT ( * ) FROM tab0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE + col1 * + col0 * - - 71 * col1 IS NOT NULL
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + col1 + - - col0 col1 FROM tab0 AS cor0
----
197
318
3903

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT DISTINCT col2 * + - CAST( NULL AS SIGNED ) AS col0, col2 * - col0 + + + 98 + - col0 AS col0 FROM tab2
----
NULL
-1006
NULL
-2526
NULL
-4327

skipif mysql # not compatible
query II rowsort label-7572
SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) AS col0, col2 * - col0 + + + 98 + - col0 AS col0 FROM tab2
----
NULL
-1006
NULL
-2526
NULL
-4327

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

query I rowsort
SELECT col2 * - + 63 + col0 - - + 3 AS col1 FROM tab1 AS cor0
----
-3629
-4190
-5994

query I rowsort
SELECT + + 15 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
368
640
928

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 28 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col0 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7580
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 + + 94 * + 73 * + CAST( NULL AS SIGNED ) - - 0 AND ( - 66 )
----

skipif mysql # not compatible
query III rowsort label-7580
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 + + 94 * + 73 * + CAST ( NULL AS INTEGER ) - - 0 AND ( - 66 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT ALL - MAX( DISTINCT 77 ) * COUNT( * ) AS col0, 33 FROM tab1
----
-231
33

skipif mysql # not compatible
query II rowsort label-7581
SELECT ALL - MAX ( DISTINCT 77 ) * COUNT ( * ) AS col0, 33 FROM tab1
----
-231
33

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE - + col0 = - - col2
----

query I rowsort
SELECT ALL ( - - ( - col2 ) ) FROM tab1
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-7584
SELECT - SUM ( + + col2 ) AS col2 FROM tab2
----
-121

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT - ( 7 ) DIV 7 + - + col2 * + col2 FROM tab1 cor0
----
-3482
-4625
-9217

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - ( 7 ) / 7 + - + col2 * + col2 FROM tab1 cor0
----
-3482
-4625
-9217

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - - 47 + - - COUNT( + + col0 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - - 47 + - - COUNT ( + + col0 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - COUNT( * ) * - - 27 AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - COUNT ( * ) * - - 27 AS col0 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7590
SELECT DISTINCT - MIN( DISTINCT - col0 ) + - 36 AS col2, + SUM( DISTINCT + - col0 ) DIV - - 93 AS col0 FROM tab1 AS cor0
----
55
-2

skipif mysql # not compatible
query II rowsort label-7590
SELECT DISTINCT - MIN ( DISTINCT - col0 ) + - 36 AS col2, + SUM ( DISTINCT + - col0 ) / - - 93 AS col0 FROM tab1 AS cor0
----
55
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT - 80 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT - 80 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 22 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 * col0 AS col2, - col2 FROM tab1
----
2601
-96
7225
-59
8281
-68

query I rowsort
SELECT - ( + - col1 ) * + col0 * - col1 + - + 49 * - - col1 * - + 23 AS col1 FROM tab1
----
-148050
3510
5782

query I rowsort
SELECT + col2 * + 6 FROM tab1
----
354
408
576

query I rowsort
SELECT ALL - col2 - - 35 + + col0 FROM tab0 AS cor0
----
112
3
33

query I rowsort
SELECT col0 + 51 AS col2 FROM tab1
----
102
136
142

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + col1 col2 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT + - COUNT( * ) / + CAST( NULL AS SIGNED ) - - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) - - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + 30 IS NULL
----

query I rowsort
SELECT ALL + + 42 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + 30 * - MIN( + col2 ) col1 FROM tab0
----
-300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7604
SELECT + 30 * - MIN ( + col2 ) col1 FROM tab0
----
-300

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

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

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col1 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7607
SELECT ALL + col0 * - col2 DIV - - CAST( - CAST( + - col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + col0 * - col2 / - - CAST ( - CAST ( + - col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

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

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

query I rowsort
SELECT col0 * - - col1 * - 33 + col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-13940
-141050
-23511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - 8 * - col0 AS col2 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT ALL + ( + 1 ) * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

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

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

query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
162
2
42

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

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

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab1 WHERE NOT - ( - 76 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT ( + MIN( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT ( + MIN ( col1 ) ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT - - col0 + + + 69 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT ALL + 71 + + col0 AS col1 FROM tab1 AS cor0
----
122
156
162

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

query I rowsort
SELECT DISTINCT + + col2 + - - col1 + + 44 FROM tab0 AS cor0
----
144
172
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + - ( + col2 ) - col1 * - - 75 + - + 44 col2 FROM tab0 cor0
----
-1642
-231
-6179

query I rowsort
SELECT + ( col1 ) * 39 + - 62 + + + col2 AS col1 FROM tab1
----
1839
192
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL COUNT( 7 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL COUNT ( 7 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT - MIN( ALL - + col0 ) + 65 AS col0, 16 FROM tab1
----
156
16

skipif mysql # not compatible
query II rowsort label-7626
SELECT - MIN ( ALL - + col0 ) + 65 AS col0, 16 FROM tab1
----
156
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT - col1 DIV col0 + - - col2 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-7628
SELECT - col1 / col0 + - - col2 FROM tab2
----
22
39
58

query I rowsort
SELECT DISTINCT col0 + - 52 * - ( + col1 ) FROM tab0 AS cor0
----
1179
149
4227

query I rowsort
SELECT col2 FROM tab1 WHERE col2 IN ( col0 - - ( - col2 + + 76 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) <> NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - col2 DIV 1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7634
SELECT - col2 / 1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 + 45 AS col0 FROM tab2 WHERE NULL <= - 48
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT - 61 DIV - COUNT( * ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7637
SELECT - 61 / - COUNT ( * ) AS col1 FROM tab1
----
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col2 + col1
----

query I rowsort
SELECT - col1 - 56 FROM tab1
----
-103
-61
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - 11 NOT IN ( - 13 )
----

skipif mysql # not compatible
query I rowsort label-7640
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - 11 NOT IN ( - 13 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT * FROM tab1 WHERE ( 66 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-7643
SELECT * FROM tab1 WHERE ( 66 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND + col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE 63 + col1 IN ( - 31 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + MAX( DISTINCT - 14 ) + 36 AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + MAX ( DISTINCT - 14 ) + 36 AS col0 FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 <> - col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT - col2 DIV 27 + + col2 AS col0 FROM tab0
----
10
46
96

skipif mysql # not compatible
query I rowsort label-7651
SELECT - col2 / 27 + + col2 AS col0 FROM tab0
----
10
46
96

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

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT BETWEEN + 78 AND ( col0 * 94 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE - col1 IS NULL
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE 4 + - ( ( - col2 ) + + 46 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT SUM( + col0 ) * CAST( NULL AS SIGNED ) + - ( 18 ) FROM tab0 WHERE - 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT SUM ( + col0 ) * CAST ( NULL AS INTEGER ) + - ( 18 ) FROM tab0 WHERE - 55 IS NULL
----
NULL

query I rowsort
SELECT ALL - 85 + - 66 FROM tab2
----
-151
-151
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT - col2 DIV col0 + - col0 FROM tab0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-7659
SELECT - col2 / col0 + - col0 FROM tab0
----
-18
-87
-98

query I rowsort
SELECT ALL col1 * + 83 + + col1 * col0 FROM tab1
----
1876
8178
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT ( ( - CAST( COUNT( ( col1 ) ) AS SIGNED ) ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7661
SELECT ( ( - CAST ( COUNT ( ( col1 ) ) AS INTEGER ) ) ) AS col0 FROM tab1
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT + col1 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7663
SELECT + col1 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 36 FROM tab1 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 53 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + 74 * 69 AS col1 FROM tab1 cor0
----
5059
5092
5101

query I rowsort
SELECT ALL - 85 + col1 * + 31 FROM tab1 cor0
----
1372
349
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + COUNT( * ) * 61 + 96 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + COUNT ( * ) * 61 + 96 FROM tab2 AS cor0
----
279

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

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

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

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

query I rowsort
SELECT ALL - 93 * + col2 * - 67 FROM tab2
----
143313
249240
361398

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - COUNT( DISTINCT + - 30 ) - - COUNT( * ) * - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - COUNT ( DISTINCT + - 30 ) - - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-10

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

query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-8
13
5

query I rowsort
SELECT ALL - col2 * + 33 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-1947
-2244
-3168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 32 ) > + col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7677
SELECT * FROM tab1 WHERE CAST( 15 AS DECIMAL ) * col1 BETWEEN NULL AND col1 * 32
----

skipif mysql # not compatible
query III rowsort label-7677
SELECT * FROM tab1 WHERE CAST ( 15 AS REAL ) * col1 BETWEEN NULL AND col1 * 32
----

query I rowsort
SELECT ALL col0 * + 75 * col1 AS col2 FROM tab0
----
137025
7275
91125

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7683
SELECT + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query I rowsort
SELECT - 49 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT 51 + 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

skipif mysql # not compatible
query I rowsort label-7687
SELECT COUNT ( * ) / - 80 + - 26 FROM tab0 AS cor0
----
-26

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

query II rowsort
SELECT col1 AS col0, 15 FROM tab1 AS cor0
----
14
15
47
15
5
15

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + 43 + + 53 / col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + - SUM( DISTINCT - 88 ) AS col1 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7693
SELECT + - SUM ( DISTINCT - 88 ) AS col1 FROM tab2 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT 66 * CAST( NULL AS SIGNED ) / - 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT 66 * CAST ( NULL AS INTEGER ) / - 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT SUM( ALL col1 ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7695
SELECT SUM ( ALL col1 ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
198

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

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

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

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

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

query II rowsort
SELECT DISTINCT - + 82, 63 AS col2 FROM tab0 AS cor0
----
-82
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT SUM( ALL 14 ) AS col1 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT SUM ( ALL 14 ) AS col1 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

query II rowsort
SELECT ALL ( 30 ) AS col1, - 6 FROM tab0
----
30
-6
30
-6
30
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND - + col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7704
SELECT * FROM tab1 WHERE ( + 5 * col1 / - - CAST( NULL AS SIGNED ) - + col0 ) < 4
----

skipif mysql # not compatible
query III rowsort label-7704
SELECT * FROM tab1 WHERE ( + 5 * col1 / - - CAST ( NULL AS INTEGER ) - + col0 ) < 4
----

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - 3 NOT IN ( - 66 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL + + 4 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + + 4 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7

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

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

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

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

query I rowsort
SELECT ALL 88 + - 61 FROM tab1 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + - col1 col0 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT + 98 + - COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT + 98 + - COUNT ( * ) FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT 27 * + 83 + + 4 * COUNT( * ) FROM tab2 AS cor0
----
2253

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT 27 * + 83 + + 4 * COUNT ( * ) FROM tab2 AS cor0
----
2253

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

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

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

query I rowsort
SELECT 40 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE + + 27 / - ( col0 ) NOT IN ( ( col1 ) )
----
59
68
96

query I rowsort
SELECT - 90 FROM tab0 WHERE + col0 + + + 18 <> + 12
----
-90
-90
-90

query I rowsort
SELECT ALL col2 * + + 49 * + col2 AS col0 FROM tab2
----
164836
25921
78400

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

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

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT col2 / + 85 FROM tab1
----
0
1

query I rowsort
SELECT + 62 * + 31 * 77 FROM tab2
----
147994
147994
147994

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

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

query I rowsort
SELECT DISTINCT col0 * 46 * + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
188352
258675
97290

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + - 7 * - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7726
SELECT + - 7 * - COUNT ( * ) FROM tab2 AS cor0
----
21

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

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

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

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - col0 / + ( + col0 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7729
SELECT + + COUNT( * ), COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7729
SELECT + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----
0
0

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

query I rowsort
SELECT ALL - 56 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT - 42 DIV - - 61 * - col2 * - 55 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 42 / - - 61 * - col2 * - 55 AS col0 FROM tab1 cor0
----
0
0
0

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

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

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

query I rowsort
SELECT 59 * + col1 AS col1 FROM tab2
----
3009
3953
4543

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 74 * - 17 FROM tab0
----
1
-1258
21
-1258
81
-1258

query II rowsort
SELECT DISTINCT col2, - ( + 97 ) * + col1 FROM tab1
----
59
-485
68
-4559
96
-1358

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - 32 ) - + + ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - ( - 80 ) ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT + 86 * COUNT( * ) AS col2 FROM tab0 WHERE + col1 - + - col0 + + + 13 IN ( - col0 + + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + 86 * COUNT ( * ) AS col2 FROM tab0 WHERE + col1 - + - col0 + + + 13 IN ( - col0 + + - col2 )
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7744
SELECT - MIN ( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - 9 + COUNT( + 50 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - 9 + COUNT ( + 50 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + col1 + + col1 + + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
199
276
295

query I rowsort
SELECT DISTINCT + - 17 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
170
289
890

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE - col0 + + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL - 92 * - col2 + + col2 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col0 / - col1 NOT BETWEEN col1 AND ( + 58 )
----
10
47
99

query I rowsort
SELECT col0 + - - col1 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + col0 / 39 NOT BETWEEN NULL AND + 49 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT - MAX( DISTINCT + + ( col2 ) ) * - - ( 41 ) col2 FROM tab1 AS cor0
----
-3936

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT DISTINCT - MAX ( DISTINCT + + ( col2 ) ) * - - ( 41 ) col2 FROM tab1 AS cor0
----
-3936

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7755
SELECT ALL col1 + - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL col1 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 + col2 AS col0 FROM tab1 AS cor0
----
135
144
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL + COUNT( DISTINCT col0 ) - - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + COUNT ( DISTINCT col0 ) - - - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 4 AS col2 FROM tab1 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - - COUNT( * ) - + 27 AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - - COUNT ( * ) - + 27 AS col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT 58 - 24 * + 35 + - col1 FROM tab0
----
-783
-803
-863

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE ( + col0 + col1 ) NOT IN ( col1, - col2 * - col2 ) AND ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT + col2 - col2 + col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT 3 * col1 - col2 DIV - ( + ( - + 59 ) ) + + + col2 FROM tab1
----
137
208
73

skipif mysql # not compatible
query I rowsort label-7763
SELECT 3 * col1 - col2 / - ( + ( - + 59 ) ) + + + col2 FROM tab1
----
137
208
73

query I rowsort
SELECT DISTINCT col1 + + - col2 * 57 FROM tab2
----
-1260
-2203
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + 64 * + + MAX( - + 77 ) FROM tab1
----
-4928

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + 64 * + + MAX ( - + 77 ) FROM tab1
----
-4928

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > col0 AND + col0 + - col1 + + 13 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 16 / - 2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT COUNT( ALL 7 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7769
SELECT COUNT ( ALL 7 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col1 * + 42 FROM tab2 WHERE ( + col2 ) < 77
----
2142
2814
3234

query II rowsort
SELECT - 54, + col1 FROM tab0
----
-54
1
-54
21
-54
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + - COUNT( - 56 ) * + 39 * - 78 AS col1 FROM tab0 AS cor0
----
9126

skipif mysql # not compatible
query I rowsort label-7772
SELECT + - COUNT ( - 56 ) * + 39 * - 78 AS col1 FROM tab0 AS cor0
----
9126

query I rowsort
SELECT ALL - + 97 * - ( + col1 ) FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7774
SELECT - SUM( ALL + + col0 ) AS col2, - 20 DIV - COUNT( * ) FROM tab2 AS cor0
----
-185
6

skipif mysql # not compatible
query II rowsort label-7774
SELECT - SUM ( ALL + + col0 ) AS col2, - 20 / - COUNT ( * ) FROM tab2 AS cor0
----
-185
6

query II rowsort
SELECT ALL 23 AS col1, - 9 * col2 FROM tab1 AS cor0
----
23
-531
23
-612
23
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + 32 * - + COUNT( ALL + + ( - col1 ) ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + 32 * - + COUNT ( ALL + + ( - col1 ) ) FROM tab0 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 12 * + - ( + + col0 ) + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT COUNT( DISTINCT 23 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT COUNT ( DISTINCT 23 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - + col0 * - ( - - 80 ) FROM tab1 AS cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL - 63 * + ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - 63 * + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
189

onlyif mysql # DIV for integer division: 
query II rowsort label-7781
SELECT - col1 * + 35 * ( col0 ) col0, + 37 DIV - col0 FROM tab2 AS cor0
----
-172480
0
-175875
0
-82110
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7781
SELECT - col1 * + 35 * ( col0 ) col0, + 37 / - col0 FROM tab2 AS cor0
----
-172480
0
-175875
0
-82110
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7782
SELECT ALL - col2 + + col1 * col1 DIV + 84 AS col0, - col1 FROM tab2 AS cor0
----
-5
-67
30
-77
7
-51

skipif mysql # not compatible
query II rowsort label-7782
SELECT ALL - col2 + + col1 * col1 / + 84 AS col0, - col1 FROM tab2 AS cor0
----
-5
-67
30
-77
7
-51

query I rowsort
SELECT DISTINCT + 70 * - 27 FROM tab2
----
-1890

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT ALL 50 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 50 / + col1 FROM tab1
----
1
10
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7785
SELECT CAST( NULL AS DECIMAL ) * - COUNT( ALL + - col1 ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT CAST ( NULL AS REAL ) * - COUNT ( ALL + - col1 ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT - col1 * - col2 DIV + col2 + + col2 AS col1 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7786
SELECT - col1 * - col2 / + col2 + + col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - 13 + - + 97 * - + 44 FROM tab0
----
4255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT + 15 DIV - + ( + COUNT( * ) ) + - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-7788
SELECT + 15 / - + ( + COUNT ( * ) ) + - COUNT ( * ) FROM tab0
----
-8

query I rowsort
SELECT ALL - - col1 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ( - - 60 ) * - MIN( DISTINCT - col0 ) + + + 35 AS col1 FROM tab1 AS cor0
----
5495

skipif mysql # not compatible
query I rowsort label-7790
SELECT ( - - 60 ) * - MIN ( DISTINCT - col0 ) + + + 35 AS col1 FROM tab1 AS cor0
----
5495

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT ( + + 9 ) FROM tab0 AS cor0
----
9
9
9

query II rowsort
SELECT col0 * + ( + - col2 ) * - col1, col1 AS col0 FROM tab0
----
18270
21
57105
81
9603
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7794
SELECT + ( - + col0 ) DIV col1 + + 80 * + col2 AS col0 FROM tab2 WHERE + 8 DIV - - 16 + + - CAST( - col1 AS SIGNED ) * col2 - - 4 * col1 NOT IN ( col1 )
----
1840
3200
4639

skipif mysql # not compatible
query I rowsort label-7794
SELECT + ( - + col0 ) / col1 + + 80 * + col2 AS col0 FROM tab2 WHERE + 8 / - - 16 + + - CAST ( - col1 AS INTEGER ) * col2 - - 4 * col1 NOT IN ( col1 )
----
1840
3200
4639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + 23 col0 FROM tab2 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 13 ) <> - 89 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 58 + 8 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - COUNT( * ) + 32 + - - COUNT( * ) - + COUNT( * ) col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7798
SELECT - COUNT ( * ) + 32 + - - COUNT ( * ) - + COUNT ( * ) col1 FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT ALL - 90 - + col1 + col0 + - 21 - - col1 + col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL - 90 - + col1 + col0 + - 21 - - col1 + col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 + - - 31 FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + 54 - - col2 FROM tab2
----
112
77
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - + col2
----

query I rowsort
SELECT + 57 AS col2 FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + + + ( + + col0 ) col1 FROM tab0 WHERE NOT ( + + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - COUNT( ALL + - 50 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - COUNT ( ALL + - 50 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + 92
----

query I rowsort
SELECT ALL + + 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT ALL ( + col2 ), col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + SUM( DISTINCT - - 65 ) * - 24 + - 80 FROM tab2 AS cor0
----
-1640

skipif mysql # not compatible
query I rowsort label-7810
SELECT + SUM ( DISTINCT - - 65 ) * - 24 + - 80 FROM tab2 AS cor0
----
-1640

query I rowsort
SELECT + ( - col2 ) * - 71 * + col1 + + + col2 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
14920
270344
7128

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT DISTINCT + + COUNT( * ) col2, - 20 AS col2 FROM tab2 WHERE NOT + 86 IS NULL
----
3
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7812
SELECT DISTINCT + + COUNT ( * ) col2, - 20 AS col2 FROM tab2 WHERE NOT + 86 IS NULL
----
3
-20

query I rowsort
SELECT + col1 * col2 * + col1 AS col1 FROM tab0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7814
SELECT DISTINCT col2, col1, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - col2 * + - col0 + - + 88 + + 0 + + col1 * + - 85 AS col1 FROM tab0
----
9 values hashing to 26759ac02f69050e5b079e8ad2147627

skipif mysql # not compatible
query III rowsort label-7814
SELECT DISTINCT col2, col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - col2 * + - col0 + - + 88 + + 0 + + col1 * + - 85 AS col1 FROM tab0
----
9 values hashing to 26759ac02f69050e5b079e8ad2147627

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + MIN( ALL col1 ) * 30 FROM tab2
----
1530

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + MIN ( ALL col1 ) * 30 FROM tab2
----
1530

query I rowsort
SELECT + 80 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 + + col2 - + col0 + + col0 ) AND + 72
----

query I rowsort
SELECT ALL col0 + ( + - col2 ) FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT DISTINCT + col1 AS col0, 78 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + COUNT( * ) * SUM( col0 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
552

skipif mysql # not compatible
query I rowsort label-7819
SELECT + COUNT ( * ) * SUM ( col0 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 62 IS NULL )
----

query I rowsort
SELECT + - 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT DISTINCT - 10 * - col0 / - - CAST( + + col1 AS SIGNED ) * CAST( NULL AS SIGNED ) - col0 - col1 * + 89 - - col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - 10 * - col0 / - - CAST ( + + col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) - col0 - col1 * + 89 - - col0 AS col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 = 41 + + - 45 + + col2 * col2 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT - MAX( col2 ) + + 49 AS col0 FROM tab2 AS cor0 WHERE - 63 * - col0 - col0 IN ( - + 12, - col2, + + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT - MAX ( col2 ) + + 49 AS col0 FROM tab2 AS cor0 WHERE - 63 * - col0 - col0 IN ( - + 12, - col2, + + 61 )
----
NULL

query II rowsort
SELECT col1 - col2, + col0 FROM tab0 cor0
----
-98
97
11
87
34
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL COUNT( 84 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL COUNT ( 84 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL >= + + 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT - ( 11 ) FROM tab0 WHERE - ( col1 ) NOT BETWEEN - 81 AND - 57 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - ( 11 ) FROM tab0 WHERE - ( col1 ) NOT BETWEEN - 81 AND - 57 / - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - 20
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 <= - - col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7831
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 18 - + + col1 - - col2 + - ( - col1 ) * + col0 * col2 + + col1 NOT IN ( - CAST( 38 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-7831
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 18 - + + col1 - - col2 + - ( - col1 ) * + col0 * col2 + + col1 NOT IN ( - CAST ( 38 AS INTEGER ), col1 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col2 > NULL OR NOT NULL BETWEEN + 60 AND + + ( 19 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL - MIN( - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - MIN ( - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7835
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT MIN( DISTINCT + 54 ) AS col2, - ( COUNT( * ) ) FROM tab1 AS cor0
----
54
-3

skipif mysql # not compatible
query II rowsort label-7836
SELECT MIN ( DISTINCT + 54 ) AS col2, - ( COUNT ( * ) ) FROM tab1 AS cor0
----
54
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 53 AND 57 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + - MAX( - 59 ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + - MAX ( - 59 ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL 7 + col0 + col1 FROM tab2 AS cor0
----
104
148
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - MIN( + 73 ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col2 AND + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - MIN ( + 73 ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col2 AND + 38
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - 84
----

query I rowsort
SELECT ALL + 86 * + col1 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT COUNT( * ) + 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7843
SELECT COUNT ( * ) + 1 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * - - col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + 87 * + + ( 16 ) AS col1 FROM tab0 AS cor0
----
1392

query I rowsort
SELECT DISTINCT + - 57 + col0 FROM tab1 AS cor0
----
-6
28
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL - - col2 * - col0 * col2 + + CAST( NULL AS SIGNED ) + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT ALL - - col2 * - col0 * col2 + + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT + MAX( - + col1 ) - 36 AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT + MAX ( - + col1 ) - 36 AS col1 FROM tab0
----
-37

query I rowsort
SELECT 32 - + 31 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 95 * - 33 * - col1 FROM tab2
----
159885
210045
241395

query I rowsort
SELECT 44 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 27 * + col2 * col1 - + - 52 - - 64 FROM tab2
----
105038
31787
83276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT COUNT( * ) + 49 + - - CAST( 13 AS SIGNED ) FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-7855
SELECT COUNT ( * ) + 49 + - - CAST ( 13 AS INTEGER ) FROM tab0 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT - col0 DIV + + col0 + + + col1 + + + CAST( - 30 AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
-1480
-1944
-2234

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - col0 / + + col0 + + + col1 + + + CAST ( - 30 AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
-1480
-1944
-2234

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL - COUNT( ALL + 93 ) * - COUNT( * ) * + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - COUNT ( ALL + 93 ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT 11 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT 11 / - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT MIN( - 12 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7860
SELECT MIN ( - 12 ) AS col2 FROM tab1
----
-12

query I rowsort
SELECT ALL + ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 + + col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 28 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE + 17 + - col0 * col1 <> + - ( - col2 ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 73 AS col2, 15 AS col2 FROM tab2
----
73
15
73
15
73
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL COUNT( - + 42 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL COUNT ( - + 42 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT col1, 23 * col2 + + - col0 + + col0 AS col2 FROM tab1
----
14
2208
47
1564
5
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT COUNT( * ) + + - 10 AS col2 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT COUNT ( * ) + + - 10 AS col2 FROM tab1 cor0
----
-7

query II rowsort
SELECT ALL - 76 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-76
14
-76
47
-76
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT 10 * - - ( + - col1 ) AS col1 FROM tab0
----
-10
-210
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT ALL 1 - + col2 DIV - - 18 AS col0 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL 1 - + col2 / - - 18 AS col0 FROM tab1
----
-2
-2
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT DISTINCT 73 + CAST( NULL AS SIGNED ) * + - 57 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT 73 + CAST ( NULL AS INTEGER ) * + - 57 FROM tab1, tab2 AS cor0
----
NULL

query II rowsort
SELECT ( + + 27 ) * col0 + - col1, 3 AS col0 FROM tab1
----
1363
3
2290
3
2410
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 52 - 40 / + 63
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL >= 62 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT 97 - - col1 * - + col2 * + col2 DIV col2 col2 FROM tab1
----
-1247
-198
-3099

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT 97 - - col1 * - + col2 * + col2 / col2 col2 FROM tab1
----
-1247
-198
-3099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT 61 DIV 8 + - COUNT( ALL + ( 95 ) ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7879
SELECT 61 / 8 + - COUNT ( ALL + ( 95 ) ) FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT - 82 * + - ( - col2 ) * - 55 + - col2 + + col0 + + + col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT - 82 * + - ( - col2 ) * - 55 + - col2 + + col0 + + + col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * - - col1 AS col1 FROM tab2
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - 58 * - - COUNT( * ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-7882
SELECT - 58 * - - COUNT ( * ) FROM tab2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL SUM( + 50 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL SUM ( + 50 ) FROM tab1 AS cor0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT + + ( - CAST( + MAX( + col1 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7884
SELECT + + ( - CAST ( + MAX ( + col1 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT - SUM( - 6 ) + + + COUNT( * ) + - MAX( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT - SUM ( - 6 ) + + + COUNT ( * ) + - MAX ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL 53 * COUNT( * ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL 53 * COUNT ( * ) FROM tab1 AS cor0
----
159

query I rowsort
SELECT DISTINCT 92 * - + 3 FROM tab0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT ALL + col0 DIV - ( + - col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + col0 / - ( + - col2 ) FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL + 30 DIV - col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + 30 / - col0 FROM tab0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + 45 DIV - + col1 + - 22 + - col1 * 99 FROM tab0 AS cor0
----
-166
-2103
-8041

skipif mysql # not compatible
query I rowsort label-7891
SELECT + 45 / - + col1 + - 22 + - col1 * 99 FROM tab0 AS cor0
----
-166
-2103
-8041

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 53 / - col2 BETWEEN 84 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col1 NOT BETWEEN NULL AND + + 73 + - - col1 + col2 + + col0 * + + 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT DISTINCT - + CAST( ( - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT - + CAST ( ( - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT ALL + col1 + - 91 FROM tab0 AS cor0
----
-10
-70
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7897
SELECT ALL + col0 / - 46 + - + CAST( NULL AS DECIMAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + col0 / - 46 + - + CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 15 + - 7 * + - 33 * col2 - - col0 AS col0 FROM tab1 cor0 WHERE col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col0
----

query I rowsort
SELECT - col2 + - 58 AS col2 FROM tab2
----
-116
-81
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT 49 - - + COUNT( * ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT 49 - - + COUNT ( * ) FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT COUNT( * ) * 10 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7902
SELECT COUNT ( * ) * 10 FROM tab1
----
30

query III rowsort
SELECT * FROM tab2 WHERE + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT COUNT( * ), 3 + + + 7 AS col2 FROM tab2
----
3
10

skipif mysql # not compatible
query II rowsort label-7904
SELECT COUNT ( * ), 3 + + + 7 AS col2 FROM tab2
----
3
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT 10 * - COUNT( DISTINCT col2 ) AS col0, + 86 AS col0 FROM tab1
----
-30
86

skipif mysql # not compatible
query II rowsort label-7905
SELECT 10 * - COUNT ( DISTINCT col2 ) AS col0, + 86 AS col0 FROM tab1
----
-30
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT 28 * + - CAST( - - col2 AS SIGNED ) FROM tab2
----
-1120
-1624
-644

skipif mysql # not compatible
query I rowsort label-7906
SELECT 28 * + - CAST ( - - col2 AS INTEGER ) FROM tab2
----
-1120
-1624
-644

query III rowsort
SELECT * FROM tab0 WHERE + ( 42 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col0 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col0 AND + col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7909
SELECT DISTINCT - 66 AS col1, + 51 / MIN( CAST( NULL AS SIGNED ) ) * + - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7909
SELECT DISTINCT - 66 AS col1, + 51 / MIN ( CAST ( NULL AS INTEGER ) ) * + - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-66
NULL

query I rowsort
SELECT ALL 95 - - col1 + col0 * + - 10 FROM tab1 AS cor0
----
-401
-750
-768

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( 98 ) = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 20 = 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * - ( + 18 ) * + col1 AS col1, 45 - + 4 + + 10 FROM tab2 AS cor0
----
-21114
51
-55440
51
-69948
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT 56 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT 56 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7916
SELECT + SUM( DISTINCT ( - + col0 ) ) DIV COUNT( * ) col1 FROM tab2
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7916
SELECT + SUM ( DISTINCT ( - + col0 ) ) / COUNT ( * ) col1 FROM tab2
----
-61

query I rowsort
SELECT - col0 * - 26 FROM tab1
----
1326
2210
2366

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( - 22 ) AS col2 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 64 AS col1, 22 col0 FROM tab0
----
64
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT ALL + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col2 + + 83 AS col0 FROM tab0 AS cor0
----
130
182
93

query I rowsort
SELECT - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - + COUNT( * ) + + 40 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - + COUNT ( * ) + + 40 FROM tab2 AS cor0
----
37

query II rowsort
SELECT DISTINCT col1 + - + col1, col2 FROM tab2 AS cor0 WHERE col2 * col0 <> - col1
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT CAST( - - 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7927
SELECT CAST ( - - 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NOT ( - col2 - + ( - + CAST( - col0 AS SIGNED ) ) ) IS NULL )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NOT ( - col2 - + ( - + CAST ( - col0 AS INTEGER ) ) ) IS NULL )
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * + col2 col1 FROM tab2 cor0
----
368
640
928

query II rowsort
SELECT + - 69, + col0 FROM tab0 AS cor0
----
-69
15
-69
87
-69
97

query I rowsort
SELECT DISTINCT - 15 * col2 - + col2 AS col0 FROM tab1 AS cor0 WHERE 58 - + col1 - col1 IS NULL
----

query I rowsort
SELECT ALL + ( - col1 ) + + col1 + + col1 FROM tab1
----
14
47
5

query II rowsort
SELECT + col1 - + col1, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - COUNT( * ) - + 72 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7934
SELECT - COUNT ( * ) - + 72 FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL COUNT( * ) - + 42 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL COUNT ( * ) - + 42 FROM tab2
----
-39

query I rowsort
SELECT + col0 - - 82 AS col1 FROM tab0
----
169
179
97

query I rowsort
SELECT + col1 + + ( + 64 ) AS col2 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT col2 + + col1 * 86 AS col1 FROM tab2 AS cor0
----
4409
5820
6662

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT - COUNT( * ) * - - COUNT( * ), + 36 col1 FROM tab2 AS cor0
----
-9
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7939
SELECT - COUNT ( * ) * - - COUNT ( * ), + 36 col1 FROM tab2 AS cor0
----
-9
36

query II rowsort
SELECT DISTINCT col2 AS col1, + 86 AS col1 FROM tab2
----
23
86
40
86
58
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7941
SELECT DISTINCT + + 18 col0, + col0 + - CAST( NULL AS SIGNED ) + - 24 FROM tab1 AS cor0
----
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7941
SELECT DISTINCT + + 18 col0, + col0 + - CAST ( NULL AS INTEGER ) + - 24 FROM tab1 AS cor0
----
18
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT 36 * COUNT( * ) * ( - COUNT( * ) ) + + 60 AS col1 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT 36 * COUNT ( * ) * ( - COUNT ( * ) ) + + 60 AS col1 FROM tab2 AS cor0
----
-264

query II rowsort
SELECT - 78, col2 AS col0 FROM tab2 WHERE NOT col2 >= 47
----
-78
23
-78
40

query I rowsort
SELECT - col2 + - col2 * + col1 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ALL 66 + - col2 AS col1 FROM tab2
----
26
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT + COUNT( * ) + + MIN( ALL ( + + col1 ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7947
SELECT + COUNT ( * ) + + MIN ( ALL ( + + col1 ) ) FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT - - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - - col0 + + col0 * 24 FROM tab1 AS cor0
----
1275
2125
2275

query I rowsort
SELECT col0 + - - col0 * + col0 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - ( + + col2 ) FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT 3 + col1 AS col1 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7955
SELECT ALL + COUNT( * ) * 56 * - - SUM( DISTINCT + col1 ) AS col0 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + COUNT ( * ) * 56 * - - SUM ( DISTINCT + col1 ) AS col0 FROM tab1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL 97 * - CAST( NULL AS SIGNED ) - + + 77 + - COUNT( * ) * - - SUM( + 25 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL 97 * - CAST ( NULL AS INTEGER ) - + + 77 + - COUNT ( * ) * - - SUM ( + 25 ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 * + 8 * - - col1 AS col2 FROM tab0
----
14616
776
9720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7958
SELECT DISTINCT 2 - COUNT( * ) * - + 80 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT 2 - COUNT ( * ) * - + 80 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT - COUNT( * ), + 33 AS col0 FROM tab1
----
-3
33

skipif mysql # not compatible
query II rowsort label-7959
SELECT - COUNT ( * ), + 33 AS col0 FROM tab1
----
-3
33

query I rowsort
SELECT col1 * + + col1 FROM tab2 WHERE NOT col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + COUNT( * ) * MIN( col2 ) * - ( + COUNT( * ) ) AS col1 FROM tab1
----
-531

skipif mysql # not compatible
query I rowsort label-7961
SELECT + COUNT ( * ) * MIN ( col2 ) * - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-531

onlyif mysql # DIV for integer division: 
query II rowsort label-7962
SELECT ALL + + col0 DIV - col2, + col0 DIV 4 DIV + col1 AS col1 FROM tab0 AS cor0
----
-8
1
0
0
0
24

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL + + col0 / - col2, + col0 / 4 / + col1 AS col1 FROM tab0 AS cor0
----
-8
1
0
0
0
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT 48 DIV + SUM( + + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT 48 / + SUM ( + + col0 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT - col0 * CAST( col2 AS SIGNED ) + + 16 FROM tab0 AS cor0
----
-689
-854
-9587

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - col0 * CAST ( col2 AS INTEGER ) + + 16 FROM tab0 AS cor0
----
-689
-854
-9587

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - - MAX( ALL 68 ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7965
SELECT - - MAX ( ALL 68 ) AS col0 FROM tab2 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 49 + + col2 * + - ( - col2 ) / col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 49 + + col2 * + - ( - col2 ) / col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 34 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7969
SELECT 44 DIV + + 78 * + ( col2 ), 31 * - + 7 AS col2 FROM tab2
----
0
-217
0
-217
0
-217

skipif mysql # not compatible
query II rowsort label-7969
SELECT 44 / + + 78 * + ( col2 ), 31 * - + 7 AS col2 FROM tab2
----
0
-217
0
-217
0
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT col0 DIV - 39 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7970
SELECT col0 / - 39 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT MAX( ALL - - 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-7971
SELECT MAX ( ALL - - 63 ) FROM tab0
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7972
SELECT - CAST( col0 AS SIGNED ) DIV col1 col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7972
SELECT - CAST ( col0 AS INTEGER ) / col1 col0 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL col0 * + col0 + col2 - - col1 + + 28 FROM tab1 WHERE + - col1 IS NOT NULL
----
2739
7317
8424

query I rowsort
SELECT 32 * + col1 AS col0 FROM tab0
----
2592
32
672

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT ALL CAST( - col1 AS SIGNED ) * - + col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL CAST ( - col1 AS INTEGER ) * - + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col2 + 22 FROM tab0
----
-25
-77
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL + + CAST( - + 42 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + + CAST ( - + 42 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT 42 + + + 92 FROM tab1 cor0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT COUNT( * ) + + 14 + + 62 AS col1 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-7980
SELECT COUNT ( * ) + + 14 + + 62 AS col1 FROM tab0 cor0
----
79

query I rowsort
SELECT - + col0 + - col0 + - 18 AS col0 FROM tab2 cor0
----
-110
-146
-168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 79 * + 36 IS NOT NULL AND NOT col2 >= NULL
----

query I rowsort
SELECT 38 * - 66 + + col0 AS col2 FROM tab0 AS cor0
----
-2411
-2421
-2493

query I rowsort
SELECT DISTINCT - 48 + - col0 * - col0 FROM tab2 AS cor0
----
2068
4048
5577

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - COUNT( * ) + + SUM( ALL + col1 ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7985
SELECT - COUNT ( * ) + + SUM ( ALL + col1 ) AS col1 FROM tab0
----
100

query I rowsort
SELECT - 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + + COUNT( * ) * + 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
486

skipif mysql # not compatible
query I rowsort label-7987
SELECT + + COUNT ( * ) * + 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
486

query I rowsort
SELECT DISTINCT + col0 + 50 + - 91 AS col2 FROM tab0 cor0
----
-26
46
56

query II rowsort
SELECT ALL + + 78 + + col2, col2 * col1 AS col2 FROM tab2 AS cor0
----
101
1173
118
3080
136
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + 85 - + - COUNT( * ) * + COUNT( col2 ) AS col2 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7991
SELECT + 85 - + - COUNT ( * ) * + COUNT ( col2 ) AS col2 FROM tab0 cor0
----
94

query III rowsort
SELECT * FROM tab1 WHERE - 49 * + 26 - - ( + - 38 ) + - col1 * + 47 + - col0 + 16 = - + col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT SUM( ALL col2 ) * 14 AS col2 FROM tab0
----
2184

skipif mysql # not compatible
query I rowsort label-7993
SELECT SUM ( ALL col2 ) * 14 AS col2 FROM tab0
----
2184

query I rowsort
SELECT DISTINCT + col2 * + ( - col0 ) AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT ALL + col2 DIV - 34 AS col2 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + col2 / - 34 AS col2 FROM tab1
----
-1
-2
-2

query II rowsort
SELECT ALL - col1 AS col2, 97 FROM tab1
----
-14
97
-47
97
-5
97

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT + 25, 38 + + + 40 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
25
158

skipif mysql # not compatible
query II rowsort label-7998
SELECT + 25, 38 + + + 40 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
25
158

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT - 18 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-7999
SELECT - 18 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
18

query II rowsort
SELECT - col0 * col0 + - - col2 AS col0, ( - col0 ) FROM tab0 AS cor0
----
-178
-15
-7559
-87
-9310
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 - 43 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + COUNT( * ) * + - MAX( DISTINCT + 39 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-8002
SELECT + COUNT ( * ) * + - MAX ( DISTINCT + 39 ) FROM tab1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + ( + MAX( DISTINCT + ( - col1 ) ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8003
SELECT + ( + MAX ( DISTINCT + ( - col1 ) ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT COUNT( * ) AS col0, - 54 AS col0 FROM tab1
----
3
-54

skipif mysql # not compatible
query II rowsort label-8004
SELECT COUNT ( * ) AS col0, - 54 AS col0 FROM tab1
----
3
-54

query II rowsort
SELECT - col0 AS col2, - 55 AS col0 FROM tab0
----
-15
-55
-87
-55
-97
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - - col2 col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
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-8007
SELECT - + COUNT ( col1 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + col2 * col1 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT + - MAX( ALL + 71 ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8009
SELECT + - MAX ( ALL + 71 ) FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-8010
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL + - CAST( - - 19 AS SIGNED ) col0 FROM tab0 cor0
----
-19
-19
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT ALL + - CAST ( - - 19 AS INTEGER ) col0 FROM tab0 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT DISTINCT COUNT( * ), + 90 AS col1 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-8012
SELECT DISTINCT COUNT ( * ), + 90 AS col1 FROM tab2 AS cor0
----
3
90

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab0, tab2 cor0 WHERE + 54 IS NOT NULL
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8015
SELECT - col0 + CAST( NULL AS DECIMAL ), + col0 + - col1 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-8015
SELECT - col0 + CAST ( NULL AS REAL ), + col0 + - col1 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT + col2 * - col2 + - + 2 FROM tab0
----
-102
-2211
-9803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT ALL - CAST( NULL AS SIGNED ) * + AVG ( ALL + - col1 ) + - 58 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - CAST ( NULL AS INTEGER ) * + AVG ( ALL + - col1 ) + - 58 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + ( 19 ) AS col2 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT ( 23 ) + 83 FROM tab0 cor0
----
106

query I rowsort
SELECT 40 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 73 AND NULL
----

query I rowsort
SELECT - - 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - 88 * - col2 AS col0 FROM tab0
----
4136
8712
880

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT 49 + COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8023
SELECT 49 + COUNT ( * ) FROM tab1
----
52

query I rowsort
SELECT - col2 + + 24 FROM tab2
----
-16
-34
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col2 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT ALL + - col2, col1 AS col0 FROM tab0 cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL - - 60 * + col2 AS col0 FROM tab2 AS cor0
----
1380
2400
3480

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > + 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT DISTINCT 64 * + + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT DISTINCT 64 * + + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - - COUNT( * ) FROM tab0 WHERE - 17 + - col0 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE - 17 + - col0 * col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + - COUNT( * ) + 36 FROM tab0 AS cor0 WHERE NOT NULL >= col1
----
36

skipif mysql # not compatible
query I rowsort label-8033
SELECT + - COUNT ( * ) + 36 FROM tab0 AS cor0 WHERE NOT NULL >= col1
----
36

query I rowsort
SELECT DISTINCT - + col1 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - ( + col0 ) + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT MAX( ALL - + 8 ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8035
SELECT MAX ( ALL - + 8 ) AS col0 FROM tab0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT + + CAST( + ( + col2 ) AS SIGNED ) + - 19 AS col2 FROM tab1 AS cor0
----
40
49
77

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + + CAST ( + ( + col2 ) AS INTEGER ) + - 19 AS col2 FROM tab1 AS cor0
----
40
49
77

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
67

query I rowsort
SELECT ALL + col0 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT DISTINCT + 82 DIV + MIN( + 25 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + 82 / + MIN ( + 25 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT SUM( col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8042
SELECT SUM ( col2 ) col1 FROM tab1
----
223

query II rowsort
SELECT ALL + col1 AS col2, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + col2 + + - 20 FROM tab0
----
-10
27
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT col1 DIV ( col0 ) col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8045
SELECT col1 / ( col0 ) col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8046
SELECT ALL * FROM tab0 WHERE NOT 74 <= + CAST( - - col0 AS SIGNED ) + col0 + - col2 - ( + ( - 88 ) ) * CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8046
SELECT ALL * FROM tab0 WHERE NOT 74 <= + CAST ( - - col0 AS INTEGER ) + col0 + - col2 - ( + ( - 88 ) ) * CAST ( col2 AS REAL )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, + 65 FROM tab0
----
10
65
47
65
99
65

query I rowsort
SELECT 12 + col2 AS col2 FROM tab2 cor0
----
35
52
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 * + 4 - + - col2 - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 * + 4 - + - col2 - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 25 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 25 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT - col2 - - col0 + + 45 + - col0 * + CAST( - ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
2414
4997
5087

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - col2 - - col0 + + 45 + - col0 * + CAST ( - ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
2414
4997
5087

query I rowsort
SELECT DISTINCT - 27 - - col0 FROM tab0
----
-12
60
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT + + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + + 75 * + + 65 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
4875
4875
4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT 80 * AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT 80 * AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT - + MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - + MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT + col0 * col1 AS col1, col1 * - col1 FROM tab1 AS cor0
----
425
-25
4277
-2209
714
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT + 33 DIV col2 * + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT + 33 / col2 * + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + + - 28 + - + col2 AND NULL
----

query I rowsort
SELECT + ( + - 21 ) AS col0 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT ALL 10 * + 32 * - 27 * + 35 FROM tab0 AS cor0
----
-302400
-302400
-302400

query II rowsort
SELECT 77, 24 + - - col2 AS col0 FROM tab2
----
77
47
77
64
77
82

query I rowsort
SELECT ALL + 50 * - col1 AS col0 FROM tab2
----
-2550
-3350
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL + - col0 col0 FROM tab0 WHERE - + CAST( + col1 AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT ALL + - col0 col0 FROM tab0 WHERE - + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT 30 * + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT 30 * + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL - SUM( DISTINCT - 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - SUM ( DISTINCT - 89 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT 37 * - 90 FROM tab2 cor0
----
-3330
-3330
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT - + MIN( DISTINCT - 60 ) * 47 AS col2 FROM tab0 AS cor0
----
2820

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - + MIN ( DISTINCT - 60 ) * 47 AS col2 FROM tab0 AS cor0
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT - COUNT( * ) * - 32 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT - COUNT ( * ) * - 32 FROM tab2 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8073
SELECT DISTINCT col0 col1, col0 DIV 52 + + 21 AS col0 FROM tab2 AS cor0
----
46
21
64
22
75
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8073
SELECT DISTINCT col0 col1, col0 / 52 + + 21 AS col0 FROM tab2 AS cor0
----
46
21
64
22
75
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8074
SELECT col2, - 37 * - ( - CAST( + + 99 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23
-3663
40
-3663
58
-3663

skipif mysql # not compatible
query II rowsort label-8074
SELECT col2, - 37 * - ( - CAST ( + + 99 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23
-3663
40
-3663
58
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT ALL - 5 * col0 * - - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-13005
-36125
-41405

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - 5 * col0 * - - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-13005
-36125
-41405

query I rowsort
SELECT DISTINCT col0 + - 5 * 90 FROM tab2
----
-375
-386
-404

query I rowsort
SELECT ALL 19 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - + 59 NOT IN ( 7 * col1 )
----

query I rowsort
SELECT ( + 42 ) FROM tab1
----
42
42
42

query III rowsort
SELECT * FROM tab2 WHERE - 32 = NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ( + 26 ) AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT + col0 + + 76 * col0 AS col1 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN 10 / 4 AND 5 - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col2 col2 FROM tab0
----
2397
5049
510

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + 78 BETWEEN 17 AND 48 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + COUNT( * ) * 77 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-8089
SELECT + COUNT ( * ) * 77 FROM tab1
----
231

query I rowsort
SELECT DISTINCT - 80 FROM tab1 WHERE ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT 37 * - ( col1 DIV - col2 ) AS col2 FROM tab2
----
37
37
74

skipif mysql # not compatible
query I rowsort label-8091
SELECT 37 * - ( col1 / - col2 ) AS col2 FROM tab2
----
37
37
74

query I rowsort
SELECT col2 * 26 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - ( + ( - 79 ) ) * - COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - ( + ( - 79 ) ) * - COUNT ( * ) FROM tab1
----
-237

query I rowsort
SELECT ALL ( ( ( + 45 ) ) ) * - 16 AS col2 FROM tab1
----
-720
-720
-720

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * col1 AS col0 FROM tab2 WHERE col1 NOT IN ( col1 + col0 )
----
-2323
-4888
-4967

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT IN ( - 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT - COUNT( ALL 88 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT - COUNT ( ALL 88 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8102
SELECT + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT BETWEEN ( + col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8102
SELECT + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 7 < NULL
----

query I rowsort
SELECT col0 * + ( - col1 ) AS col0 FROM tab2 cor0 WHERE col0 NOT IN ( 71 )
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8105
SELECT - MIN( DISTINCT 43 ) DIV - MAX( col1 ) - + CAST( - COUNT( * ) AS SIGNED ) DIV + 54 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT - MIN ( DISTINCT 43 ) / - MAX ( col1 ) - + CAST ( - COUNT ( * ) AS INTEGER ) / + 54 AS col0 FROM tab2
----
0

query I rowsort
SELECT ( + ( + 85 ) ) AS col1 FROM tab1
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 16 ) BETWEEN + col0 AND col1 + + ( - col1 ) / 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT IN ( 44 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( 31 * col1 )
----

query I rowsort
SELECT DISTINCT + + 13 * + col0 FROM tab1 AS cor0
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - MIN( 16 ) * COUNT( * ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8111
SELECT - MIN ( 16 ) * COUNT ( * ) FROM tab1 cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 86 NOT BETWEEN 52 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 62 FROM tab2 WHERE NOT col0 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT ( ( - 92 ) ) NOT IN ( + 65 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT col2 DIV + - col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8115
SELECT col2 / + - col1 AS col2 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 26 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + COUNT( * ) FROM tab0 WHERE ( NULL ) > 5 / col0 OR NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT + COUNT ( * ) FROM tab0 WHERE ( NULL ) > 5 / col0 OR NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT ( SUM( - CAST( NULL AS SIGNED ) ) ) / COUNT( * ) FROM tab1 WHERE 0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT ( SUM ( - CAST ( NULL AS INTEGER ) ) ) / COUNT ( * ) FROM tab1 WHERE 0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) IN ( col1 * - ( - col2 ) + 30 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + col2 < + ( - col2 )
----
87
21
10

query I rowsort
SELECT ALL ( 5 ) AS col2 FROM tab0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8122
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 17 ) + + col0 * CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND - 12
----

skipif mysql # not compatible
query III rowsort label-8122
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 17 ) + + col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND - 12
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8124
SELECT + COUNT( - + CAST( - 39 AS SIGNED ) ) DIV - 33 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT + COUNT ( - + CAST ( - 39 AS INTEGER ) ) / - 33 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 51 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - 57 + - ( + 25 ) FROM tab0
----
-82
-82
-82

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col1 ) + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT 88 + + + COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-8129
SELECT 88 + + + COUNT ( * ) FROM tab2
----
91

query I rowsort
SELECT col2 + - + 85 - - col0 + + col0 * + 73 AS col1 FROM tab0
----
1072
6363
7192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 80
----

query I rowsort
SELECT 68 + ( - + col0 ) + ( + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-28
134
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 14 + - 2 AND col2 * - 14 + - col0 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 + ( col2 ) IN ( col1 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 + ( col2 ) IN ( col1 + - col0 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 58 NOT IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 47 + + + 12 AS col0 FROM tab2 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8138
SELECT + MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8139
SELECT + SUM( DISTINCT - 54 ) + CAST( 41 AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) BETWEEN 72 AND ( col2 * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT + SUM ( DISTINCT - 54 ) + CAST ( 41 AS REAL ) AS col0 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) BETWEEN 72 AND ( col2 * - 0 )
----
NULL

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( - 7 - - - 22 ) IS NULL
----

query I rowsort
SELECT ALL 77 + - - 64 * 26 FROM tab1 cor0
----
1741
1741
1741

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + + MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8143
SELECT + + MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 49 * - + 54 FROM tab0
----
-2646

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8145
SELECT - CAST( NULL AS DECIMAL ) - - COUNT( * ) + + COUNT( * ) * + 50 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT - CAST ( NULL AS REAL ) - - COUNT ( * ) + + COUNT ( * ) * + 50 FROM tab2
----
NULL

query II rowsort
SELECT + 34 + + 5 AS col1, + 72 AS col0 FROM tab2 AS cor0
----
39
72
39
72
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + - COUNT( * ) + + 58 AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8147
SELECT + - COUNT ( * ) + + 58 AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT - + col1 * - + col0 * + 42 + - 33 FROM tab1 AS cor0
----
17817
179601
29955

query I rowsort
SELECT ALL - - 81 * + ( + col2 ) * - + col0 + col1 + - 41 AS col1 FROM tab2 AS cor0
----
-207324
-352324
-85688

query I rowsort
SELECT ALL 29 AS col2 FROM tab1 AS cor0 WHERE ( col1 * + - col1 - + col2 ) <> - col2
----
29
29
29

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( + + col2 ) OR - 9 <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 32 + + 37 + ( - 27 ) * - col0 ) NOT IN ( - 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * - col2 col2 FROM tab0 AS cor0 WHERE col0 <= - - col2 AND NOT NULL = ( - ( ( + 35 ) ) + col0 )
----

query I rowsort
SELECT - col0 * + 74 + + - 33 * - 48 FROM tab2 cor0
----
-1820
-3152
-3966

query II rowsort
SELECT - 2, col1 AS col2 FROM tab1 AS cor0
----
-2
14
-2
47
-2
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT + + 65 * + col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT + + 65 * + col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT + 46 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 46 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL col0, 50 FROM tab2
----
46
50
64
50
75
50

query I rowsort
SELECT ALL - 89 + + 99 FROM tab1
----
10
10
10

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 - - 0 * + - col2 + col0 NOT BETWEEN - ( col2 ) / - col1 AND col2 + + 52
----
87
21
10
97
1
99

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col2 >= + col1 * - col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL ( COUNT( 48 ) ) + - MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL ( COUNT ( 48 ) ) + - MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
13

query II rowsort
SELECT - col1 + - 31, - col1 + 13 AS col2 FROM tab2 cor0
----
-108
-64
-82
-38
-98
-54

query II rowsort
SELECT col2 * - col0 AS col2, 21 FROM tab2
----
-1058
21
-2560
21
-4350
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT MAX( ALL + + col2 ) * + 34, 68 AS col2 FROM tab0
----
3366
68

skipif mysql # not compatible
query II rowsort label-8167
SELECT MAX ( ALL + + col2 ) * + 34, 68 AS col2 FROM tab0
----
3366
68

query I rowsort
SELECT col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 * - + 83 AS col1 FROM tab0
----
-1743
-6723
-83

query II rowsort
SELECT DISTINCT + col0 * - 96 AS col0, col0 FROM tab2
----
-4416
46
-6144
64
-7200
75

query I rowsort
SELECT + 32 FROM tab0 cor0 WHERE - col0 * - 4 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT ALL + COUNT( + ( - col2 ) ) + MAX( - 4 ) + + + MIN( ALL col2 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + COUNT ( + ( - col2 ) ) + MAX ( - 4 ) + + + MIN ( ALL col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT - + 60 + 75 FROM tab0 AS cor0
----
15
15
15

query II rowsort
SELECT DISTINCT + + col1 - col0, col0 AS col2 FROM tab1 cor0
----
-37
51
-44
91
-80
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL 55 + + ( - CAST( NULL AS SIGNED ) ) + + + col2 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 55 + + ( - CAST ( NULL AS INTEGER ) ) + + + col2 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + 21 - + COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + 21 - + COUNT ( * ) AS col1 FROM tab0
----
18

query I rowsort
SELECT ( + + 38 ) AS col0 FROM tab1
----
38
38
38

query I rowsort
SELECT ALL 5 - + col0 FROM tab0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT 44 * - COUNT( * ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-8179
SELECT 44 * - COUNT ( * ) FROM tab0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT DISTINCT - ( col1 ) DIV + 31 - col0 FROM tab2
----
-47
-66
-77

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - ( col1 ) / + 31 - col0 FROM tab2
----
-47
-66
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL COUNT( * ) DIV - + SUM( DISTINCT col2 ) * MIN( - 90 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL COUNT ( * ) / - + SUM ( DISTINCT col2 ) * MIN ( - 90 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - 62 * + col0 FROM tab1
----
-3162
-5270
-5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * 22 col1 FROM tab2
----
1122
1122
1122

query I rowsort
SELECT DISTINCT + + col1 * + + 80 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-35280
-524880
-80

query I rowsort
SELECT + 16 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - + 8 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT - - 57 AS col1 FROM tab0 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT + + 23 DIV ( col2 ) FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8189
SELECT + + 23 / ( col2 ) FROM tab0 cor0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8190
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8190
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - MAX( - col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - MAX ( - col0 ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT col0 AS col1, - 96 FROM tab0
----
15
-96
87
-96
97
-96

query II rowsort
SELECT DISTINCT + col1 AS col2, 90 FROM tab2
----
51
90
67
90
77
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT CAST( - - 35 AS SIGNED ) AS col1 FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8194
SELECT CAST ( - - 35 AS INTEGER ) AS col1 FROM tab2
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * - col0 col2 FROM tab0
----
1067
165
957

query I rowsort
SELECT DISTINCT 91 + + col1 - ( - col1 ) FROM tab1
----
101
119
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 / - - ( - + ( - col1 ) ) > + + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - + 64 AND ( + - 92 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + 29 + 79 + - - col2 * - col1 <= + - col0 * - col1
----

query II rowsort
SELECT DISTINCT - 8 AS col1, + 2 AS col0 FROM tab2 cor0
----
-8
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT - 42 DIV - col0 * + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 42 / - col0 * + col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT - col2 AS col0, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN - ( - 87 ) AND ( col2 * ( col0 ) - - - ( col2 ) + col0 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL + + COUNT( col0 ) - - COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + + COUNT ( col0 ) - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT ALL col0 * 21 DIV - col0 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL col0 * 21 / - col0 FROM tab1
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL col1 FROM tab1 WHERE ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL col1 FROM tab1 WHERE ( NULL ) > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 - ( - col1 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL MAX( + + col2 ) FROM tab2 WHERE NOT NULL < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL MAX ( + + col2 ) FROM tab2 WHERE NOT NULL < + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT ALL col2 * + - 71 * + 59 * - ( - + CAST( - 73 AS SIGNED ) ) AS col0 FROM tab2
----
12231880
17736226
7033331

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL col2 * + - 71 * + 59 * - ( - + CAST ( - 73 AS INTEGER ) ) AS col0 FROM tab2
----
12231880
17736226
7033331

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8210
SELECT DISTINCT + col1 * col2 * col0 * CAST( - col2 AS SIGNED ) AS col0, - col0 col2 FROM tab2
----
-1241034
-46
-16904100
-75
-7884800
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8210
SELECT DISTINCT + col1 * col2 * col0 * CAST ( - col2 AS INTEGER ) AS col0, - col0 col2 FROM tab2
----
-1241034
-46
-16904100
-75
-7884800
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT + SUM( ALL - col2 ) * + 25 * + COUNT( * ) FROM tab1 AS cor0
----
-16725

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + SUM ( ALL - col2 ) * + 25 * + COUNT ( * ) FROM tab1 AS cor0
----
-16725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8212
SELECT ALL * FROM tab2 WHERE - ( - CAST( - - 13 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8212
SELECT ALL * FROM tab2 WHERE - ( - CAST ( - - 13 AS INTEGER ) ) <= NULL
----

query II rowsort
SELECT DISTINCT col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + col0 + + 71 + - ( 45 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL - COUNT( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - COUNT ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 94 * - 16 * - - col0 col1 FROM tab0 cor0
----
145888
1827360
2747808

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL - 94 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - 94 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT 2 * - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
2116
5120
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + MAX( ALL - - 55 ) * + 94 FROM tab0 AS cor0
----
5170

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + MAX ( ALL - - 55 ) * + 94 FROM tab0 AS cor0
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT + COUNT( * ) * - 64 AS col0 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8220
SELECT + COUNT ( * ) * - 64 AS col0 FROM tab0 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT - - 25 DIV - 91 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT - - 25 / - 91 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * col2 * 46 FROM tab2 AS cor0
----
141680
178756
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT ALL col1 DIV col0 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL col1 / col0 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * 67 FROM tab2 AS cor0
----
3417
4489
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 98 * - 22 * + + col1 col0 FROM tab2 AS cor0
----
-2528988
-6640480
-8378216

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT - - SUM( + - 29 ) AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT - - SUM ( + - 29 ) AS col2 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + MIN( col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8228
SELECT + MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + ( - 83 ) + - col2 + - col2
----

query I rowsort
SELECT + 93 * + + 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 752ca2c427a939e3561b20802ba07b67

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col1 + + 33 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) = NULL
----

query I rowsort
SELECT - 20 + - - col0 FROM tab2 AS cor0
----
26
44
55

query I rowsort
SELECT + - 21 + - - col1 AS col2 FROM tab2 AS cor0
----
30
46
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 + col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 35 col2, col2 FROM tab2 cor0
----
35
23
35
40
35
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + 78 + + + 71 - + 31 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - - col0 + + - col2 FROM tab1 AS cor0
----
111
114
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 17 BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, ( + 50 ) - 2 col1 FROM tab0
----
1
48
21
48
81
48

query III rowsort
SELECT * FROM tab1 WHERE NOT - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 12 AND + 26 / - col2
----

query II rowsort
SELECT - col2, ( - - col1 ) AS col2 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - 11 * - col2 AS col1 FROM tab0
----
1089
110
517

query II rowsort
SELECT - col1 AS col2, - col0 AS col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT + col0, - col1 * - ( - 25 ) AS col1 FROM tab1
----
51
-350
85
-125
91
-1175

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 + col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 48 * - + 28 + - col2 FROM tab2 AS cor0
----
-1367
-1384
-1402

query I rowsort
SELECT ALL 8 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 93 / + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + col1 > + col2
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + - 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + ( + 72 ), col0 * + 71 * + + col2 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT + 71 DIV col2 + col2 AS col1 FROM tab0 cor0
----
17
48
99

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + 71 / col2 + col2 AS col1 FROM tab0 cor0
----
17
48
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT - 87 * - + 54, SUM( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
4698
-121

skipif mysql # not compatible
query II rowsort label-8256
SELECT - 87 * - + 54, SUM ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
4698
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ( + - 82 ) * - ( - + MAX( ALL - - col0 ) ) FROM tab1
----
-7462

skipif mysql # not compatible
query I rowsort label-8257
SELECT ( + - 82 ) * - ( - + MAX ( ALL - - col0 ) ) FROM tab1
----
-7462

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT 17 * + 0 DIV + + 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT 17 * + 0 / + + 82 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT col2 DIV - 72 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8259
SELECT col2 / - 72 col0 FROM tab0
----
-1
0
0

query II rowsort
SELECT - 56 AS col0, + 21 + + col1 * + col0 AS col1 FROM tab1
----
-56
4298
-56
446
-56
735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT - 46, - col2 + + ( + + CAST( + + CAST( col1 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1
----
-46
-21
-46
-54
-46
-82

skipif mysql # not compatible
query II rowsort label-8261
SELECT - 46, - col2 + + ( + + CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1
----
-46
-21
-46
-54
-46
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( col2, CAST( NULL AS SIGNED ) * - col0 * + col0 * + col1, + col2, - col0 * + + col2, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( col2, CAST ( NULL AS INTEGER ) * - col0 * + col0 * + col1, + col2, - col0 * + + col2, + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + + + col2 col2 FROM tab1
----
129
138
166

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <> + 14
----

query I rowsort
SELECT - col1 / + col1 - - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> + col2
----

query II rowsort
SELECT + col0 - + + 6 AS col1, + col2 + + 22 FROM tab1 AS cor0
----
45
118
79
81
85
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - COUNT( * ) * + 39 - 72 AS col1 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8269
SELECT - COUNT ( * ) * + 39 - 72 AS col1 FROM tab2 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8270
SELECT - COUNT( * ) DIV + - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8270
SELECT - COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT MAX( 68 ) AS col1 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8271
SELECT MAX ( 68 ) AS col1 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + MIN( ALL - 30 ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8272
SELECT + MIN ( ALL - 30 ) AS col0 FROM tab1 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-8273
SELECT ALL col0 DIV + + col0, - col1 AS col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL col0 / + + col0, - col1 AS col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT ALL + - ( COUNT( * ) ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL + - ( COUNT ( * ) ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( + col1 ) IN ( + col0 + col0 + - col0 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8276
SELECT ALL * FROM tab1 WHERE + col0 * CAST( + 62 AS SIGNED ) + 93 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8276
SELECT ALL * FROM tab1 WHERE + col0 * CAST ( + 62 AS INTEGER ) + 93 IS NULL
----

query I rowsort
SELECT ALL + 96 AS col2 FROM tab0 WHERE NULL BETWEEN + - 18 * col1 AND + - 72 + col0 + + col1 / - + col2
----

query II rowsort
SELECT + 85, - col2 AS col0 FROM tab0
----
85
-10
85
-47
85
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 37 * 64 - - 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8280
SELECT DISTINCT - MIN( DISTINCT - + ( + 49 ) ) AS col2, + 13 + - 5 FROM tab2
----
49
8

skipif mysql # not compatible
query II rowsort label-8280
SELECT DISTINCT - MIN ( DISTINCT - + ( + 49 ) ) AS col2, + 13 + - 5 FROM tab2
----
49
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 34 NOT BETWEEN NULL AND ( - col1 ) - 75 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL - col2 DIV + ( + col2 ) AS col2 FROM tab2 WHERE - 93 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - col2 / + ( + col2 ) AS col2 FROM tab2 WHERE - 93 IS NOT NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - col1 <= + - col1 + + - col0 + + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IS NULL OR NOT + col0 + + 20 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL - 54 * - COUNT( * ) * - + 79 AS col0 FROM tab2 AS cor0
----
-12798

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - 54 * - COUNT ( * ) * - + 79 AS col0 FROM tab2 AS cor0
----
-12798

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-8287
SELECT ALL - - 39 AS col1, col1 DIV + col2 + col0 + 41 + + + col1 + - 94 * col1 FROM tab2 AS cor0
----
39
-4654
39
-6114
39
-7055

skipif mysql # not compatible
query II rowsort label-8287
SELECT ALL - - 39 AS col1, col1 / + col2 + col0 + 41 + + + col1 + - 94 * col1 FROM tab2 AS cor0
----
39
-4654
39
-6114
39
-7055

query I rowsort
SELECT - - 31 * - - col0 AS col2 FROM tab0 AS cor0
----
2697
3007
465

query III rowsort
SELECT - col1, + col0 + - col0 AS col0, - - col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to 5be30b991ccd1d5eaf8c47b00e3709d9

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL - 41 * + COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
-369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8290
SELECT ALL - 41 * + COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
-369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT + + COUNT( * ) DIV COUNT( * ) FROM tab1 WHERE NOT ( - - col2 ) < + col0
----
1

skipif mysql # not compatible
query I rowsort label-8291
SELECT + + COUNT ( * ) / COUNT ( * ) FROM tab1 WHERE NOT ( - - col2 ) < + col0
----
1

query I rowsort
SELECT + - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT - - col1 + col0 FROM tab2 cor0 WHERE NOT col1 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8293
SELECT - - col1 + col0 FROM tab2 cor0 WHERE NOT col1 <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL + col1 + - - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + col1 + - - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + + ( - - col2 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 81 * col2 < - col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 15 * - col1 AS col0 FROM tab0 AS cor0
----
1455
18225
27405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT - col2 * col2 + - CAST( + + 23 AS SIGNED ) + + + col1 AS col1 FROM tab2 AS cor0
----
-1546
-3320
-501

skipif mysql # not compatible
query I rowsort label-8298
SELECT - col2 * col2 + - CAST ( + + 23 AS INTEGER ) + + + col1 AS col1 FROM tab2 AS cor0
----
-1546
-3320
-501

query I rowsort
SELECT DISTINCT - 4 * + 95 + col0 * col1 - + col0 AS col2 FROM tab1 cor0
----
-40
283
3806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT DISTINCT 45 FROM tab2 WHERE NOT + col1 * - + CAST( NULL AS SIGNED ) + 76 IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT 45 FROM tab2 WHERE NOT + col1 * - + CAST ( NULL AS INTEGER ) + 76 IS NOT NULL
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 22 + + - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + 33 + + COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 33 + + COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT - 81 + + col1 FROM tab1
----
-34
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT + - col2 + + 47 - + 25 FROM tab0 WHERE + col1 * - col1 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8304
SELECT + - col2 + + 47 - + 25 FROM tab0 WHERE + col1 * - col1 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL MIN( ALL - - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8305
SELECT ALL MIN ( ALL - - col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - + 1, + col0 )
----

query I rowsort
SELECT ( + + 56 ) FROM tab2
----
56
56
56

query I rowsort
SELECT - 90 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * - col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8310
SELECT DISTINCT COUNT( * ) / - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL > col0 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT COUNT ( * ) / - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL > col0 * - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL BETWEEN + col1 * + + col0 AND + - 30 / col2 )
----

query I rowsort
SELECT ALL + - col1 + + col1 + col0 + + - 47 FROM tab2 AS cor0
----
-1
17
28

query I rowsort
SELECT - ( - + 31 ) FROM tab0 WHERE - - col0 - + + col1 + ( - + 96 ) = - col1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col1 + ( - col1 ), col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT 21 + col1 + 39, - ( - + col2 ) * + - col1 * col1 + - + 38 / + col0 * + col0 + CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0
----
141
NULL
61
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8316
SELECT 21 + col1 + 39, - ( - + col2 ) * + - col1 * col1 + - + 38 / + col0 * + col0 + CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0
----
141
NULL
61
NULL
81
NULL

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - + ( - col2 ) + col1 NOT BETWEEN ( NULL ) AND 46
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT col1 * 24 / col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 * + col1 IN ( col0 )
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 * + col1 IN ( col0 )
----
1

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - col2 * + 66 + - - 32 FROM tab1 WHERE + col0 IS NOT NULL
----
-3862
-4456
-6304

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + MIN( + + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8324
SELECT + MIN ( + + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT col2 DIV - - 33 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT col2 / - - 33 FROM tab2
----
0
1

query II rowsort
SELECT DISTINCT ( col0 ) AS col1, - 47 FROM tab1 cor0
----
51
-47
85
-47
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL + COUNT( * ) * - + 13 AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + COUNT ( * ) * - + 13 AS col0 FROM tab2 AS cor0
----
-39

query II rowsort
SELECT DISTINCT - + col2, col2 - + - col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE - 5 BETWEEN col0 + col1 AND NULL
----

query I rowsort
SELECT ALL + 43 * col0 * - col1 + + col1 AS col0 FROM tab1
----
-18270
-183864
-30688

query I rowsort
SELECT - 90 - - - col0 + - col2 AS col1 FROM tab2
----
-159
-194
-223

query II rowsort
SELECT ALL col0 AS col1, - 71 FROM tab1
----
51
-71
85
-71
91
-71

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab0 WHERE - ( col2 ) - + 57 * + col0 IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL - 88 * - COUNT( * ) AS col2 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - 88 * - COUNT ( * ) AS col2 FROM tab1
----
264

query I rowsort
SELECT - col2 + + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 50 col0 FROM tab2 AS cor0
----
2300
3200
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT COUNT( - - col2 ) + - - MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8336
SELECT COUNT ( - - col2 ) + - - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT + 58 * - + CAST( NULL AS SIGNED ) + + - AVG ( col0 ) + - - AVG ( DISTINCT 90 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 58 * - + CAST ( NULL AS INTEGER ) + + - AVG ( col0 ) + - - AVG ( DISTINCT 90 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT 60 * ( + - COUNT( * ) ) + + + 94 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT 60 * ( + - COUNT ( * ) ) + + + 94 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL - col1 + - 61 * + + col1 * + + col2 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-12862
-232436
-6140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8340
SELECT * FROM tab2 AS cor0 WHERE col1 = CAST( ( + col1 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8340
SELECT * FROM tab2 AS cor0 WHERE col1 = CAST ( ( + col1 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - 2 + SUM( + col2 ) col2 FROM tab0 AS cor0
----
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT - 2 + SUM ( + col2 ) col2 FROM tab0 AS cor0
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ALL SUM( + col0 ) DIV - + SUM( 61 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL SUM ( + col0 ) / - + SUM ( 61 ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col1 AND col0 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL NOT BETWEEN 59 AND - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT ALL + col0 DIV 72 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + col0 / 72 AS col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8346
SELECT COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * + 56 AS col0 FROM tab1 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * + 56 AS col0 FROM tab1 AS cor0
----
-504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + 16 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT + 38 DIV + 7 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8349
SELECT + 38 / + 7 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT col1 * + 87 AS col0 FROM tab2 AS cor0
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8351
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2, col0, + 35, - - 55, col1 * - - 99 + + col0, + col2, + CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-8351
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2, col0, + 35, - - 55, col1 * - - 99 + + col0, + col2, + CAST ( NULL AS INTEGER ) * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + col2 + - col1 * - - col2 col1 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 81 * - + col0 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT DISTINCT + col2 DIV - 78 col1 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8354
SELECT DISTINCT + col2 / - 78 col1 FROM tab1
----
-1
0

query I rowsort
SELECT col1 + + + 52 FROM tab1 WHERE NOT + - col2 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT - + COUNT( * ) + + - 86 + - COUNT( + 43 ) * + - MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - + COUNT ( * ) + + - 86 + - COUNT ( + 43 ) * + - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8358
SELECT - ( + col1 ) * - + 88, - col1 - + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1232
-65
4136
-138
440
-90

skipif mysql # not compatible
query II rowsort label-8358
SELECT - ( + col1 ) * - + 88, - col1 - + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1232
-65
4136
-138
440
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) + - SUM( DISTINCT + col0 ) + + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-205

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) + - SUM ( DISTINCT + col0 ) + + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-205

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( + + 80, col0 ) )
----

query I rowsort
SELECT ALL col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 92 <= NULL
----

query I rowsort
SELECT DISTINCT - - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 53 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT ALL + 90 DIV + - col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + 90 / + - col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 + - - 2 * + ( + - 87 ) * - + 95 + - 96 AS col2 FROM tab0 AS cor0
----
16435
16455
16515

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT DISTINCT + 31 + + - col2 - + - 27 + + + 12 DIV - col0 FROM tab2 AS cor0
----
0
18
35

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + 31 + + - col2 - + - 27 + + + 12 / - col0 FROM tab2 AS cor0
----
0
18
35

query I rowsort
SELECT ( 60 ) + col0 + + - col1 FROM tab2 AS cor0
----
47
55
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8369
SELECT DISTINCT col2 DIV + 47 - + 50 + - col1 AS col0, col2 * - + ( + + col0 ) FROM tab2 AS cor0
----
-101
-1058
-116
-4350
-127
-2560

skipif mysql # not compatible
query II rowsort label-8369
SELECT DISTINCT col2 / + 47 - + 50 + - col1 AS col0, col2 * - + ( + + col0 ) FROM tab2 AS cor0
----
-101
-1058
-116
-4350
-127
-2560

query I rowsort
SELECT DISTINCT - 39 * col1 + ( + col0 ) AS col2 FROM tab2
----
-1943
-2538
-2939

query I rowsort
SELECT + 20 AS col0 FROM tab2 WHERE - - col1 + - 74 NOT BETWEEN - col2 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + ( COUNT( * ) ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8373
SELECT + ( COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT - COUNT( * ) FROM tab2 WHERE - - 25 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8374
SELECT - COUNT ( * ) FROM tab2 WHERE - - 25 IS NOT NULL
----
-3

query I rowsort
SELECT col1 * - + col0 * col2 AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT + 52 DIV + col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8376
SELECT + 52 / + col2 AS col1 FROM tab2
----
0
1
2

query II rowsort
SELECT 19 * + col2 * - col2 AS col0, + col0 AS col0 FROM tab0
----
-186219
97
-1900
87
-41971
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - - 58 col0 FROM tab2
----
1508
1508
1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT + CAST( 97 AS SIGNED ) * - 90 FROM tab1 AS cor0
----
-8730
-8730
-8730

skipif mysql # not compatible
query I rowsort label-8380
SELECT + CAST ( 97 AS INTEGER ) * - 90 FROM tab1 AS cor0
----
-8730
-8730
-8730

query I rowsort
SELECT + - 77 * - col2 AS col2 FROM tab1 cor0
----
4543
5236
7392

query I rowsort
SELECT DISTINCT - + 22 FROM tab1 cor0
----
-22

query II rowsort
SELECT ALL + 68 AS col0, - col1 * + + col2 * + - ( col1 ) + 56 AS col2 FROM tab2 AS cor0
----
68
237216
68
260418
68
59879

query II rowsort
SELECT ALL col1 AS col0, col2 * 66 AS col1 FROM tab1 AS cor0
----
14
6336
47
4488
5
3894

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 / - 71 * 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - + MAX( + 20 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - + MAX ( + 20 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - 21 * - - COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - 21 * - - COUNT ( * ) FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT MIN( ALL + 85 ) * COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-8389
SELECT MIN ( ALL + 85 ) * COUNT ( * ) FROM tab1
----
255

query I rowsort
SELECT ALL - + col1 + 43 FROM tab2 cor0
----
-24
-34
-8

query I rowsort
SELECT DISTINCT 47 + 9 + col1 FROM tab2 AS cor0
----
107
123
133

query I rowsort
SELECT DISTINCT ( 52 ) + - - col2 FROM tab1 cor0
----
111
120
148

query III rowsort
SELECT * FROM tab0 WHERE + 63 IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8394
SELECT CAST( + COUNT( - + 78 ) AS SIGNED ) + - MAX( + 5 ) DIV - - 95 AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8394
SELECT CAST ( + COUNT ( - + 78 ) AS INTEGER ) + - MAX ( + 5 ) / - - 95 AS col1 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col2 + + + 78 FROM tab1 AS cor0
----
-18
10
19

query II rowsort
SELECT - 31, - col0 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-31
14
-31
47
-31
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT DISTINCT - ( - 5 ) * - CAST( NULL AS SIGNED ) + - + ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - ( - 5 ) * - CAST ( NULL AS INTEGER ) + - + ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 45 + - col1 FROM tab2 AS cor0
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - COUNT( - col1 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8399
SELECT - COUNT ( - col1 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL + SUM( ALL + col1 ) - + 29 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + SUM ( ALL + col1 ) - + 29 AS col2 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT COUNT( * ) - + 97 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8401
SELECT COUNT ( * ) - + 97 FROM tab0
----
-94

query I rowsort
SELECT col0 + 65 AS col2 FROM tab0
----
152
162
80

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - ( + + col2 ) * 9 AS col1 FROM tab2 AS cor0
----
-207
-360
-522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( - - col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT - SUM( - - CAST( - + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8406
SELECT - SUM ( - - CAST ( - + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - col1 * + + 3 FROM tab1
----
-141
-15
-42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT DISTINCT + - 86 AS col2, + COUNT( * ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
-86
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8409
SELECT DISTINCT + - 86 AS col2, + COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-86
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT + CAST( NULL AS SIGNED ) * - - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT + CAST ( NULL AS INTEGER ) * - - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT + CAST( col2 AS SIGNED ) + + 21 + + 82 * - col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3786
-789
-7998

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + + 21 + + 82 * - col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3786
-789
-7998

query I rowsort
SELECT DISTINCT 99 * 3 AS col2 FROM tab1 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 61 * 17 * col2 AS col0, - ( + col0 ) col1 FROM tab2 AS cor0
----
23851
-46
41480
-64
60146
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - + COUNT( * ) * - 70 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8415
SELECT - + COUNT ( * ) * - 70 FROM tab1 AS cor0
----
210

query I rowsort
SELECT DISTINCT - col1 * + + 39 AS col2 FROM tab1 AS cor0
----
-1833
-195
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - + + 98 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - + + 98 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT DISTINCT + 32 DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + 32 / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ( + COUNT( - 52 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8419
SELECT ( + COUNT ( - 52 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT - - COUNT( 73 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - - COUNT ( 73 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 + - 81 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 72 AS col1, 61 AS col0 FROM tab1
----
-72
61
-72
61
-72
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT col2 DIV col2 DIV + ( + 48 ) + + - col0 - - col1 - + col1 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8423
SELECT col2 / col2 / + ( + 48 ) + + - col0 - - col1 - + col1 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT DISTINCT 75 + + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT 75 + + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT col0 + + col2 + col2 * - 23 - + col0 * - 21 AS col1, col2 FROM tab0
----
-44
99
-704
47
1694
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT ALL - 86 * 56 AS col1, MAX( + col1 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4816
80

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL - 86 * 56 AS col1, MAX ( + col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4816
80

query I rowsort
SELECT ALL - col0 + - - 63 FROM tab2 cor0
----
-1
-12
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT + - col0 * 91 DIV + 17 AS col1 FROM tab0 AS cor0
----
-465
-519
-80

skipif mysql # not compatible
query I rowsort label-8428
SELECT + - col0 * 91 / + 17 AS col1 FROM tab0 AS cor0
----
-465
-519
-80

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * + + col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + col0 + + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - 61 + col0 - + 62 * - + col2 AS col2 FROM tab2
----
1411
2483
3610

query I rowsort
SELECT - 81 + 28 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT - - col1 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-8435
SELECT - - col1 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 73 - + - col1 >= - col1 + - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col0 NOT BETWEEN 36 + - col1 + - 29 AND NULL
----

query II rowsort
SELECT 83 + - col2, col0 FROM tab1 AS cor0
----
-13
51
15
91
24
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 - - + col1 * + - col1 + + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 - - + col1 * + - col1 + + + col2 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT + col2 - - col2, col1 AS col2 FROM tab2 AS cor0
----
116
67
46
51
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT + - 81 + - COUNT( + col2 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + - 81 + - COUNT ( + col2 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + - col2 + 77 AS col1 FROM tab2 AS cor0
----
19
37
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT DISTINCT CAST( + 30 AS SIGNED ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT CAST ( + 30 AS INTEGER ) AS col0 FROM tab1
----
30

query I rowsort
SELECT ALL + col0 - + ( - ( - ( + 11 ) ) ) FROM tab0
----
4
76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - MIN( + 32 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - MIN ( + 32 ) FROM tab2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8446
SELECT ALL + col0 * - ( col0 ), col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
9 values hashing to 6b22a7598ff5007bf301a5bca07c9b12

skipif mysql # not compatible
query III rowsort label-8446
SELECT ALL + col0 * - ( col0 ), col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
9 values hashing to 6b22a7598ff5007bf301a5bca07c9b12

query I rowsort
SELECT + - col0 * + 29 / + 16 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 + + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - - COUNT( ALL + ( + col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - - COUNT ( ALL + ( + col2 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 22 * - - col1 / - - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8450
SELECT DISTINCT - - 27, + ( + + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8450
SELECT DISTINCT - - 27, + ( + + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8451
SELECT + SUM( DISTINCT - col2 ) DIV + CAST( + 91 AS SIGNED ) - SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
-200

skipif mysql # not compatible
query I rowsort label-8451
SELECT + SUM ( DISTINCT - col2 ) / + CAST ( + 91 AS INTEGER ) - SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
-200

query III rowsort
SELECT * FROM tab0 WHERE col0 - - - 62 + - - 58 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT MAX( ALL + 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8453
SELECT MAX ( ALL + 66 ) FROM tab0
----
66

query I rowsort
SELECT ALL col2 * - + 31 FROM tab1
----
-1829
-2108
-2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - 85 * 59 col1 FROM tab0
----
-105315
-406215
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL COUNT( DISTINCT col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL COUNT ( DISTINCT col2 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 61 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8458
SELECT - col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT - col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 37 FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL )
----
-1887
-3145
-3367

query I rowsort
SELECT - col0 + + col1 - + - col2 + col0 - col0 * + + col0 FROM tab1 AS cor0
----
-2491
-7161
-8166

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8462
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT col1 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT col1 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT 45 + + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8464
SELECT 45 + + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
48

query I rowsort
SELECT ALL + col2 * + - 80 AS col1 FROM tab2
----
-1840
-3200
-4640

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 72 * col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * + col0 - - - col2 + + col0 * + 37 AS col0 FROM tab1 AS cor0
----
6687
8101
9487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT - COUNT( + 5 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - COUNT ( + 5 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ( - 81 ) - - col2 * col2 * - col2 - ( + + 23 ), col1 + col2 + col0 AS col2 FROM tab0 AS cor0
----
-103927
143
-1104
118
-970403
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT + COUNT( * ) * + 42 - + + COUNT( * ) - - COUNT( * ) + ( - - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT + COUNT ( * ) * + 42 - + + COUNT ( * ) - - COUNT ( * ) + ( - - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - + col1 - - + col2, col2 FROM tab0 cor0
----
-11
10
-34
47
98
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 7 + + col0 + - - 54 * - col1 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + AVG ( ALL + col1 ) AS col2 FROM tab2 WHERE NOT ( NOT - col0 = + + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT MAX( - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-8474
SELECT MAX ( - 86 ) FROM tab1
----
-86

query I rowsort
SELECT + ( + col0 ) * - 23 + - - col0 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
1152
2700
46

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - - 16 AS col2 FROM tab2 AS cor0
----
39
56
74

query I rowsort
SELECT DISTINCT - 27 * col1 + + 80 + + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1236
-312
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * - col2 col1 FROM tab0
----
3243
6831
690

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT ALL - CAST( MIN( ALL + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - CAST ( MIN ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT ALL + 99 * + col0 + col2 + - + 50 + + 59 FROM tab2
----
4586
6385
7492

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT COUNT( * ) * + 95 + + + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-8484
SELECT COUNT ( * ) * + 95 + + + COUNT ( * ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + COUNT( * ) * - - ( MIN( ( - + 24 ) ) ) + - 11 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-8485
SELECT + COUNT ( * ) * - - ( MIN ( ( - + 24 ) ) ) + - 11 FROM tab0
----
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 66 - col2 FROM tab2
----
26
43
8

query I rowsort
SELECT ( + + 37 ) - col0 AS col0 FROM tab2
----
-27
-38
-9

query I rowsort
SELECT ALL 27 AS col1 FROM tab0 WHERE ( ( + - col0 <> + col0 ) )
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT - 27 * - COUNT( * ) - - 1 AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - 27 * - COUNT ( * ) - - 1 AS col2 FROM tab2 AS cor0
----
82

query I rowsort
SELECT col1 + + - 31 FROM tab2 cor0
----
20
36
46

query I rowsort
SELECT + + ( col0 ) * - + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) < col2
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE 74 + - + 1 IS NULL
----

query II rowsort
SELECT - - 44, + col0 FROM tab2 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + 77 AS col1 FROM tab1
----
-4543
-5236
-7392

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + 77 AS col1 FROM tab1
----
-4543
-5236
-7392

query I rowsort
SELECT + + col1 AS col1 FROM tab1 WHERE NOT - col2 + - col2 < col2 / 58 * + col2 - + + 21 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT ALL - 35 DIV ( - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - 35 / ( - col1 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL MAX( ALL - col0 ) * - 51 AS col0 FROM tab0
----
765

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL MAX ( ALL - col0 ) * - 51 AS col0 FROM tab0
----
765

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - + 59 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT + col0 * + 0 * + col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT + COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8503
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8504
SELECT col0 AS col1, + CAST( NULL AS SIGNED ) * + ( + 74 ) col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8504
SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) * + ( + 74 ) col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col2 = + col0 + - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT ALL ( - + 54 ) DIV - 1 FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL ( - + 54 ) / - 1 FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + SUM( ALL - 87 ) AS col2 FROM tab1 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + SUM ( ALL - 87 ) AS col2 FROM tab1 cor0
----
-261

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 77 + - 24 + - - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8509
SELECT 28 DIV 46 * col2 + - 39, 5 AS col0 FROM tab2 AS cor0
----
-39
5
-39
5
-39
5

skipif mysql # not compatible
query II rowsort label-8509
SELECT 28 / 46 * col2 + - 39, 5 AS col0 FROM tab2 AS cor0
----
-39
5
-39
5
-39
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT - col0 DIV col1 * + col1 AS col2 FROM tab1
----
-42
-47
-85

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - col0 / col1 * + col1 AS col2 FROM tab1
----
-42
-47
-85

query I rowsort
SELECT col2 + - - 79 + - 80 AS col2 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8513
SELECT ALL + - CAST( NULL AS DECIMAL ) * + col2 * col1 + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + - CAST ( NULL AS REAL ) * + col2 * col1 + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + + col0 ) AND - - col0 - + - ( + 35 ) * - 49
----

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + 95 ) AS col0, 46 + - col0 FROM tab2 AS cor0
----
-95
-18
-95
-29
-95
0

query I rowsort
SELECT DISTINCT + - 4 * + col0 AS col2 FROM tab0 WHERE - + col0 * + col0 >= - + 39 + - col0 + + col1
----

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL = - col0 * + col1 - 76 * + 12
----

query II rowsort
SELECT col2, 86 + - col2 FROM tab0
----
10
76
47
39
99
-13

query II rowsort
SELECT + col0, col2 AS col1 FROM tab0 WHERE ( 26 NOT BETWEEN - col0 + - col0 + - + col1 + - + ( + + col2 ) * + - col0 AND NULL )
----
15
47
87
10
97
99

query I rowsort
SELECT ALL col1 * - col0 + + + col2 AS col1 FROM tab0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT + 59 + - - col2 AS col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - - COUNT( * ) + - 6 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8524
SELECT - - COUNT ( * ) + - 6 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT ( + col2 + - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - col0 + 48
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT ALL + 12 DIV col1 FROM tab0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + 12 / col1 FROM tab0
----
0
0
12

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT - 69 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8529
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST( NULL AS SIGNED ) BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8529
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST ( NULL AS INTEGER ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col0 * - 11 + - col2 AS col0 FROM tab1
----
465
876
933

query I rowsort
SELECT + ( 27 ) FROM tab0
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8532
SELECT ALL CAST( NULL AS DECIMAL ) * + MIN( DISTINCT + 69 ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL CAST ( NULL AS REAL ) * + MIN ( DISTINCT + 69 ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * col2 + + 43 col2 FROM tab0
----
1033
143
513

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT + 16 DIV - 90 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8534
SELECT + 16 / - 90 + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + 28 FROM tab1 WHERE NULL BETWEEN NULL AND col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL - MAX( DISTINCT col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT MAX( ALL + 92 ) AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-8537
SELECT MAX ( ALL + 92 ) AS col0 FROM tab0
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8538
SELECT ALL 36 AS col2 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN ( NULL ) AND + col1 * col1
----

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 36 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) BETWEEN ( NULL ) AND + col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT ( - 42 ) + col1 AS col2 FROM tab1 WHERE NOT ( + col2 ) + - CAST( NULL AS SIGNED ) / + 47 NOT BETWEEN + 85 * col0 AND col2
----

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT ( - 42 ) + col1 AS col2 FROM tab1 WHERE NOT ( + col2 ) + - CAST ( NULL AS INTEGER ) / + 47 NOT BETWEEN + 85 * col0 AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8540
SELECT + CAST( NULL AS DECIMAL ) * - ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + CAST ( NULL AS REAL ) * - ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - col2 * 50 AS col0 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT + col1 * + 30 AS col0 FROM tab2 AS cor0
----
1530
2010
2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT - col2 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - col2 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT SUM( ALL + col2 ) DIV + 14 AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8545
SELECT SUM ( ALL + col2 ) / + 14 AS col1 FROM tab1 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT DISTINCT + 52 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + 52 / + col2 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL - col1 * CAST( - 50 * 85 AS SIGNED ) + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN 24 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - col1 * CAST ( - 50 * 85 AS INTEGER ) + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT MIN( ALL - 98 ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT MIN ( ALL - 98 ) FROM tab0
----
-98

query III rowsort
SELECT * FROM tab0 WHERE + 31 + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8550
SELECT ALL ( + ( + col1 ) ) * CAST( NULL AS DECIMAL ) + col2 * - ( ( col1 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL ( + ( + col1 ) ) * CAST ( NULL AS REAL ) + col2 * - ( ( col1 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 16 + col1 AS col1 FROM tab2 AS cor0
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + + COUNT( col0 ) * 8 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8552
SELECT + + COUNT ( col0 ) * 8 FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT - 95 + - 16 AS col1 FROM tab0 AS cor0
----
-111
-111
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT - - CAST( NULL AS SIGNED ) + col2 / - ( + col0 ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8555
SELECT - - CAST ( NULL AS INTEGER ) + col2 / - ( + col0 ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * - col0 - + col2 ) >= 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT 75 + + COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8558
SELECT 75 + + COUNT ( * ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT - col0 + + 46 * - col1 FROM tab2 AS cor0
----
-2392
-3157
-3606

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT + COUNT( * ) + 29 col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT + COUNT ( * ) + 29 col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT - 15 FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + SUM( - col2 ) * + MAX( ALL + ( + col2 ) + ( col0 ) ) FROM tab1 AS cor0
----
-35457

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + SUM ( - col2 ) * + MAX ( ALL + ( + col2 ) + ( col0 ) ) FROM tab1 AS cor0
----
-35457

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - 55 BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL > col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT ALL col0 * - 57 / col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL col0 * - 57 / col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL - SUM( - + 86 ) AS col0 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL - SUM ( - + 86 ) AS col0 FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT 69 * - COUNT( * ) AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-8569
SELECT 69 * - COUNT ( * ) AS col1 FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT + SUM( - col2 ) col1 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8570
SELECT + SUM ( - col2 ) col1 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) + - col1 * col2 FROM tab1 AS cor0
----
-1316
-285
-3102

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE - ( + col2 ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 94 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT + ( SUM( DISTINCT CAST( - 75 AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE + + CAST( NULL AS SIGNED ) + col1 * - col1 = - col1 * - col0 OR NULL < ( + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + ( SUM ( DISTINCT CAST ( - 75 AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE + + CAST ( NULL AS INTEGER ) + col1 * - col1 = - col1 * - col0 OR NULL < ( + 50 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8577
SELECT DISTINCT + col1, + col1 + - 76 - CAST( NULL AS DECIMAL ) / + col1 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8577
SELECT DISTINCT + col1, + col1 + - 76 - CAST ( NULL AS REAL ) / + col1 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL ( + + col1 ) * - + col0 * - col1 + - col2 * col0 FROM tab2 AS cor0
----
118588
332325
376896

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 48 ) < + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 61 AND ( - col2 ) * 19
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - col1 )
----

query I rowsort
SELECT 38 * + 71 * + col0 * col2 + col1 FROM tab2 AS cor0
----
11736367
2854535
6906957

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT ALL - + 83 AS col2, SUM( ALL + 56 ) FROM tab1 AS cor0
----
-83
168

skipif mysql # not compatible
query II rowsort label-8583
SELECT ALL - + 83 AS col2, SUM ( ALL + 56 ) FROM tab1 AS cor0
----
-83
168

query I rowsort
SELECT DISTINCT + col1 - col1 AS col0 FROM tab0 AS cor0 WHERE col0 + col1 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
198
20
94

query I rowsort
SELECT - 54 * + + ( - - col2 ) * - col2 FROM tab0 cor0
----
119286
529254
5400

query I rowsort
SELECT DISTINCT - ( 9 ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + COUNT( * ) * 41 + 89 FROM tab2
----
212

skipif mysql # not compatible
query I rowsort label-8588
SELECT + COUNT ( * ) * 41 + 89 FROM tab2
----
212

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + 96 AND col0 + col1 + col0
----
23
40
58

query I rowsort
SELECT 24 * + - 1 AS col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8591
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 = ( - CAST( NULL AS DECIMAL ) * - ( - ( - 47 ) ) )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 = ( - CAST ( NULL AS REAL ) * - ( - ( - 47 ) ) )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + + 84 + + COUNT( * ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + + 84 + + COUNT ( * ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT - AVG ( 91 ) * 13 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 NOT BETWEEN - col0 AND + col1
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 + + col1 + col2 + + - col2 IN ( col0 )
----

query I rowsort
SELECT DISTINCT 15 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 30 - + col0 + - 0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - 13 + MAX( DISTINCT + - col1 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - 13 + MAX ( DISTINCT + - col1 ) FROM tab2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT - 7 * + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - 7 * + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 74 * - col2 AS col0 FROM tab0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT + MIN( - - col1 ) AS col2 FROM tab1 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT + MIN ( - - col1 ) AS col2 FROM tab1 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT col0 - CAST( - + col2 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8605
SELECT col0 - CAST ( - + col2 AS INTEGER ) FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT 24 * 52 - COUNT( * ) AS col0 FROM tab1
----
1245

skipif mysql # not compatible
query I rowsort label-8606
SELECT 24 * 52 - COUNT ( * ) AS col0 FROM tab1
----
1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8607
SELECT - CAST( + + AVG ( + + 5 ) AS SIGNED ) DIV COUNT( * ) + + 68 - 1 AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8607
SELECT - CAST ( + + AVG ( + + 5 ) AS INTEGER ) / COUNT ( * ) + + 68 - 1 AS col2 FROM tab0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT COUNT( - CAST( - + col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT COUNT ( - CAST ( - + col2 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col2 * 25 AS col1 FROM tab1 WHERE NOT NULL < col1
----

query I rowsort
SELECT DISTINCT 79 * - ( - + 57 ) AS col0 FROM tab2, tab1 AS cor0
----
4503

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 AND col1 / - - col1 + - col0
----

query I rowsort
SELECT + col1 + 63 AS col0 FROM tab0 AS cor0
----
144
64
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - - 29 * + col2 IS NULL
----

query II rowsort
SELECT + 30, + col0 - - col0 AS col2 FROM tab0 AS cor0
----
30
174
30
194
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - COUNT( DISTINCT - ( + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8615
SELECT - COUNT ( DISTINCT - ( + col2 ) ) FROM tab1
----
-3

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL + CAST( col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT + 40 * + - col0, - col1 AS col1 FROM tab1 AS cor0
----
-2040
-14
-3400
-5
-3640
-47

query I rowsort
SELECT + col2 * - 66 + + - 38 * + col2 FROM tab1 AS cor0
----
-6136
-7072
-9984

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 59 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab0 WHERE NOT NULL <> NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL SUM( ALL 6 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL SUM ( ALL 6 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 / col1 IN ( + col0 )
----
9

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 / col1 IN ( + col0 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT 84 * SUM( ALL - - 44 ) * 79 + COUNT( * ) + COUNT( col1 ) AS col2 FROM tab2
----
875958

skipif mysql # not compatible
query I rowsort label-8624
SELECT 84 * SUM ( ALL - - 44 ) * 79 + COUNT ( * ) + COUNT ( col1 ) AS col2 FROM tab2
----
875958

query I rowsort
SELECT - 2 + + 85 AS col1 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, 93 + - + 56 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8626
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, 93 + - + 56 + - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT ALL col0 + + 65 AS col2 FROM tab1 AS cor0
----
116
150
156

onlyif mysql # DIV for integer division: 
query II rowsort label-8629
SELECT DISTINCT + + 95, - col0 DIV + - col1 AS col0 FROM tab0 AS cor0
----
95
0
95
4
95
97

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT + + 95, - col0 / + - col1 AS col0 FROM tab0 AS cor0
----
95
0
95
4
95
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 56 >= NULL
----

query I rowsort
SELECT DISTINCT - 66 * - 15 + + col0 AS col0 FROM tab0 AS cor0
----
1005
1077
1087

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + col1 ) + - 61 col1 FROM tab2 AS cor0
----
-10
16
6

query I rowsort
SELECT + - 23 + + col2 AS col1 FROM tab0 AS cor0
----
-13
24
76

query I rowsort
SELECT - 31 + + 71 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT 12 * col2 * CAST( NULL AS SIGNED ) / col2 - col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT 12 * col2 * CAST ( NULL AS INTEGER ) / col2 - col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + COUNT( + - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + COUNT ( + - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8637
SELECT * FROM tab1 AS cor0 WHERE + 38 * + CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8637
SELECT * FROM tab1 AS cor0 WHERE + 38 * + CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = 22 * - 44 * + + col1 + - - 94 + - - col0 * 79 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 78 - + + 43 FROM tab2
----
35
35
35

query III rowsort
SELECT * FROM tab0 WHERE + + ( + 87 ) + - col1 + + col2 BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT ALL - col1 * - - 38 FROM tab1
----
-1786
-190
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8643
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + MIN( DISTINCT col2 ) + - 55 + - 63 + + + 68 AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + MIN ( DISTINCT col2 ) + - 55 + - 63 + + + 68 AS col2 FROM tab0
----
-20

query I rowsort
SELECT ALL - col2 - - + ( - + col2 ) + 79 + + ( ( 46 ) ) AS col0 FROM tab1
----
-11
-67
7

query I rowsort
SELECT ALL 49 * col0 AS col1 FROM tab0
----
4263
4753
735

query I rowsort
SELECT + - col0 * - col1 + + col1 * - + col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col2 AS col0, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + col2 )
----

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col2 FROM tab2 cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * + col2 col1 FROM tab0 AS cor0
----
1000
103823
970299

query II rowsort
SELECT ALL 44, + col1 AS col0 FROM tab2 cor0
----
44
51
44
67
44
77

query I rowsort
SELECT ALL + - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT + + ( - 63 ) * + 91 AS col0, col1 FROM tab2 AS cor0 WHERE NOT - ( - 7 ) IS NULL
----
-5733
51
-5733
67
-5733
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL + + MAX( ALL + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + + MAX ( ALL + col2 ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8656
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8656
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL - COUNT( DISTINCT + + 10 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - COUNT ( DISTINCT + + 10 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ( + - 76 ) * + - col1 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab1 WHERE NOT - 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col1 AS col1 FROM tab1
----
103823
125
2744

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT ( - - 16 ) DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT ( - - 16 ) / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * - - 20 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT + 91 * + MIN( ALL - 27 ) * - - 35 + - 96 AS col1 FROM tab2
----
-86091

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + 91 * + MIN ( ALL - 27 ) * - - 35 + - 96 AS col1 FROM tab2
----
-86091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT - - ( + col1 ) * + CAST( + col0 AS SIGNED ) / + col0 + + col1 + + ( col0 ) FROM tab1 AS cor0 WHERE col0 * + col1 BETWEEN NULL AND - 62
----

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - - ( + col1 ) * + CAST ( + col0 AS INTEGER ) / + col0 + + col1 + + ( col0 ) FROM tab1 AS cor0 WHERE col0 * + col1 BETWEEN NULL AND - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT - 88 * col1 * col1 + - col2 DIV col1 DIV + - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-38808
-577368
-87

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 88 * col1 * col1 + - col2 / col1 / + - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-38808
-577368
-87

query I rowsort
SELECT - - 83 + + col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
106
123
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT + MAX( DISTINCT - col1 ) + + 26 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + MAX ( DISTINCT - col1 ) + + 26 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT col0 + + ( + col2 ) FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + 20 + 28 AS col2 FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT col1 + + + 39 FROM tab0 AS cor0
----
120
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + + col0 <> NULL
----

query I rowsort
SELECT - 19 - - + 54 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL 86 + - + COUNT( col2 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL 86 + - + COUNT ( col2 ) FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 33 - - + COUNT( col2 ) col1 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT 33 - - + COUNT ( col2 ) col1 FROM tab0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - col0 * + + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - col0 * + + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 - + - col2 * - + col2 + + col1 col0, 78 FROM tab1
----
-3384
78
-4485
78
-9110
78

query I rowsort
SELECT + 71 - col0 AS col1 FROM tab0
----
-16
-26
56

query I rowsort
SELECT DISTINCT - 17 + - 31 AS col1 FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT ALL + col0 - - 88 AS col1, 59 + 50 * - - col2 * - col0 * ( + CAST( - col1 AS SIGNED ) ) FROM tab0
----
103
2855309
175
913559
185
480209

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL + col0 - - 88 AS col1, 59 + 50 * - - col2 * - col0 * ( + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
103
2855309
175
913559
185
480209

query I rowsort
SELECT DISTINCT - col2 * + 35 AS col2 FROM tab2
----
-1400
-2030
-805

query I rowsort
SELECT - - col0 * col0 * + col1 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT COUNT( + 2 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8686
SELECT DISTINCT COUNT ( + 2 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - + 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - COUNT( - 93 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - COUNT ( - 93 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - MIN( ALL + 72 ) * COUNT( - 93 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - MIN ( ALL + 72 ) * COUNT ( - 93 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL 97 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 97 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + + COUNT( ALL ( + col2 ) ) * + - 98 AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-8691
SELECT + + COUNT ( ALL ( + col2 ) ) * + - 98 AS col0 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT DISTINCT - col0 + - + col2 * ( + col0 ) FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT - col2 * + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-3566
-4715
-9267

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - + COUNT( * ) * + - 70 AS col2 FROM tab1 cor0
----
210

skipif mysql # not compatible
query I rowsort label-8694
SELECT - + COUNT ( * ) * + - 70 AS col2 FROM tab1 cor0
----
210

query I rowsort
SELECT + 16 + 75 FROM tab0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL MIN( + 72 ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL MIN ( + 72 ) AS col0 FROM tab2
----
72

query II rowsort
SELECT DISTINCT 60, col2 AS col1 FROM tab0
----
60
10
60
47
60
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8698
SELECT DISTINCT + AVG ( - + ( - - ( CAST( NULL AS DECIMAL ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT + AVG ( - + ( - - ( CAST ( NULL AS REAL ) ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + + col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT col2 * 95 * + ( - 98 ) FROM tab0
----
-437570
-921690
-93100

query I rowsort
SELECT - col2 + + + 19 + - - col0 FROM tab2
----
36
42
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > + col2 - - - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + MAX( + col2 ) + - 90 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8703
SELECT + MAX ( + col2 ) + - 90 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 46 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT + 47 * CAST( - COUNT( * ) AS SIGNED ) - - - 88 + - MIN( col1 ) AS col1 FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-8705
SELECT + 47 * CAST ( - COUNT ( * ) AS INTEGER ) - - - 88 + - MIN ( col1 ) AS col1 FROM tab1 cor0
----
-234

query I rowsort
SELECT - + col1 + ( + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + + - ( 73 ) AS col2 FROM tab2 AS cor0
----
-22
-6
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col1 * col0 * + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col0 + + col1 * - - col0 col1 FROM tab1 AS cor0
----
-1911
-4182
-4590

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 * col0 BETWEEN - col1 AND - col1 * + col1
----

query I rowsort
SELECT DISTINCT 5 + - - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-18
-21
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - - 58 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8713
SELECT * FROM tab2 cor0 WHERE NULL > + CAST( NULL AS SIGNED ) + - CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8713
SELECT * FROM tab2 cor0 WHERE NULL > + CAST ( NULL AS INTEGER ) + - CAST ( + + col2 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 - 62 AS col0 FROM tab0 AS cor0
----
-149
-159
-77

query II rowsort
SELECT ALL - ( - ( + - col1 ) ) AS col0, 63 FROM tab0
----
-1
63
-21
63
-81
63

query I rowsort
SELECT DISTINCT + - 18 / + + col2 FROM tab2 WHERE - ( - - 72 ) + + col1 <= - 59
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT + CAST( + MIN( DISTINCT + + col1 ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8717
SELECT + CAST ( + MIN ( DISTINCT + + col1 ) AS INTEGER ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT + 58 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8718
SELECT + 58 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8719
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = - CAST( NULL AS DECIMAL ) * + - col0 * + col2
----

skipif mysql # not compatible
query III rowsort label-8719
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = - CAST ( NULL AS REAL ) * + - col0 * + col2
----

query I rowsort
SELECT ALL + 21 * col0 AS col2 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT + 47 DIV + MAX( DISTINCT - 16 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + 47 / + MAX ( DISTINCT - 16 ) AS col0 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-8722
SELECT DISTINCT - ( + col1 ) + + col2 DIV - col2 col0, col2 AS col1 FROM tab2 AS cor0
----
-52
23
-68
58
-78
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8722
SELECT DISTINCT - ( + col1 ) + + col2 / - col2 col0, col2 AS col1 FROM tab2 AS cor0
----
-52
23
-68
58
-78
40

query I rowsort
SELECT 8 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - 43 * + col2 < + - col0 * + + 46 * - 32 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT ALL + COUNT( DISTINCT + col0 ) DIV - + 99 + - + COUNT( * ) * 54 AS col0 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + COUNT ( DISTINCT + col0 ) / - + 99 + - + COUNT ( * ) * 54 AS col0 FROM tab0 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT DISTINCT + col0 + + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + col0 + + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - 74 + + - 23 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8728
SELECT ALL - 75, COUNT( * ) AS col1 FROM tab0
----
-75
3

skipif mysql # not compatible
query II rowsort label-8728
SELECT ALL - 75, COUNT ( * ) AS col1 FROM tab0
----
-75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT + col0 * + - 38 DIV - ( - 38 ) col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8729
SELECT + col0 * + - 38 / - ( - 38 ) col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - ( - + 67 ) + - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - 60 * COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 60 * COUNT ( * ) FROM tab0
----
-180

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL 62 + - 14 FROM tab1
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + 89 * - - col2, col2 - + col0 col1 FROM tab2 AS cor0
----
2098
-23
3637
-24
5229
-17

query I rowsort
SELECT DISTINCT + col2 - + 32 FROM tab0 AS cor0
----
-22
15
67

query I rowsort
SELECT DISTINCT col1 + + 74 * + col0 + - 71 FROM tab0
----
1120
6388
7108

query I rowsort
SELECT + - 54 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - + 76 - - col2 * - 42 AS col1 FROM tab1 AS cor0
----
-2554
-2932
-4108

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL COUNT( * ) * + + COUNT( + col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL COUNT ( * ) * + + COUNT ( + col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - col2 * + - ( col2 ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT ALL 71 DIV MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL 71 / MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT + CAST( MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT + CAST ( MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8744
SELECT + col0 AS col2, + col1 DIV + - col2 FROM tab1 cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-8744
SELECT + col0 AS col2, + col1 / + - col2 FROM tab1 cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT ( + + col2 ) DIV + + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT ( + + col2 ) / + + col0 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL ( col2 ), + col1 * + + col2 * - - 26 AS col2 FROM tab2
----
23
30498
40
80080
58
101036

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8747
SELECT ALL + - CAST( - col2 AS DECIMAL ) * + + col1 AS col0 FROM tab0 WHERE - 75 * + ( + + 78 ) + + col1 * CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + - CAST ( - col2 AS REAL ) * + + col1 AS col0 FROM tab0 WHERE - 75 * + ( + + 78 ) + + col1 * CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8748
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col0 + - + CAST( NULL AS SIGNED ), col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-8748
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col0 + - + CAST ( NULL AS INTEGER ), col1, + col0 )
----

query II rowsort
SELECT + col1 * + col0 AS col1, + 9 FROM tab2 AS cor0
----
2346
9
4928
9
5025
9

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( - 1 + - + col2 > col1 - + col0 ) ) )
----
0

query II rowsort
SELECT 72 * col2 AS col1, 6 FROM tab0 cor0
----
3384
6
7128
6
720
6

query I rowsort
SELECT ALL - - col1 * - col0 * - 17 AS col2 FROM tab0 cor0
----
1649
20655
31059

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT ( - SUM( + 17 ) ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT ( - SUM ( + 17 ) ) FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT ALL 12, COUNT( * ) * - SUM( DISTINCT + + 85 ) + + 7 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8754
SELECT ALL 12, COUNT ( * ) * - SUM ( DISTINCT + + 85 ) + + 7 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
12
NULL

query I rowsort
SELECT ALL - col0 * 7 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

query II rowsort
SELECT + + col2 AS col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - - ( + SUM( + + col1 ) ) + 17 AS col2 FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-8757
SELECT - - ( + SUM ( + + col1 ) ) + 17 AS col2 FROM tab0 cor0
----
120

query II rowsort
SELECT ALL + ( - + col0 ) + 47, col1 AS col1 FROM tab2 AS cor0
----
-17
77
-28
67
1
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <> + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 1 * + ( col2 ) + + + col0, + 8 AS col0 FROM tab0
----
196
8
62
8
97
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col0 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT MIN( col0 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN + + 70 + - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT MIN ( col0 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN + + 70 + - col1 AND NULL
----
NULL

query I rowsort
SELECT ALL + col2 * + + ( - col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT ALL - col2 + - - 50 - + ( + + col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - col2 + - - 50 - + ( + + col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + - + col1 + 4 - col2 FROM tab2 AS cor0
----
-24
-46
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8766
SELECT ALL col0 * - - col2 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL col0 * - - col2 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + - 6 AS col2 FROM tab2
----
40
58
69

query I rowsort
SELECT DISTINCT - 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NULL ) IN ( + 71 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - MAX( ALL 33 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 68 + - - col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT - MAX ( ALL 33 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 68 + - - col1 IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT + 24 DIV - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + 24 / - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1
-4
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + - 90 * - 53 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE + col2 - - - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT DISTINCT - col1 DIV - ( col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - col1 / - ( col2 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - 78 + + + 51 > + + ( + col1 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8776
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8777
SELECT - 31, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-31
NULL
-31
NULL
-31
NULL

skipif mysql # not compatible
query II rowsort label-8777
SELECT - 31, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-31
NULL
-31
NULL
-31
NULL

query II rowsort
SELECT 34, - col0 AS col2 FROM tab0
----
34
-15
34
-87
34
-97

query I rowsort
SELECT ALL - col2 * ( col1 ) AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - 9 * COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8780
SELECT - 9 * COUNT ( * ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL COUNT( * ) - + AVG ( + + ( + - 22 ) ) FROM tab1 WHERE NOT + col0 / - col1 <= + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL COUNT ( * ) - + AVG ( + + ( + - 22 ) ) FROM tab1 WHERE NOT + col0 / - col1 <= + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT + ( + + SUM( + col0 ) ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-8782
SELECT + ( + + SUM ( + col0 ) ) AS col2 FROM tab2 cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - col1 ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 * - + 57 col2 FROM tab0 AS cor0
----
-912
-912
-912

query I rowsort
SELECT 81 + + col0 FROM tab0
----
168
178
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 35 BETWEEN - col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE ( col2 + - - 38 ) BETWEEN 43 * 77 + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) + - ( col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8788
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) + - ( col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT DISTINCT ( 8 ) FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8791
SELECT * FROM tab0 WHERE - col2 < - col2 + + - ( CAST( NULL AS SIGNED ) ) + col0
----

skipif mysql # not compatible
query III rowsort label-8791
SELECT * FROM tab0 WHERE - col2 < - col2 + + - ( CAST ( NULL AS INTEGER ) ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ( - MAX( + - ( + + 6 ) ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8792
SELECT ( - MAX ( + - ( + + 6 ) ) ) FROM tab1
----
6

query I rowsort
SELECT 47 * - col1 AS col1 FROM tab2
----
-2397
-3149
-3619

query I rowsort
SELECT - col0 - 79 AS col0 FROM tab2
----
-125
-143
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT col2 - - + CAST( NULL AS SIGNED ) * col1 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT col2 - - + CAST ( NULL AS INTEGER ) * col1 * col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 16, ( col1 ) FROM tab2
----
-16
51
-16
67
-16
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT ALL 88 + + 91 - + + 84 DIV - 95 * - - col2 col0 FROM tab1
----
179
179
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8797
SELECT ALL 88 + + 91 - + + 84 / - 95 * - - col2 col0 FROM tab1
----
179
179
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - ( + 74 ) ) + - + col1 + + + ( col0 ) * + 36 col1 FROM tab2
----
1679
2301
2707

query I rowsort
SELECT col1 + + + col0 + ( - 55 ) AS col2 FROM tab1
----
10
35
83

query I rowsort
SELECT ALL 54 * col2 AS col1 FROM tab0
----
2538
5346
540

query I rowsort
SELECT ALL 81 + + 19 * - - col2 AS col0 FROM tab2
----
1183
518
841

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - COUNT( * ) + 49 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-8802
SELECT - COUNT ( * ) + 49 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 49 * COUNT( * ) + - ( + COUNT( * ) ) + + SUM( DISTINCT - ( + - ( + + col1 ) ) ) / 78 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 49 * COUNT ( * ) + - ( + COUNT ( * ) ) + + SUM ( DISTINCT - ( + - ( + + col1 ) ) ) / 78 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8804
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) * MAX( col1 ) col2, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8804
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * MAX ( col1 ) col2, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL - MIN( DISTINCT - + 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - MIN ( DISTINCT - + 4 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT col2 * 60 * + + col1 FROM tab0 cor0
----
12600
228420
5940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8807
SELECT ALL - + col2 / - CAST( NULL AS SIGNED ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL - + col2 / - CAST ( NULL AS INTEGER ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT + col1 DIV + - 50 + + + 84 FROM tab0 AS cor0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-8808
SELECT + col1 / + - 50 + + + 84 FROM tab0 AS cor0
----
83
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - 40 * - 56 + - COUNT( ALL + ( - + col2 ) ) FROM tab1 AS cor0
----
2237

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 40 * - 56 + - COUNT ( ALL + ( - + col2 ) ) FROM tab1 AS cor0
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL + SUM( 80 ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + SUM ( 80 ) FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + + ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8811
SELECT + + ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT ALL - CAST( + col1 AS SIGNED ), + col1 AS col1 FROM tab2 WHERE ( NULL ) = - col1 * - col0
----

skipif mysql # not compatible
query II rowsort label-8812
SELECT ALL - CAST ( + col1 AS INTEGER ), + col1 AS col1 FROM tab2 WHERE ( NULL ) = - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8813
SELECT ALL * FROM tab0 WHERE ( NOT - CAST( NULL AS SIGNED ) / + - col1 >= + - 72 * + + col2 )
----

skipif mysql # not compatible
query III rowsort label-8813
SELECT ALL * FROM tab0 WHERE ( NOT - CAST ( NULL AS INTEGER ) / + - col1 >= + - 72 * + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8814
SELECT DISTINCT * FROM tab0 WHERE ( + - 9 ) / 84 + - + col1 + - + 65 + - 76 * 18 * ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8814
SELECT DISTINCT * FROM tab0 WHERE ( + - 9 ) / 84 + - + col1 + - + 65 + - 76 * 18 * ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col1, + 83 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT - COUNT( DISTINCT + 5 ) * - 23 + - 11 AS col0 FROM tab2, tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - COUNT ( DISTINCT + 5 ) * - 23 + - 11 AS col0 FROM tab2, tab0 AS cor0
----
12

query I rowsort
SELECT - - col0 * + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL <> col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 + - 75 > NULL
----

query I rowsort
SELECT 98 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
5044
6641
7610

query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - + 33 * COUNT( * ) + + 3 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8822
SELECT - + 33 * COUNT ( * ) + + 3 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + 97 + + + 74 FROM tab0 AS cor0
----
171
171
171

query I rowsort
SELECT ALL - 25 + + - 30 * - col1 FROM tab0 AS cor0
----
2405
5
605

query I rowsort
SELECT ALL 87 * + 73 FROM tab2 cor0
----
6351
6351
6351

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 39 + + - col0 + - - col1 * + 49
----

query III rowsort
SELECT * FROM tab0 WHERE + 61 <> 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL COUNT( * ) - - 11 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL COUNT ( * ) - - 11 FROM tab0
----
14

query I rowsort
SELECT DISTINCT col2 - - 66 * - col2 AS col0 FROM tab0
----
-3055
-6435
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL - 12 DIV - col2 + + + col0 * - col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - 12 / - col2 + + + col0 * - col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT + COUNT( * ) * - ( + CAST( - - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8831
SELECT + COUNT ( * ) * - ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT col1 * + col2 + - + col1 * - - 99 + + 47 AS col2 FROM tab0 AS cor0
----
-1822
-4165
47

query I rowsort
SELECT ALL - col0 * - + 46 AS col1 FROM tab2
----
2116
2944
3450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 10 > - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query II rowsort
SELECT ALL + col2, 29 FROM tab2 AS cor0
----
23
29
40
29
58
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 / + 1 * - col2 * + + col2 + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - COUNT( * ) * + 77 * + 32 * + 6 AS col2 FROM tab0
----
-44352

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - COUNT ( * ) * + 77 * + 32 * + 6 AS col2 FROM tab0
----
-44352

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT MIN( + - 39 ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8839
SELECT MIN ( + - 39 ) AS col0 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT + ( + - 2 ) / + + col2 + + + col2 * - CAST( NULL AS SIGNED ) + + 10 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT + ( + - 2 ) / + + col2 + + + col2 * - CAST ( NULL AS INTEGER ) + + 10 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8841
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8841
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 * col0 * - col1 * ( + + 31 ) AS col2 FROM tab1
----
-2124864
-777325
-9015916

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + 50 * - COUNT( * ) FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-8843
SELECT + 50 * - COUNT ( * ) FROM tab1
----
-150

query II rowsort
SELECT ALL col0 + - + col2 AS col0, col2 - + + col0 FROM tab0
----
-2
2
-32
32
77
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT ALL + 6 AS col0, COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
6
0

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL + 6 AS col0, COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
6
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8847
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8847
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 66 * - col0 AS col2 FROM tab1 AS cor0
----
-3366
-5610
-6006

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IN ( + col2 + + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 < col0 + + + col0
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 < col0 + + + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT + col1 * + col0 + - + CAST( 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
424
4276
713

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + col1 * + col0 + - + CAST ( 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
424
4276
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + + col2 + - - 76 FROM tab2 cor0
----
116
134
99

query I rowsort
SELECT DISTINCT + 42 * - 86 + 67 FROM tab2 AS cor0
----
-3545

query I rowsort
SELECT + 80 - col0 AS col0 FROM tab1 cor0
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL - + COUNT( * ) + COUNT( * ) + - MIN( DISTINCT + - col1 ) + - - COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL - + COUNT ( * ) + COUNT ( * ) + - MIN ( DISTINCT + - col1 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT - + col0 - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - + 30 - - + col1 AS col0 FROM tab0 AS cor0
----
-29
-9
51

query I rowsort
SELECT + col0 - col2 * 58 FROM tab1
----
-3337
-3853
-5517

query I rowsort
SELECT DISTINCT - ( - 54 ) + col1 AS col0 FROM tab0
----
135
55
75

query I rowsort
SELECT - ( col2 ) * + col0 + + - 64 FROM tab1
----
-4960
-5079
-6252

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + MIN( DISTINCT 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + MIN ( DISTINCT 16 ) FROM tab1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8864
SELECT + CAST( - - COUNT( * ) AS SIGNED ) DIV + 13 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8864
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) / + 13 AS col1 FROM tab2 AS cor0
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 7 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 * - 10 col0 FROM tab0 AS cor0
----
630
630
630

query I rowsort
SELECT col0 * + - ( 73 ) AS col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # DIV for integer division: 
query II rowsort label-8870
SELECT + + 94 DIV - col2, - 5 * - 56 AS col2 FROM tab0 AS cor0
----
-2
280
-9
280
0
280

skipif mysql # not compatible
query II rowsort label-8870
SELECT + + 94 / - col2, - 5 * - 56 AS col2 FROM tab0 AS cor0
----
-2
280
-9
280
0
280

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - ( - + COUNT( DISTINCT col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - ( - + COUNT ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT + - 93 * CAST( MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
6975

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT + - 93 * CAST ( MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
6975

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND - col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL MAX( - - 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL MAX ( - - 6 ) FROM tab0
----
6

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - ( - + col1 ) IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT DISTINCT 79 DIV col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT 79 / col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT - COUNT( * ) + ( SUM( col1 ) ) col2 FROM tab0 WHERE + col1 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8877
SELECT DISTINCT - COUNT ( * ) + ( SUM ( col1 ) ) col2 FROM tab0 WHERE + col1 >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 67 + - col0 + 27 FROM tab2
----
19
30
48

query II rowsort
SELECT DISTINCT 86 AS col2, - col0 FROM tab0
----
86
-15
86
-87
86
-97

query I rowsort
SELECT col0 + - col0 + + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8882
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - + 27 > - 49 * - CAST( NULL AS SIGNED ) - + col2
----

skipif mysql # not compatible
query III rowsort label-8882
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - + 27 > - 49 * - CAST ( NULL AS INTEGER ) - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT MIN( + 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8883
SELECT MIN ( + 89 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT - col1 + 88 FROM tab0
----
67
7
87

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 24 * + 98 <= NULL )
----

query I rowsort
SELECT col1 + + - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1
49
98

query II rowsort
SELECT - col2 + 13, col0 FROM tab0 AS cor0
----
-34
15
-86
97
3
87

query I rowsort
SELECT col2 * - - 7 + col1 AS col1 FROM tab0 AS cor0
----
410
694
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + + 35 + + - COUNT( * ) * 68 col1 FROM tab1 AS cor0
----
-169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8890
SELECT + + 35 + + - COUNT ( * ) * 68 col1 FROM tab1 AS cor0
----
-169

query I rowsort
SELECT - col2 * - col1 + - col2 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT 2 * - col0 + 87 + + - col2 * + col0 * 32 AS col2 FROM tab1
----
-156687
-160563
-198111

query I rowsort
SELECT ALL 4 - - col2 + + col2 + - 50 * + col0 AS col0 FROM tab0
----
-4326
-4648
-652

query II rowsort
SELECT + 26, col0 AS col1 FROM tab0 AS cor0
----
26
15
26
87
26
97

query I rowsort
SELECT ALL + - ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( + - ( + 76 ) ) AS col2 FROM tab0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT + COUNT( ALL - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8897
SELECT + COUNT ( ALL - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8898
SELECT 89 AS col1, 77 DIV - col0 FROM tab1
----
89
-1
89
0
89
0

skipif mysql # not compatible
query II rowsort label-8898
SELECT 89 AS col1, 77 / - col0 FROM tab1
----
89
-1
89
0
89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT - + 44 + - - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - + 44 + - - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE NOT col1 + + col1 / CAST( NULL AS SIGNED ) * + col2 > - - ( + col0 ) / + 75
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE NOT col1 + + col1 / CAST ( NULL AS INTEGER ) * + col2 > - - ( + col0 ) / + 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT col2 * 68 + + col2 col1 FROM tab1 AS cor0 WHERE NOT col1 > - CAST( + 44 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8901
SELECT DISTINCT col2 * 68 + + col2 col1 FROM tab1 AS cor0 WHERE NOT col1 > - CAST ( + 44 AS INTEGER )
----

query I rowsort
SELECT - AVG ( - - 67 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col1 + - - ( - - 19 ) FROM tab0 AS cor0 WHERE NOT - col2 * - col2 - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT DISTINCT + COUNT( - - col2 ), + COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8905
SELECT DISTINCT + COUNT ( - - col2 ), + COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT + ( - col2 ) AS col0, col1 * + - 14 * 28 AS col2 FROM tab0
----
-10
-8232
-47
-31752
-99
-392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 23 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8907
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 23 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT + COUNT( * ) * + 73 + 79 AS col2 FROM tab2
----
298

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + COUNT ( * ) * + 73 + 79 AS col2 FROM tab2
----
298

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8909
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT + 92 + - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + 92 + - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
98

query I rowsort
SELECT - col0 * + 6 + 16 FROM tab1 AS cor0
----
-290
-494
-530

query I rowsort
SELECT + col2 + - - ( - - col1 ) AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT + 92 * 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0d6ba9145cddc5144113b84fc8f842a4

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL 95 * + + COUNT( * ) AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 95 * + + COUNT ( * ) AS col0 FROM tab2
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT + col0 DIV + col0 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT DISTINCT + col0 / + col0 col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - 7 * + 0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL 25 * + - 41 * 57, col0 AS col0 FROM tab0 AS cor0
----
-58425
15
-58425
87
-58425
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + COUNT( DISTINCT 69 ) - + MAX( ALL - 99 ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8918
SELECT + COUNT ( DISTINCT 69 ) - + MAX ( ALL - 99 ) AS col1 FROM tab0 AS cor0
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8919
SELECT ALL + col0 / - col1 - + + 57 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + col0 / - col1 - + + 57 - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * ( + + col1 ) * - ( col0 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ( 72 ) - - COUNT( DISTINCT 22 ) AS col1 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8921
SELECT ( 72 ) - - COUNT ( DISTINCT 22 ) AS col1 FROM tab2 cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 15 AS col0, col2 * + - col1 col1 FROM tab0 AS cor0
----
-15
-210
-15
-3807
-15
-99

query I rowsort
SELECT + col1 * - col0 * + 30 AS col0 FROM tab1 AS cor0
----
-12750
-128310
-21420

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - ( + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - ( + col1 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 92 col1 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT DISTINCT 69 * - col2 * - col1 FROM tab2
----
212520
268134
80937

query I rowsort
SELECT ALL col1 * + 33 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT ALL + - 45 FROM tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + - 45 FROM tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL BETWEEN - col0 AND - 47 * CAST( NULL AS SIGNED ) + + + col0 + + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL BETWEEN - col0 AND - 47 * CAST ( NULL AS INTEGER ) + + + col0 + + 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + ( + col0 ) ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + ( + col0 ) ) <> NULL
----
0

query I rowsort
SELECT DISTINCT col0 / col2 + col2 FROM tab2 AS cor0 WHERE - 73 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT - + CAST( MAX( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8933
SELECT - + CAST ( MAX ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - 54 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - 54 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT ALL + + COUNT( * ) AS col1, - ( + COUNT( * ) ) - - 92 * + 37 FROM tab0 AS cor0
----
3
3401

skipif mysql # not compatible
query II rowsort label-8935
SELECT ALL + + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) - - 92 * + 37 FROM tab0 AS cor0
----
3
3401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT col1 + + CAST( NULL AS SIGNED ) / 63 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT col1 + + CAST ( NULL AS INTEGER ) / 63 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 16 + col1 AS col0 FROM tab2 AS cor0
----
35
51
61

query II rowsort
SELECT DISTINCT + - col1 AS col1, col1 * - col1 FROM tab2 AS cor0
----
-51
-2601
-67
-4489
-77
-5929

query II rowsort
SELECT DISTINCT 1 AS col1, col2 * - col1 * + col0 FROM tab1
----
1
-25075
1
-290836
1
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT 74 + - CAST( - 23 AS SIGNED ) col0 FROM tab2
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8940
SELECT DISTINCT 74 + - CAST ( - 23 AS INTEGER ) col0 FROM tab2
----
97

query II rowsort
SELECT DISTINCT + 12 AS col1, 59 * 41 AS col1 FROM tab1
----
12
2419

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 + - col2 FROM tab0
----
-13
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL COUNT( * ) + - 79 AS col1 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL COUNT ( * ) + - 79 AS col1 FROM tab1 cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 38 col0 FROM tab2 cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8946
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 35 AND - - 88 * + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8946
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 35 AND - - 88 * + col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8947
SELECT DISTINCT - col1 * + 55 / - CAST( NULL AS SIGNED ), 97 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT - col1 * + 55 / - CAST ( NULL AS INTEGER ), 97 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT ALL 92 - + - COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
95
3

skipif mysql # not compatible
query II rowsort label-8948
SELECT ALL 92 - + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
95
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8950
SELECT DISTINCT + 26 AS col2, - 36 + - CAST( NULL AS SIGNED ) FROM tab0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT + 26 AS col2, - 36 + - CAST ( NULL AS INTEGER ) FROM tab0
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ( + - COUNT( * ) ) * + SUM( ALL col0 ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-8951
SELECT ( + - COUNT ( * ) ) * + SUM ( ALL col0 ) AS col2 FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT COUNT( * ) AS col1, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8952
SELECT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT - + ( 12 ) DIV col2 * + 33 AS col1 FROM tab0 AS cor0
----
-33
0
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - + ( 12 ) / col2 * + 33 AS col1 FROM tab0 AS cor0
----
-33
0
0

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT + 62 < ( NULL )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - 8 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT col0 * - CAST( NULL AS SIGNED ) - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT col0 * - CAST ( NULL AS INTEGER ) - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - col1 + + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - col1 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL >= ( 31 )
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL >= ( 31 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT 31 * SUM( - col1 ) FROM tab2
----
-6045

skipif mysql # not compatible
query I rowsort label-8959
SELECT 31 * SUM ( - col1 ) FROM tab2
----
-6045

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MIN( DISTINCT col1 ) * - 61 col0 FROM tab0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8960
SELECT MIN ( DISTINCT col1 ) * - 61 col0 FROM tab0
----
-61

query I rowsort
SELECT 75 * - col1 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( + col1 ) NOT IN ( - 39 + 13 )
----
10
47
99

query I rowsort
SELECT 64 * - col1 FROM tab1 WHERE NULL > ( + ( 84 ) / col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 31 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 20 * + col1 FROM tab0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT + 84 + + COUNT( DISTINCT - col2 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + 84 + + COUNT ( DISTINCT - col2 ) FROM tab0
----
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( + 76 )
----

query I rowsort
SELECT 33 * - col0 - 20 AS col2 FROM tab2
----
-1538
-2132
-2495

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 33 * col1 FROM tab0
----
2673
33
693

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL 40 * COUNT( DISTINCT - CAST( - col0 AS SIGNED ) ) FROM tab2 WHERE NOT ( - 43 * 9 - - col0 ) IS NULL
----
120

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL 40 * COUNT ( DISTINCT - CAST ( - col0 AS INTEGER ) ) FROM tab2 WHERE NOT ( - 43 * 9 - - col0 ) IS NULL
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT DISTINCT 43 DIV col1 + - col1 AS col1 FROM tab0
----
-19
-81
42

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT 43 / col1 + - col1 AS col1 FROM tab0
----
-19
-81
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT col1 DIV - 83 + col0 * col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-8975
SELECT col1 / - 83 + col0 * col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT + col0 * 84 + + ( + col2 ) * col2 FROM tab2
----
4393
6976
9664

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE - 37 + - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT SUM( ALL - col0 ) + 46 AS col0 FROM tab1 WHERE - col0 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT SUM ( ALL - col0 ) + 46 AS col0 FROM tab1 WHERE - col0 * - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT + MAX( DISTINCT + col1 ) DIV - COUNT( * ) + - 67 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8979
SELECT + MAX ( DISTINCT + col1 ) / - COUNT ( * ) + - 67 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + 64 + col1 * - col0 FROM tab0 AS cor0
----
-1151
-1763
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( + col1 ) col1 FROM tab0 cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT col2 DIV col1 + - 63 * col2 FROM tab0 AS cor0
----
-2961
-6138
-630

skipif mysql # not compatible
query I rowsort label-8982
SELECT col2 / col1 + - 63 * col2 FROM tab0 AS cor0
----
-2961
-6138
-630

query I rowsort
SELECT DISTINCT ( 2 ) - col0 FROM tab0 AS cor0
----
-13
-85
-95

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE 9 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT SUM( ALL 70 ) FROM tab0 WHERE ( NULL ) IN ( 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT SUM ( ALL 70 ) FROM tab0 WHERE ( NULL ) IN ( 53 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT col2 IN ( - ( 9 ) + 67 )
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 58 / - 43 + - 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col1 * - col1 > 25
----
51
14
96
91
47
68

query I rowsort
SELECT + - 57 AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL col2 * + col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT + 5 DIV 60 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 5 / 60 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT 8 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT 8 / col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT + SUM( col1 ) * 98 FROM tab1 AS cor0
----
6468

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT + SUM ( col1 ) * 98 FROM tab1 AS cor0
----
6468

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL col2 DIV + col0 AS col1 FROM tab2 WHERE NOT 88 + col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL col2 / + col0 AS col1 FROM tab2 WHERE NOT 88 + col1 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8997
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8997
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 64 * - 18 AS col1 FROM tab1
----
1152

query I rowsort
SELECT 90 AS col1 FROM tab2 WHERE NOT ( + col1 + col2 ) IN ( + col2 )
----
90
90
90

query I rowsort
SELECT ALL + 31 * + col2 AS col2 FROM tab0
----
1457
3069
310

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( + 25 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <> 28 * 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT + + MIN( - 11 ) * COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + + MIN ( - 11 ) * COUNT ( * ) FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9004
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 BETWEEN NULL AND ( + CAST( + col1 AS SIGNED ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9004
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 BETWEEN NULL AND ( + CAST ( + col1 AS INTEGER ) )
----
97
1
99

query I rowsort
SELECT DISTINCT col1 + col2 * - 20 AS col0 FROM tab0 WHERE - 32 < - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL SUM( ALL - 43 ) * 48 + + 82 FROM tab0, tab1 AS cor0
----
-18494

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL SUM ( ALL - 43 ) * 48 + + 82 FROM tab0, tab1 AS cor0
----
-18494

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 WHERE NOT + col2 - 30 * col2 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 86 + + - 36 * + col2 + col2 FROM tab1 AS cor0
----
-1979
-2294
-3274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL - CAST( + + col0 AS SIGNED ) + + - col1 * - col2 FROM tab0 AS cor0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - CAST ( + + col0 AS INTEGER ) + + - col1 * - col2 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT ALL - col2 * - + 7 * + 45 + 12 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT + - CAST( + - col2 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-9013
SELECT + - CAST ( + - col2 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - - MAX( + - col1 ) + - 45 + + 44 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9014
SELECT - - MAX ( + - col1 ) + - 45 + + 44 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - - col0 + + 21 AS col0 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE col2 + + - ( col2 ) <= ( col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT - MAX( DISTINCT + col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - MAX ( DISTINCT + col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT - ( col2 ) + + 32 DIV - 53 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9018
SELECT - ( col2 ) + + 32 / - 53 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL 77 + col1 FROM tab2 AS cor0
----
128
144
154

query I rowsort
SELECT - + col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN + - col2 + + 47 AND NULL
----

query I rowsort
SELECT + col2 + col0 FROM tab0 WHERE + col2 * + 94 - col1 NOT IN ( + 6 + 92 * ( col0 ) )
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT MIN( + - col0 ) * + COUNT( col2 ) + - COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-9023
SELECT MIN ( + - col0 ) * + COUNT ( col2 ) + - COUNT ( * ) FROM tab2
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT - ( + col2 ) DIV - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9024
SELECT - ( + col2 ) / - col0 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT MIN( - col1 ) - - 38 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT MIN ( - col1 ) - - 38 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col0 * - 91 * - - 57 FROM tab0 WHERE NULL IS NULL
----
-451269
-503139
-77805

query I rowsort
SELECT + col0 * - + col0 AS col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT - 22 AS col1, - 64 FROM tab2
----
-22
-64
-22
-64
-22
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 < + col0
----

query I rowsort
SELECT ALL 92 * - + ( col1 ) + + col0 FROM tab2 AS cor0
----
-4646
-6089
-7020

onlyif mysql # DIV for integer division: 
query II rowsort label-9032
SELECT ALL + - col0, col1 + col2 + + + 54 + - col2 DIV + 23 col0 FROM tab0 AS cor0
----
-15
180
-87
85
-97
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9032
SELECT ALL + - col0, col1 + col2 + + + 54 + - col2 / + 23 col0 FROM tab0 AS cor0
----
-15
180
-87
85
-97
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - 45 * + + COUNT( - + col2 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - 45 * + + COUNT ( - + col2 ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT + + 76 * + col0 FROM tab2 AS cor0
----
3496
4864
5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9035
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 - CAST( NULL AS SIGNED ) - - 38 + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9035
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 - CAST ( NULL AS INTEGER ) - - 38 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND 42 NOT BETWEEN ( - col0 + 48 * col2 ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL + + CAST( NULL AS SIGNED ) * + 58 * - 33 - + + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 58 * - 33 - + + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / - col2 < + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col2 * - + col0 AS col1 FROM tab0
----
33135
8700
950697

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 69 * + 22 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 * + - 6 * - col0 FROM tab1
----
29376
30090
37128

query II rowsort
SELECT ALL - col1, - col1 * + col2 AS col2 FROM tab0
----
-1
-99
-21
-210
-81
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT + ( - MIN( + 20 ) ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9044
SELECT + ( - MIN ( + 20 ) ) FROM tab0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT DISTINCT - COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query II rowsort
SELECT col2 AS col0, - col0 + col1 FROM tab0
----
10
-66
47
66
99
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col0 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 42 * - col2 * + col1 NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT ALL - - 96 + - col2 FROM tab0 cor0
----
-3
49
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT col2 + + CAST( + - ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9050
SELECT col2 + + CAST ( + - ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - COUNT( * ) + - - COUNT( * ) + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9051
SELECT - COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab1 AS cor0 WHERE ( NOT - + 76 IN ( + + col0 * - col1 / 82 ) )
----
59

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE ( NOT - + 76 IN ( + + col0 * - col1 / 82 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT 20 + + MIN( ALL col2 ) AS col2 FROM tab2 AS cor0 WHERE + col2 <= 92
----
43

skipif mysql # not compatible
query I rowsort label-9053
SELECT 20 + + MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0 WHERE + col2 <= 92
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT ALL + col1 DIV ( + col1 ) - col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + col1 / ( + col1 ) - col0 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT 49 + + + ( - + 60 ) * - + 45 FROM tab0 cor0
----
2749

query I rowsort
SELECT ALL 76 - 56 + + col0 + + 29 FROM tab1
----
100
134
140

query I rowsort
SELECT + 85 + - col0 * - col2 AS col1 FROM tab1 WHERE col0 + col2 / 30 * + col2 IS NOT NULL
----
4981
5100
6273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9058
SELECT MIN( DISTINCT + 31 ) - 19, + 86 DIV + 58 AS col2 FROM tab2
----
12
1

skipif mysql # not compatible
query II rowsort label-9058
SELECT MIN ( DISTINCT + 31 ) - 19, + 86 / + 58 AS col2 FROM tab2
----
12
1

query I rowsort
SELECT + col0 - 49 + + col0 * col1 + - col0 + + col2 + - col0 + + + col0 FROM tab0
----
1213
147
1788

query II rowsort
SELECT DISTINCT col2, 98 + + 65 + - 52 AS col1 FROM tab0
----
10
111
47
111
99
111

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 49 * col0 * + 4 * - + col1 * + + col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col1 col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT ALL - 64 * - col0 FROM tab2
----
2944
4096
4800

query III rowsort
SELECT ALL * FROM tab0 WHERE + 68 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT + SUM( col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9065
SELECT DISTINCT + SUM ( col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + - col0 + + 21 FROM tab2 WHERE NOT - col0 + - ( - - col2 ) - - + 97 IS NULL
----
-25
-43
-54

query I rowsort
SELECT ALL + 37 * col1 AS col2 FROM tab1
----
1739
185
518

query I rowsort
SELECT ALL + + col1 + + 39 AS col2 FROM tab0 AS cor0
----
120
40
60

query II rowsort
SELECT ALL + col1 AS col0, col1 + + col2 AS col1 FROM tab0 AS cor0
----
1
100
21
31
81
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT - col1 + + - ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT - col1 + + - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + + 21 ) * + col2 FROM tab0 AS cor0
----
2079
210
987

query III rowsort
SELECT col0, + 58, + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 8 ) IS NULL
----
9 values hashing to 29a055989f4de7c76be8d387f547a2bb

query I rowsort
SELECT 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - col2 IN ( + + 86 * + col0 )
----
51
85
91

query I rowsort
SELECT + + ( col1 ) * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 97 BETWEEN - - 85 - + col2 AND - 77 + + 97 + - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - + 19 * - MIN( + - col1 ) * - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
4620

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + 19 * - MIN ( + - col1 ) * - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
4620

query I rowsort
SELECT + 41 * 53 + + col1 + - col1 + - + 85 AS col0 FROM tab0 AS cor0
----
2088
2088
2088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT ALL col0 + - 84 FROM tab1 cor0 WHERE NOT - + col0 * CAST( - 4 AS SIGNED ) * 93 <> col2 OR NOT + col0 + ( col0 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL col0 + - 84 FROM tab1 cor0 WHERE NOT - + col0 * CAST ( - 4 AS INTEGER ) * 93 <> col2 OR NOT + col0 + ( col0 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9080
SELECT + + col2 DIV + + col1 AS col2, - col0 * + 72 * - col0 + - - col2 + + col0 FROM tab2 AS cor0
----
0
152421
0
295016
0
405133

skipif mysql # not compatible
query II rowsort label-9080
SELECT + + col2 / + + col1 AS col2, - col0 * + 72 * - col0 + - - col2 + + col0 FROM tab2 AS cor0
----
0
152421
0
295016
0
405133

query I rowsort
SELECT + col1 * - - 23 * - + col1 AS col2 FROM tab1 AS cor0
----
-4508
-50807
-575

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9082
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) + - col0 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-9082
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) + - col0 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * + 51 col2 FROM tab1
----
249696
255765
315588

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + COUNT( * ) * - 96 AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-9084
SELECT + COUNT ( * ) * - 96 AS col0 FROM tab1
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9085
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 99 AS col2 FROM tab0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 99 AS col2 FROM tab0
----
NULL
99
NULL
99
NULL
99

query II rowsort
SELECT ALL col1, - 20 AS col2 FROM tab2
----
51
-20
67
-20
77
-20

query I rowsort
SELECT ALL - col1 / + - col0 FROM tab2 WHERE + 29 NOT BETWEEN - 56 + 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT MAX( + 76 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT MAX ( + 76 ) FROM tab2
----
76

query II rowsort
SELECT ALL - 87 AS col1, + 17 FROM tab2
----
-87
17
-87
17
-87
17

query II rowsort
SELECT DISTINCT col0, + 65 FROM tab1
----
51
65
85
65
91
65

query I rowsort
SELECT ALL + col1 + + ( + + 71 ) * col2 AS col2 FROM tab0
----
3418
7030
731

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0, - 51 * - - col2 AS col0 FROM tab0 AS cor0
----
-15
-2397
-87
-510
-97
-5049

query I rowsort
SELECT DISTINCT col2 * - 19 + + + 81 * - - col2 FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col1 ) - + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9096
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 + - 2 + - col2 FROM tab1 AS cor0
----
-120
-138
-194

query I rowsort
SELECT DISTINCT - + 71 * - col0 AS col2 FROM tab0 AS cor0
----
1065
6177
6887

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + col0 / - 22 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + 22 - 63 AS col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT 64 FROM tab2 WHERE - col2 = ( - ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + COUNT( * ) FROM tab1 WHERE NULL >= - col2 / + col0 - - ( + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT + COUNT ( * ) FROM tab1 WHERE NULL >= - col2 / + col0 - - ( + + col2 )
----
0

query II rowsort
SELECT DISTINCT 74 * + col0, 43 AS col1 FROM tab0
----
1110
43
6438
43
7178
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * + - 50 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * + - 50 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) * - 11 AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) * - 11 AS col2 FROM tab1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT ALL + 9 - + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + 9 - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT + 7 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT + 7 / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9109
SELECT DISTINCT + 30 * - col0 DIV + col0, - col0 AS col2 FROM tab1
----
-30
-51
-30
-85
-30
-91

skipif mysql # not compatible
query II rowsort label-9109
SELECT DISTINCT + 30 * - col0 / + col0, - col0 AS col2 FROM tab1
----
-30
-51
-30
-85
-30
-91

query II rowsort
SELECT + col2, + col1 + - + col0 FROM tab2 AS cor0
----
23
5
40
13
58
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + 71 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= - 86
----

query I rowsort
SELECT + ( - + 59 ) * - - ( - col1 ) * + - 3 - 64 FROM tab1 cor0
----
-2542
-8383
-949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * ( 64 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * ( 64 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 47 FROM tab2 WHERE NOT 84 > col2
----

query I rowsort
SELECT 14 + - 97 + + + col2 FROM tab2 WHERE NULL = - 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col2 ) col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 * + 75 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
367200
376125
464100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9121
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col1 * + CAST( NULL AS SIGNED ) * + col0, col1 ) AND 81 * + - col0 - + 73 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9121
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col1 * + CAST ( NULL AS INTEGER ) * + col0, col1 ) AND 81 * + - col0 - + 73 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT + col0 DIV + col2 + + col0 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-9122
SELECT + col0 / + col2 + + col0 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT + - col1 + - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT + - col1 + - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9124
SELECT - col2 + + 96 + + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT - col2 + + 96 + + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 98 * - 47 FROM tab1
----
-4606

query I rowsort
SELECT ALL - 77 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9128
SELECT ALL CAST( NULL AS DECIMAL ) * + 95 + col0 + + 15 * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL CAST ( NULL AS REAL ) * + 95 + col0 + + 15 * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 0 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL + col1 * + 33 * + - col0 * + col1 * - col2 - 32 DIV - col0 AS col0 FROM tab2 cor0
----
500881920
644395950
90811314

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + col1 * + 33 * + - col0 * + col1 * - col2 - 32 / - col0 AS col0 FROM tab2 cor0
----
500881920
644395950
90811314

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT - + col0 DIV + col0 + + + col2 DIV - col2 - + col0 + - + ( + - 16 ) FROM tab2 AS cor0
----
-32
-50
-61

skipif mysql # not compatible
query I rowsort label-9131
SELECT - + col0 / + col0 + + + col2 / - col2 - + col0 + - + ( + - 16 ) FROM tab2 AS cor0
----
-32
-50
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + 34 + + MIN( - + col2 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + 34 + + MIN ( - + col2 ) FROM tab0 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT CAST( NULL AS SIGNED ) - + 10 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT CAST ( NULL AS INTEGER ) - + 10 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + COUNT( * ) + + - 35 AS col0 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + COUNT ( * ) + + - 35 AS col0 FROM tab2 AS cor0
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9135
SELECT ALL - CAST( NULL AS DECIMAL ), col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL - CAST ( NULL AS REAL ), col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL 50 + - + COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 50 + - + COUNT ( * ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - COUNT( * ) * - MAX( + col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - COUNT ( * ) * - MAX ( + col0 ) FROM tab2
----
225

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT - ( + MIN( - 16 ) ) col1 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9140
SELECT DISTINCT - ( + MIN ( - 16 ) ) col1 FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 NOT BETWEEN 92 - + + col1 AND ( col2 * 94 )
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9142
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) DIV - 81 * - 23 + + 40 AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / - 81 * - 23 + + 40 AS col0 FROM tab1
----
40

query I rowsort
SELECT DISTINCT col2 * + 81 AS col1 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT DISTINCT col2 + 57 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
116
125
153

query II rowsort
SELECT + col2 AS col0, col2 * + + col0 * + + col1 FROM tab2 AS cor0
----
23
53958
40
197120
58
291450

query I rowsort
SELECT DISTINCT 37 * + + 49 FROM tab2 AS cor0
----
1813

query I rowsort
SELECT ALL - 1 * - + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + + 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT - COUNT( + 33 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - COUNT ( + 33 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 * - 73 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT col0 * + 47 AS col1 FROM tab2 AS cor0
----
2162
3008
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81 + - - 95 col0, + 33 - + - 59 col1 FROM tab0 cor0
----
176
92
176
92
176
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT - MIN( ALL col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + SUM( - - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9155
SELECT + SUM ( - - col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT ALL col0 + ( + ( + 40 ) ) FROM tab2 WHERE NULL BETWEEN NULL AND 13
----

query I rowsort
SELECT ALL 98 * - + col2 + 60 FROM tab2
----
-2194
-3860
-5624

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) < 92 OR NOT + col2 BETWEEN ( NULL ) AND - col1 + 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - 5 FROM tab2 AS cor0
----
-255
-335
-385

query I rowsort
SELECT DISTINCT - 46 + - col0 AS col0 FROM tab2 AS cor0
----
-110
-121
-92

query I rowsort
SELECT DISTINCT - 57 + - + col0 FROM tab1 AS cor0
----
-108
-142
-148

query I rowsort
SELECT DISTINCT + - 22 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-22

query I rowsort
SELECT 97 + + col1 FROM tab1
----
102
111
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9164
SELECT * FROM tab0 WHERE + - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9164
SELECT * FROM tab0 WHERE + - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT + MIN( 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT + MIN ( 58 ) FROM tab1
----
58

query I rowsort
SELECT + + 56 + - - 93 AS col2 FROM tab1 AS cor0
----
149
149
149

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col0 > NULL
----

query II rowsort
SELECT 71 + - col2 AS col1, col1 FROM tab0 AS cor0
----
-28
1
24
81
61
21

query I rowsort
SELECT col1 + - - ( 63 ) AS col0 FROM tab2 cor0
----
114
130
140

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9170
SELECT * FROM tab2 AS cor0 WHERE 79 <= CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9170
SELECT * FROM tab2 AS cor0 WHERE 79 <= CAST ( col2 AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 43 ) AND + + 54 * - 15 + - 90
----

query II rowsort
SELECT - col2 AS col2, col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 84 = + + col1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 WHERE + - 53 IS NOT NULL
----
89

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col1 * + + 1 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL col2, 62 FROM tab2
----
23
62
40
62
58
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT DISTINCT CAST( - + 99 AS SIGNED ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT CAST ( - + 99 AS INTEGER ) FROM tab2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT CAST( NULL AS SIGNED ) / - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT CAST ( NULL AS INTEGER ) / - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 74 ) AS col2 FROM tab1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT 79 * - + COUNT( * ) FROM tab1 WHERE 95 * + - 59 + - - col0 - - CAST( NULL AS SIGNED ) * + col1 * + - 24 / + - 69 + + col2 <> + 64
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT 79 * - + COUNT ( * ) FROM tab1 WHERE 95 * + - 59 + - - col0 - - CAST ( NULL AS INTEGER ) * + col1 * + - 24 / + - 69 + + col2 <> + 64
----
0

query I rowsort
SELECT ALL 22 * - - 62 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2090244b15d94aaffc80e2a4f7649be6

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT DISTINCT - 5 AS col2, + COUNT( * ) FROM tab0, tab2 cor0
----
-5
9

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT - 5 AS col2, + COUNT ( * ) FROM tab0, tab2 cor0
----
-5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - 20 * 43 + + + ( COUNT( * ) ) FROM tab0
----
-857

skipif mysql # not compatible
query I rowsort label-9184
SELECT - 20 * 43 + + + ( COUNT ( * ) ) FROM tab0
----
-857

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT COUNT( * ) * + MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9186
SELECT COUNT ( * ) * + MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT DISTINCT col2 DIV - - col1 AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT col2 / - - col1 AS col2 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9188
SELECT COUNT( * ) DIV + 83 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT COUNT ( * ) / + 83 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT DISTINCT MAX( + CAST( - col0 AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT MAX ( + CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT ( ( + 88 ) ) * SUM( - 14 ) + 45 AS col1 FROM tab1
----
-3651

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT ( ( + 88 ) ) * SUM ( - 14 ) + 45 AS col1 FROM tab1
----
-3651

query I rowsort
SELECT + 50 + + 79 FROM tab0
----
129
129
129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9192
SELECT * FROM tab2 WHERE - 17 + - + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9192
SELECT * FROM tab2 WHERE - 17 + - + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL COUNT( 4 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL COUNT ( 4 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 87 ) + - col1 * - col1 * - col2 FROM tab2 AS cor0
----
-237247
-260449
-59910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9196
SELECT ALL col0 + + - 49 col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-34
NULL
38
NULL
48
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9196
SELECT ALL col0 + + - 49 col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-34
NULL
38
NULL
48
NULL

query II rowsort
SELECT + + 31 AS col2, col1 AS col1 FROM tab2 WHERE - 35 IS NULL
----

query I rowsort
SELECT ALL - 11 FROM tab1 WHERE NOT + + 1 / - col2 + - col0 + + col2 > 36
----
-11
-11

query I rowsort
SELECT - 52 - 43 FROM tab2 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT DISTINCT 53 AS col2, - COUNT( * ) + - + 89 FROM tab1 AS cor0
----
53
-92

skipif mysql # not compatible
query II rowsort label-9200
SELECT DISTINCT 53 AS col2, - COUNT ( * ) + - + 89 FROM tab1 AS cor0
----
53
-92

query I rowsort
SELECT - ( + 27 ) * col1 * col2 FROM tab0 AS cor0
----
-102789
-2673
-5670

query I rowsort
SELECT + col0 * + col0 + - ( + + col1 ) FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL COUNT( * ) AS col0, - 55 FROM tab2 cor0
----
3
-55

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL COUNT ( * ) AS col0, - 55 FROM tab2 cor0
----
3
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT + + 11 DIV + - col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT + + 11 / + - col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 56 * col1 AS col2 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL - COUNT( * ) - 93 AS col2 FROM tab2, tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - COUNT ( * ) - 93 AS col2 FROM tab2, tab1 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL - SUM( - - 55 ) * - + SUM( ( - + 61 ) ) FROM tab0
----
-30195

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - SUM ( - - 55 ) * - + SUM ( ( - + 61 ) ) FROM tab0
----
-30195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - MAX( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9209
SELECT - MAX ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - col1 + col0 - - 64 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 73 AS col1, - col1 - col2 col2, + col2 + + col1 * 64 FROM tab2
----
9 values hashing to 0d73f9387f631e2d1ffeb776985df61e

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + + MIN( 64 ) FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-9213
SELECT + + MIN ( 64 ) FROM tab2 cor0
----
64

query I rowsort
SELECT + col2 + - + 35 + - ( - + 67 ) FROM tab0 AS cor0
----
131
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT ALL CAST( + 86 AS SIGNED ) FROM tab1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL CAST ( + 86 AS INTEGER ) FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT col0 * + - ( + col2 ) * 36 FROM tab1
----
-176256
-180540
-222768

query I rowsort
SELECT - 49 * col2 AS col2 FROM tab0
----
-2303
-4851
-490

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 32 IS NOT NULL OR col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col2 + col1 * ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - + 64 + COUNT( * ) + - - MIN( - 34 ) AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - + 64 + COUNT ( * ) + - - MIN ( - 34 ) AS col0 FROM tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 * - CAST( - 57 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 * - CAST ( - 57 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 92 - 45 * + col0 FROM tab0 AS cor0
----
-4007
-4457
-767

query I rowsort
SELECT DISTINCT - 86 - - + ( + 95 ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9224
SELECT - COUNT( * ) * + + COUNT( * ) DIV COUNT( + - CAST( - + 91 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9224
SELECT - COUNT ( * ) * + + COUNT ( * ) / COUNT ( + - CAST ( - + 91 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 + + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 89 + - + 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9226
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 89 + - + 90 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 37 - + + col2 col1 FROM tab0 AS cor0 WHERE NOT col1 + + 9 IN ( + col2, col2 )
----
-10
-62
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9228
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9228
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - col2 - - col2 + - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT + CAST( NULL AS SIGNED ) / - - 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT + CAST ( NULL AS INTEGER ) / - - 80 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT ALL 43, 65 + + COUNT( * ) AS col1 FROM tab0
----
43
68

skipif mysql # not compatible
query II rowsort label-9232
SELECT ALL 43, 65 + + COUNT ( * ) AS col1 FROM tab0
----
43
68

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab0 WHERE NOT + col1 <= + col0
----
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - MAX( + + 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9235
SELECT - MAX ( + + 47 ) FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL + ( - CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL <> - - CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + ( - CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL <> - - CAST ( - - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * 71 AS col2 FROM tab2 AS cor0
----
3621
4757
5467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + + col1 col0 FROM tab2 AS cor0
----
130
146
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - 6 ) col1 FROM tab0
----
103
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT 7 + ( - COUNT( DISTINCT - col1 ) ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT 7 + ( - COUNT ( DISTINCT - col1 ) ) AS col1 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT COUNT( DISTINCT + ( + + col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9242
SELECT COUNT ( DISTINCT + ( + + col2 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 95 * col0 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT ( + 70 ) * - + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT ( + 70 ) * - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT col2 * - col1 + + 11 AS col1 FROM tab1 AS cor0
----
-1333
-284
-3185

query I rowsort
SELECT + - col1 * + - col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT COUNT( * ) AS col1, COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9247
SELECT COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) - + - col0 col2 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1, - 16 col2 FROM tab0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT 82 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT 82 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 14 BETWEEN NULL AND 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT + col1 DIV - col1 * + - col1 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9252
SELECT + col1 / - col1 * + - col1 / col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - SUM( 38 ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9253
SELECT - SUM ( 38 ) FROM tab0 AS cor0
----
-114

query I rowsort
SELECT ALL col2 * + + 27 FROM tab1
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - MIN( ALL - 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9255
SELECT - MIN ( ALL - 4 ) FROM tab2
----
4

query I rowsort
SELECT DISTINCT col1 * - 32 * - 39 AS col2 FROM tab1
----
17472
58656
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - MIN( DISTINCT col2 ) FROM tab0 WHERE NOT + col0 BETWEEN + col2 AND col0
----
-47

skipif mysql # not compatible
query I rowsort label-9257
SELECT - MIN ( DISTINCT col2 ) FROM tab0 WHERE NOT + col0 BETWEEN + col2 AND col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9258
SELECT - + 75 * + MAX( - 82 ) * - - 79 AS col0, + COUNT( * ) DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
485850
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9258
SELECT - + 75 * + MAX ( - 82 ) * - - 79 AS col0, + COUNT ( * ) / + COUNT ( * ) col1 FROM tab2 AS cor0
----
485850
1

query I rowsort
SELECT - col0 * 52 FROM tab1 AS cor0 WHERE NOT - col1 < ( - ( 17 ) + - - 56 * + 50 )
----

query II rowsort
SELECT + + col0, - 98 * col0 * - 26 + + col1 AS col2 FROM tab1 AS cor0
----
51
129962
85
216585
91
231915

onlyif mysql # DIV for integer division: 
query II rowsort label-9261
SELECT DISTINCT - col1 DIV + 53, col2 * col1 AS col2 FROM tab1
----
0
1344
0
295
0
3196

skipif mysql # not compatible
query II rowsort label-9261
SELECT DISTINCT - col1 / + 53, col2 * col1 AS col2 FROM tab1
----
0
1344
0
295
0
3196

query I rowsort
SELECT DISTINCT 83 * col2 FROM tab2
----
1909
3320
4814

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 - - col0 AND - col0
----

query II rowsort
SELECT ALL + col0 * col0 AS col0, col0 * - col2 AS col2 FROM tab1
----
2601
-4896
7225
-5015
8281
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT - - SUM( + 14 ) AS col2 FROM tab1 WHERE NOT NULL = + col2 * col2 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - SUM ( + 14 ) AS col2 FROM tab1 WHERE NOT NULL = + col2 * col2 * col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + 65 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + 65 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + 83 * - 9 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-747
-747
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT COUNT( * ) FROM tab0 WHERE 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT COUNT ( * ) FROM tab0 WHERE 63 IS NULL
----
0

query II rowsort
SELECT + 49 AS col1, - 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to aa5649a2027db7649e959345f184b789

query I rowsort
SELECT ALL + + 6 + + - 57 AS col0 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9271
SELECT * FROM tab2 AS cor0 WHERE ( - CAST( - 92 AS SIGNED ) * col0 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9271
SELECT * FROM tab2 AS cor0 WHERE ( - CAST ( - 92 AS INTEGER ) * col0 ) >= NULL
----

query I rowsort
SELECT ALL + ( - col2 ) * + col0 FROM tab0 AS cor0 WHERE col1 = + - col1
----

query I rowsort
SELECT ALL - col0 + + 72 AS col2 FROM tab0 AS cor0
----
-15
-25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + + - col1 + - - col2 + + col1 col1 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT 23 FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT DISTINCT + CAST( + - 28 AS SIGNED ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + CAST ( + - 28 AS INTEGER ) FROM tab2 AS cor0
----
-28

query I rowsort
SELECT - 98 + + col2 - - col1 FROM tab2 WHERE - col1 + 50 > NULL
----

query II rowsort
SELECT ALL col0 * + col2 AS col0, col2 - - - col1 FROM tab2
----
1058
-28
2560
-37
4350
-9

query I rowsort
SELECT 43 * - + col0 FROM tab0
----
-3741
-4171
-645

query I rowsort
SELECT col1 - - - col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col0 + - + ( col2 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + 56 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56

query I rowsort
SELECT DISTINCT 76 * - col1 * - 48 FROM tab2
----
186048
244416
280896

query I rowsort
SELECT ALL - col2 / col2 + + 60 + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - - MIN( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - - MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9287
SELECT ALL + MAX( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL + MAX ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT ALL - 30 * col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - 30 * col0 / col0 AS col0 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT DISTINCT + col2 / + - CAST( NULL AS SIGNED ) * - + ( + col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + col2 / + - CAST ( NULL AS INTEGER ) * - + ( + col2 ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT + col1 AS col1, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL + ( - - 63 ) FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL 48 * - COUNT( * ) AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL 48 * - COUNT ( * ) AS col2 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - 89 + MIN( ALL col2 ) AS col2 FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 89 + MIN ( ALL col2 ) AS col2 FROM tab0 cor0
----
-79

query I rowsort
SELECT - + ( + - 68 ) + + + 24 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT COUNT( * ) + - - MIN( - 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9296
SELECT COUNT ( * ) + - - MIN ( - 6 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - col1
----

query I rowsort
SELECT 70 + col2 * - col0 AS col2 FROM tab1
----
-4826
-4945
-6118

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT DISTINCT + 15 - col0 + + col2 + - col1 DIV + - 13 FROM tab1 WHERE NOT - + col0 * + 13 DIV col0 - - col1 * col1 = - col0
----
-11
-5
61

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + 15 - col0 + + col2 + - col1 / + - 13 FROM tab1 WHERE NOT - + col0 * + 13 / col0 - - col1 * col1 = - col0
----
-11
-5
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - col2, - 68 col0 FROM tab1
----
-21
-68
-54
-68
-82
-68

query I rowsort
SELECT - ( 86 ) + + col2 AS col1 FROM tab0
----
-39
-76
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL 30 * - - CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL 30 * - - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT col2 + + col0 + 47 FROM tab0 cor0
----
109
144
243

query II rowsort
SELECT - 35 * + col0 + - - 41 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE - 23 * col0 = ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 > - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab1 AS cor0 WHERE ( + ( - col2 ) ) + - 10 - + ( - 56 ) IS NULL
----

query I rowsort
SELECT col2 - - + col0 AS col1 FROM tab2 cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9308
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + col1 AS SIGNED ) * + col2 + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9308
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) * + col2 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT + col2 + - - CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + col2 + - - CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT + + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL CAST( NULL AS SIGNED ) - + + COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9312
SELECT ALL CAST ( NULL AS INTEGER ) - + + COUNT ( * ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 WHERE - + col0 >= - 49
----

query I rowsort
SELECT DISTINCT 98 - + ( - col2 ) AS col1 FROM tab2
----
121
138
156

query II rowsort
SELECT ALL - ( - + col0 ) AS col2, - col1 * + - 26 + + col1 FROM tab1 WHERE - col0 + - 66 IS NULL
----

query I rowsort
SELECT 73 * 58 + - col1 FROM tab2
----
4157
4167
4183

query I rowsort
SELECT ALL + col2 - - + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT - col0 + + + col1 + - + col0 * - - col0 FROM tab0
----
-159
-7635
-9505

query II rowsort
SELECT ALL + - 36 AS col0, 31 FROM tab1 AS cor0
----
-36
31
-36
31
-36
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 70 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL + - SUM( DISTINCT - + 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL + - SUM ( DISTINCT - + 57 ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT - - 19 AS col2 FROM tab0 AS cor0 WHERE NOT 37 * - col2 IS NULL
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9323
SELECT ALL + col1, - CAST( NULL AS SIGNED ) * - - col2 * + col0 * + col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL + col1, - CAST ( NULL AS INTEGER ) * - - col2 * + col0 * + col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT - + COUNT( * ) DIV + 40 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT - + COUNT ( * ) / + 40 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 76 * - col1 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # DIV for integer division: 
query II rowsort label-9326
SELECT - - col2 DIV ( + ( + 34 ) ) AS col1, - col0 FROM tab2 AS cor0
----
0
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-9326
SELECT - - col2 / ( + ( + 34 ) ) AS col1, - col0 FROM tab2 AS cor0
----
0
-46
1
-64
1
-75

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT COUNT( * ) col1 FROM tab0 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-9328
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT + COUNT( ALL - + 14 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9329
SELECT + COUNT ( ALL - + 14 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT col0 * - + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + - MAX( ALL + 22 ) col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9331
SELECT + - MAX ( ALL + 22 ) col0 FROM tab0 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 97 > NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 + - + col2 AS col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT - col1 * + 92 AS col0 FROM tab2 cor0
----
-4692
-6164
-7084

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - COUNT( * ) * - + 72 AS col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - COUNT ( * ) * - + 72 AS col1 FROM tab2 AS cor0
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 * + 9 + - col1 col1 FROM tab2 AS cor0
----
-339
-355
-365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9338
SELECT ALL - col0 * - + CAST( NULL AS DECIMAL ) * 19 * + 69 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - col0 * - + CAST ( NULL AS REAL ) * 19 * + 69 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 24 * col1 AS col2 FROM tab2
----
107736
142296
62424

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL + MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + MAX ( - + col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT ALL SUM( DISTINCT + + col2 ) DIV ( + - ( - - MAX( - col0 ) ) ) + - 80 + + + 88 AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL SUM ( DISTINCT + + col2 ) / ( + - ( - - MAX ( - col0 ) ) ) + - 80 + + + 88 AS col0 FROM tab1
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND + col2 * + col2 + + col2
----

query I rowsort
SELECT DISTINCT - col1 + col2 * - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT - col2 + - 10 AS col1 FROM tab2 AS cor0
----
-33
-50
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT col2 DIV 24 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT col2 / 24 FROM tab2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ALL + 26 DIV col1 - + - col2 + + ( - - col1 ) FROM tab1
----
111
115
69

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + 26 / col1 - + - col2 + + ( - - col1 ) FROM tab1
----
111
115
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT MAX( ( - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT MAX ( ( - col1 ) ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT 87 + + col0 AS col1 FROM tab2
----
133
151
162

query I rowsort
SELECT - 47 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + 53 + + + col0 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT ALL 64 + - 1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT + + CAST( NULL AS SIGNED ) + - 39 + - - 89 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT + + CAST ( NULL AS INTEGER ) + - 39 + - - 89 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT NULL <> + 94
----

query I rowsort
SELECT - 38 + + 38 * + 58 AS col2 FROM tab2 cor0
----
2166
2166
2166

query I rowsort
SELECT - col0 + + 93 * - ( 72 ) * + col2 AS col0 FROM tab0 AS cor0
----
-314727
-663001
-67047

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9357
SELECT ALL - - 84 FROM tab2 cor0 WHERE - col1 NOT IN ( + 50, CAST( + - 46 AS DECIMAL ) * + col1, - 77 + + + col1, - col1, + col2 / - - col1 )
----

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - - 84 FROM tab2 cor0 WHERE - col1 NOT IN ( + 50, CAST ( + - 46 AS REAL ) * + col1, - 77 + + + col1, - col1, + col2 / - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT + 39 + - 20 FROM tab2 cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + ( + + COUNT( * ) ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9360
SELECT + ( + + COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT 48 DIV + COUNT( * ) FROM tab2 WHERE NOT ( NOT col2 IS NOT NULL )
----
16

skipif mysql # not compatible
query I rowsort label-9361
SELECT 48 / + COUNT ( * ) FROM tab2 WHERE NOT ( NOT col2 IS NOT NULL )
----
16

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col0 ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + MAX( DISTINCT 70 ) col2 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9363
SELECT + MAX ( DISTINCT 70 ) col2 FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ( + + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9364
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col1 * - + 64 * - col0 AS col0 FROM tab0
----
116928
6208
77760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = CAST( + col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = CAST ( + col0 AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col1 FROM tab0 cor0
----
-97

query I rowsort
SELECT ALL col0 + ( - 92 ) FROM tab0 AS cor0
----
-5
-77
5

query I rowsort
SELECT ( ( - - col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT ALL + - 76 * col0 DIV col0 FROM tab1 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + - 76 * col0 / col0 FROM tab1 AS cor0
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT - - 25 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9373
SELECT - - 25 / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT - 89 * + + col2 - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT - 2 DIV 52 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT - 2 / 52 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9376
SELECT ALL + - CAST( NULL AS DECIMAL ) * + + AVG ( ( + col2 ) ) * 55 + + COUNT( * ) AS col0 FROM tab1 WHERE NOT - col1 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + - CAST ( NULL AS REAL ) * + + AVG ( ( + col2 ) ) * 55 + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col1 + - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + 64 ) AS col0 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL SUM( - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL SUM ( - col0 ) FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col2 FROM tab0 WHERE - - ( + col0 ) IS NOT NULL
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT 95 + 27 DIV - col0 FROM tab0
----
94
95
95

skipif mysql # not compatible
query I rowsort label-9380
SELECT 95 + 27 / - col0 FROM tab0
----
94
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL 57 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL 57 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
60

query I rowsort
SELECT col0 + 29 FROM tab1 AS cor0
----
114
120
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT col2 / CAST( NULL AS SIGNED ) + 94 + - 58 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT col2 / CAST ( NULL AS INTEGER ) + 94 + - 58 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 95 - + col2 AS col0 FROM tab0
----
-105
-142
-194

query I rowsort
SELECT DISTINCT 85 * - 81 AS col1 FROM tab1
----
-6885

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL COUNT( * ) * - MAX( + col1 ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL COUNT ( * ) * - MAX ( + col1 ) AS col2 FROM tab0
----
-243

query I rowsort
SELECT + col0 - + - 75 FROM tab1 AS cor0
----
126
160
166

query I rowsort
SELECT DISTINCT - 1 * col0 + - 80 AS col0 FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - + COUNT( * ) - + 36 FROM tab2 AS cor0 WHERE NOT + 15 IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-9389
SELECT - + COUNT ( * ) - + 36 FROM tab2 AS cor0 WHERE NOT + 15 IS NOT NULL
----
-36

query I rowsort
SELECT - 12 * + - 24 AS col1 FROM tab2 AS cor0
----
288
288
288

query I rowsort
SELECT + col0 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - col2 / 67 <> - 7 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 col1 FROM tab1 AS cor0
----
-60
-60
-60

query II rowsort
SELECT DISTINCT + col2, ( col0 ) + col2 FROM tab2
----
23
69
40
104
58
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL MIN( 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL MIN ( 63 ) FROM tab1
----
63

query I rowsort
SELECT - 73 * - 29 AS col0 FROM tab1
----
2117
2117
2117

query II rowsort
SELECT DISTINCT 68 AS col1, col0 AS col1 FROM tab0
----
68
15
68
87
68
97

query II rowsort
SELECT ALL - 46, + 48 AS col1 FROM tab2
----
-46
48
-46
48
-46
48

query II rowsort
SELECT col0 AS col2, - 50 AS col2 FROM tab0 AS cor0
----
15
-50
87
-50
97
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 <= - + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT DISTINCT + - ( CAST( + SUM( ALL - - 87 ) AS SIGNED ) ) + - MAX( ALL - 90 ) * + 3 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + - ( CAST ( + SUM ( ALL - - 87 ) AS INTEGER ) ) + - MAX ( ALL - 90 ) * + 3 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE NOT + 75 / - col1 + + - col2 * + col0 * - col2 >= + col2 * - - 66 * - - col2 + col0 AND NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9402
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE NOT + 75 / - col1 + + - col2 * + col0 * - col2 >= + col2 * - - 66 * - - col2 + col0 AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT 39 + - MIN( ALL - - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9403
SELECT 39 + - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 57 + - 5 FROM tab2 AS cor0
----
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 89 * ( + col0 ) / + col0 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL CAST( - 52 AS SIGNED ) AS col1 FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL CAST ( - 52 AS INTEGER ) AS col1 FROM tab2
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL - 56 * + col2 FROM tab1
----
-3304
-3808
-5376

query II rowsort
SELECT + col0 * col2 * - - col1 AS col0, col1 AS col2 FROM tab2
----
197120
77
291450
67
53958
51

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT 71 * 80 AS col2 FROM tab1 AS cor0
----
5680
5680
5680

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT col2 DIV 67 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT col2 / 67 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT + CAST( col0 AS SIGNED ) - col1 AS col1 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-9413
SELECT + CAST ( col0 AS INTEGER ) - col1 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT - 74 * COUNT( * ) AS col2 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9414
SELECT - 74 * COUNT ( * ) AS col2 FROM tab0
----
-222

query I rowsort
SELECT + 0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 8 * 97 AS col2 FROM tab2
----
776
776
776

query I rowsort
SELECT 45 FROM tab0 WHERE - 45 IS NOT NULL
----
45
45
45

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + ( - 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT ( CAST( NULL AS SIGNED ) ) * + AVG ( ALL - col1 / + col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT ( CAST ( NULL AS INTEGER ) ) * + AVG ( ALL - col1 / + col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 55 * col1 AS col2 FROM tab0
----
1155
4455
55

query I rowsort
SELECT 24 * col0 AS col2 FROM tab1
----
1224
2040
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT DISTINCT + col1 * - ( col0 DIV col1 ) FROM tab1
----
-42
-47
-85

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + col1 * - ( col0 / col1 ) FROM tab1
----
-42
-47
-85

query I rowsort
SELECT 67 - + col0 FROM tab0
----
-20
-30
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT 82 * + COUNT( * ) FROM tab1 WHERE - col2 / + col0 + + 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT 82 * + COUNT ( * ) FROM tab1 WHERE - col2 / + col0 + + 71 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE NOT + col1 / + col0 IN ( 12 * 4 - col1 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9426
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE NOT + col1 / + col0 IN ( 12 * 4 - col1 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - col1 DIV 96 + - 21 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-9427
SELECT - col1 / 96 + - 21 FROM tab1
----
-21
-21
-21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / + col0 + col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) * + col2 <> + col0 * + ( + 27 ) + 55
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col0 * - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT - 17 - COUNT( * ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - 17 - COUNT ( * ) FROM tab2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT CAST( + MIN( ALL - col2 ) AS SIGNED ) + - MIN( - col2 + + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9432
SELECT CAST ( + MIN ( ALL - col2 ) AS INTEGER ) + - MIN ( - col2 + + col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL - col0 * + col1 + - 4 FROM tab1
----
-4281
-429
-718

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col0 ) * + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 63 + ( - col0 + - 93 * col2 ) AS col1 FROM tab1
----
-5509
-6352
-8916

query I rowsort
SELECT col2 FROM tab0 WHERE ( + 77 ) / col2 NOT BETWEEN NULL AND + col2 + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - ( - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT 22 FROM tab2 WHERE NOT ( NULL ) = ( - col0 ) + ( col2 )
----

query I rowsort
SELECT 71 + 25 AS col1 FROM tab0
----
96
96
96

query I rowsort
SELECT ALL + col2 + ( - col0 ) FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + col0 + - 91 * 83 AS col0 FROM tab0
----
-7456
-7466
-7538

query I rowsort
SELECT DISTINCT + - 13 + + col1 FROM tab2 AS cor0
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + 49 + MIN( 86 ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + 49 + MIN ( 86 ) FROM tab1 AS cor0
----
135

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 * + 95 FROM tab2 AS cor0
----
4868
6423
7355

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + col1 * col0 col0 FROM tab0
----
10962
582
7290

query I rowsort
SELECT 24 - col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT col2 - - col1 - + 57 FROM tab0
----
-26
43
71

query I rowsort
SELECT col0 - + - col0 AS col0 FROM tab2
----
128
150
92

query I rowsort
SELECT - col1 + + - ( col2 ) AS col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - 96 * + - col0 FROM tab0
----
1440
8352
9312

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 <= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9456
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL OR NULL BETWEEN ( NULL ) AND + CAST( col2 AS SIGNED ) + col0 * 85
----

skipif mysql # not compatible
query III rowsort label-9456
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL OR NULL BETWEEN ( NULL ) AND + CAST ( col2 AS INTEGER ) + col0 * 85
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) + ( col0 ) NOT BETWEEN NULL AND col1 AND NOT col0 + + ( col2 ) * + 24 IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( 55 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL COUNT( * ) + - COUNT( * ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9460
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - col1 + + col1 FROM tab1 cor0 WHERE 63 + 3 IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * 97 + 75 col1 FROM tab2 AS cor0
----
366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9463
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * 97 + 75 col1 FROM tab2 AS cor0
----
366

query II rowsort
SELECT col1, + col1 * + ( - col1 ) - 55 * + 40 AS col0 FROM tab0
----
1
-2201
21
-2641
81
-8761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NULL IN ( col1 / + col0 + col0 / 31 )
----

query I rowsort
SELECT ALL 80 - + 59 AS col0 FROM tab1
----
21
21
21

query II rowsort
SELECT ALL + col1, + col2 + - col2 - + 55 FROM tab2
----
51
-55
67
-55
77
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL COUNT( * ) * 87 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL COUNT ( * ) * 87 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT + 63 DIV - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-19
-87
-97

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 63 / - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-19
-87
-97

query II rowsort
SELECT ALL - col1 AS col2, - 99 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1
-9603
-21
-8613
-81
-1485

query I rowsort
SELECT ALL + col2 * col0 * + - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT - COUNT( * ) * - 27 * + - 87 * - MIN( ALL col0 ) col1 FROM tab2 AS cor0
----
324162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9472
SELECT DISTINCT - COUNT ( * ) * - 27 * + - 87 * - MIN ( ALL col0 ) col1 FROM tab2 AS cor0
----
324162

onlyif mysql # DIV for integer division: 
query II rowsort label-9473
SELECT + + 54 AS col2, - col2 DIV + + col1 + - col0 FROM tab1 AS cor0
----
54
-57
54
-92
54
-96

skipif mysql # not compatible
query II rowsort label-9473
SELECT + + 54 AS col2, - col2 / + + col1 + - col0 FROM tab1 AS cor0
----
54
-57
54
-92
54
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + MIN( + col0 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9474
SELECT + MIN ( + col0 ) AS col0 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT + 89 * - - ( + col1 ) * + 56 + + ( + col0 ) FROM tab1
----
234339
25005
69827

query I rowsort
SELECT DISTINCT 12 * 66 AS col0 FROM tab0
----
792

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL IN ( col0 * col1 * col1 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT - 96 DIV - col1 FROM tab0
----
1
4
96

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - 96 / - col1 FROM tab0
----
1
4
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT DISTINCT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 29 * + col2 + + col0 = NULL
----

query I rowsort
SELECT ALL - 44 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - ( + + col0 ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - + COUNT( - - col2 ) * - - COUNT( col1 ) AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9482
SELECT - + COUNT ( - - col2 ) * - - COUNT ( col1 ) AS col0 FROM tab0 cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - col0 + - col0 * - col1 >= ( 73 * + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9484
SELECT ALL - 66 DIV MAX( ALL + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - 66 / MAX ( ALL + col0 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col2 / - - col2
----

query I rowsort
SELECT + 58 + 3 + + col1 * - ( - col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-36
-38306
-98354

query I rowsort
SELECT ALL - 97 + - col2 FROM tab0 AS cor0
----
-107
-144
-196

query I rowsort
SELECT + 92 * - - col0 + + col0 * col0 FROM tab2 cor0
----
12525
6348
9984

query I rowsort
SELECT ALL 93 * + 25 * - + col0 * - 92 + col0 + col2 * - 65 FROM tab0 AS cor0
----
18608737
20741962
3205460

query I rowsort
SELECT DISTINCT ( - col1 ) + - - col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT ALL + + col2 DIV + - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + + col2 / + - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 * - ( col0 ) + col1 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9493
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * CAST( + 73 AS SIGNED ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9493
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * CAST ( + 73 AS INTEGER ) + + - col2 IS NULL
----

query I rowsort
SELECT - col0 + + col1 + 75 * + 99 AS col2 FROM tab1 AS cor0
----
7345
7381
7388

query I rowsort
SELECT ALL - + 11 + + + 6 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT + 63 + - ( 50 + col1 ) / col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND CAST( 23 AS SIGNED ) * col1 - - CAST( - 7 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 63 + - ( 50 + col1 ) / col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND CAST ( 23 AS INTEGER ) * col1 - - CAST ( - 7 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE ( ( + col1 ) <> NULL )
----

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2 WHERE NOT - col2 + - col0 NOT BETWEEN NULL AND + 72
----

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 89 * + - 30 - - col0 * + col1 IS NULL
----

query II rowsort
SELECT ALL col2 AS col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + SUM( ALL + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9503
SELECT + SUM ( ALL + - col2 ) FROM tab1
----
-223

query II rowsort
SELECT ALL - col0 AS col0, + col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - col1 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT ( col0 ) - - 35 * col2 FROM tab1 cor0
----
2150
2471
3411

query I rowsort
SELECT 18 * - ( + col1 ) + + 44 - + 41 FROM tab1 AS cor0
----
-249
-843
-87

query I rowsort
SELECT col0 - - col2 * - col0 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT 9 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 29 - col2 + col0 BETWEEN col1 * - col1 AND + col2 + + 85
----
891

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 * + col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT COUNT( ALL - - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT COUNT ( ALL - - col0 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < ( 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT ( CAST( 53 AS SIGNED ) ) * col0 AS col0 FROM tab0 AS cor0
----
4611
5141
795

skipif mysql # not compatible
query I rowsort label-9514
SELECT ( CAST ( 53 AS INTEGER ) ) * col0 AS col0 FROM tab0 AS cor0
----
4611
5141
795

query I rowsort
SELECT col2 * - - 37 AS col0 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT COUNT( * ) * + - ( - 8 ) FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT COUNT ( * ) * + - ( - 8 ) FROM tab1 cor0
----
24

query II rowsort
SELECT DISTINCT - 69, col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 + - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - SUM( DISTINCT 75 ) * + 95 AS col2 FROM tab0 cor0
----
-7125

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - SUM ( DISTINCT 75 ) * + 95 AS col2 FROM tab0 cor0
----
-7125

query I rowsort
SELECT DISTINCT col1 * + + 86 * 24 AS col2 FROM tab2 AS cor0
----
105264
138288
158928

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - MAX( + 27 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - MAX ( + 27 ) AS col2 FROM tab2
----
-27

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL > - 70 * - 62 * + + col1
----

query I rowsort
SELECT - ( - + 24 ) FROM tab1
----
24
24
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + ( + + col1 ) = NULL
----

query I rowsort
SELECT ALL 93 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT - ( col2 ) * 14 + - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1386
-148
-658

skipif mysql # not compatible
query I rowsort label-9526
SELECT - ( col2 ) * 14 + - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-1386
-148
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - SUM( DISTINCT - - col0 ) + - 79 FROM tab0
----
-278

skipif mysql # not compatible
query I rowsort label-9527
SELECT - SUM ( DISTINCT - - col0 ) + - 79 FROM tab0
----
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT col0 AS col1 FROM tab2 WHERE ( NOT ( CAST( NULL AS SIGNED ) / - 82 ) <> 28 )
----

skipif mysql # not compatible
query I rowsort label-9528
SELECT col0 AS col1 FROM tab2 WHERE ( NOT ( CAST ( NULL AS INTEGER ) / - 82 ) <> 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL - 0 * + COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL - 0 * + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - 31 + col1 + - 36 AS col2 FROM tab2 AS cor0
----
-16
0
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL 22 - CAST( - COUNT( + col0 ) AS SIGNED ) + + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL 22 - CAST ( - COUNT ( + col0 ) AS INTEGER ) + + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-202

query I rowsort
SELECT DISTINCT - col2 * + 91 + + 66 FROM tab1
----
-5303
-6122
-8670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 - + 33 col2 FROM tab1
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 - - - col2 col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL ( - + COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT ALL ( - + COUNT ( * ) ) col2 FROM tab1
----
-3

query II rowsort
SELECT ALL 42 AS col0, - col0 AS col1 FROM tab1 cor0
----
42
-51
42
-85
42
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9537
SELECT 87 * COUNT( * ), - CAST( + 63 AS SIGNED ) DIV - 49 AS col1, 70 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT IN ( + col0 )
----
0
1
70

skipif mysql # not compatible
query III rowsort label-9537
SELECT 87 * COUNT ( * ), - CAST ( + 63 AS INTEGER ) / - 49 AS col1, 70 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT IN ( + col0 )
----
0
1
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT + + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9538
SELECT + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9539
SELECT ALL * FROM tab2 cor0 WHERE CAST( + - col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9539
SELECT ALL * FROM tab2 cor0 WHERE CAST ( + - col1 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL MIN( col0 ), COUNT( * ) AS col0 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL MIN ( col0 ), COUNT ( * ) AS col0 FROM tab2
----
46
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 4 = col1 / - col0 * 97 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 28 AS col0 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT 15 * - MIN( ALL - col1 ) FROM tab0 AS cor0 WHERE + 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT 15 * - MIN ( ALL - col1 ) FROM tab0 AS cor0 WHERE + 41 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT CAST( NULL AS SIGNED ) * col0 - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT CAST ( NULL AS INTEGER ) * col0 - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 27 * - 37 AS col2 FROM tab2 AS cor0
----
999

query I rowsort
SELECT + - col2 * - 99 AS col1 FROM tab2 AS cor0
----
2277
3960
5742

query I rowsort
SELECT ALL + + col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT - - COUNT( * ) * + 37 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9548
SELECT - - COUNT ( * ) * + 37 FROM tab2 AS cor0
----
111

query I rowsort
SELECT ALL col2 / + col1 + - 29 FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9550
SELECT col2 * + - col0 + - + col2 + col1 AS col1, col0 DIV + CAST( + - col1 AS SIGNED ) + + 87 * + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1030
46023
-2523
139200
-4341
292667

skipif mysql # not compatible
query II rowsort label-9550
SELECT col2 * + - col0 + - + col2 + col1 AS col1, col0 / + CAST ( + - col1 AS INTEGER ) + + 87 * + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1030
46023
-2523
139200
-4341
292667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9551
SELECT col2 AS col0, + col0 FROM tab2 WHERE NOT CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9551
SELECT col2 AS col0, + col0 FROM tab2 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - - 16 * - - col0 + + 8 + - - col2 * - - 38 * + 18 * col1 * - 42 AS col2 FROM tab1
----
-38532088
-8394512
-91715672

query I rowsort
SELECT ALL - col0 + - - ( ( + 68 ) ) * + 41 FROM tab2 cor0
----
2713
2724
2742

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT COUNT( + 32 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9554
SELECT COUNT ( + 32 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 67 / - + col2 / - col1 + + + col0 AS col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col2 AND 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT SUM( + 84 ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT SUM ( + 84 ) FROM tab1
----
252

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL >= 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT ALL + - col1 * ( + 60 ) DIV col1 - + col1 - + 22 FROM tab1 AS cor0
----
-129
-87
-96

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + - col1 * ( + 60 ) / col1 - + col1 - + 22 FROM tab1 AS cor0
----
-129
-87
-96

query I rowsort
SELECT DISTINCT + 72 + - ( - + 55 ) AS col1 FROM tab0 AS cor0
----
127

query I rowsort
SELECT 20 + - + col0 * - 45 AS col0 FROM tab0 AS cor0
----
3935
4385
695

query I rowsort
SELECT col1 + - + col2 * - + col2 + col0 AS col0 FROM tab1 AS cor0
----
3571
4762
9281

query I rowsort
SELECT + - col0 + 22 AS col1 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT + 47 * - 6 + + 18 AS col1, + 11 * + - COUNT( * ) AS col0 FROM tab1 cor0
----
-264
-33

skipif mysql # not compatible
query II rowsort label-9563
SELECT + 47 * - 6 + + 18 AS col1, + 11 * + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-264
-33

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 - - 84 + - 24 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 38 * col1 + + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
1739
185
518

query III rowsort
SELECT * FROM tab2 WHERE + col1 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - - col1 - col0 AS col1 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT ALL ( - col2 ) * 55 FROM tab1 cor0
----
-3245
-3740
-5280

query I rowsort
SELECT ALL - 5 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - - 39 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9573
SELECT - COUNT( * ) - CAST( 93 AS SIGNED ) FROM tab1, tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9573
SELECT - COUNT ( * ) - CAST ( 93 AS INTEGER ) FROM tab1, tab2 AS cor0
----
-102

query I rowsort
SELECT - 49 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + - col1 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT DISTINCT - ( - CAST( ( SUM( DISTINCT - ( + col1 ) ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - ( - CAST ( ( SUM ( DISTINCT - ( + col1 ) ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT SUM( 40 ) AS col0 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-9578
SELECT SUM ( 40 ) AS col0 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT MAX( ALL + 91 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9579
SELECT MAX ( ALL + 91 ) AS col2 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9580
SELECT col2 AS col1, col1 DIV col2 FROM tab2
----
23
2
40
1
58
1

skipif mysql # not compatible
query II rowsort label-9580
SELECT col2 AS col1, col1 / col2 FROM tab2
----
23
2
40
1
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - COUNT( * ) * + + SUM( + - 32 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9581
SELECT - COUNT ( * ) * + + SUM ( + - 32 ) FROM tab1
----
288

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + - ( - + 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT col2 DIV + 59 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9583
SELECT col2 / + 59 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT + col0 * 49 DIV + col0 FROM tab1
----
49
49
49

skipif mysql # not compatible
query I rowsort label-9584
SELECT + col0 * 49 / + col0 FROM tab1
----
49
49
49

query II rowsort
SELECT ALL col2 AS col2, + col2 - 90 FROM tab2
----
23
-67
40
-50
58
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL 68 + + COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL 68 + + COUNT ( * ) FROM tab1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT DISTINCT 56 DIV - col1 + - col1 * col1 FROM tab2 AS cor0
----
-2602
-4489
-5929

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT 56 / - col1 + - col1 * col1 FROM tab2 AS cor0
----
-2602
-4489
-5929

query II rowsort
SELECT DISTINCT 26 + - col2 AS col0, ( - - 60 ) AS col1 FROM tab1 AS cor0
----
-33
60
-42
60
-70
60

query I rowsort
SELECT + ( - + 60 ) FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT CAST( NULL AS SIGNED ) * + ( - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT CAST ( NULL AS INTEGER ) * + ( - col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN + + 41 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 1 * + + col1 * - col2 + col2 col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9593
SELECT ALL + CAST( - col1 AS SIGNED ) DIV col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL + CAST ( - col1 AS INTEGER ) / col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT - - ( 85 ) DIV + - 36 - - 88 AS col0 FROM tab2 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-9594
SELECT - - ( 85 ) / + - 36 - - 88 AS col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - 51 - + + 54 + + 44 + + 80 * + col0 FROM tab0
----
1139
6899
7699

query I rowsort
SELECT ALL col2 * - 6 FROM tab0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT DISTINCT COUNT( * ) * - - 56 * 19 AS col1 FROM tab2
----
3192

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT COUNT ( * ) * - - 56 * 19 AS col1 FROM tab2
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL - SUM( DISTINCT ( - col2 ) ) * - 64 * + COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9598
SELECT ALL - SUM ( DISTINCT ( - col2 ) ) * - 64 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT ALL - col1 DIV - col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT ALL - col1 / - col2 col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT ALL col2 DIV + + 15 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL col2 / + + 15 FROM tab1
----
3
4
6

query I rowsort
SELECT ALL col0 * - 10 AS col1 FROM tab0
----
-150
-870
-970

query I rowsort
SELECT 51 * - col0 FROM tab0 AS cor0
----
-4437
-4947
-765

query I rowsort
SELECT 82 * - col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + SUM( ALL - + col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9604
SELECT + SUM ( ALL - + col0 ) AS col1 FROM tab2 cor0
----
-185

query I rowsort
SELECT - + 22 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + col0 >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + col0 >= - col0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT DISTINCT 69 * + - ( - - ( + + 61 ) ) col1, + COUNT( * ) FROM tab1 AS cor0
----
-4209
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9608
SELECT DISTINCT 69 * + - ( - - ( + + 61 ) ) col1, + COUNT ( * ) FROM tab1 AS cor0
----
-4209
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT DISTINCT - 47 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( + - ( + col1 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT - 47 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( + - ( + col1 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 49 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
-48
392
6512

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 74 AND NULL
----

query I rowsort
SELECT - 53 + - - col1 AS col0 FROM tab2 AS cor0
----
-2
14
24

query II rowsort
SELECT - + 14 + - - col0 AS col0, + col1 * + col2 FROM tab1 AS cor0
----
37
1344
71
295
77
3196

query II rowsort
SELECT - col2 AS col1, + 61 + - 31 + + 65 AS col2 FROM tab0
----
-10
95
-47
95
-99
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT 88 - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 80 IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-9616
SELECT 88 - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 80 IS NOT NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + MIN( - 27 ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9617
SELECT + MIN ( - 27 ) FROM tab0 cor0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT - 5 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT - 5 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE - 93 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9620
SELECT DISTINCT + col2 + col0, CAST( + + ( - + col2 ) AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, - col2 + + 34 * - col0 + + + col2 - - col1 + + + col0 )
----

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT + col2 + col0, CAST ( + + ( - + col2 ) AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, - col2 + + 34 * - col0 + + + col2 - - col1 + + + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + + 75 FROM tab1 AS cor0
----
28
61
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT ALL - col2 DIV + ( + - col2 ) - - 30 + - col1 AS col2 FROM tab0 AS cor0
----
-50
10
30

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - col2 / + ( + - col2 ) - - 30 + - col1 AS col2 FROM tab0 AS cor0
----
-50
10
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT 85 DIV + col2 AS col1 FROM tab0 cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9623
SELECT 85 / + col2 AS col1 FROM tab0 cor0
----
0
1
8

query I rowsort
SELECT ( 43 ) FROM tab2 AS cor0
----
43
43
43

query II rowsort
SELECT DISTINCT - col2 * + col2, col2 AS col1 FROM tab1
----
-3481
59
-4624
68
-9216
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + col1 IN ( - + 69, + 21, + + col1, - 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT ALL ( 75 ) DIV + 59 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL ( 75 ) / + 59 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT MAX( - col2 ), - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-10
0

skipif mysql # not compatible
query II rowsort label-9628
SELECT MAX ( - col2 ), - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - ( COUNT( * ) ) * - MAX( - col0 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9629
SELECT - ( COUNT ( * ) ) * - MAX ( - col0 ) AS col2 FROM tab0
----
-45

query II rowsort
SELECT col1 * col1 AS col2, + col1 FROM tab2
----
2601
51
4489
67
5929
77

query I rowsort
SELECT ALL + - col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL ( - - col2 ) * - - col0 + + 50 AS col2 FROM tab2 cor0
----
1108
2610
4400

query I rowsort
SELECT DISTINCT - col1 * + 59 + - ( + 91 ) AS col1 FROM tab0 WHERE NULL <> ( - - 11 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col2, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9636
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * 57 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * 57 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9637
SELECT DISTINCT COUNT( * ) + + 34 DIV + + 5 col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT DISTINCT COUNT ( * ) + + 34 / + + 5 col0 FROM tab1 cor0
----
9

query I rowsort
SELECT ALL 41 * + col2 FROM tab2 cor0
----
1640
2378
943

query II rowsort
SELECT DISTINCT - + col0 AS col2, col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + + col1 * - + 12 * col0 + col2 FROM tab2 AS cor0
----
-28129
-59096
-60242

query I rowsort
SELECT ALL - 32 + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-41
-60
-69

query I rowsort
SELECT col0 * + - col2 + - + col2 - - col2 AS col2 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query II rowsort label-9644
SELECT ALL 89 DIV + + 43, 87 AS col1 FROM tab0
----
2
87
2
87
2
87

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL 89 / + + 43, 87 AS col1 FROM tab0
----
2
87
2
87
2
87

query I rowsort
SELECT + ( + col2 ) + + - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL ( + - MAX( + - 66 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL ( + - MAX ( + - 66 ) ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 34 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - col0 + + col2, 12 AS col1 FROM tab1 AS cor0
----
-23
12
-26
12
45
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT ( - ( - 63 ) / + + col1 / + 9 / 72 ) > ( NULL )
----

query I rowsort
SELECT + ( - 66 ) AS col2 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - col2 * + - ( col1 ) * + col2 * col0 * col0 FROM tab1 AS cor0
----
125751125
1799693168
335591424

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9653
SELECT - 61 AS col2, - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-61
14
-61
47
-61
5

skipif mysql # not compatible
query II rowsort label-9653
SELECT - 61 AS col2, - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-61
14
-61
47
-61
5

query I rowsort
SELECT DISTINCT - 18 * + 41 FROM tab1 AS cor0
----
-738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9655
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9655
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col1 AS col2, col2 * - col1 FROM tab2
----
51
-1173
67
-3886
77
-3080

query I rowsort
SELECT + - 97 * + + 49 * col2 FROM tab1 AS cor0
----
-280427
-323204
-456288

query II rowsort
SELECT DISTINCT col0 AS col0, 82 AS col0 FROM tab0 AS cor0
----
15
82
87
82
97
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, 95 col1 FROM tab2 AS cor0
----
46
95
64
95
75
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9661
SELECT ALL + COUNT( * ) * 89 DIV - 32 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + COUNT ( * ) * 89 / - 32 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT + + col2 * 64 FROM tab2 AS cor0
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL - COUNT( * ) * MIN( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - COUNT ( * ) * MIN ( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT col2 * col2 FROM tab0 WHERE NOT - + col2 * + - 14 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + + col2 - col0 + + col2 / 96 * col1 * col2 < 12 OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9666
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9666
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - - CAST ( NULL AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT 28 + COUNT( - col2 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9668
SELECT 28 + COUNT ( - col2 ) FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9669
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 89 + + col1 FROM tab2 WHERE NULL IS NULL
----
-12
-22
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 15 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 15 col1 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, 40 AS col0 FROM tab1
----
14
40
47
40
5
40

query I rowsort
SELECT + - col1 - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT 84 - + col2 AS col2 FROM tab1 AS cor0
----
-12
16
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9677
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9677
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - + 69 - + - COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9678
SELECT - + 69 - + - COUNT ( * ) FROM tab2 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * + col0 - 12 col2, - col2 * + col2 FROM tab1 AS cor0
----
-2613
-9216
-7237
-3481
-8293
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT 96 * + + COUNT( * ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9680
SELECT 96 * + + COUNT ( * ) AS col0 FROM tab1
----
288

query I rowsort
SELECT + 11 * col1 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT COUNT( + + col2 ) * 55 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT COUNT ( + + col2 ) * 55 FROM tab0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT 44 * + - COUNT( * ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-9683
SELECT 44 * + - COUNT ( * ) FROM tab0
----
-132

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - col2 <= - col2 / + col1
----

query I rowsort
SELECT - ( - - AVG ( + 99 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9686
SELECT - ( + col2 ) AS col2, + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9686
SELECT - ( + col2 ) AS col2, + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 84 / + col1 * col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9689
SELECT DISTINCT - MIN( DISTINCT + CAST( + 46 AS SIGNED ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT - MIN ( DISTINCT + CAST ( + 46 AS INTEGER ) ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT - ( 76 ) AS col0 FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT 10 * COUNT( * ) col2 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9691
SELECT DISTINCT 10 * COUNT ( * ) col2 FROM tab0
----
30

query I rowsort
SELECT ALL ( + 22 ) AS col0 FROM tab0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 WHERE 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - + col0 FROM tab2 AS cor0 WHERE 57 * - col0 * - 87 IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL + 37 * - + COUNT( * ) FROM tab0 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + 37 * - + COUNT ( * ) FROM tab0 cor0
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT + col2 + + col1 * col0 DIV + 76 FROM tab0 AS cor0
----
100
34
62

skipif mysql # not compatible
query I rowsort label-9697
SELECT + col2 + + col1 * col0 / + 76 FROM tab0 AS cor0
----
100
34
62

query I rowsort
SELECT col1 + - 96 * + + col2 AS col1 FROM tab2
----
-2157
-3763
-5501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT 35 DIV COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-9699
SELECT 35 / COUNT ( * ) FROM tab0
----
11

query II rowsort
SELECT 50, col0 FROM tab1 AS cor0
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + - 50 + - - MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + - 50 + - - MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( ( col0 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( ( col0 ) IS NULL )
----
0

query I rowsort
SELECT ALL col0 / + + col1 / + 3 FROM tab1 cor0 WHERE + col1 = + col2 * col0 + col1 + - 36 * - col1 / col1 / + + 2 + - ( 93 )
----

query I rowsort
SELECT col2 + col2 + 83 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 - col2 + + - 44 + + col2 FROM tab0
----
-29
43
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT DISTINCT + col2 - - - CAST( NULL AS SIGNED ) * + CAST( - col1 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + col2 - - - CAST ( NULL AS INTEGER ) * + CAST ( - col1 AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + col0 * - col0 + - col0 * col0 * col0 AS col0 FROM tab0
----
-3553
-666062
-921983

query I rowsort
SELECT + 63 + - col0 FROM tab1
----
-22
-28
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 40 + - - 72 + - - COUNT( * ) AS col1 FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-9709
SELECT 40 + - - 72 + - - COUNT ( * ) AS col1 FROM tab2
----
115

query I rowsort
SELECT ALL col2 - + col0 - - col2 AS col2 FROM tab2
----
0
16
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT + COUNT( * ) - - ( - - COUNT( DISTINCT + col1 ) ) AS col2, SUM( ALL + col0 ) * AVG ( 14 ) * - COUNT( * ) AS col2 FROM tab0 WHERE + 93 > NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT + COUNT ( * ) - - ( - - COUNT ( DISTINCT + col1 ) ) AS col2, SUM ( ALL + col0 ) * AVG ( 14 ) * - COUNT ( * ) AS col2 FROM tab0 WHERE + 93 > NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - COUNT( * ) * + 72 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - COUNT ( * ) * + 72 FROM tab2
----
-216

query I rowsort
SELECT DISTINCT 89 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9714
SELECT - ( col0 ) AS col0, CAST( - ( + - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-9714
SELECT - ( col0 ) AS col0, CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT + ( + 89 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
89

query I rowsort
SELECT - + col1 - - 86 FROM tab2 WHERE NOT NULL < - col2
----

query II rowsort
SELECT DISTINCT 24 AS col2, - col1 AS col0 FROM tab0
----
24
-1
24
-21
24
-81

query I rowsort
SELECT DISTINCT ( 3 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col0 AS col1, 99 FROM tab1 AS cor0
----
51
99
85
99
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + 98 * - MIN( + + col0 ) FROM tab1 AS cor0
----
-4998

skipif mysql # not compatible
query I rowsort label-9721
SELECT + 98 * - MIN ( + + col0 ) FROM tab1 AS cor0
----
-4998

query I rowsort
SELECT DISTINCT + + col2 * + 49 FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT DISTINCT + 19 * + - 99 FROM tab2 AS cor0
----
-1881

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT - - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT - - col1 / - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT ALL - COUNT( * ) col2, + 20 FROM tab0 AS cor0
----
-3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9725
SELECT ALL - COUNT ( * ) col2, + 20 FROM tab0 AS cor0
----
-3
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 + + 12 col2 FROM tab1
----
-25
-32
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9727
SELECT DISTINCT * FROM tab1 WHERE + 70 BETWEEN ( + ( 27 ) ) + col1 AND + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9727
SELECT DISTINCT * FROM tab1 WHERE + 70 BETWEEN ( + ( 27 ) ) + col1 AND + ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT DISTINCT + ( CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + ( CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT 62 + MAX( 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
79

skipif mysql # not compatible
query I rowsort label-9732
SELECT 62 + MAX ( 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
79

query I rowsort
SELECT col1 + + col2 * - - col2 * + - 53 AS col2 FROM tab2
----
-178225
-27986
-84723

query I rowsort
SELECT - - col2 + col1 * + 87 * - col0 AS col2 FROM tab2 AS cor0
----
-204079
-428696
-437117

query I rowsort
SELECT + + col2 * col2 + col1 + - - col0 FROM tab0 cor0
----
208
2305
9899

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT ALL + + 31 + - 88 - + 33 DIV col1 * + col1 FROM tab0 AS cor0
----
-57
-78
-90

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + + 31 + - 88 - + 33 / col1 * + col1 FROM tab0 AS cor0
----
-57
-78
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT col1 DIV + ( + col1 ) - 43 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT col1 / + ( + col1 ) - 43 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + col1 * 25 - 26 FROM tab2 AS cor0
----
1249
1649
1899

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 < - col0 * - 80 / col0 + + col0
----

query I rowsort
SELECT + 99 * + 59 AS col1 FROM tab1
----
5841
5841
5841

query I rowsort
SELECT + col0 - + col0 + + 57 + - 6 * - col0 + - 82 + ( + + col2 ) AS col2 FROM tab2
----
274
399
483

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + 76 * + SUM( + col1 ) - + - MAX( - col1 ) AS col1 FROM tab1
----
5011

skipif mysql # not compatible
query I rowsort label-9743
SELECT + 76 * + SUM ( + col1 ) - + - MAX ( - col1 ) AS col1 FROM tab1
----
5011

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 42 NOT BETWEEN NULL AND - 44
----

query II rowsort
SELECT 79 * + + 66, - col2 + - 86 AS col1 FROM tab0 AS cor0
----
5214
-133
5214
-185
5214
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - - MIN( ALL - ( 12 ) ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9746
SELECT - - MIN ( ALL - ( 12 ) ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - col2 * col1 * - - 54 AS col0 FROM tab2 cor0
----
-166320
-209844
-63342

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL COUNT( DISTINCT - col0 ) * - ( COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL COUNT ( DISTINCT - col0 ) * - ( COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT DISTINCT col2 DIV - 12 FROM tab2
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT col2 / - 12 FROM tab2
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT ( + col1 ), - ( - + col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0, - col2 * col1 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

skipif mysql # not compatible
query II rowsort label-9752
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0, - col2 * col1 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT DISTINCT + col2 * - 59 + + - col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-3958
-7911
-8289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT ( + ( + col1 ) ) - col2 * - col2 * 36 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= - 85 + + col1 + - 27 + - 81 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9754
SELECT ( + ( + col1 ) ) - col2 * - col2 * 36 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= - 85 + + col1 + - 27 + - 81 / CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( col2 * - + col2 * - + 21, col0, + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9755
SELECT ALL - - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( col2 * - + col2 * - + 21, col0, + col2 )
----
0

query II rowsort
SELECT DISTINCT - col0 AS col0, ( + 44 ) FROM tab2
----
-46
44
-64
44
-75
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL SUM( DISTINCT col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT + 18 DIV col1 * 98 FROM tab0
----
0
0
1764

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 18 / col1 * 98 FROM tab0
----
0
0
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL - + 95 * - COUNT( * ) AS col2 FROM tab0 WHERE NULL <= + - col1
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - + 95 * - COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= + - col1
----
0

query I rowsort
SELECT ALL 84 + - 62 FROM tab0
----
22
22
22

query II rowsort
SELECT + 89 AS col1, ( col1 ) - + + col0 AS col0 FROM tab2
----
89
-8
89
13
89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT - - SUM( - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - - SUM ( - + col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= - - col2 - - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 53 * - 78 FROM tab1
----
-4134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 76 ) NOT BETWEEN + - col1 AND - col2 + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, col2 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL - col0 + + - 51 - + col1 DIV - + col2 FROM tab1 cor0
----
-102
-136
-142

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - col0 + + - 51 - + col1 / - + col2 FROM tab1 cor0
----
-102
-136
-142

query I rowsort
SELECT ALL - 38 - - 41 FROM tab0 cor0
----
3
3
3

query I rowsort
SELECT + + col2 - + - 50 + + + col0 + - ( col1 ) * + + col2 FROM tab1 AS cor0
----
-101
-1147
-2987

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE ( - 50 ) IS NULL
----

query I rowsort
SELECT + 48 - col1 FROM tab0 AS cor0
----
-33
27
47

query I rowsort
SELECT ALL - col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - col2 col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT 90 + col1 FROM tab2
----
141
157
167

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT COUNT( - + col0 ) + COUNT( * ) AS col2, 42 AS col2 FROM tab2
----
6
42

skipif mysql # not compatible
query II rowsort label-9777
SELECT COUNT ( - + col0 ) + COUNT ( * ) AS col2, 42 AS col2 FROM tab2
----
6
42

query I rowsort
SELECT + col0 * - col0 * + + col2 AS col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT col1 DIV - col1 + + ( - 98 ) AS col1 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9779
SELECT col1 / - col1 + + ( - 98 ) AS col1 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + 68 * - 15 AS col0 FROM tab2 AS cor0
----
-1020
-1020
-1020

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT - + ( - col2 ) * CAST( NULL AS SIGNED ) * - + col1 / + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT - + ( - col2 ) * CAST ( NULL AS INTEGER ) * - + col1 / + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - COUNT( * ) * SUM( ALL - 91 ) FROM tab0 cor0
----
819

skipif mysql # not compatible
query I rowsort label-9783
SELECT - COUNT ( * ) * SUM ( ALL - 91 ) FROM tab0 cor0
----
819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + col1 NOT BETWEEN + + col1 AND - col2 * - col0
----
51
14
96
85
5
59

query II rowsort
SELECT - col1, + 78 * + col1 AS col1 FROM tab0 AS cor0
----
-1
78
-21
1638
-81
6318

query I rowsort
SELECT - col1 * - + ( - + 41 ) AS col1 FROM tab0 AS cor0
----
-3321
-41
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + 75 col1 FROM tab0 AS cor0
----
-1140
-1752
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-9788
SELECT ALL - 24 DIV 35 AS col1, + col2 + col1 DIV col0 FROM tab2 AS cor0
----
0
24
0
41
0
58

skipif mysql # not compatible
query II rowsort label-9788
SELECT ALL - 24 / 35 AS col1, + col2 + col1 / col0 FROM tab2 AS cor0
----
0
24
0
41
0
58

query I rowsort
SELECT DISTINCT - col2 * + 80 + + col1 FROM tab2 AS cor0
----
-1789
-3123
-4573

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT DISTINCT - COUNT( * ) + 50 FROM tab0, tab1 cor0
----
41

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - COUNT ( * ) + 50 FROM tab0, tab1 cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9793
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9793
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / - - col1 * + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT - 19 DIV - + col0 + + 52 AS col1 FROM tab2 cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 19 / - + col0 + + 52 AS col1 FROM tab2 cor0
----
52
52
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + 60 ) + - 20 - 57 BETWEEN + ( ( + col1 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - 20 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-71
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - + 88 + + + 63 FROM tab2 cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT ALL - + AVG ( - 90 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - + AVG ( - 90 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - SUM( - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - SUM ( - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT ( - + MIN( - 77 ) ) AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT ( - + MIN ( - 77 ) ) AS col1 FROM tab0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT DISTINCT ( 37 ) + 33, COUNT( * ) + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
70
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9805
SELECT DISTINCT ( 37 ) + 33, COUNT ( * ) + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
70
0

query I rowsort
SELECT ALL - + 93 * + + col0 * 77 + col1 + + + 39 FROM tab2 AS cor0
----
-329316
-458188
-536969

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 63
----

query II rowsort
SELECT 63 * - col1, + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 / + + 81
----

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 col1 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 56 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + 4 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT 31 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT 31 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col0 col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT SUM( ALL - ( + col1 ) ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9816
SELECT DISTINCT SUM ( ALL - ( + col1 ) ) col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT COUNT( * ) * - + COUNT( * ) * + - 78 AS col0 FROM tab0
----
702

skipif mysql # not compatible
query I rowsort label-9817
SELECT COUNT ( * ) * - + COUNT ( * ) * + - 78 AS col0 FROM tab0
----
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 59 + col1 col2 FROM tab2
----
-1306
-2283
-3355

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + SUM( - ( - col0 ) ) + + + ( - 99 ) AS col2 FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-9819
SELECT + SUM ( - ( - col0 ) ) + + + ( - 99 ) AS col2 FROM tab1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + ( - COUNT( * ) ) + - 55 AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9820
SELECT + ( - COUNT ( * ) ) + - 55 AS col1 FROM tab2 cor0
----
-58

query I rowsort
SELECT ALL - col2 + - + 23 FROM tab0 AS cor0
----
-122
-33
-70

query I rowsort
SELECT DISTINCT + + 7 - + 84 - + - 22 + + - ( + 89 ) AS col1 FROM tab1 AS cor0
----
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9823
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS DECIMAL ) + + col2 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9823
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS REAL ) + + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + col2 ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 ) >= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + COUNT( ( + 23 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + COUNT ( ( + 23 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * + + 73 * 4 AS col2 FROM tab0 cor0
----
13724
28908
2920

query I rowsort
SELECT + col2 + + - 2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
45
8
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9829
SELECT DISTINCT SUM( ALL + 23 ) DIV + 85 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT SUM ( ALL + 23 ) / + 85 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT + 22 AS col0, - 43 * + COUNT( * ) AS col2 FROM tab2
----
22
-129

skipif mysql # not compatible
query II rowsort label-9831
SELECT + 22 AS col0, - 43 * + COUNT ( * ) AS col2 FROM tab2
----
22
-129

query I rowsort
SELECT ALL - ( + 43 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT MAX( DISTINCT - 41 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-9833
SELECT MAX ( DISTINCT - 41 ) FROM tab0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT DISTINCT MAX( col1 ) DIV + ( + ( - - COUNT( * ) ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT MAX ( col1 ) / + ( + ( - - COUNT ( * ) ) ) FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT 80 + + SUM( ALL col2 ) AS col1 FROM tab0
----
236

skipif mysql # not compatible
query I rowsort label-9835
SELECT 80 + + SUM ( ALL col2 ) AS col1 FROM tab0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + COUNT( * ) + + SUM( DISTINCT + col2 ) * 53 FROM tab2
----
6416

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + COUNT ( * ) + + SUM ( DISTINCT + col2 ) * 53 FROM tab2
----
6416

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 / + 64 + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT CAST( NULL AS SIGNED ) - + 11 FROM tab2 WHERE - 81 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9839
SELECT CAST ( NULL AS INTEGER ) - + 11 FROM tab2 WHERE - 81 >= NULL
----

query I rowsort
SELECT ALL + 82 * + col1 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT - 72 * col2 FROM tab0 WHERE ( - ( + col1 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN ( col1 ) AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT - COUNT( * ) DIV 86 FROM tab2 WHERE NOT - 54 BETWEEN + col2 AND - col2 * ( - col1 ) + - col2
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT - COUNT ( * ) / 86 FROM tab2 WHERE NOT - 54 BETWEEN + col2 AND - col2 * ( - col1 ) + - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 16 + ( 86 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL + MIN( 29 ) FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST( + col2 AS SIGNED ) AND ( col1 )
----
29

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + MIN ( 29 ) FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST ( + col2 AS INTEGER ) AND ( col1 )
----
29

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) NOT BETWEEN - 32 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL COUNT( * ) * 10 + SUM( - 2 ) FROM tab2 WHERE + ( + 4 ) BETWEEN - col2 AND - col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL COUNT ( * ) * 10 + SUM ( - 2 ) FROM tab2 WHERE + ( + 4 ) BETWEEN - col2 AND - col2 + + col2
----
NULL

query I rowsort
SELECT DISTINCT + ( col2 ) * 75 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT - 27 * col0 AS col2 FROM tab0
----
-2349
-2619
-405

query I rowsort
SELECT ALL ( col0 ) * col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col2 * + 99 AS col0 FROM tab1
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - 33 * COUNT( DISTINCT ( col2 ) * - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9853
SELECT - 33 * COUNT ( DISTINCT ( col2 ) * - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL - ( + COUNT( * ) ) + + 39 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - ( + COUNT ( * ) ) + + 39 AS col2 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - MAX( col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - MAX ( col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT + CAST( ( + 77 ) AS SIGNED ) col2 FROM tab1
----
77
77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT + CAST ( ( + 77 ) AS INTEGER ) col2 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE NOT ( col1 - - 18 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NOT ( col1 - - 18 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 + - 71 * col2
----

query I rowsort
SELECT col1 + + 55 AS col0 FROM tab0
----
136
56
76

query I rowsort
SELECT DISTINCT ( col0 ) + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1395
3287
380

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9862
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) * 77 + CAST( + col2 - - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9862
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) * 77 + CAST ( + col2 - - col2 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT DISTINCT - col2 DIV + col2 + col0 * 83 AS col1 FROM tab1 AS cor0
----
4232
7054
7552

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - col2 / + col2 + col0 * 83 AS col1 FROM tab1 AS cor0
----
4232
7054
7552

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 71 > ( + 16 * col0 + - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + 92 + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + 92 + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
101

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 55 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9867
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9867
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT - 76 - 37 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IN ( 19 * col2 )
----
-113
-113
-113

query I rowsort
SELECT + 29 * ( col0 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + 99 * ( 51 * SUM( col1 ) ) FROM tab2 AS cor0
----
984555

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 99 * ( 51 * SUM ( col1 ) ) FROM tab2 AS cor0
----
984555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 8 * 55 FROM tab2 AS cor0
----
440
440
440

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( + 38 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 97 IN ( - 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT ALL + CAST( + 72 AS SIGNED ) AS col0 FROM tab0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + CAST ( + 72 AS INTEGER ) AS col0 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT 81 * + + 16 * + col0 AS col1 FROM tab0
----
112752
125712
19440

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) = - 52
----

query I rowsort
SELECT + col0 * - + ( + 55 ) AS col1 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT COUNT( * ) * ( COUNT( * ) ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9879
SELECT COUNT ( * ) * ( COUNT ( * ) ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT - 13 DIV - - SUM( ALL 5 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 13 / - - SUM ( ALL 5 ) FROM tab2
----
0

query I rowsort
SELECT ALL - col1 - 30 AS col1 FROM tab1 WHERE NOT + col1 * col0 IS NULL
----
-35
-44
-77

query I rowsort
SELECT DISTINCT + + 6 AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( * ) * - COUNT( * ) * - + COUNT( * ) + + 92 AS col2 FROM tab1
----
119

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) + + 92 AS col2 FROM tab1
----
119

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col2 + + col2 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT - 66 DIV col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT - 66 / col1 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( - - col1 * - 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT + 12, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
12
-3

skipif mysql # not compatible
query II rowsort label-9888
SELECT + 12, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL 37 col2 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( + + 19 - + 34 ) AND + CAST( - ( + col1 ) AS SIGNED )
----
37
37
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9889
SELECT ALL 37 col2 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( + + 19 - + 34 ) AND + CAST ( - ( + col1 ) AS INTEGER )
----
37
37
37

query I rowsort
SELECT ( + col0 ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - + COUNT( col0 ) - + - 88 col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT DISTINCT - + COUNT ( col0 ) - + - 88 col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 45 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND 67 NOT BETWEEN col1 AND col2
----

query I rowsort
SELECT + col1 - - - 80 AS col1 FROM tab2
----
-13
-29
-3

query I rowsort
SELECT 23 + - - 96 FROM tab0
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL - MIN( + col0 ) - - SUM( ALL + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - MIN ( + col0 ) - - SUM ( ALL + col1 ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT COUNT( * ) + - COUNT( * ) * 14 AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-9897
SELECT COUNT ( * ) + - COUNT ( * ) * 14 AS col2 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT + AVG ( ALL 98 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + AVG ( ALL 98 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT - COUNT( * ) + + 82 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-9899
SELECT - COUNT ( * ) + + 82 FROM tab2
----
79

query I rowsort
SELECT - + col0 * col2 AS col0 FROM tab0 WHERE 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL - COUNT( * ) col2 FROM tab2 WHERE NOT NULL NOT IN ( 42 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9901
SELECT ALL - COUNT ( * ) col2 FROM tab2 WHERE NOT NULL NOT IN ( 42 )
----
0

query I rowsort
SELECT ALL 1 AS col0 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT col1 + - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT col1 + - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT - + col2 * - - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9905
SELECT - + col2 * - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL col0 + + ( + CAST( NULL AS SIGNED ) ) / col2 + - col0 * 94 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9906
SELECT ALL col0 + + ( + CAST ( NULL AS INTEGER ) ) / col2 + - col0 * 94 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9907
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) BETWEEN - + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9907
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 92, - col2 )
----

query I rowsort
SELECT - + 44 * 15 AS col0 FROM tab0 AS cor0
----
-660
-660
-660

query II rowsort
SELECT 47, col0 FROM tab1 AS cor0
----
47
51
47
85
47
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( col1 - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( col1 - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT - COUNT( * ) * - - COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT - COUNT ( * ) * - - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 34 * - + col1 * + 85 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 9 FROM tab1 AS cor0
----
-459
-765
-819

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT IN ( - - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT ALL + - COUNT( * ) DIV + 10 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + - COUNT ( * ) / + 10 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL + 79 * - - 27 AS col0 FROM tab0
----
2133
2133
2133

query I rowsort
SELECT - col0 * + - 2 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + 72 + + 58 + 36 * + COUNT( + col2 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
130

skipif mysql # not compatible
query I rowsort label-9920
SELECT + 72 + + 58 + 36 * + COUNT ( + col2 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT COUNT( * ) * - - 66 AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT COUNT ( * ) * - - 66 AS col0 FROM tab2
----
198

query II rowsort
SELECT - ( + - col1 ), + col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - - col1 NOT IN ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT - CAST( - + SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9924
SELECT - CAST ( - + SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT MAX( + 98 ) + - + 54 AS col1 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT MAX ( + 98 ) + - + 54 AS col1 FROM tab2 AS cor0
----
44

query II rowsort
SELECT ALL + 2 AS col1, ( - col0 ) AS col1 FROM tab1 AS cor0
----
2
-51
2
-85
2
-91

query I rowsort
SELECT - ( - - 41 ) FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + 44 + + + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + 44 + + + COUNT ( * ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - + COUNT( DISTINCT - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9929
SELECT - + COUNT ( DISTINCT - col0 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - 97 * ( - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-1358
-4559
-485

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) = ( col1 + + col1 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT - 7 * + + COUNT( * ) * - ( COUNT( * ) ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9932
SELECT - 7 * + + COUNT ( * ) * - ( COUNT ( * ) ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT + + ( + 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT + COUNT( * ) * - SUM( ALL + 56 ) AS col1 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON - ( + CAST( - CAST( + 41 AS SIGNED ) AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( * ) * - SUM ( ALL + 56 ) AS col1 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON - ( + CAST ( - CAST ( + 41 AS INTEGER ) AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT MIN( DISTINCT col1 ) + 38 AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9935
SELECT MIN ( DISTINCT col1 ) + 38 AS col1 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT - COUNT( * ) + - + COUNT( * ) AS col0, 75 FROM tab1 AS cor0
----
-6
75

skipif mysql # not compatible
query II rowsort label-9936
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col0, 75 FROM tab1 AS cor0
----
-6
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) * - col0 <= + col2
----
3

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) * - col0 <= + col2
----
3

query I rowsort
SELECT - col2 + - - 57 AS col0 FROM tab1 AS cor0
----
-11
-2
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9939
SELECT * FROM tab1 cor0 WHERE CAST( - 52 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9939
SELECT * FROM tab1 cor0 WHERE CAST ( - 52 AS REAL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT - + ( - + 43 ) + - col2 + - 18 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT - + ( - + 43 ) + - col2 + - 18 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL > - ( col2 ) * + col2 * + col2 + 84 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - - col0 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9943
SELECT * FROM tab2 WHERE ( + col0 * + - CAST( NULL AS SIGNED ) + + + col2 ) NOT IN ( - 57 )
----

skipif mysql # not compatible
query III rowsort label-9943
SELECT * FROM tab2 WHERE ( + col0 * + - CAST ( NULL AS INTEGER ) + + + col2 ) NOT IN ( - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT - SUM( DISTINCT + + col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9944
SELECT DISTINCT - SUM ( DISTINCT + + col2 ) col2 FROM tab0
----
-156

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NULL NOT IN ( col1 / - col1, + col2 )
----

query I rowsort
SELECT - col1 * - 49 AS col1 FROM tab0
----
1029
3969
49

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 13 + - + col2 + + ( - col1 ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 / + - 46 + - + col1 col2 FROM tab2 WHERE NOT NULL > + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, ( + - 52 ) FROM tab0
----
-1
-52
-21
-52
-81
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 51 ) - + + 72 col2, col2 AS col1 FROM tab2
----
-21
23
-21
40
-21
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9951
SELECT ALL - col0 col1 FROM tab1 WHERE NOT + - col1 / + + col0 BETWEEN - CAST( NULL AS DECIMAL ) AND - + ( + col1 ) + - - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT ALL - col0 col1 FROM tab1 WHERE NOT + - col1 / + + col0 BETWEEN - CAST ( NULL AS REAL ) AND - + ( + col1 ) + - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT col2 DIV + col0 - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1343
-295
-3196

skipif mysql # not compatible
query I rowsort label-9952
SELECT col2 / + col0 - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1343
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL + - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL - - ( + - COUNT( * ) ) + 56 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - - ( + - COUNT ( * ) ) + 56 FROM tab2 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT 84 + ( col2 ) * ( + 4 * col1 ) FROM tab1 AS cor0 WHERE + CAST( - 71 AS SIGNED ) * + - col0 <= - col2 - col2 + + + col2 + - + col0
----

skipif mysql # not compatible
query I rowsort label-9955
SELECT 84 + ( col2 ) * ( + 4 * col1 ) FROM tab1 AS cor0 WHERE + CAST ( - 71 AS INTEGER ) * + - col0 <= - col2 - col2 + + + col2 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT 97 + + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
106

skipif mysql # not compatible
query I rowsort label-9956
SELECT 97 + + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ( - CAST( col2 AS SIGNED ) ) FROM tab1 WHERE NOT + - col1 IN ( - - col2, + col2 - + + ( col2 ) )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9957
SELECT ( - CAST ( col2 AS INTEGER ) ) FROM tab1 WHERE NOT + - col1 IN ( - - col2, + col2 - + + ( col2 ) )
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 56 * - col0 <> - 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - - 33 FROM tab1 cor0
----
1947
2244
3168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9960
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 = col2 ) OR ( + col2 * + + col1 + - CAST( + 53 AS SIGNED ) + - col0 / + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9960
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 = col2 ) OR ( + col2 * + + col1 + - CAST ( + 53 AS INTEGER ) + - col0 / + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT ALL col0 DIV 23 AS col1 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL col0 / 23 AS col1 FROM tab2 AS cor0
----
2
2
3

query I rowsort
SELECT - 93 * + col0 AS col2 FROM tab2 AS cor0
----
-4278
-5952
-6975

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 57 * - 46 IS NOT NULL
----

query I rowsort
SELECT - 88 * col1 FROM tab2
----
-4488
-5896
-6776

query I rowsort
SELECT ALL - col2 * - col2 * 52 FROM tab1
----
181012
240448
479232

query I rowsort
SELECT ALL ( + - 29 ) FROM tab0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 99 ) AS col1 FROM tab2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL col2 DIV + 31 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL col2 / + 31 AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NULL NOT IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9971
SELECT DISTINCT * FROM tab1 WHERE col1 * - - CAST( ( + col1 ) AS SIGNED ) NOT BETWEEN + 36 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9971
SELECT DISTINCT * FROM tab1 WHERE col1 * - - CAST ( ( + col1 ) AS INTEGER ) NOT BETWEEN + 36 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 54 * - + 67 <> ( + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col2 ) < NULL
----

query I rowsort
SELECT ALL - 53 * + + 60 AS col2 FROM tab1 AS cor0
----
-3180
-3180
-3180

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND col2 * col1
----

query I rowsort
SELECT col0 * - 48 + col1 AS col2 FROM tab2
----
-2157
-2995
-3533

query I rowsort
SELECT DISTINCT - 74 + - col0 * 60 FROM tab2
----
-2834
-3914
-4574

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) = ( - 81 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + ( 32 ) * + - col0 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT DISTINCT - col1 + + col2 DIV col0 col1 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT DISTINCT - col1 + + col2 / col0 col1 FROM tab0 AS cor0
----
-21
-78
0

query I rowsort
SELECT ALL + col1 + + 27 FROM tab2 AS cor0
----
104
78
94

query I rowsort
SELECT + col0 + ( - 83 ) - + 97 * + col2 FROM tab2
----
-2268
-3899
-5634

query I rowsort
SELECT 91 * - col1 * + + 4 * - + 65 + - col2 AS col0 FROM tab1
----
1111952
118241
331144

query II rowsort
SELECT DISTINCT + 58 - col0 AS col2, - col1 + 57 + col2 * 36 AS col2 FROM tab2
----
-17
2078
-6
1420
12
834

query I rowsort
SELECT ALL - 81 + col1 AS col1 FROM tab1 WHERE NOT col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + - col0 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT - COUNT( * ) + - COUNT( + + col1 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - COUNT ( * ) + - COUNT ( + + col1 ) AS col1 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL - 51 + - 61 AS col1 FROM tab2
----
-112
-112
-112

query I rowsort
SELECT ALL - col2 * - 15 AS col2 FROM tab0 AS cor0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL + 69 AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
69
9

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL + 69 AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
69
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 AS cor0 WHERE 31 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT 71 + SUM( - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 96 ) AND - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT 71 + SUM ( - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 96 ) AND - - col2
----
NULL

query I rowsort
SELECT ALL - col0 * + 18 - col2 AS col0 FROM tab2 AS cor0
----
-1192
-1408
-851

query I rowsort
SELECT DISTINCT + + 63 / + + col1 / - 15 / + + 34 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= + col1 * - - col2 * + col1
----

query II rowsort
SELECT 83 + - col2, - 54 * - + col2 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9997
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NOT 19 NOT IN ( + - CAST( - col0 AS SIGNED ) + 68, - col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-9997
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NOT 19 NOT IN ( + - CAST ( - col0 AS INTEGER ) + 68, - col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 < + col0
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 < + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 84 ) col2 FROM tab2 AS cor0
----
-84
-84
-84

