sqllogictest
Artifact Content
Not logged in

Artifact 5862b860e548fd1b225050d152eb25bbf72c5e6f:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN ( NULL ) AND ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT DISTINCT 57 DIV 7 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT 57 / 7 FROM tab0
----
8

query I rowsort
SELECT DISTINCT col0 * + + col0 + - + col2 * 84 FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 9 - - - col0 FROM tab2 AS cor0
----
-37
-55
-66

query I rowsort
SELECT col1 + 46 FROM tab0
----
127
47
67

query I rowsort
SELECT ALL 92 + 73 + - ( - col1 ) * - + col0 FROM tab0
----
-1050
-1662
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 37 - - - 28 FROM tab1
----
9
9
9

query I rowsort
SELECT DISTINCT + 76 - col1 AS col1 FROM tab1
----
29
62
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 NOT IN ( + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / + 90 NOT BETWEEN ( NULL ) AND - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT DISTINCT - CAST( + 26 AS SIGNED ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT - CAST ( + 26 AS INTEGER ) AS col0 FROM tab0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT - 45 DIV - ( - col1 ) col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT DISTINCT - 45 / - ( - col1 ) col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3
-9
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 11 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
253
440
638

query II rowsort
SELECT 52, col0 FROM tab2
----
52
46
52
64
52
75

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

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

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

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

skipif mysql # not compatible
query I rowsort label-18
SELECT - + COUNT ( - 2 ) FROM tab2 cor0
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-19
SELECT + SUM ( ALL + col0 ) col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) + + 96 AS col0 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT 8 + 49 AS col0 FROM tab1
----
57
57
57

query I rowsort
SELECT DISTINCT - col1 * + - col1 + + col2 FROM tab1
----
2277
292
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( - col2 ) * - col0
----

query I rowsort
SELECT DISTINCT col1 * - col0 + 43 AS col1 FROM tab1
----
-382
-4234
-671

query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT + col1 + + col2 + 34 + - col1 DIV + + col0 FROM tab1
----
144
149
98

skipif mysql # not compatible
query I rowsort label-26
SELECT + col1 + + col2 + 34 + - col1 / + + col0 FROM tab1
----
144
149
98

query I rowsort
SELECT ALL - 75 * - ( + + col2 ) * + 61 + + - ( + col2 ) FROM tab0
----
214978
452826
45740

query I rowsort
SELECT DISTINCT - 94 + ( + 88 ) FROM tab0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE - 79 < NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 + + col1 + + col1 )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) - 93 AS col2 FROM tab1 cor0
----
-2
-42
-8

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 42 * - col2 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + 48 - + MIN( - col1 ) * - ( COUNT( * ) ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-35
SELECT + 48 - + MIN ( - col1 ) * - ( COUNT ( * ) ) FROM tab0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 63 + + + col1 col1 FROM tab1
----
3722
4331
6062

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT 16 DIV - col0 col0 FROM tab0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-37
SELECT DISTINCT 16 / - col0 col0 FROM tab0
----
-1
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT - 20 * col1 DIV col2 - + 17 col0 FROM tab2 AS cor0
----
-40
-55
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-40
SELECT - 20 * col1 / col2 - + 17 col0 FROM tab2 AS cor0
----
-40
-55
-61

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + 61 * - COUNT( ALL 32 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 61 * - COUNT ( ALL 32 ) FROM tab2 AS cor0
----
-183

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

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

query I rowsort
SELECT DISTINCT + 21 * - - 6 + + col2 AS col0 FROM tab1 AS cor0
----
185
194
222

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

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - 88 / + col1 AS col1 FROM tab0
----
-1
-4
-88

query II rowsort
SELECT - col1 AS col0, + 20 AS col2 FROM tab1
----
-14
20
-47
20
-5
20

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT DISTINCT col0 AS col0, 41 DIV - + 70 AS col1 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-51
SELECT DISTINCT col0 AS col0, 41 / - + 70 AS col1 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT ALL + 26 DIV - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL + 26 / - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL > ( + 7 ) AND + - col1 + + - 68 * - col2 BETWEEN + ( col1 ) AND - + ( + - ( + col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT + - MAX( DISTINCT + + 32 ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-55
SELECT + - MAX ( DISTINCT + + 32 ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-56
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

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

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

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

query II rowsort
SELECT + col1 + 47 AS col0, 31 AS col0 FROM tab1
----
52
31
61
31
94
31

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - 5 + + - 31 * + MAX( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
2475

skipif mysql # not compatible
query I rowsort label-62
SELECT - 5 + + - 31 * + MAX ( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
2475

query I rowsort
SELECT + col2 * col0 + - 93 FROM tab2 AS cor0
----
2467
4257
965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col0 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT + 15 + 84 * COUNT( - col2 ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-65
SELECT + 15 + 84 * COUNT ( - col2 ) FROM tab2 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - - 21 + + 40 + + col0 DIV - col0 FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-66
SELECT - - 21 + + 40 + + col0 / - col0 FROM tab2 AS cor0
----
60
60
60

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

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

query I rowsort
SELECT - col0 + col2 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-193
-7646
-9407

query I rowsort
SELECT ALL + col2 + - col1 + + 54 * - 30 FROM tab1 cor0
----
-1538
-1566
-1599

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT ALL 76 DIV + + 20 - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 76 / + + 20 - - COUNT ( * ) AS col0 FROM tab0
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-74
SELECT - 56 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
-56
NULL
-56
NULL
-56
NULL

skipif mysql # not compatible
query II rowsort label-74
SELECT - 56 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
-56
NULL
-56
NULL
-56
NULL

query I rowsort
SELECT - ( col1 ) * - 53 * + + col2 FROM tab0 WHERE - - 82 - 64 - + col1 - + col1 IN ( + ( - col0 ) * + col2 - + - col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT DISTINCT - 78 * - - CAST( - 53 AS SIGNED ) - - col2 AS col0 FROM tab0
----
4144
4181
4233

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - 78 * - - CAST ( - 53 AS INTEGER ) - - col2 AS col0 FROM tab0
----
4144
4181
4233

query II rowsort
SELECT - + col2 - 91 + col0 AS col0, - 24 AS col2 FROM tab2 AS cor0
----
-67
-24
-68
-24
-74
-24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * 96 + + col1 col0 FROM tab0 AS cor0
----
673
693
753

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT 12 DIV + - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-82
SELECT 12 / + - col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 99 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
1485
8613
9603

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

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT col1 * - - col1 + - 78 / CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-85
SELECT ALL MIN( ALL + - col1 ) col1, COUNT( * ) DIV - ( - + 92 ) FROM tab2 AS cor0
----
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-85
SELECT ALL MIN ( ALL + - col1 ) col1, COUNT ( * ) / - ( - + 92 ) FROM tab2 AS cor0
----
-77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT ALL - col2 DIV 78 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - col2 / 78 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 > + col2 + + 62 * + col2 * + 2
----
23
40
58

query I rowsort
SELECT + 48 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 86 * + col1 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT ( - 5 ) FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT 35 * + + COUNT( * ) AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-91
SELECT 35 * + + COUNT ( * ) AS col2 FROM tab0
----
105

query I rowsort
SELECT ALL col0 * - 48 * - col2 * + - col0 FROM tab1
----
-11985408
-20461200
-27029184

query II rowsort
SELECT DISTINCT 86, - col2 * + 98 AS col0 FROM tab2
----
86
-2254
86
-3920
86
-5684

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

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

query I rowsort
SELECT col0 + col2 + - 68 AS col0 FROM tab1 AS cor0
----
76
79
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT ALL col1 + - col2 + - CAST( + ( + col2 ) AS SIGNED ) FROM tab1 cor0
----
-113
-178
-89

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL col1 + - col2 + - CAST ( + ( + col2 ) AS INTEGER ) FROM tab1 cor0
----
-113
-178
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 * - col0 - - - CAST( - + col0 AS SIGNED ) BETWEEN NULL AND + 88
----
0

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 * - col0 - - - CAST ( - + col0 AS INTEGER ) BETWEEN NULL AND + 88
----
0

query I rowsort
SELECT - - AVG ( ALL + - col1 ) FROM tab1 WHERE col2 + - + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT + ( - CAST( + 47 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif mysql # not compatible
query I rowsort label-99
SELECT + ( - CAST ( + 47 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + 88 / 41 / + 72 <> ( + col0 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 - - 27 - - 53 AS col2 FROM tab2 AS cor0
----
16
34
5

query II rowsort
SELECT DISTINCT 71 AS col1, 94 FROM tab0 AS cor0
----
71
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-103
SELECT + CAST( - + SUM( DISTINCT 71 ) AS SIGNED ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0
----
-153
-84

skipif mysql # not compatible
query II rowsort label-103
SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0
----
-153
-84

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

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

query I rowsort
SELECT 16 - + 17 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( - ( + col2 ) ) - - col1 * - col1 FROM tab2 AS cor0
----
-2624
-4547
-5969

query I rowsort
SELECT col1 + ( + - col1 ) AS col0 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT ALL 89 + + col0 - - - col1 - col2 * - col1 AS col0 FROM tab0
----
284
365
3830

query I rowsort
SELECT 8 + - col1 + + col0 AS col1 FROM tab2
----
-5
16
3

query I rowsort
SELECT ALL + 26 + col0 * - 63 FROM tab0
----
-5455
-6085
-919

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + + - col1 col0 FROM tab0
----
-113
-33
-53

query I rowsort
SELECT DISTINCT - - col1 + 2 FROM tab0 cor0
----
23
3
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-115
SELECT ALL - ( + col1 ) * + + CAST( - - col1 AS SIGNED ) + - 57 DIV col2 - col2 AS col2 FROM tab2 AS cor0
----
-2626
-4547
-5970

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - ( + col1 ) * + + CAST ( - - col1 AS INTEGER ) + - 57 / col2 - col2 AS col2 FROM tab2 AS cor0
----
-2626
-4547
-5970

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-118
SELECT - COUNT( * ) AS col1, - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( - col0 / - col2 ) = + 86
----
0
0

skipif mysql # not compatible
query II rowsort label-118
SELECT - COUNT ( * ) AS col1, - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( - col0 / - col2 ) = + 86
----
0
0

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

skipif mysql # not compatible
query I rowsort label-119
SELECT + + CAST ( - ( col1 ) AS INTEGER ) * 13 * - CAST ( NULL AS INTEGER ) / - 28 * + col2 AS col0 FROM tab0 WHERE NOT + - col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * - 46 * - 82 * + 79 * - col2 FROM tab2
----
157635652
274148960
397515992

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT 77 DIV - - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-121
SELECT 77 / - - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - SUM( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-123
SELECT - SUM ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 + + 58 - col0 * ( - 76 ) col1 FROM tab0 AS cor0
----
10
6691
47
1279
99
7431

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT + - COUNT( * ) col0, - ( + 93 ) - COUNT( * ) col2 FROM tab2 AS cor0
----
-3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-125
SELECT + - COUNT ( * ) col0, - ( + 93 ) - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3
-96

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 76 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 60 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 + + - 25 + - - col1 * - + col0 * - col1 AS col1, 24 col2 FROM tab0
----
165
24
38435
24
98483
24

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

query I rowsort
SELECT ALL + 31 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT col1 - + col2 >= + col0
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT 80 * - col1 AS col2 FROM tab2
----
-4080
-5360
-6160

query II rowsort
SELECT ALL - col2 * col2 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
-100
87
-2209
15
-9801
97

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT DISTINCT - 95 DIV col0 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - 95 / col0 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-138
SELECT - col0 + - col0 AS col1, + 99 + col2 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-174
109
-194
198
-30
146

skipif mysql # not compatible
query II rowsort label-138
SELECT - col0 + - col0 AS col1, + 99 + col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-174
109
-194
198
-30
146

query I rowsort
SELECT ALL - 20 + 42 FROM tab2
----
22
22
22

query I rowsort
SELECT ALL 99 + - + 52 + ( 88 ) FROM tab2
----
135
135
135

query I rowsort
SELECT DISTINCT - + 7 * - + 83 * 4 - + col2 FROM tab0 AS cor0
----
2225
2277
2314

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

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

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE + col2 * + col2 * - ( - ( - + 93 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT 21 * - CAST( NULL AS SIGNED ) + + - MIN( - col1 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT 21 * - CAST ( NULL AS INTEGER ) + + - MIN ( - col1 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT col0 * - - 28 AS col2 FROM tab2
----
1288
1792
2100

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

query I rowsort
SELECT 77 - - col0 FROM tab0
----
164
174
92

query I rowsort
SELECT 79 + + + col2 FROM tab1 WHERE NULL = + - 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-151
SELECT ALL CAST( NULL AS SIGNED ) / CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) * - COUNT( * ) + - + 35 FROM tab0
----
NULL

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

query I rowsort
SELECT col1 - - + 40 - - - 62 AS col1 FROM tab1
----
-17
-8
25

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

query I rowsort
SELECT ALL 71 - - 7 AS col2 FROM tab1
----
78
78
78

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

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

query I rowsort
SELECT - col2 * + 63 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT DISTINCT 6 - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52
70
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-159
SELECT - COUNT( * ) DIV COUNT( * ) + - SUM( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-159
SELECT - COUNT ( * ) / COUNT ( * ) + - SUM ( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT - SUM( + 85 ) FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - SUM ( + 85 ) FROM tab2 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 71 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 71 IS NULL
----
-3

query II rowsort
SELECT + 92, col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
92
1
92
21
92
81

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

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

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL ( MIN ( + col0 ) ) FROM tab0
----
15

query II rowsort
SELECT - col2 AS col1, 42 FROM tab0
----
-10
42
-47
42
-99
42

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + - col2 ) ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT - col0 * - CAST( - col0 AS SIGNED ) FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-169
SELECT - col0 * - CAST ( - col0 AS INTEGER ) FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 96 NOT BETWEEN NULL AND + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - COUNT( * ) * - 96 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-171
SELECT - COUNT ( * ) * - 96 FROM tab0
----
288

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-173
SELECT col2 FROM tab0 WHERE + + 17 * - col0 * - col0 IN ( col1 - - CAST( NULL AS DECIMAL ), col2 - col1 - col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-173
SELECT col2 FROM tab0 WHERE + + 17 * - col0 * - col0 IN ( col1 - - CAST ( NULL AS REAL ), col2 - col1 - col0, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * 39 AS col1 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT + + 91 * + + col0 + - - 3 - + col0 AS col0 FROM tab0 AS cor0
----
1353
7833
8733

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT + + 48 DIV + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 31 * - col1 * - col0 * - + col2 IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-177
SELECT + + 48 / + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 31 * - col1 * - col0 * - + col2 IS NOT NULL
----
16

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

query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 * + col2 - - col1 AS col0 FROM tab0 cor0
----
-1557264
-86979
-94119002

query I rowsort
SELECT + 29 + + + col0 AS col0 FROM tab0 AS cor0
----
116
126
44

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-181
SELECT DISTINCT + + ( + COUNT ( * ) ) - - + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL ( 64 ) * + 92 + + COUNT( * ) FROM tab1 AS cor0
----
5891

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL ( 64 ) * + 92 + + COUNT ( * ) FROM tab1 AS cor0
----
5891

query I rowsort
SELECT + - 55 * col0 + + col0 + - - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-4590
-5140
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - COUNT( * ) * + COUNT( * ) + - 13 + 61 * - 8 FROM tab2 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort label-184
SELECT - COUNT ( * ) * + COUNT ( * ) + - 13 + 61 * - 8 FROM tab2 AS cor0
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + COUNT( col1 ) + ( - 21 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-185
SELECT + COUNT ( col1 ) + ( - 21 ) FROM tab0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT DISTINCT + MIN( + - col0 ) * + - ( + 93 ) AS col2 FROM tab1
----
8463

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT + MIN ( + - col0 ) * + - ( + 93 ) AS col2 FROM tab1
----
8463

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

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 / col1, + col0 + - 51 )
----

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

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

query II rowsort
SELECT 38, + col2 AS col0 FROM tab2
----
38
23
38
40
38
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT 49 AS col2, + 28 * - + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
49
252

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT 49 AS col2, + 28 * - + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
49
252

query I rowsort
SELECT ALL + + 29 + + 52 FROM tab1 AS cor0
----
81
81
81

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

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

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

query I rowsort
SELECT - - col0 + col0 * - col2 * - - 10 AS col0 FROM tab2 AS cor0
----
-10534
-25536
-43425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT + + col0 FROM tab0 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-199
SELECT + + col0 FROM tab0 WHERE NULL <> CAST ( NULL AS INTEGER )
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - ( - 6 ) + ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 + - 96 AS col2 FROM tab0
----
-111
-183
-193

query I rowsort
SELECT col0 + - 97 FROM tab2
----
-22
-33
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - COUNT( * ) + + 57 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-206
SELECT - COUNT ( * ) + + 57 FROM tab1
----
54

query I rowsort
SELECT DISTINCT - ( + col0 ) - + col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col2 / - + 59
----

query I rowsort
SELECT ALL + - 89 - - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-110
-143
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - + COUNT( * ) * - - 69 col1 FROM tab2 cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-211
SELECT - + COUNT ( * ) * - - 69 col1 FROM tab2 cor0
----
-207

query I rowsort
SELECT DISTINCT - - col2 - + 98 + + + col0 AS col1 FROM tab0 cor0
----
-1
-36
98

query I rowsort
SELECT ALL - col2 * - ( + 11 ) + + col2 + 29 * - 3 / + + 14 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 > + 13 * col1
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * + 14 * col1 AS col2 FROM tab2
----
16422
43120
54404

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL 39 DIV + 47 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-216
SELECT ALL 39 / + 47 col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ( + - ( - col2 ) ) * + 55 * - 40 + + + col2 FROM tab2
----
-127542
-50577
-87960

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 * - col2 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - ( + + 27 ) AS col2, - col0 AS col1 FROM tab0 cor0
----
27
-15
27
-87
27
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + 60 col0 FROM tab1 AS cor0
----
2820
300
840

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

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2 cor0
----
-57
-57
-57

query II rowsort
SELECT ALL + col2, 70 AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-228
SELECT ALL 68 col1, + CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
68
51
68
85
68
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-228
SELECT ALL 68 col1, + CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
68
51
68
85
68
91

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT SUM( + + 66 ) FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT SUM ( + + 66 ) FROM tab1 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - + SUM( - + col2 ) * COUNT( * ) / + + MAX( DISTINCT col1 ) * - AVG ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT - + SUM ( - + col2 ) * COUNT ( * ) / + + MAX ( DISTINCT col1 ) * - AVG ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 3 * - 89 * col0 + + 41 + - ( - 51 ) * - col0 FROM tab0 AS cor0
----
-27625
-30805
-4729

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

skipif mysql # not compatible
query I rowsort label-233
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE - col0 * + - col2 + CAST ( - col2 AS REAL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col0 * + + ( - 39 ) + + - col2 + ( + col2 ) AS col0 FROM tab1
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query II rowsort label-235
SELECT ALL - COUNT( * ), + 48 AS col0 FROM tab0
----
-3
48

skipif mysql # not compatible
query II rowsort label-235
SELECT ALL - COUNT ( * ), + 48 AS col0 FROM tab0
----
-3
48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 < NULL
----

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

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

query I rowsort
SELECT 94 + - 68 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - 0 * - MIN( + 81 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - 0 * - MIN ( + 81 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT col2 * - 72 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - - col2 * - ( 10 ) + + CAST( NULL AS SIGNED ) + + + 21
----

skipif mysql # not compatible
query I rowsort label-240
SELECT col2 * - 72 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - - col2 * - ( 10 ) + + CAST ( NULL AS INTEGER ) + + + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 82 IS NOT NULL AND - 68 NOT IN ( + col0 * 94 * + col1 + - + col1, - 17 / + col2 * + + col2 )
----

query II rowsort
SELECT ALL - 81 AS col0, + col2 FROM tab1 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT - 15 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 = - 89
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 37 * - - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - COUNT( * ) * - 8 AS col1 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-247
SELECT - COUNT ( * ) * - 8 AS col1 FROM tab0 cor0
----
24

query I rowsort
SELECT - - col2 * 60 AS col2 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - col2 * 9 * - + col0 + + col1 AS col1 FROM tab0 AS cor0
----
6426
7851
86428

query I rowsort
SELECT ALL + - 24 * col0 + + 49 AS col2 FROM tab1 AS cor0
----
-1175
-1991
-2135

query II rowsort
SELECT ALL - col2 AS col0, col2 * + col0 FROM tab1
----
-59
5015
-68
6188
-96
4896

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 87 + 71 < 39 * col2
----

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

query I rowsort
SELECT DISTINCT - 96 * ( col0 ) + - 62 AS col1 FROM tab1 AS cor0
----
-4958
-8222
-8798

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL + + 15 DIV 59 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + + 15 / 59 AS col0 FROM tab0 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT ALL - + CAST( + - 99 AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL - + CAST ( + - 99 AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-297

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

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

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 40 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - COUNT( * ) + + 29 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-263
SELECT - COUNT ( * ) + + 29 FROM tab0 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 - + col1 NOT BETWEEN col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + + - col1 + col1 * col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ALL 41 + - - COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 41 + - - COUNT ( * ) FROM tab0
----
44

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

query II rowsort
SELECT - col2 AS col0, col0 + col0 FROM tab2
----
-23
92
-40
128
-58
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + - col1 col1, ( - col0 ) FROM tab2
----
-13
-64
-5
-46
8
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT + 33 + + + COUNT( * ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-270
SELECT + 33 + + + COUNT ( * ) AS col1 FROM tab0
----
36

query I rowsort
SELECT DISTINCT + 23 + - 46 AS col0 FROM tab1
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-272
SELECT ALL ( - col0 ), - CAST( - col1 AS SIGNED ) DIV + 76 AS col2 FROM tab0
----
-15
1
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-272
SELECT ALL ( - col0 ), - CAST ( - col1 AS INTEGER ) / + 76 AS col2 FROM tab0
----
-15
1
-87
0
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT DISTINCT CAST( - + col2 AS SIGNED ) * col0 + 1 AS col0 FROM tab1
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) * col0 + 1 AS col0 FROM tab1
----
-4895
-5014
-6187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab2
----
49
49
49

query II rowsort
SELECT - + 80, col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col1 + col2 * + 67 * + col0 * - col1 - - - col2
----

query I rowsort
SELECT DISTINCT - col0 * + 42 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 * - - 56 AND + - 82
----

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT - 4 * + col2 AS col2 FROM tab2
----
-160
-232
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-279
SELECT 10 FROM tab1 WHERE - CAST( + - 48 AS DECIMAL ) + - col0 IN ( - 5, col0 * + - 11 * + col2, - 58, 79, + 66, + 67 - - + col0 )
----

skipif mysql # not compatible
query I rowsort label-279
SELECT 10 FROM tab1 WHERE - CAST ( + - 48 AS REAL ) + - col0 IN ( - 5, col0 * + - 11 * + col2, - 58, 79, + 66, + 67 - - + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT + COUNT( * ) DIV + - MAX( DISTINCT - col0 ) * + 93 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + COUNT ( * ) / + - MAX ( DISTINCT - col0 ) * + 93 AS col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL - + col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-283
SELECT - 49 DIV + col2 * - - ( 58 ) * + ( - + 78 ) * - col2 + CAST( - col1 AS SIGNED ) - - col0 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-283
SELECT - 49 / + col2 * - - ( 58 ) * + ( - + 78 ) * - col2 + CAST ( - col1 AS INTEGER ) - - col0 FROM tab1 AS cor0
----
37
44
80

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

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

query I rowsort
SELECT ALL - col0 * - + ( col2 ) * - 78 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-286
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND + col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-286
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN + CAST ( NULL AS REAL ) AND + col2
----
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-287
SELECT ALL + 51 * - + col0 * - col0 AS col0, - 20 DIV col2 AS col0 FROM tab1 AS cor0
----
132651
0
368475
0
422331
0

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL + 51 * - + col0 * - col0 AS col0, - 20 / col2 AS col0 FROM tab1 AS cor0
----
132651
0
368475
0
422331
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL + SUM( ALL col1 ) FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL + SUM ( ALL col1 ) FROM tab2 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT - 45 AS col1 FROM tab2 WHERE col2 <= - 48 - + + 20 * 84
----

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

query I rowsort
SELECT ALL - - 62 - + - 69 FROM tab0 AS cor0
----
131
131
131

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

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT 95 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 40 col1 FROM tab0
----
1880
3960
400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-297
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - ( - col2 ) IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT ALL - col2 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT 64, 69 * COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
64
621

skipif mysql # not compatible
query II rowsort label-304
SELECT 64, 69 * COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
64
621

query I rowsort
SELECT ALL - 85 * + + 37 AS col1 FROM tab2
----
-3145
-3145
-3145

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

query II rowsort
SELECT ALL + 12 AS col1, - col1 FROM tab1
----
12
-14
12
-47
12
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT + col1 DIV + col1 + col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-309
SELECT + col1 / + col1 + col2 FROM tab0 AS cor0
----
100
11
48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) = NULL
----

query II rowsort
SELECT + ( + col0 ) + + 4, - 94 * 30 AS col2 FROM tab0
----
101
-2820
19
-2820
91
-2820

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - - 39 IS NOT NULL AND NOT ( NULL ) >= - - 24
----

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

query I rowsort
SELECT - ( - 16 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
16
16
16

query I rowsort
SELECT - - 35 * col0 + + 58 + 17 FROM tab1 cor0
----
1860
3050
3260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT - COUNT( * ) * + COUNT( * ) * - COUNT( DISTINCT col1 ) + - + 65 AS col0, 86 * + 64 AS col1 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
-38
5504

skipif mysql # not compatible
query II rowsort label-317
SELECT - COUNT ( * ) * + COUNT ( * ) * - COUNT ( DISTINCT col1 ) + - + 65 AS col0, 86 * + 64 AS col1 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
-38
5504

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

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

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

query II rowsort
SELECT ALL - - 52, - 73 AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - + 79 AND - - 28
----
52
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT SUM( + + 62 ) * + + 88 FROM tab0 AS cor0
----
16368

skipif mysql # not compatible
query I rowsort label-321
SELECT SUM ( + + 62 ) * + + 88 FROM tab0 AS cor0
----
16368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-322
SELECT COUNT( * ), - COUNT( CAST( NULL AS SIGNED ) ) DIV 33 AS col0 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-322
SELECT COUNT ( * ), - COUNT ( CAST ( NULL AS INTEGER ) ) / 33 AS col0 FROM tab1
----
3
0

query I rowsort
SELECT DISTINCT - ( 36 ) * - 27 + - col2 AS col1 FROM tab0
----
873
925
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 + 60 col0 FROM tab2
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT COUNT( * ) - + - 67 AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-325
SELECT COUNT ( * ) - + - 67 AS col0 FROM tab2
----
70

query I rowsort
SELECT DISTINCT col2 + 26 * + 95 AS col0 FROM tab1
----
2529
2538
2566

query I rowsort
SELECT ALL 87 - + - col2 AS col0 FROM tab0
----
134
186
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT + COUNT( * ) + 6 DIV - 18 FROM tab2 WHERE NOT 51 * + col2 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + COUNT ( * ) + 6 / - 18 FROM tab2 WHERE NOT 51 * + col2 BETWEEN ( NULL ) AND NULL
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 58 AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND ( 81 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( - 55 + + 15 * - col0 ) col1 FROM tab1
----
-1271
-1352
-724

query III rowsort
SELECT * FROM tab2 WHERE - ( 80 ) * 96 = col0 + - col0
----

query I rowsort
SELECT ALL - 21 + - 24 AS col2 FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL 87 + SUM( - 18 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL 87 + SUM ( - 18 ) FROM tab1
----
33

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 + 59 >= + 41 * - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL - COUNT( * ) * - 99 FROM tab0 WHERE + col1 + + col1 * 60 < ( 83 + 71 )
----
99

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL - COUNT ( * ) * - 99 FROM tab0 WHERE + col1 + + col1 * 60 < ( 83 + 71 )
----
99

query I rowsort
SELECT DISTINCT col0 * 11 FROM tab2 WHERE NOT ( - 50 / + col2 ) NOT IN ( 25 )
----

query I rowsort
SELECT ALL - 41 * 47 AS col1 FROM tab2
----
-1927
-1927
-1927

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL CAST( 69 AS SIGNED ) AS col0 FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL CAST ( 69 AS INTEGER ) AS col0 FROM tab1
----
69
69
69

query I rowsort
SELECT ALL 68 FROM tab0 WHERE NOT + col2 + + 8 <> ( + col1 )
----

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

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

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

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

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

query I rowsort
SELECT col0 * col1 + 22 FROM tab2 AS cor0
----
2368
4950
5047

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 ON NULL BETWEEN NULL AND ( NULL )
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT ALL + ( 95 ) + + col2 FROM tab1
----
154
163
191

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

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT + col0 FROM tab2 WHERE col2 + ( - col1 ) <= ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + - col2 - + ( col2 - col0 ) AS col2 FROM tab1 AS cor0
----
-141
-33
-45

query I rowsort
SELECT - 95 + + col0 * 48 AS col1 FROM tab1 AS cor0
----
2353
3985
4273

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - 99 + - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-355
SELECT - 99 + - COUNT ( * ) FROM tab0 AS cor0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT + col1 DIV - ( col1 * 34 ) + + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-356
SELECT + col1 / - ( col1 * 34 ) + + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT DISTINCT col0 + - 46 + 43 DIV col0 AS col2 FROM tab2
----
0
18
29

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT col0 + - 46 + 43 / col0 AS col2 FROM tab2
----
0
18
29

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NULL ) < ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 4 + - col0 col0 FROM tab2
----
-132
-154
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT DISTINCT MIN( - 48 ) * COUNT( * ) AS col0 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT MIN ( - 48 ) * COUNT ( * ) AS col0 FROM tab2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT DISTINCT col2 * col1 + CAST( col2 AS SIGNED ) FROM tab1 WHERE - col1 IN ( 76 )
----

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT col2 * col1 + CAST ( col2 AS INTEGER ) FROM tab1 WHERE - col1 IN ( 76 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT + 46 + - SUM( CAST( - ( 77 ) AS SIGNED ) ) FROM tab0
----
277

skipif mysql # not compatible
query I rowsort label-364
SELECT + 46 + - SUM ( CAST ( - ( 77 ) AS INTEGER ) ) FROM tab0
----
277

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

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT ALL 21 DIV + 63 + - col0 * + col0 AS col0 FROM tab0 WHERE + col2 * col0 IS NOT NULL
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL 21 / + 63 + - col0 * + col0 AS col0 FROM tab0 WHERE + col2 * col0 IS NOT NULL
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 80 - 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT ALL col2 * - ( ( ( - col2 ) ) ) DIV + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL col2 * - ( ( ( - col2 ) ) ) / + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT - MIN( ALL col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab2 AS cor0
----
-46

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

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

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

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

query II rowsort
SELECT DISTINCT + - col0, col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query I rowsort
SELECT DISTINCT 77 * + - col1 * - - col0 FROM tab1 AS cor0
----
-32725
-329329
-54978

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT ALL + 42 * + + col2 + col1 DIV col2 FROM tab0 AS cor0
----
1975
4158
422

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + 42 * + + col2 + col1 / col2 FROM tab0 AS cor0
----
1975
4158
422

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < + + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 60 * - 64 + - col1 AS col1 FROM tab1 AS cor0
----
-3845
-3854
-3887

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT + + ( col1 ) DIV col0 + + 50 AS col0 FROM tab0 AS cor0
----
50
50
55

skipif mysql # not compatible
query I rowsort label-378
SELECT + + ( col1 ) / col0 + + 50 AS col0 FROM tab0 AS cor0
----
50
50
55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 72 col2, 81 AS col2 FROM tab2 AS cor0
----
72
81

query I rowsort
SELECT + - col1 + - 30 + + 79 FROM tab1 AS cor0
----
2
35
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 77 col0 FROM tab2 AS cor0
----
77
77
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - + 20 ) / + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 88 + + ( - 40 ) FROM tab0
----
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT + COUNT( * ) DIV - CAST( 1 AS SIGNED ) col0 FROM tab2 WHERE NOT 19 * ( col0 ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-386
SELECT DISTINCT + COUNT ( * ) / - CAST ( 1 AS INTEGER ) col0 FROM tab2 WHERE NOT 19 * ( col0 ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-387
SELECT CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT - COUNT( * ) * - - MAX( - 65 ) DIV + - SUM( DISTINCT col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT - COUNT ( * ) * - - MAX ( - 65 ) / + - SUM ( DISTINCT col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 52 * - col0 AS col0 FROM tab0 cor0 WHERE NOT ( - col1 ) NOT BETWEEN + 12 + + col2 AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > ( - + 9 )
----

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab2 cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col0 col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
0

query I rowsort
SELECT DISTINCT 73 - col1 FROM tab1 AS cor0
----
26
59
68

onlyif mysql # DIV for integer division: 
query II rowsort label-395
SELECT - 2 AS col0, - col1 DIV 12 AS col1 FROM tab2 AS cor0
----
-2
-4
-2
-5
-2
-6

skipif mysql # not compatible
query II rowsort label-395
SELECT - 2 AS col0, - col1 / 12 AS col1 FROM tab2 AS cor0
----
-2
-4
-2
-5
-2
-6

query I rowsort
SELECT DISTINCT - + 25 * + col2 * - ( + 64 ) FROM tab2 AS cor0
----
36800
64000
92800

query I rowsort
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) <> ( - - 72 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT - ( - 72 ) * MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - ( - 72 ) * MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - 99 * - ( - + CAST ( COUNT ( * ) AS INTEGER ) ) + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT - 73 FROM tab1 AS cor0 WHERE NULL IN ( col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-402
SELECT ALL + 21 * + CAST( - 61 AS SIGNED ) FROM tab2 WHERE ( + col1 ) NOT BETWEEN + col2 + + col0 AND ( NULL )
----
-1281
-1281
-1281

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + 21 * + CAST ( - 61 AS INTEGER ) FROM tab2 WHERE ( + col1 ) NOT BETWEEN + col2 + + col0 AND ( NULL )
----
-1281
-1281
-1281

query II rowsort
SELECT ALL + col0, col0 * ( - col0 ) * + col1 FROM tab2
----
46
-107916
64
-315392
75
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT 52 * ( + col1 ) DIV - + col1 FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-404
SELECT 52 * ( + col1 ) / - + col1 FROM tab2
----
-52
-52
-52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-407
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 WHERE col0 NOT IN ( + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 WHERE col0 NOT IN ( + CAST ( NULL AS INTEGER ), col2 )
----

query III rowsort
SELECT col0 AS col0, - 25 * + - col0 * - col1 AS col2, - ( - col1 ) * 64 AS col0 FROM tab0
----
9 values hashing to 76432516cb519a15dbab37cbb05320d9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT ALL - 90, - MIN( DISTINCT + - 52 ) AS col0 FROM tab2 AS cor0
----
-90
52

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - 90, - MIN ( DISTINCT + - 52 ) AS col0 FROM tab2 AS cor0
----
-90
52

query I rowsort
SELECT DISTINCT + col1 * + - 82 * - col2 FROM tab0 cor0
----
17220
312174
8118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - MAX( ALL 3 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - MAX ( ALL 3 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT - 27 * col1 AS col0 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # DIV for integer division: 
query II rowsort label-416
SELECT 64 DIV - col2, + col2 FROM tab0
----
-1
47
-6
10
0
99

skipif mysql # not compatible
query II rowsort label-416
SELECT 64 / - col2, + col2 FROM tab0
----
-1
47
-6
10
0
99

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = ( NULL )
----

query I rowsort
SELECT + ( - 77 ) * - 12 * - 92 AS col1 FROM tab2 AS cor0
----
-85008
-85008
-85008

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( 85 * + - 89 IN ( - - 78 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= col0 * - - col1 + - ( - 68 ) / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - - MAX( DISTINCT + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-423
SELECT - - MAX ( DISTINCT + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 BETWEEN NULL AND + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 92 * - + 93 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-436333
-573194
-658772

query I rowsort
SELECT ALL + 12 * - 18 * col0 AS col0 FROM tab0 AS cor0
----
-18792
-20952
-3240

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 col1, + col1 col1 FROM tab0
----
78
1
78
21
78
81

query II rowsort
SELECT ALL col0, - 63 AS col2 FROM tab0
----
15
-63
87
-63
97
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT ALL col2 DIV + 45 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL col2 / + 45 FROM tab0 cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + COUNT( col1 ) FROM tab1 cor0 WHERE ( + - col0 ) * col1 * col1 + - 56 NOT BETWEEN + 32 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-432
SELECT + COUNT ( col1 ) FROM tab1 cor0 WHERE ( + - col0 ) * col1 * col1 + - 56 NOT BETWEEN + 32 AND NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 * + CAST( + 43 AS SIGNED ) NOT IN ( - col2 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 * + CAST ( + 43 AS INTEGER ) NOT IN ( - col2 * + col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - COUNT ( col2 ) * + 57 FROM tab2 AS cor0
----
-171

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

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

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

query I rowsort
SELECT DISTINCT - 83 + + 88 + + 33 FROM tab1
----
38

query I rowsort
SELECT ALL + 50 + + 8 AS col1 FROM tab1
----
58
58
58

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL = ( - - col2 ) * 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT - CAST( + MIN( DISTINCT - 3 ) AS SIGNED ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-441
SELECT - CAST ( + MIN ( DISTINCT - 3 ) AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 - col1 * + 32 - + col2 FROM tab0 AS cor0
----
-130
-2558
-661

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

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

query I rowsort
SELECT - 44 * ( + - col0 ) AS col0 FROM tab2 AS cor0
----
2024
2816
3300

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

query I rowsort
SELECT col0 * + 68 * - col0 FROM tab0
----
-15300
-514692
-639812

query II rowsort
SELECT DISTINCT 58 AS col1, + col0 FROM tab0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT 58 * - COUNT( * ) * SUM( DISTINCT 76 ) FROM tab1
----
-13224

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT 58 * - COUNT ( * ) * SUM ( DISTINCT 76 ) FROM tab1
----
-13224

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND col0 + + 70 / - col2 + + 53
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-452
SELECT SUM ( - ( + col2 ) ) col0 FROM tab1 AS cor0
----
-223

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

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( - - col2 ) FROM tab0 cor0
----
3

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

query I rowsort
SELECT + 43 * + col0 FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL COUNT( * ) * + 80 col0 FROM tab2
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-456
SELECT ALL COUNT ( * ) * + 80 col0 FROM tab2
----
240

query I rowsort
SELECT - + 57 * - 55 FROM tab2 cor0
----
3135
3135
3135

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-458
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - + col2 * CAST( NULL AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query III rowsort label-458
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - + col2 * CAST ( NULL AS REAL ) + - col0
----

query I rowsort
SELECT ALL + col2 * - col2 + - - 3 * + col2 AS col2 FROM tab1 AS cor0
----
-3304
-4420
-8928

query I rowsort
SELECT - ( col0 ) + - col1 + - - 60 + + 43 FROM tab0 AS cor0
----
-5
5
7

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-463
SELECT + - 87 + CAST( NULL AS DECIMAL ), col2 * 49 + + + col0 * + + 64 AS col1 FROM tab0 cor0
----
NULL
11059
NULL
3263
NULL
6058

skipif mysql # not compatible
query II rowsort label-463
SELECT + - 87 + CAST ( NULL AS REAL ), col2 * 49 + + + col0 * + + 64 AS col1 FROM tab0 cor0
----
NULL
11059
NULL
3263
NULL
6058

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

query I rowsort
SELECT + ( + col2 ) * - 30 * + - 74 + + - ( + col0 ) + + + 15 AS col1 FROM tab2 AS cor0
----
128700
51029
88751

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

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

query I rowsort
SELECT - + col2 + - - 54 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT ALL 73 * - col2 + col0 FROM tab0
----
-3416
-643
-7130

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col2 col1, 48 + + - col1 AS col2 FROM tab1
----
-110
34
-115
1
-64
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 59 * - + 51 + - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) - + 59 AS col1 FROM tab1 AS cor0
----
-110
-144
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - COUNT( * ), - MIN( DISTINCT - 14 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
14

skipif mysql # not compatible
query II rowsort label-473
SELECT - COUNT ( * ), - MIN ( DISTINCT - 14 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
14

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

query I rowsort
SELECT - + col2 * - ( col2 ) + - - col2 FROM tab0 AS cor0
----
110
2256
9900

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

query II rowsort
SELECT + 95, col0 + - + 64 * - col0 * + col2 AS col0 FROM tab0 AS cor0
----
95
45135
95
55767
95
614689

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

query I rowsort
SELECT col2 * - 79 FROM tab2
----
-1817
-3160
-4582

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

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

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT + MAX( ALL - - 23 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
23

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + MAX ( ALL - - 23 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT DISTINCT - + ( COUNT( * ) ) - - ( - MAX( DISTINCT + ( 21 ) ) ) * + 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT - + ( COUNT ( * ) ) - - ( - MAX ( DISTINCT + ( 21 ) ) ) * + 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT ALL + col2, 55 * - col0 AS col0 FROM tab0 AS cor0
----
10
-4785
47
-825
99
-5335

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT ALL - 92 AS col0, COUNT( * ) FROM tab2
----
-92
3

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL - 92 AS col0, COUNT ( * ) FROM tab2
----
-92
3

query I rowsort
SELECT ALL 59 + + - col2 FROM tab1
----
-37
-9
0

query I rowsort
SELECT 25 + - 37 AS col1 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + 96 + + col1 * - col0 + + col0 + + + col2 FROM tab0
----
-1057
-1634
195

query I rowsort
SELECT ( - col2 ) + - + col1 AS col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL - col2 + + 24 AS col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT 33 + - ( - - col0 ) * col0 FROM tab1
----
-2568
-7192
-8248

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-494
SELECT + 54 + CAST( NULL AS SIGNED ) + col1 + + CAST( NULL AS DECIMAL ) AS col1, + 91 AS col1 FROM tab0
----
NULL
91
NULL
91
NULL
91

skipif mysql # not compatible
query II rowsort label-494
SELECT + 54 + CAST ( NULL AS INTEGER ) + col1 + + CAST ( NULL AS REAL ) AS col1, + 91 AS col1 FROM tab0
----
NULL
91
NULL
91
NULL
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-496
SELECT ALL - 84 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - 84 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 30 - - + ( + col0 ) + - col2 + + + col2 / - + col0 * - - col0 FROM tab1 AS cor0 WHERE ( + 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + - COUNT( * ) FROM tab2 cor0 WHERE 31 * + col2 * - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-498
SELECT + - COUNT ( * ) FROM tab2 cor0 WHERE 31 * + col2 * - col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL + COUNT( * ) * - 43 * - COUNT( * ) col1 FROM tab1 AS cor0
----
387

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 * - 38 col1 FROM tab1 AS cor0
----
-132278
-175712
-350208

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

query I rowsort
SELECT DISTINCT + col0 * 57 * col1 AS col2 FROM tab2 AS cor0
----
133722
280896
286425

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

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

query I rowsort
SELECT col1 * - - col2 FROM tab2 cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT ALL ( + 53 ) AS col1 FROM tab0
----
53
53
53

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( ( 96 ) > 15 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT + ( - COUNT( * ) ) + 45 AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + ( - COUNT ( * ) ) + 45 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT - 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - + 48 + - col0 + + + col2 * - - col0 FROM tab1 AS cor0
----
4797
4882
6049

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

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

query I rowsort
SELECT ALL 32 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-516
SELECT 71 + + ( - - col1 ) DIV CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-516
SELECT 71 + + ( - - col1 ) / CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT - col2 + - col1 + + 38 AS col1 FROM tab0 AS cor0
----
-62
-90
7

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT + col0 DIV - col0 + + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-518
SELECT + col0 / - col0 + + col0 FROM tab2 AS cor0
----
45
63
74

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

query I rowsort
SELECT DISTINCT col2 + + - col1 + + 13 FROM tab0 AS cor0
----
-21
111
2

query I rowsort
SELECT ALL + 60 + 36 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + col0 * 3 + + col0 FROM tab0 cor0
----
348
388
60

query I rowsort
SELECT ALL - 11 + - col1 AS col2 FROM tab1
----
-16
-25
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE + + 96 / col0 * + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE + + 96 / col0 * + + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-525
SELECT * FROM tab0 WHERE + + CAST( - ( ( - + 42 ) ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-525
SELECT * FROM tab0 WHERE + + CAST ( - ( ( - + 42 ) ) AS INTEGER ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 18 + + col0 - + 45 * - - col2 AS col2 FROM tab0
----
-2118
-381
-4376

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT 94 - COUNT( DISTINCT + + col2 ) + + 88 FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-528
SELECT 94 - COUNT ( DISTINCT + + col2 ) + + 88 FROM tab2
----
179

query II rowsort
SELECT DISTINCT 90 + col1 * - - 7 AS col0, col0 FROM tab0
----
237
87
657
15
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT + ( - + 90 ) - - - MIN( + - col2 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-530
SELECT + ( - + 90 ) - - - MIN ( + - col2 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 33 * - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT 33 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < - col1
----
0

query I rowsort
SELECT ALL col1 * + 28 AS col2 FROM tab2 AS cor0
----
1428
1876
2156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + + col1, col1 col0 FROM tab0
----
-1
1
-441
21
-6561
81

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT 42 col2, + COUNT( * ) + - 1 AS col0 FROM tab2
----
42
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-534
SELECT 42 col2, + COUNT ( * ) + - 1 AS col0 FROM tab2
----
42
2

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

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

query I rowsort
SELECT ALL + 17 * AVG ( col0 ) + 50 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL <> 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * - - col2 * 10 col1 FROM tab2
----
-3910
-6800
-9860

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

query I rowsort
SELECT - ( - + col2 ) * - + col1 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT ALL 60 * - ( + col2 ), + col1 FROM tab1
----
-3540
5
-4080
47
-5760
14

query I rowsort
SELECT - 9 * + col2 AS col1 FROM tab0
----
-423
-891
-90

query I rowsort
SELECT + col1 * + 79 FROM tab1
----
1106
3713
395

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + ( - col1 ) col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-548
SELECT - 7 * + CAST( - 36 AS SIGNED ), col2 * + + col1 AS col2 FROM tab2
----
252
1173
252
3080
252
3886

skipif mysql # not compatible
query II rowsort label-548
SELECT - 7 * + CAST ( - 36 AS INTEGER ), col2 * + + col1 AS col2 FROM tab2
----
252
1173
252
3080
252
3886

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

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

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

query I rowsort
SELECT ALL + - 89 FROM tab1 cor0
----
-89
-89
-89

query II rowsort
SELECT + col2, + 83 FROM tab0
----
10
83
47
83
99
83

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT ALL + 11 + - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL + 11 + - COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 >= + + col1
----

query II rowsort
SELECT ALL + - 75 AS col1, - 67 AS col2 FROM tab1 AS cor0
----
-75
-67
-75
-67
-75
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 53 AND NULL
----

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 * col2, - 53 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col0 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - + ( + 36 ) + + MAX( DISTINCT + + 89 ) AS col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-560
SELECT - + ( + 36 ) + + MAX ( DISTINCT + + 89 ) AS col1 FROM tab0 AS cor0
----
53

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-562
SELECT ALL + SUM ( DISTINCT 9 ) col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - 44 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-563
SELECT - 44 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-564
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0, - 60 + + + CAST( NULL AS DECIMAL ) FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0, - 60 + + + CAST ( NULL AS REAL ) FROM tab0
----
0
NULL

query I rowsort
SELECT DISTINCT + 88 FROM tab2 WHERE 9 IS NOT NULL
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-566
SELECT - CAST( NULL AS DECIMAL ) + + col1 AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-566
SELECT - CAST ( NULL AS REAL ) + + col1 AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

query I rowsort
SELECT DISTINCT 86 * - - 13 FROM tab0, tab2 AS cor0
----
1118

query I rowsort
SELECT DISTINCT col2 - + ( - - 86 ) AS col2 FROM tab0
----
-39
-76
13

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT ALL + + 29 - 14, COUNT( * ) AS col2 FROM tab2 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-570
SELECT ALL + + 29 - 14, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT + SUM( - 62 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-558

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + SUM ( - 62 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-558

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

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

query I rowsort
SELECT ALL + col2 * + 59 FROM tab0 AS cor0
----
2773
5841
590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col1 FROM tab2 AS cor0
----
1600
3364
529

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

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - COUNT ( * ) / + - 77 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT - 68 * COUNT( * ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT - 68 * COUNT ( * ) FROM tab2 AS cor0
----
-204

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

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

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

query I rowsort
SELECT DISTINCT ( 10 ) FROM tab2
----
10

query I rowsort
SELECT ALL 91 * - + col2 FROM tab0
----
-4277
-9009
-910

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-582
SELECT ALL * FROM tab2 WHERE NOT + - CAST( + - 17 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-582
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( + - 17 AS REAL ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col0 + - col0 * + 40 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT DISTINCT 72 * col1 AS col2 FROM tab0
----
1512
5832
72

query II rowsort
SELECT ALL col2 AS col1, + col0 * col1 AS col0 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT MAX( - + 24 ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-587
SELECT MAX ( - + 24 ) AS col1 FROM tab2 AS cor0
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-589
SELECT DISTINCT col0 DIV + 13 + CAST( + col2 AS SIGNED ) + + col0 * + 14 - CAST( - col1 AS SIGNED ) * - 60 + + + col2 FROM tab2 cor0
----
-2367
-2849
-3640

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT col0 / + 13 + CAST ( + col2 AS INTEGER ) + + col0 * + 14 - CAST ( - col1 AS INTEGER ) * - 60 + + + col2 FROM tab2 cor0
----
-2367
-2849
-3640

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT + col2 DIV col0 * col2 DIV + 33 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-590
SELECT + col2 / col0 * col2 / + 33 FROM tab0 AS cor0
----
0
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL + 65 + 34 + - 31 * + MIN( 71 ) FROM tab0 AS cor0
----
-2102

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + 65 + 34 + - 31 * + MIN ( 71 ) FROM tab0 AS cor0
----
-2102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * + 6 + - col2 col0 FROM tab1
----
112
121
84

query I rowsort
SELECT ALL + 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-597
SELECT - + col2 + - + col2 AS col0, + col1 DIV ( - + 2 ) AS col1 FROM tab0 AS cor0
----
-198
0
-20
-10
-94
-40

skipif mysql # not compatible
query II rowsort label-597
SELECT - + col2 + - + col2 AS col0, + col1 / ( - + 2 ) AS col1 FROM tab0 AS cor0
----
-198
0
-20
-10
-94
-40

query I rowsort
SELECT 50 + 59 AS col1 FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT + 18 * + col1 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 + 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-600
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 + 37 IS NULL
----
0

query I rowsort
SELECT + col1 * - 73 FROM tab1 AS cor0
----
-1022
-3431
-365

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

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

query II rowsort
SELECT 21, - 41 + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21
23
21
34
21
5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-605
SELECT DISTINCT - col2 + - 50 DIV 76 AS col2, - 0 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-605
SELECT DISTINCT - col2 + - 50 / 76 AS col2, - 0 FROM tab0
----
-10
0
-47
0
-99
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + 57 col0 FROM tab0
----
-10
-47
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT CAST( NULL AS SIGNED ) - 7 * AVG ( - 96 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT CAST ( NULL AS INTEGER ) - 7 * AVG ( - 96 ) FROM tab1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + + col0 * - - col2 + - - 45 AS col0 FROM tab2 AS cor0
----
1103
2605
4395

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT DISTINCT + SUM( DISTINCT + 71 ), + ( - 99 ) AS col1 FROM tab0
----
71
-99

skipif mysql # not compatible
query II rowsort label-613
SELECT DISTINCT + SUM ( DISTINCT + 71 ), + ( - 99 ) AS col1 FROM tab0
----
71
-99

query I rowsort
SELECT 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL 43 * - col0 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 4 col2 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT DISTINCT 82 + - - MIN( DISTINCT + col2 ), + COUNT( * ) + 60 AS col0 FROM tab1
----
141
63

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT 82 + - - MIN ( DISTINCT + col2 ), + COUNT ( * ) + 60 AS col0 FROM tab1
----
141
63

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

skipif mysql # not compatible
query I rowsort label-621
SELECT - SUM ( DISTINCT - - ( 7 ) ) AS col0 FROM tab2
----
-7

query I rowsort
SELECT DISTINCT + col1 + + col2 + - + col1 FROM tab0
----
10
47
99

query I rowsort
SELECT 24 * - + col1 * col1 FROM tab1
----
-4704
-53016
-600

query I rowsort
SELECT - col0 / + 99 * + - col1 + col0 * + 85 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + ( + col2 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT + COUNT( * ) + - 36 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + COUNT ( * ) + - 36 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - COUNT( * ) * + 93 * + ( 81 ) AS col1 FROM tab0
----
-22599

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - COUNT ( * ) * + 93 * + ( 81 ) AS col1 FROM tab0
----
-22599

query I rowsort
SELECT 72 + - ( + - 45 ) + - col0 AS col0 FROM tab2
----
42
53
71

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - ( 73 ) ) + - ( - col0 ) col0 FROM tab2 AS cor0
----
119
137
148

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT DISTINCT + COUNT( * ) + + MAX( ALL - + col0 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT + COUNT ( * ) + + MAX ( ALL - + col0 ) AS col2 FROM tab2
----
-43

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

skipif mysql # not compatible
query III rowsort label-633
SELECT * FROM tab1 WHERE NULL >= CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 5 <= 15
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT col1 DIV + col0 + 20 FROM tab1
----
20
20
20

skipif mysql # not compatible
query I rowsort label-637
SELECT col1 / + col0 + 20 FROM tab1
----
20
20
20

onlyif mysql # DIV for integer division: 
query II rowsort label-638
SELECT ALL ( - - col1 ) col1, col1 * col0 DIV - 33 FROM tab0
----
1
-2
21
-55
81
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-638
SELECT ALL ( - - col1 ) col1, col1 * col0 / - 33 FROM tab0
----
1
-2
21
-55
81
-36

query I rowsort
SELECT + + col1 / + - 50 * col0 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-640
SELECT DISTINCT 7 DIV - MAX( + col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-640
SELECT DISTINCT 7 / - MAX ( + col0 ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + COUNT( + col2 ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + COUNT ( + col2 ) FROM tab0 WHERE NULL <> NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT MIN( DISTINCT + col0 ) DIV - COUNT( * ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-643
SELECT MIN ( DISTINCT + col0 ) / - COUNT ( * ) AS col2 FROM tab1
----
-17

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

query I rowsort
SELECT + + ( - 8 ) * - - col0 + + 62 AS col1 FROM tab2 AS cor0
----
-306
-450
-538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-646
SELECT - COUNT( * ) DIV + ( 83 ) * + 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-646
SELECT - COUNT ( * ) / + ( 83 ) * + 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT COUNT( ALL 11 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT COUNT ( ALL 11 ) AS col2 FROM tab2 AS cor0
----
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 28, + col1 col2 FROM tab0 cor0
----
-28
1
-28
21
-28
81

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + 99 / col1 * - col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT 9 * + - col2 + + col2 FROM tab0 AS cor0
----
-376
-792
-80

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

skipif mysql # not compatible
query I rowsort label-655
SELECT - + COUNT ( * ) / - COUNT ( ALL col1 ) + + COUNT ( * ) * SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-197

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT + 0 + + MIN( col0 ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-656
SELECT + 0 + + MIN ( col0 ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
51
3

query I rowsort
SELECT ALL col1 + + + 67 AS col1 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 10 / - + ( + 93 ) = + 66
----
-3

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 10 / - + ( + 93 ) = + 66
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + ( 43 ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT col1 DIV + + col2 * + col0 * - + col0 - - col0 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-661
SELECT col1 / + + col2 * + col0 * - + col0 - - col0 / - col2 FROM tab1 AS cor0
----
-1
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT 55 * - ( + + COUNT( ALL 40 ) ) + + 98 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-663
SELECT 55 * - ( + + COUNT ( ALL 40 ) ) + + 98 FROM tab1
----
-67

query I rowsort
SELECT - + col2 * + + col0 * 88 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + - 48 - + + col2 + + 90 FROM tab2 AS cor0
----
-16
19
2

query I rowsort
SELECT 23 * + col0 AS col1 FROM tab0 AS cor0
----
2001
2231
345

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 65 * + - 91 AS col2 FROM tab2 cor0
----
5915
5915
5915

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT ALL col2 * col1 DIV - col1 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL col2 * col1 / - col1 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 17 * - - 40 AS col0 FROM tab0
----
680
680
680

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT - 16 DIV 10 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-676
SELECT - 16 / 10 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - 86 * + + 6 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-516
-516
-516

query I rowsort
SELECT + col0 * + + 81 FROM tab1
----
4131
6885
7371

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

query II rowsort
SELECT - 57 * + col2, col0 * - - col1 AS col2 FROM tab2
----
-1311
2346
-2280
4928
-3306
5025

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

query II rowsort
SELECT col0, 10 AS col0 FROM tab1
----
51
10
85
10
91
10

query I rowsort
SELECT + col0 * - + ( + ( + 21 ) ) + + col0 FROM tab0
----
-1740
-1940
-300

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT DISTINCT AVG ( ALL - ( + 62 ) ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT AVG ( ALL - ( + 62 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT - 21 + 20 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IS NOT NULL OR NOT NULL IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-689
SELECT * FROM tab0 WHERE col2 NOT IN ( + ( + col1 ), 62 - + CAST ( NULL AS INTEGER ), + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + 10 col2 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # aggregate syntax: 
query II rowsort label-691
SELECT + COUNT( * ), - MAX( ALL - - col1 ) col2 FROM tab2 cor0
----
3
-77

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

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

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

query I rowsort
SELECT ALL col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < - - col2
----
85
5
59
91
47
68

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

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

query I rowsort
SELECT ALL + - 81 * + col1 AS col2 FROM tab2 AS cor0
----
-4131
-5427
-6237

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT DISTINCT + ( - SUM( ALL - + col2 ) ) DIV + MAX( DISTINCT + 24 ) AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT + ( - SUM ( ALL - + col2 ) ) / + MAX ( DISTINCT + 24 ) AS col0 FROM tab2 AS cor0
----
5

query I rowsort
SELECT 82 * col2 * + ( + 13 ) + + 5 FROM tab2 AS cor0
----
24523
42645
61833

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

skipif mysql # not compatible
query I rowsort label-701
SELECT - col2 / + + col2 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT + col0 DIV 69 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-702
SELECT + col0 / 69 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT - 4 * 21 AS col2 FROM tab0 AS cor0
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT COUNT( * ) + + 97 * 29 FROM tab0
----
2816

skipif mysql # not compatible
query I rowsort label-705
SELECT COUNT ( * ) + + 97 * 29 FROM tab0
----
2816

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

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

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

query I rowsort
SELECT - + col1 FROM tab2 cor0 WHERE NULL < - 88 * - col1 * + - col1
----

query I rowsort
SELECT + 32 + - col0 + - 39 AS col0 FROM tab0 AS cor0
----
-104
-22
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT + col1 DIV - 27 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-710
SELECT + col1 / - 27 FROM tab0 AS cor0
----
-3
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - - col1 * + + ( + col1 ) * - col2 * 1 * col2 * 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL - COUNT( * ) + + + 71 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - COUNT ( * ) + + + 71 FROM tab1
----
68

query I rowsort
SELECT - col2 - - 57 FROM tab2 WHERE - - col2 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 + + col0 * - + col1 + - - 69 FROM tab0
----
-1065
-1737
-27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 97 BETWEEN NULL AND 49
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT col2 * + + 36 + + col0 AS col2 FROM tab1
----
2209
2539
3507

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT - SUM( - col1 ) + - ( - 46 ) FROM tab0 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-720
SELECT - SUM ( - col1 ) + - ( - 46 ) FROM tab0 AS cor0
----
149

query I rowsort
SELECT 0 * - 36 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 - - col1 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT ( - - 98 ) AS col0 FROM tab0
----
98
98
98

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 45 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 40 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT ALL + COUNT( * ) col0, - 52 FROM tab2 AS cor0
----
3
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT + - col0 * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT + 77 + - ( 53 ) / + - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-730
SELECT DISTINCT + - col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT + 77 + - ( 53 ) / + - col2 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT DISTINCT CAST( + SUM( - 74 ) AS SIGNED ) AS col2 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT CAST ( + SUM ( - 74 ) AS INTEGER ) AS col2 FROM tab2
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT + col0 * + - CAST( 71 AS SIGNED ) AS col1 FROM tab0
----
-1065
-6177
-6887

skipif mysql # not compatible
query I rowsort label-734
SELECT + col0 * + - CAST ( 71 AS INTEGER ) AS col1 FROM tab0
----
-1065
-6177
-6887

query I rowsort
SELECT DISTINCT 78 * + col2 AS col2 FROM tab1
----
4602
5304
7488

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-737
SELECT + COUNT( ALL + col2 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + COUNT ( ALL + col2 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT + COUNT( * ) DIV + COUNT( DISTINCT + 0 ) FROM tab0
----
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 96 + + col0 + + 18 + - - col0 / + - col2 * - + col0
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT ALL - 86 DIV col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - 86 / col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-2
-3

query I rowsort
SELECT + + col1 - + + col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( 55 ) <> - col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col0 * - 39 * - col1 + + + col1 - - 26 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col0 * - 39 * - col1 + + + col1 - - 26 IS NULL
----
0

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

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

query II rowsort
SELECT + - col2, col1 * - - 93 AS col1 FROM tab2 AS cor0
----
-23
4743
-40
7161
-58
6231

query I rowsort
SELECT + ( - - col2 ) * - 88 FROM tab1 cor0
----
-5192
-5984
-8448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-753
SELECT ALL MAX( + col2 ) * + 56 AS col0, + CAST( NULL AS SIGNED ) + - 11 AS col1 FROM tab0 WHERE NOT - col2 < - col0
----
560
NULL

skipif mysql # not compatible
query II rowsort label-753
SELECT ALL MAX ( + col2 ) * + 56 AS col0, + CAST ( NULL AS INTEGER ) + - 11 AS col1 FROM tab0 WHERE NOT - col2 < - col0
----
560
NULL

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 47 <= - 69
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL + SUM( + 92 ) AS col0 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + SUM ( + 92 ) AS col0 FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 5, 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT col2 DIV 20 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-761
SELECT col2 / 20 FROM tab0
----
0
2
4

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 cor0 WHERE NOT NULL > + 43 + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 43 * - COUNT( * ) * COUNT( - 53 ) AS col0 FROM tab0 AS cor0
----
387

skipif mysql # not compatible
query I rowsort label-764
SELECT - 43 * - COUNT ( * ) * COUNT ( - 53 ) AS col0 FROM tab0 AS cor0
----
387

query II rowsort
SELECT - col2, - col0 AS col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + MAX( DISTINCT + col1 ) AS col1 FROM tab1 WHERE NOT - col2 = ( + col1 )
----
47

skipif mysql # not compatible
query I rowsort label-766
SELECT + MAX ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE NOT - col2 = ( + col1 )
----
47

query I rowsort
SELECT col2 + - ( - col2 ) AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL 79 * col2 - + 36 FROM tab1
----
4625
5336
7548

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= ( + 31 )
----

query I rowsort
SELECT ALL 45 * 19 AS col1 FROM tab2 WHERE NULL IS NULL
----
855
855
855

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT MIN( 95 ) * 99 AS col2 FROM tab1
----
9405

skipif mysql # not compatible
query I rowsort label-771
SELECT MIN ( 95 ) * 99 AS col2 FROM tab1
----
9405

query I rowsort
SELECT DISTINCT + 57 * - col1 AS col0 FROM tab1
----
-2679
-285
-798

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

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

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

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

skipif mysql # not compatible
query I rowsort label-775
SELECT - 5 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT col0 DIV - 99 + 84 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT col0 / - 99 + 84 / col2 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 81 ) * col0 col2 FROM tab2
----
3726
5184
6075

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-778
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col0 > 43 + 44
----

skipif mysql # not compatible
query III rowsort label-778
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col0 > 43 + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT col1 + - ( 49 ) AS col1 FROM tab2 WHERE NOT col2 * col2 IN ( - CAST( + 54 AS SIGNED ) )
----
18
2
28

skipif mysql # not compatible
query I rowsort label-779
SELECT col1 + - ( 49 ) AS col1 FROM tab2 WHERE NOT col2 * col2 IN ( - CAST ( + 54 AS INTEGER ) )
----
18
2
28

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL >= 94 + + ( col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT ALL CAST( 0 AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL CAST ( 0 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 52 / 74 - 30 NOT BETWEEN NULL AND - col2 / 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - MAX( - col2 ) col2 FROM tab2
----
23

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - ( + 67 )
----

query I rowsort
SELECT + col1 - ( 38 ) AS col2 FROM tab1 WHERE NOT NULL < ( - col2 + col2 )
----

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

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

query I rowsort
SELECT DISTINCT + col0 * - 38 FROM tab0
----
-3306
-3686
-570

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 + + 85 AS col0 FROM tab2 WHERE NULL IS NULL
----
1685
3449
614

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 96 + SUM( 82 ) FROM tab2
----
342

skipif mysql # not compatible
query I rowsort label-791
SELECT 96 + SUM ( 82 ) FROM tab2
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT col0 DIV 85 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-792
SELECT col0 / 85 AS col1 FROM tab1
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + COUNT( ALL - col1 ) FROM tab1 WHERE NULL BETWEEN col2 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-794
SELECT + COUNT ( ALL - col1 ) FROM tab1 WHERE NULL BETWEEN col2 AND ( col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + 81 * - col0 ) AND NULL
----

query I rowsort
SELECT 40 / + ( 34 ) FROM tab2 AS cor0 WHERE NOT - col2 - + col1 IS NOT NULL
----

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 INNER JOIN tab2 ON NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT + 30 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( + col1 - col1 / - col2 ) IS NOT NULL
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-800
SELECT DISTINCT + 30 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( + col1 - col1 / - col2 ) IS NOT NULL
----
90

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( + col0 + 10 ) AND col2
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 65 * + col0 FROM tab1 AS cor0 WHERE col2 - + col0 IS NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < - col0
----

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

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT CAST ( - - 15 AS INTEGER ) FROM tab2
----
15

query I rowsort
SELECT DISTINCT 16 + + - col0 FROM tab2
----
-30
-48
-59

query I rowsort
SELECT + 2 * - col0 AS col2 FROM tab1 WHERE NOT NULL > - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab2
----
63
63
63

query III rowsort
SELECT * FROM tab2 WHERE NOT 34 = + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL col0 + - - col0 * - col2 FROM tab1
----
-4845
-4930
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE ( - 43 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col0 + + 60 AS col2 FROM tab2
----
106
124
135

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT - 92 * + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-7084

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT - 92 * + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-7084

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-822
SELECT ALL + COUNT( * ) DIV ( + CAST( + MAX( col0 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + COUNT ( * ) / ( + CAST ( + MAX ( col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT - - col0 * + col2 + ( col2 ) FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT COUNT( + 82 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-825
SELECT COUNT ( + 82 ) AS col2 FROM tab0
----
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( - 43 + - 81 )
----

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

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

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

query I rowsort
SELECT 38 + - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
138
2247
9839

onlyif mysql # DIV for integer division: 
query I rowsort label-830
SELECT - col0 DIV 62 + col2 AS col2 FROM tab2 AS cor0
----
23
39
57

skipif mysql # not compatible
query I rowsort label-830
SELECT - col0 / 62 + col2 AS col2 FROM tab2 AS cor0
----
23
39
57

query I rowsort
SELECT DISTINCT col2 * + 25 + + col1 FROM tab0 AS cor0
----
1256
2476
271

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - col2 / + + col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 44 + 93 col2 FROM tab2 AS cor0
----
160
177
195

query I rowsort
SELECT col2 + col2 + 69 FROM tab2
----
115
149
185

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT COUNT( ALL 88 ) + + - COUNT( * ) + 6 AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-835
SELECT COUNT ( ALL 88 ) + + - COUNT ( * ) + 6 AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT COUNT( * ) + 88 * - COUNT( - col2 ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-836
SELECT COUNT ( * ) + 88 * - COUNT ( - col2 ) FROM tab1
----
-261

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

query I rowsort
SELECT col0 + - col1 + + 18 * 32 FROM tab2
----
563
571
584

query I rowsort
SELECT ALL col0 * + col1 - 40 AS col0 FROM tab2
----
2306
4888
4985

query I rowsort
SELECT - 75 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + col1 + - - col0 + - col2 * - col2 * col0 FROM tab2
----
102581
24454
252500

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE - col0 > + col1
----

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

skipif mysql # not compatible
query I rowsort label-843
SELECT - CAST ( + MAX ( DISTINCT - 20 ) AS INTEGER ) FROM tab1 cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > col0
----

query I rowsort
SELECT - - 64 * col1 * - col1 FROM tab1 AS cor0
----
-12544
-141376
-1600

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 25 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col0 * - col2 NOT BETWEEN ( + 63 ) AND 1 + - 89
----

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

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

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

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

query II rowsort
SELECT - - 82, - 56 AS col1 FROM tab1 cor0
----
82
-56
82
-56
82
-56

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

skipif mysql # not compatible
query I rowsort label-852
SELECT + 49 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
147

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

query II rowsort
SELECT ALL - - 37 AS col2, + col2 + - 25 FROM tab2 AS cor0
----
37
-2
37
15
37
33

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT ALL 7 DIV - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL 7 / - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + col1 + col2 FROM tab0
----
198
220
3854

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

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

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

query II rowsort
SELECT + col2, + 77 FROM tab0
----
10
77
47
77
99
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT DISTINCT + COUNT( * ), MIN( DISTINCT + - ( col2 ) ) col0 FROM tab1 AS cor0
----
3
-96

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

query II rowsort
SELECT - 92 + col1, + col0 FROM tab1 AS cor0
----
-45
91
-78
51
-87
85

query II rowsort
SELECT ALL + col0 AS col2, col0 AS col2 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT col0 * col2 + - 10 FROM tab2
----
1048
2550
4340

query I rowsort
SELECT ALL - col1 + 73 + col2 * col0 FROM tab2
----
1080
2556
4356

query I rowsort
SELECT - col1 * - col0 + - col2 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + + 35 * COUNT( * ) * + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-20475

skipif mysql # not compatible
query I rowsort label-868
SELECT + + 35 * COUNT ( * ) * + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-20475

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

query I rowsort
SELECT DISTINCT - + 88 * - ( 64 ) + - col1 AS col2 FROM tab2 AS cor0
----
5555
5565
5581

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL + COUNT( * ) * + + 72 AS col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + COUNT ( * ) * + + 72 AS col1 FROM tab2 AS cor0
----
216

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT - ( + CAST( - 85 AS SIGNED ) ) - - COUNT( * ) * - - 20 * - + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-873
SELECT - ( + CAST ( - 85 AS INTEGER ) ) - - COUNT ( * ) * - - 20 * - + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 + 23 IS NOT NULL
----

query I rowsort
SELECT + 52 * 13 FROM tab0
----
676
676
676

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT + 97 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT + 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL + - 90 AS col1 FROM tab1 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT col1 IN ( ( - 34 ) )
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT 92 * COUNT( * ) AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT 92 * COUNT ( * ) AS col0 FROM tab0
----
276

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 96 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL COUNT( * ) * 2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL COUNT ( * ) * 2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT 10 + + + 85 + - col0 FROM tab2 AS cor0
----
20
31
49

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

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

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

query I rowsort
SELECT DISTINCT 48 * + col2 + - 2 - + - col0 * + - col2 + col2 FROM tab1
----
-194
-2126
-2858

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL 4 + - COUNT( * ) AS col2 FROM tab1
----
1

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

query II rowsort
SELECT DISTINCT 39, - col2 AS col2 FROM tab0
----
39
-10
39
-47
39
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + + col1 * - - col2 col2 FROM tab1
----
1366
317
3218

query II rowsort
SELECT - 37 + + + ( + 96 ), col2 AS col0 FROM tab0
----
59
10
59
47
59
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 62 >= ( - col0 ) - - 3 )
----
15
81
47

query I rowsort
SELECT DISTINCT - + 15 + col0 AS col2 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-896
SELECT ALL * FROM tab0 WHERE NULL > - - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-896
SELECT ALL * FROM tab0 WHERE NULL > - - CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT + COUNT( * ) - + - 70 - 80 col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-897
SELECT DISTINCT + COUNT ( * ) - + - 70 - 80 col1 FROM tab0 AS cor0
----
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 89 = NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT + col1 * - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-900
SELECT + col1 * - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-901
SELECT + COUNT( * ) DIV - MAX( 84 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT + COUNT ( * ) / - MAX ( 84 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT + col1 * col1 DIV + col0 FROM tab1
----
0
24
3

skipif mysql # not compatible
query I rowsort label-903
SELECT + col1 * col1 / + col0 FROM tab1
----
0
24
3

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

query I rowsort
SELECT + ( - col1 ) * + 79 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL - CAST( + - ( + - 63 ) AS SIGNED ) * + col0 * + - col0 AS col2 FROM tab2 AS cor0
----
133308
258048
354375

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - CAST ( + - ( + - 63 ) AS INTEGER ) * + col0 * + - col0 AS col2 FROM tab2 AS cor0
----
133308
258048
354375

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * 13 + 42 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT - SUM( ALL - col0 ) * - 71 AS col0 FROM tab1 AS cor0
----
-16117

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - SUM ( ALL - col0 ) * - 71 AS col0 FROM tab1 AS cor0
----
-16117

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

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

query I rowsort
SELECT + 43 + + + col1 * + + 28 AS col0 FROM tab0 cor0
----
2311
631
71

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + - 65 + - MIN( - col1 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-912
SELECT + - 65 + - MIN ( - col1 ) FROM tab2 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( - + col1 ) + + col0 col0, 64 col0 FROM tab0 cor0
----
108
64
96
64
98
64

query I rowsort
SELECT ( - + 83 ) FROM tab0 AS cor0 WHERE 29 IS NOT NULL
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - - 30 * + 9 FROM tab2 AS cor0
----
270

query I rowsort
SELECT DISTINCT col1 * - - 3 FROM tab2 AS cor0
----
153
201
231

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

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

query I rowsort
SELECT DISTINCT 62 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT 86 + - COUNT( * ) AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT 86 + - COUNT ( * ) AS col0 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL SUM( DISTINCT + + col0 ) + 90 AS col1 FROM tab1
----
317

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL SUM ( DISTINCT + + col0 ) + 90 AS col1 FROM tab1
----
317

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

query I rowsort
SELECT - col1 - + + col1 - - col1 - + col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT MIN( - 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-923
SELECT MIN ( - 50 ) FROM tab2
----
-50

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( 14 IS NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - MIN( ALL - col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-927
SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-288

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

query II rowsort
SELECT col1 * - - col1 AS col2, + col0 AS col2 FROM tab0
----
1
97
441
87
6561
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-930
SELECT - 79 DIV + + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-930
SELECT - 79 / + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-26

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

query I rowsort
SELECT DISTINCT ( - 75 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT ALL + 33 AS col0, + SUM( - col0 ) + - 3 col1 FROM tab2
----
33
-188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-933
SELECT ALL + 33 AS col0, + SUM ( - col0 ) + - 3 col1 FROM tab2
----
33
-188

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

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

query I rowsort
SELECT DISTINCT + - 61 + - col2 FROM tab0 cor0
----
-108
-160
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT + 70 col0, - 53 * - COUNT( * ) FROM tab2 AS cor0
----
70
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-937
SELECT + 70 col0, - 53 * - COUNT ( * ) FROM tab2 AS cor0
----
70
159

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - COUNT( * ) * 14 AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-938
SELECT - COUNT ( * ) * 14 AS col0 FROM tab0
----
-42

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

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

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

query I rowsort
SELECT ALL - 30 AS col2 FROM tab0 cor0
----
-30
-30
-30

query II rowsort
SELECT - col1 * + ( 8 ) AS col1, + col0 AS col1 FROM tab1 AS cor0
----
-112
51
-376
91
-40
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - + COUNT( * ) * - - 95 + + COUNT( * ) + + 6 col2 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-944
SELECT - + COUNT ( * ) * - - 95 + + COUNT ( * ) + + 6 col2 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT DISTINCT + 18 * - col0 * + 96 * col2 + + 31 + + - col2 * + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-1185074
-1494629
-15643256

query I rowsort
SELECT + 86 * - 5 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 41413571b5107153578e67016c902b91

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT COUNT( * ) + - 59 + 91 AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-947
SELECT COUNT ( * ) + - 59 + 91 AS col1 FROM tab1
----
35

query I rowsort
SELECT ALL + 35 + + col1 * col0 AS col2 FROM tab0
----
1250
132
1862

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-949
SELECT col1 + + col0 - + + CAST( NULL AS DECIMAL ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-949
SELECT col1 + + col0 - + + CAST ( NULL AS REAL ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL 93 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT + + col1 * col2 DIV + col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-952
SELECT + + col1 * col2 / + col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 63 + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 37 * - col2 FROM tab2
----
-1480
-2146
-851

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT DISTINCT - 24 DIV - MIN( + col1 ) AS col0 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - 24 / - MIN ( + col1 ) AS col0 FROM tab1 cor0
----
4

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE NULL < + 79
----

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab2 cor0 WHERE - col0 NOT BETWEEN - col1 - - 67 AND + + col0
----
-1173
-3080
-3886

query I rowsort
SELECT 72 * 79 AS col1 FROM tab1 cor0
----
5688
5688
5688

query I rowsort
SELECT ALL + col0 * - ( - + col1 ) * + - col0 * - - col0 FROM tab0
----
-13828563
-273375
-912673

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

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

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab2 WHERE NOT - 33 + + ( 47 ) NOT BETWEEN col0 * + col0 + + + col0 AND + - 52 + - 14
----

query I rowsort
SELECT ALL 88 * - + col1 AS col0 FROM tab0
----
-1848
-7128
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT ALL col1 DIV - - 79 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL col1 / - - 79 AS col0 FROM tab1
----
0
0
0

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 16 < ( 47 + col1 * - - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT COUNT( * ) FROM tab1 WHERE NOT 87 * + + col1 BETWEEN - 65 + 31 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT COUNT ( * ) FROM tab1 WHERE NOT 87 * + + col1 BETWEEN - 65 + 31 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 89 + - col1 - - 10 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + col1 col2 FROM tab0
----
29
89
9

query I rowsort
SELECT - col1 + - + col0 + - 81 * col0 AS col1 FROM tab2
----
-3823
-5325
-6217

query I rowsort
SELECT 91 * + col0 * - - col1 + - - ( - col0 ) FROM tab0
----
110550
166170
8730

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

skipif mysql # not compatible
query I rowsort label-972
SELECT + col2 / 77 + - 90 AS col1 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT DISTINCT 50 AS col2, + MAX( col2 ) FROM tab0 AS cor0
----
50
99

skipif mysql # not compatible
query II rowsort label-973
SELECT DISTINCT 50 AS col2, + MAX ( col2 ) FROM tab0 AS cor0
----
50
99

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

skipif mysql # not compatible
query I rowsort label-974
SELECT - - COUNT ( * ) * + + 96 AS col2 FROM tab2 cor0
----
288

query II rowsort
SELECT DISTINCT - + 59 AS col2, 74 AS col1 FROM tab1 AS cor0
----
-59
74

query I rowsort
SELECT DISTINCT + 22 * + 16 FROM tab0 AS cor0
----
352

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + col2 + + - col0, - col2 * 91 * + ( + col0 ) / + col1, + col1, + - 12, + col2 ) AND NOT ( col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + col2 + + - col0, - col2 * 91 * + ( + col0 ) / + col1, + col1, + - 12, + col2 ) AND NOT ( col0 IS NULL )
----

query I rowsort
SELECT col1 * - 74 - + 14 + + col1 FROM tab2
----
-3737
-4905
-5635

query I rowsort
SELECT DISTINCT + col0 - 32 + - col0 AS col2 FROM tab1
----
-32

query I rowsort
SELECT + 6 * - 10 - 17 AS col1 FROM tab2
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT col0 DIV + ( - - col2 ) - + + 76 FROM tab1 AS cor0
----
-75
-75
-76

skipif mysql # not compatible
query I rowsort label-982
SELECT col0 / + ( - - col2 ) - + + 76 FROM tab1 AS cor0
----
-75
-75
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT DISTINCT + 57 - + - MIN( - - 89 ) - - 33 * + 23, MAX( ALL - + 33 ) AS col2 FROM tab0 AS cor0
----
905
-33

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + 57 - + - MIN ( - - 89 ) - - 33 * + 23, MAX ( ALL - + 33 ) AS col2 FROM tab0 AS cor0
----
905
-33

query I rowsort
SELECT ALL 29 - 68 FROM tab0 cor0 WHERE 97 / - + col2 IS NOT NULL
----
-39
-39
-39

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-991
SELECT ( - 23 ) / - ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 41 * + - 34 FROM tab2
----
-1394
-1394
-1394

query I rowsort
SELECT - 98 * + 45 * - 92 FROM tab0
----
405720
405720
405720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * - + col0 col2 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT ALL ( ( - 26 ) ) * - ( - + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1222
-130
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT + COUNT( col1 ) FROM tab0 AS cor0 WHERE + col1 = + 17 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + COUNT ( col1 ) FROM tab0 AS cor0 WHERE + col1 = + 17 * + col2
----
0

query II rowsort
SELECT + - col1, + 22 AS col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - SUM( DISTINCT + 76 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-999
SELECT - SUM ( DISTINCT + 76 ) FROM tab1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT DISTINCT 70 + + CAST( - 34 AS SIGNED ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT 70 + + CAST ( - 34 AS INTEGER ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL + COUNT( * ) + - 26 * 70 FROM tab2
----
-1817

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + COUNT ( * ) + - 26 * 70 FROM tab2
----
-1817

query I rowsort
SELECT DISTINCT col0 * - - 44 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 43 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT + + ( CAST( - SUM( col1 ) AS SIGNED ) ) + - 81 - + MIN( + ( - col2 ) ) AS col1 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1004
SELECT + + ( CAST ( - SUM ( col1 ) AS INTEGER ) ) + - 81 - + MIN ( + ( - col2 ) ) AS col1 FROM tab0 cor0
----
-85

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

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

query I rowsort
SELECT + + 31 * - col1 + + col2 + + 48 FROM tab2 WHERE - - col0 IS NULL
----

query I rowsort
SELECT ALL col2 + 55 FROM tab1
----
114
123
151

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1008
SELECT - COUNT ( * ) col1, 45 AS col1 FROM tab1
----
-3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL - 50 * 61 * - - COUNT( * ) - + 7 FROM tab0
----
-9157

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - 50 * 61 * - - COUNT ( * ) - + 7 FROM tab0
----
-9157

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT SUM( + - col1 ) AS col1, 80 AS col0 FROM tab1
----
-66
80

skipif mysql # not compatible
query II rowsort label-1010
SELECT SUM ( + - col1 ) AS col1, 80 AS col0 FROM tab1
----
-66
80

query I rowsort
SELECT ( + - col1 ) FROM tab1 cor0
----
-14
-47
-5

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

query I rowsort
SELECT + + 1 * + + col1 * + 76 AS col0 FROM tab0 AS cor0
----
1596
6156
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col0 FROM tab2 AS cor0 WHERE NOT 6 < NULL
----

query I rowsort
SELECT DISTINCT 58 * + - col1 * + 78 FROM tab2 AS cor0
----
-230724
-303108
-348348

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 + + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 91 * + col1 FROM tab1
----
-1274
-4277
-455

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

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

query II rowsort
SELECT ALL + + 39, 66 + + col0 AS col2 FROM tab2 WHERE NOT col1 / + col2 IS NULL
----
39
112
39
130
39
141

query I rowsort
SELECT DISTINCT + 60 / + 37 - + - ( + col2 ) AS col2 FROM tab1 WHERE NOT + - col1 + col2 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT DISTINCT + 11 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + 11 / - col1 AS col2 FROM tab1 AS cor0
----
-2
0

query II rowsort
SELECT DISTINCT - 56 * + col0 AS col1, + ( - col1 ) FROM tab2 AS cor0
----
-2576
-51
-3584
-77
-4200
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 NOT BETWEEN NULL AND 83
----

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

query I rowsort
SELECT ALL 38 * - 29 FROM tab1 AS cor0
----
-1102
-1102
-1102

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT ALL col1 DIV 45 * + col0 * - col2 * - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
0
0
158625

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL col1 / 45 * + col0 * - col2 * - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
0
0
158625

query I rowsort
SELECT ALL - 67 * - col0 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
3082
4288
5025

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

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT DISTINCT 40 + + 78 / - 0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + 62 ) * - col2 * - col2 + + + col1 FROM tab1
----
215827
286735
571406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1034
SELECT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1034
SELECT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab0
----
NULL
-3

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT COUNT ( * ) / - 85 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL - - COUNT( * ) * + 88 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - - COUNT ( * ) * + 88 FROM tab1 AS cor0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT + col1 DIV - + col0 + + + col2 + + col2 FROM tab2 cor0
----
116
45
79

skipif mysql # not compatible
query I rowsort label-1037
SELECT + col1 / - + col0 + + + col2 + + col2 FROM tab2 cor0
----
116
45
79

query I rowsort
SELECT + + 22 AS col2 FROM tab2 cor0 WHERE - col1 * + - col0 * + 10 IS NULL
----

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

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

query I rowsort
SELECT ALL 28 + + + 73 + - col0 FROM tab1
----
10
16
50

query I rowsort
SELECT - col2 + - 62 FROM tab2
----
-102
-120
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT DISTINCT col0 + + col2 DIV + 82 AS col2 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT col0 + + col2 / + 82 AS col2 FROM tab0
----
15
87
98

query I rowsort
SELECT ALL 42 - - ( + ( - + col2 ) ) + + - 90 FROM tab2 AS cor0
----
-106
-71
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT - col2 * col2 DIV - col1 col0 FROM tab1 AS cor0
----
658
696
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1044
SELECT - col2 * col2 / - col1 col0 FROM tab1 AS cor0
----
658
696
98

query I rowsort
SELECT + 19 * + + 93 * ( col1 ) * + col0 * + ( + 46 ) AS col2 FROM tab2 AS cor0
----
190687572
400557696
408442050

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * + col0, - col2, - col2 )
----

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

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

query I rowsort
SELECT ALL - col2 + - 16 FROM tab0
----
-115
-26
-63

query I rowsort
SELECT DISTINCT col1 - + - 58 AS col2 FROM tab2
----
109
125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT MAX( DISTINCT 81 ) - MIN( + col2 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1051
SELECT MAX ( DISTINCT 81 ) - MIN ( + col2 ) FROM tab0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1052
SELECT DISTINCT + + 15, - ( COUNT( * ) ) AS col0 FROM tab0 WHERE - 28 * + + 38 + - 16 + CAST( NULL AS SIGNED ) * col0 IS NULL
----
15
-3

skipif mysql # not compatible
query II rowsort label-1052
SELECT DISTINCT + + 15, - ( COUNT ( * ) ) AS col0 FROM tab0 WHERE - 28 * + + 38 + - 16 + CAST ( NULL AS INTEGER ) * col0 IS NULL
----
15
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - 0 * - COUNT( - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1053
SELECT - 0 * - COUNT ( - col0 ) FROM tab0
----
0

query II rowsort
SELECT ALL + ( + col0 ), col1 FROM tab1 WHERE - 31 IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * - 25 BETWEEN NULL AND - - ( + + col2 ) + + col1
----

query I rowsort
SELECT ALL + 43 FROM tab0 AS cor0 WHERE NOT 84 IN ( + col2 )
----
43
43
43

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

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

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

query I rowsort
SELECT - col2 * col0 * - 6 FROM tab1
----
29376
30090
37128

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT - COUNT ( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77 col2, col0 + col0 * 79 AS col0 FROM tab0
----
77
1200
77
6960
77
7760

query II rowsort
SELECT col0 AS col1, - 40 AS col1 FROM tab1
----
51
-40
85
-40
91
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT DISTINCT + + col2 * - + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + + col2 * - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT 49 AS col0, + col1 * + + 37 AS col0 FROM tab1 AS cor0
----
49
1739
49
185
49
518

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 IS NULL )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT ALL col0 DIV col1 * 61 FROM tab1 cor0
----
1037
183
61

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL col0 / col1 * 61 FROM tab1 cor0
----
1037
183
61

query I rowsort
SELECT - col0 * 85 AS col2 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT - 5 + + 3 AS col0 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 * - + col2 FROM tab0
----
1000
103823
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - SUM( - 41 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - SUM ( - 41 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1077
SELECT ALL - + COUNT ( * ) / - - 89 AS col0, 39 AS col2 FROM tab1 AS cor0
----
0
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1078
SELECT ALL - AVG ( DISTINCT - + col2 ) * - 87 AS col1 FROM tab0 AS cor0 WHERE NOT 88 + - ( + CAST( + col1 AS DECIMAL ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - AVG ( DISTINCT - + col2 ) * - 87 AS col1 FROM tab0 AS cor0 WHERE NOT 88 + - ( + CAST ( + col1 AS REAL ) ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = col2 + col1 + col2 / col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT MIN( - col2 ) - - 53 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1081
SELECT MIN ( - col2 ) - - 53 FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1082
SELECT - 99 / + col1 + - + col0 FROM tab2 AS cor0 WHERE - 43 * - col2 IN ( - col2, + col1, + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) - + col0 + + - ( + ( 0 ) ) + + 33 * col1 + - col1 + + ( - 20 ) )
----

skipif mysql # not compatible
query I rowsort label-1082
SELECT - 99 / + col1 + - + col0 FROM tab2 AS cor0 WHERE - 43 * - col2 IN ( - col2, + col1, + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) - + col0 + + - ( + ( 0 ) ) + + 33 * col1 + - col1 + + ( - 20 ) )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT DISTINCT ( - CAST( - ( - + SUM( + 54 ) ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT ( - CAST ( - ( - + SUM ( + 54 ) ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-162

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

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

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

query I rowsort
SELECT DISTINCT col1 + - - 27 AS col1 FROM tab2 AS cor0
----
104
78
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - 10 + COUNT( + - col1 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 10 + COUNT ( + - col1 ) FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1089
SELECT * FROM tab2 WHERE NOT + col1 - - + 14 * + CAST( col1 AS SIGNED ) + 55 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1089
SELECT * FROM tab2 WHERE NOT + col1 - - + 14 * + CAST ( col1 AS INTEGER ) + 55 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 * + col1 col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT + ( - 32 ) DIV - 40 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT + ( - 32 ) / - 40 AS col2 FROM tab0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL 37 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT ( + 31 ) FROM tab2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 55 / - ( + col2 ) * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT + - col0 + + + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - + col1 NOT BETWEEN - 2 * ( + + CAST( 20 AS SIGNED ) ) AND - col2 * - + 69
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT + - col0 + + + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - + col1 NOT BETWEEN - 2 * ( + + CAST ( 20 AS INTEGER ) ) AND - col2 * - + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + SUM( + - 95 ) col1 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1100
SELECT ALL + SUM ( + - 95 ) col1 FROM tab2 AS cor0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT - 61 DIV 69 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1101
SELECT - 61 / 69 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + col2 * + + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1105
SELECT ALL - ( 47 ) DIV + 86 + col1 * + - 20 col2, - col2 DIV 43 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1020
0
-1340
58
-1540
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1105
SELECT ALL - ( 47 ) / + 86 + col1 * + - 20 col2, - col2 / 43 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1020
0
-1340
58
-1540
0

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE - + 47 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT ALL 2 + - ( + col1 ) + - ( col2 ) DIV + col1 FROM tab1
----
-14
-18
-46

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL 2 + - ( + col1 ) + - ( col2 ) / + col1 FROM tab1
----
-14
-18
-46

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

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - col1 * + col0 <> NULL
----

query I rowsort
SELECT ALL - col0 + - + col2 + + col2 FROM tab1
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + COUNT( DISTINCT + 10 ) * - 47 AS col1 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1113
SELECT + COUNT ( DISTINCT + 10 ) * - 47 AS col1 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT 44 + col1 + col0 AS col2 FROM tab2 AS cor0
----
141
185
186

query I rowsort
SELECT DISTINCT + + 11 FROM tab2 cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT 38 * col2 DIV col1 + - ( + 61 ) AS col1 FROM tab0 AS cor0
----
-39
-43
3701

skipif mysql # not compatible
query I rowsort label-1116
SELECT 38 * col2 / col1 + - ( + 61 ) AS col1 FROM tab0 AS cor0
----
-39
-43
3701

query III rowsort
SELECT ALL * FROM tab0 WHERE - 54 NOT IN ( col0, 41, - + ( - + 13 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT ( + + col1 ) AS col2, + col1 + col0 AS col2 FROM tab1
----
14
65
47
138
5
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT DISTINCT - - 30 * col1 DIV col2 - col2 FROM tab2 AS cor0
----
-24
17
43

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - - 30 * col1 / col2 - col2 FROM tab2 AS cor0
----
-24
17
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT DISTINCT CAST( - col2 AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT CAST ( - col2 AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL - 88 * col0 - - + ( + col2 ) FROM tab0 cor0
----
-1273
-7646
-8437

query II rowsort
SELECT - 70 * + 29, 28 + - - col2 AS col0 FROM tab2 AS cor0
----
-2030
51
-2030
68
-2030
86

query I rowsort
SELECT DISTINCT + 85 * - + 23 FROM tab1 cor0
----
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL 93 * - + ( COUNT( ALL + 52 ) ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL 93 * - + ( COUNT ( ALL + 52 ) ) FROM tab0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1126
SELECT col1, + 61 + - col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1126
SELECT col1, + 61 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT MAX( + col2 ) DIV + COUNT( - col1 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-1127
SELECT MAX ( + col2 ) / + COUNT ( - col1 ) FROM tab1
----
32

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

skipif mysql # not compatible
query I rowsort label-1128
SELECT + ( + CAST ( + + 83 AS INTEGER ) ) FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + SUM( DISTINCT + - 34 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 + ( + + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT + SUM ( DISTINCT + - 34 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 + ( + + col2 ) AND NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1130
SELECT COUNT ( * ) AS col1, - COUNT ( * ) col2 FROM tab1
----
3
-3

query II rowsort
SELECT DISTINCT - 44 AS col1, 77 FROM tab0 AS cor0
----
-44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL - - MAX( DISTINCT 91 ) * + 93 AS col2 FROM tab0 AS cor0
----
8463

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - - MAX ( DISTINCT 91 ) * + 93 AS col2 FROM tab0 AS cor0
----
8463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1133
SELECT + + COUNT( DISTINCT 3 ) DIV 11 FROM tab2 WHERE NOT NULL NOT BETWEEN 2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT + + COUNT ( DISTINCT 3 ) / 11 FROM tab2 WHERE NOT NULL NOT BETWEEN 2 AND NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1134
SELECT ALL + + COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1137
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + col0 AS col1 FROM tab0 AS cor0 WHERE - col0 - - + col2 * + - col2 / + CAST( - ( + 72 ) AS DECIMAL ) - - 11 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1137
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + col0 AS col1 FROM tab0 AS cor0 WHERE - col0 - - + col2 * + - col2 / + CAST ( - ( + 72 ) AS REAL ) - - 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NULL < 84
----

query I rowsort
SELECT + 41 + - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
46
55
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT - + MAX( + - CAST( + col2 AS SIGNED ) ) FROM tab0 WHERE + + 92 = 14 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT - + MAX ( + - CAST ( + col2 AS INTEGER ) ) FROM tab0 WHERE + + 92 = 14 * - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT COUNT( * ) + - 38 AS col1 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-1142
SELECT COUNT ( * ) + - 38 AS col1 FROM tab1
----
-35

query II rowsort
SELECT col0 + 43 + - + col0, col2 FROM tab2
----
43
23
43
40
43
58

query I rowsort
SELECT col2 * col2 * 15 + - col1 AS col1 FROM tab0
----
147014
1479
33054

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <= - 81 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + - 68 * - col0 / col1 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 61 * + 17, col2 col0 FROM tab2 AS cor0
----
1037
23
1037
40
1037
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL - - 52 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL - - 52 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
5

query II rowsort
SELECT - + 55, col2 AS col1 FROM tab0 AS cor0
----
-55
10
-55
47
-55
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT DISTINCT MAX( DISTINCT - col0 ), ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE - 35 IS NOT NULL
----
-51
3

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT MAX ( DISTINCT - col0 ), ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE - 35 IS NOT NULL
----
-51
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * col1 col1 FROM tab2 AS cor0
----
4437
5829
6699

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

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

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

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + 27 / COUNT ( * ) AS col1 FROM tab1
----
9

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT col2 * - col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 60 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT + 33 DIV + 78 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + 33 / + 78 FROM tab0
----
0

query I rowsort
SELECT ALL ( + 44 ) FROM tab0
----
44
44
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 9 + - 82 <> - - col1 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 = col0
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 = col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT col1 col1 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) NOT BETWEEN + col2 AND col1 ) OR NOT NULL IS NOT NULL
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1161
SELECT col1 col1 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 AND col1 ) OR NOT NULL IS NOT NULL
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT + 68 + col0 - + - col0 FROM tab0 AS cor0
----
242
262
98

query I rowsort
SELECT - 39 + + ( - col1 ) FROM tab0 AS cor0
----
-120
-40
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * col0 + + - 66 * col1 * col0 + col0 col0 FROM tab0 AS cor0
----
-118755
-4365
-79875

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL col0 * 96 DIV col2 + - ( col2 ) + - - 2 AS col1 FROM tab0
----
-15
-3
827

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL col0 * 96 / col2 + - ( col2 ) + - - 2 AS col1 FROM tab0
----
-15
-3
827

query I rowsort
SELECT ALL ( - - 24 ) + + + 18 AS col1 FROM tab2
----
42
42
42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL + COUNT( * ) DIV 35 + - - MAX( - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + COUNT ( * ) / 35 + - - MAX ( - - col2 ) FROM tab1
----
96

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

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

query I rowsort
SELECT - col0 - 7 - 90 FROM tab1
----
-148
-182
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT + SUM( ALL col2 ) - - 72 FROM tab2
----
193

skipif mysql # not compatible
query I rowsort label-1174
SELECT + SUM ( ALL col2 ) - - 72 FROM tab2
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT + + 92 + - COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1175
SELECT + + 92 + - COUNT ( * ) FROM tab0 AS cor0
----
89

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

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

query I rowsort
SELECT ALL col2 * + 85 AS col2 FROM tab1
----
5015
5780
8160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT SUM( - 21 ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1180
SELECT SUM ( - 21 ) AS col2 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL - - MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL - - MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - col1 * col0 * + + 43 AS col0 FROM tab0
----
-4171
-52245
-78561

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT + 48 DIV + - col1 AS col0 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 48 / + - col1 AS col0 FROM tab1
----
-1
-3
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT ALL - COUNT( * ), 50 AS col1 FROM tab1
----
-3
50

skipif mysql # not compatible
query II rowsort label-1185
SELECT ALL - COUNT ( * ), 50 AS col1 FROM tab1
----
-3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + + SUM( + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-1186
SELECT + + SUM ( + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

query I rowsort
SELECT - 14 * col2 * + col0 FROM tab2
----
-14812
-35840
-60900

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

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

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

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

query I rowsort
SELECT - col0 + - + 65 FROM tab0 AS cor0
----
-152
-162
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + COUNT( + col1 ) AS col1 FROM tab0 cor0 WHERE NOT 79 BETWEEN NULL AND - col2
----
3

skipif mysql # not compatible
query I rowsort label-1192
SELECT + COUNT ( + col1 ) AS col1 FROM tab0 cor0 WHERE NOT 79 BETWEEN NULL AND - col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT - 56 DIV - COUNT( * ) + - - ( + 22 ) + 31 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - 56 / - COUNT ( * ) + - - ( + 22 ) + 31 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL - - 98 + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
163
188
236

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT CAST ( + COUNT ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - 95 * + 20 AS col2 FROM tab0 cor0
----
-1900
-1900
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT + - 85 * 95 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 98 + - - ( - CAST( NULL AS SIGNED ) ) + + 34 - + 64
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1197
SELECT + - 85 * 95 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 98 + - - ( - CAST ( NULL AS INTEGER ) ) + + 34 - + 64
----

query I rowsort
SELECT col1 + - 33 AS col2 FROM tab1 cor0
----
-19
-28
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - 50 * + + 52 + + COUNT( * ) FROM tab0 AS cor0
----
-2597

skipif mysql # not compatible
query I rowsort label-1199
SELECT - 50 * + + 52 + + COUNT ( * ) FROM tab0 AS cor0
----
-2597

query I rowsort
SELECT + col2 * + col0 + - col2 FROM tab0
----
658
860
9504

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + + col2 col0 FROM tab0
----
121
173
84

query I rowsort
SELECT ALL - col1 + 96 + - ( - 43 ) - - col2 + 52 * col1 AS col1 FROM tab1
----
2604
453
949

query I rowsort
SELECT DISTINCT - + col0 / + - 4 FROM tab0 WHERE + + col1 IS NULL
----

query II rowsort
SELECT 97 AS col2, col1 + - 4 * - - col0 AS col1 FROM tab2
----
97
-133
97
-179
97
-233

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

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

query I rowsort
SELECT ALL col1 + + 41 AS col0 FROM tab2
----
108
118
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT + 99 DIV - 15 + col2 AS col1 FROM tab1
----
53
62
90

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 99 / - 15 + col2 AS col1 FROM tab1
----
53
62
90

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

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

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

query I rowsort
SELECT ALL + col1 * 2 + col2 FROM tab0 WHERE NOT ( - 70 * + 99 ) IS NULL
----
101
209
52

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL SUM( DISTINCT 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL SUM ( DISTINCT 24 ) FROM tab1
----
24

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

query I rowsort
SELECT ( + ( 13 ) ) FROM tab1
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * - 9 <> - col0 * col2 + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - ( - 29 ) AS col0 FROM tab1
----
-18
15
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + col0 col2 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + 49 NOT BETWEEN ( + 24 / - 86 ) AND + col2 + col2
----
85
5
59
91
47
68

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT + CAST ( NULL AS REAL ) + col0 FROM tab2 WHERE NOT ( col2 ) NOT IN ( - 46 )
----

query I rowsort
SELECT ALL col2 + 67 AS col0 FROM tab1
----
126
135
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT + CAST( + 14 AS SIGNED ) FROM tab1 WHERE + 43 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1223
SELECT + CAST ( + 14 AS INTEGER ) FROM tab1 WHERE + 43 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT COUNT( DISTINCT + col0 ) * 30 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-1224
SELECT COUNT ( DISTINCT + col0 ) * 30 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
90

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

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

query I rowsort
SELECT ALL 48 + 19 FROM tab2
----
67
67
67

query I rowsort
SELECT DISTINCT col1 + 4 AS col0 FROM tab1 WHERE NOT + col2 < ( NULL )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1229
SELECT - 97 DIV + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 97 / + COUNT ( * ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * 6 AS col2 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT ALL - ( col1 ) + 53 AS col2 FROM tab0 AS cor0
----
-28
32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT + ( col1 ) / CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 96 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-1233
SELECT + ( col1 ) / CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 96 + - col1 )
----

query I rowsort
SELECT ALL - 54 + ( + 4 ) FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - 21 + 64 * col1 AS col0 FROM tab2 AS cor0
----
3243
4267
4907

query I rowsort
SELECT DISTINCT col0 + 51 * col2 AS col0 FROM tab2
----
1219
2104
3033

query I rowsort
SELECT ALL - col2 * - 17 + - col2 AS col1 FROM tab1
----
1088
1536
944

query I rowsort
SELECT 31 + 19 AS col2 FROM tab0
----
50
50
50

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) - + col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + 54 * + COUNT( * ) + - COUNT( + col0 ) * COUNT( * ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 54 * + COUNT ( * ) + - COUNT ( + col0 ) * COUNT ( * ) FROM tab2 cor0
----
153

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT ALL COUNT( CAST( col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL COUNT ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 88 * - col1 AS col0 FROM tab1 AS cor0
----
1232
4136
440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT - - ( 70 ) DIV + 33 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1247
SELECT - - ( 70 ) / + 33 AS col1 FROM tab1 AS cor0
----
2
2
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1249
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 * - 5 + CAST( NULL AS SIGNED ) NOT BETWEEN ( 20 ) * col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-1249
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 * - 5 + CAST ( NULL AS INTEGER ) NOT BETWEEN ( 20 ) * col0 AND col2
----

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

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

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < - 46 + col2
----

query I rowsort
SELECT ALL + - col2 * + col1 + 52 AS col0 FROM tab0 AS cor0
----
-158
-3755
-47

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) > col1 + col2
----

query I rowsort
SELECT ALL + 5 + + 65 + + col2 AS col2 FROM tab2
----
110
128
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 61 - + 56 * - 23 col2 FROM tab0
----
1237
1274
1326

query I rowsort
SELECT col0 - + col0 * - col0 FROM tab1
----
2652
7310
8372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1260
SELECT DISTINCT col0 - - CAST( NULL AS DECIMAL ) / col0 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT col0 - - CAST ( NULL AS REAL ) / col0 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT - AVG ( - 37 ) FROM tab2 WHERE NULL NOT IN ( + 78 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT MAX( + 11 ) + - MAX( DISTINCT + col2 ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-1263
SELECT MAX ( + 11 ) + - MAX ( DISTINCT + col2 ) FROM tab1
----
-85

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

query I rowsort
SELECT 68 AS col1 FROM tab1 AS cor0 WHERE col2 * 26 - + 89 * - col0 NOT IN ( col1 )
----
68
68
68

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

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

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL col1 / + - col0 AS col0 FROM tab1 cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT ( MAX ( DISTINCT - col2 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
NULL

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

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab2
----
1610
2240
2625

query II rowsort
SELECT DISTINCT + - 76, 70 AS col0 FROM tab2 AS cor0
----
-76
70

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

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

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL COUNT ( ALL - col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT MAX( 66 ) FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + col1 ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-1274
SELECT MAX ( 66 ) FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + col1 ) IS NULL
----
66

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1276
SELECT ALL - 57 col2, col1 DIV + - col1 FROM tab1 AS cor0
----
-57
-1
-57
-1
-57
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1276
SELECT ALL - 57 col2, col1 / + - col1 FROM tab1 AS cor0
----
-57
-1
-57
-1
-57
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 12 AND - - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - MIN( - col0 ) AS col0 FROM tab2 WHERE NOT + 16 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT - MIN ( - col0 ) AS col0 FROM tab2 WHERE NOT + 16 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( + 13 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( + 13 ) IS NULL
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 48 FROM tab1 cor0
----
-11
-20
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 col2, col1 + col1 FROM tab2
----
-33
102
-33
134
-33
154

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab1 WHERE - 30 * + col0 + ( col2 ) NOT BETWEEN NULL AND + col2 / + col1
----

query I rowsort
SELECT DISTINCT - 37 + 61 + + - 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

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

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

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

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

query I rowsort
SELECT - - col2 * col1 * 75 * - col0 + col0 + + col0 * - col1 + col2 FROM tab0 AS cor0
----
-1371980
-4284028
-720126

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

query I rowsort
SELECT ALL col2 * - + 46 FROM tab0 AS cor0
----
-2162
-4554
-460

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL <= 1 + - col0
----

query I rowsort
SELECT 18 + 95 * + 48 + + + 78 + + col2 FROM tab0 AS cor0
----
4666
4703
4755

query II rowsort
SELECT ALL + col0, + col1 * + col2 * - - col1 FROM tab2 AS cor0
----
46
59823
64
237160
75
260362

query I rowsort
SELECT 99 + col1 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT ALL 71 AS col0, COUNT( * ) FROM tab2 AS cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-1297
SELECT ALL 71 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
71
3

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

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

query II rowsort
SELECT DISTINCT 65 * col1 AS col1, + col2 FROM tab1
----
3055
68
325
59
910
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT ALL SUM( - 99 ) + + + COUNT( * ) DIV - 94 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL SUM ( - 99 ) + + + COUNT ( * ) / - 94 FROM tab0
----
-297

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 ) IN ( - 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT COUNT( ALL 26 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT COUNT ( ALL 26 ) AS col0 FROM tab2
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 30 = ( ( + col0 ) ) OR NOT col2 BETWEEN ( + col2 + col1 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-1306
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 30 = ( ( + col0 ) ) OR NOT col2 BETWEEN ( + col2 + col1 ) AND NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 + - 90 <> ( - 44 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT + 99 DIV - col2 + - col2 + - - col1 - col1 * - col1 + + 50 + + 55 AS col2 FROM tab1 AS cor0
----
218
2292
75

skipif mysql # not compatible
query I rowsort label-1311
SELECT + 99 / - col2 + - col2 + - - col1 - col1 * - col1 + + 50 + + 55 AS col2 FROM tab1 AS cor0
----
218
2292
75

query I rowsort
SELECT + 25 + - - col0 + + 16 * ( + col2 ) * - 49 + + col1 FROM tab1 AS cor0
----
-46141
-53149
-75174

query I rowsort
SELECT - + col0 * - col0 * + + col0 FROM tab2 AS cor0
----
262144
421875
97336

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL MIN( 77 ) FROM tab1 cor0 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL MIN ( 77 ) FROM tab1 cor0 WHERE NULL IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT MAX( 35 ) AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1316
SELECT MAX ( 35 ) AS col1 FROM tab1 AS cor0
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT 31 DIV - 86 + - 59 + col1 AS col0 FROM tab2
----
-8
18
8

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 31 / - 86 + - 59 + col1 AS col0 FROM tab2
----
-8
18
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1319
SELECT ALL 80 AS col2, COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
80
6

skipif mysql # not compatible
query II rowsort label-1319
SELECT ALL 80 AS col2, COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
80
6

query I rowsort
SELECT ALL 89 * + 32 + - col1 * + col2 + - - col1 FROM tab1
----
-301
1518
2558

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1322
SELECT ALL * FROM tab2 WHERE NOT col2 <> CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-1322
SELECT ALL * FROM tab2 WHERE NOT col2 <> CAST ( NULL AS INTEGER ) / col2
----

query II rowsort
SELECT col2 * + col0 * 86 AS col1, 69 FROM tab0 AS cor0
----
60630
69
74820
69
825858
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 * - col0 * + 4 >= + col2 * - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - + - 42 FROM tab0
----
129
139
57

query I rowsort
SELECT DISTINCT - 93 - - + col2 AS col0 FROM tab0 AS cor0
----
-46
-83
6

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

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

query I rowsort
SELECT + 33 - - col0 AS col0 FROM tab1 AS cor0
----
118
124
84

query I rowsort
SELECT DISTINCT + col0 * + 85 AS col0 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( 9 )
----

query I rowsort
SELECT ALL 23 * + ( + + col1 ) AS col2 FROM tab2
----
1173
1541
1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 87 FROM tab1
----
59
-87
68
-87
96
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT - 62 DIV + COUNT( DISTINCT - + col2 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 62 / + COUNT ( DISTINCT - + col2 ) FROM tab0
----
-20

query I rowsort
SELECT - col2 - + col0 + col2 / + - 42 * col0 AS col2 FROM tab1 WHERE NOT - col0 NOT IN ( + col1 - ( col1 ) )
----

query I rowsort
SELECT DISTINCT 76 * - + col1 + col2 + col2 FROM tab0 AS cor0
----
-1576
-6062
122

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT DISTINCT - 99 DIV + col2 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT - 99 / + col2 AS col2 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT - ( + col2 ) * 65 * - 4 AS col2 FROM tab1
----
15340
17680
24960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT DISTINCT COUNT( ALL + 26 ) * + MAX( + 63 ) * - - ( CAST( - + AVG ( col0 ) AS SIGNED ) ) col2 FROM tab0
----
-12474

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1339
SELECT DISTINCT COUNT ( ALL + 26 ) * + MAX ( + 63 ) * - - ( CAST ( - + AVG ( col0 ) AS INTEGER ) ) col2 FROM tab0
----
-12474

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT + SUM( ALL - - 64 ) * 95 FROM tab0 AS cor0
----
18240

skipif mysql # not compatible
query I rowsort label-1340
SELECT + SUM ( ALL - - 64 ) * 95 FROM tab0 AS cor0
----
18240

query I rowsort
SELECT ALL - - col2 * - col0 * - - col1 AS col1 FROM tab1 cor0
----
-25075
-290836
-68544

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

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

query I rowsort
SELECT ALL 20 * + col0 AS col0 FROM tab0 AS cor0
----
1740
1940
300

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1346
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( 29 AS SIGNED ) * - + 57 - + + 82 NOT BETWEEN - + 18 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1346
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( 29 AS INTEGER ) * - + 57 - + + 82 NOT BETWEEN - + 18 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT - - COUNT( ALL col1 ) + + - 11 AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - - COUNT ( ALL col1 ) + + - 11 AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT col1 - - - col1 + col2 * 90 FROM tab1 WHERE ( NULL ) IS NULL
----
5310
6120
8640

query I rowsort
SELECT col1 + + 69 + + col2 AS col1 FROM tab0
----
100
169
197

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

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

query I rowsort
SELECT ALL col2 * + - 85 FROM tab1
----
-5015
-5780
-8160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - - MIN( ALL - 24 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT - - MIN ( ALL - 24 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 + - ( col0 ) - + + 47 AS col1 FROM tab2 AS cor0
----
-34
-42
-55

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT col1 + col1 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
100
231
3888

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1359
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) * - COUNT( * ) col1, 14 FROM tab2 AS cor0
----
NULL
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1359
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) col1, 14 FROM tab2 AS cor0
----
NULL
14

query II rowsort
SELECT col2, + 36 * + col2 + - 84 * - col1 FROM tab0 AS cor0
----
10
2124
47
8496
99
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT col1 * + + col2 * + - CAST( - 13 AS SIGNED ) AS col2 FROM tab1
----
17472
3835
41548

skipif mysql # not compatible
query I rowsort label-1361
SELECT col1 * + + col2 * + - CAST ( - 13 AS INTEGER ) AS col2 FROM tab1
----
17472
3835
41548

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT 97 * + COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-1362
SELECT 97 * + COUNT ( * ) FROM tab0
----
291

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 84 ) AS col1 FROM tab0
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT MIN( - ( col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1366
SELECT MIN ( - ( col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT ALL + 74 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 <> NULL
----

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

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

query I rowsort
SELECT ALL 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 98 <= + + 10
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query I rowsort
SELECT - 14 + col2 * col0 * col1 * + + col2 * col0 FROM tab2 AS cor0
----
1267807486
504627186
57087550

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 79 AS col0 FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 53 + + col2 IS NULL
----

query I rowsort
SELECT - + col1 + + col1 + + col2 * 3 FROM tab1 AS cor0
----
177
204
288

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

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + 30 * - 42 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT DISTINCT + MIN( DISTINCT - + col0 ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-1383
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

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

query I rowsort
SELECT DISTINCT - col1 * + 72 FROM tab0 cor0
----
-1512
-5832
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1386
SELECT DISTINCT 11 AS col0, CAST( + 55 AS SIGNED ) + - col1 col0, 69 FROM tab0
----
9 values hashing to 4713223f76514fbfea4ccf3a3877a728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1386
SELECT DISTINCT 11 AS col0, CAST ( + 55 AS INTEGER ) + - col1 col0, 69 FROM tab0
----
9 values hashing to 4713223f76514fbfea4ccf3a3877a728

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT MAX( 50 ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-1387
SELECT MAX ( 50 ) AS col1 FROM tab1
----
50

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

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

query I rowsort
SELECT DISTINCT 70 * + col1 AS col0 FROM tab1
----
3290
350
980

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

query I rowsort
SELECT 70 * - col1 AS col0 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1392
SELECT ALL - + 15 * 41 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - + 15 * 41 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * 51 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, + col2 * - ( + - 34 ) * + 76, col0 * + col2 + col0 )
----

query II rowsort
SELECT + ( - - 91 ), - col1 AS col0 FROM tab2 AS cor0
----
91
-51
91
-67
91
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT ALL - ( - col1 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - ( - col1 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1397
SELECT ALL - + COUNT( col1 ), - 37 AS col0 FROM tab2 AS cor0
----
-3
-37

skipif mysql # not compatible
query II rowsort label-1397
SELECT ALL - + COUNT ( col1 ), - 37 AS col0 FROM tab2 AS cor0
----
-3
-37

query I rowsort
SELECT - 78 * AVG ( DISTINCT - 33 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE ( NULL ) > - + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT MAX( DISTINCT - - col2 ) * - 61 + 94 + 6 FROM tab1 AS cor0
----
-5756

skipif mysql # not compatible
query I rowsort label-1400
SELECT MAX ( DISTINCT - - col2 ) * - 61 + 94 + 6 FROM tab1 AS cor0
----
-5756

query I rowsort
SELECT - 43 + + 60 AS col0 FROM tab0 cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1402
SELECT ALL - 70 * - 70 - col2, - 3 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 + + - col1 = col1
----

skipif mysql # not compatible
query II rowsort label-1402
SELECT ALL - 70 * - 70 - col2, - 3 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 + + - col1 = col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1403
SELECT + 55 + 71 + - - 49 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT + 55 + 71 + - - 49 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT COUNT( * ) + + 13 * + MIN( + - col2 ) AS col1 FROM tab1
----
-1245

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( * ) + + 13 * + MIN ( + - col2 ) AS col1 FROM tab1
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT SUM( DISTINCT 26 ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1405
SELECT SUM ( DISTINCT 26 ) AS col1 FROM tab1
----
26

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT col0 FROM tab2 WHERE - col2 * + + col2 NOT BETWEEN NULL AND + col0 * + 10 * - + CAST( NULL AS DECIMAL ) * - ( + - 82 )
----

skipif mysql # not compatible
query I rowsort label-1407
SELECT col0 FROM tab2 WHERE - col2 * + + col2 NOT BETWEEN NULL AND + col0 * + 10 * - + CAST ( NULL AS REAL ) * - ( + - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL + COUNT( DISTINCT ( - 49 ) ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + COUNT ( DISTINCT ( - 49 ) ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT 47 - SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-1409
SELECT 47 - SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
246

query I rowsort
SELECT 48 - + 18 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT - ( - + 73 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL > + 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT CAST( NULL AS SIGNED ) / + - ( + - 61 ) * - - COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1413
SELECT CAST ( NULL AS INTEGER ) / + - ( + - 61 ) * - - COUNT ( * ) col2 FROM tab2
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * 11 * col2 - - 68 * + 24 IS NULL
----

query I rowsort
SELECT - ( + 52 ) * + + 78 FROM tab2 cor0
----
-4056
-4056
-4056

query I rowsort
SELECT + - col0 * - col0 * - + 54 FROM tab1 AS cor0
----
-140454
-390150
-447174

query I rowsort
SELECT - 43 * + 4 AS col1 FROM tab2 AS cor0
----
-172
-172
-172

query I rowsort
SELECT ALL - 14 * + - col2 * + col0 FROM tab2 AS cor0
----
14812
35840
60900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + col0 * + col1 col2 FROM tab0
----
109620
5820
72900

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) >= col1 + + - col1 + col1
----

query I rowsort
SELECT ALL col2 * - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 9 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab2 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT ( col1 ) + col1 * - col1 FROM tab1
----
-182
-20
-2162

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

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

query I rowsort
SELECT 13 * - 4 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT - + ( - 49 ) * 84 FROM tab1 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
4116
4116
4116

skipif mysql # not compatible
query I rowsort label-1431
SELECT - + ( - 49 ) * 84 FROM tab1 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
4116
4116
4116

query II rowsort
SELECT - + 14 AS col0, 29 FROM tab2 AS cor0
----
-14
29
-14
29
-14
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT + 37, - COUNT( * ) * - + 12 AS col2 FROM tab1 AS cor0
----
37
36

skipif mysql # not compatible
query II rowsort label-1433
SELECT + 37, - COUNT ( * ) * - + 12 AS col2 FROM tab1 AS cor0
----
37
36

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT ALL - - CAST( 79 AS SIGNED ) FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL - - CAST ( 79 AS INTEGER ) FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT 31 + + 35 AS col1 FROM tab0 AS cor0
----
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT DISTINCT - + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT IN ( ( col0 ), + 80, - - col1 )
----

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT IN ( ( col0 ), + 80, - - col1 )
----

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

query I rowsort
SELECT + col0 + - - col0 AS col2 FROM tab1
----
102
170
182

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

query I rowsort
SELECT col0 + + - 82 * + col1 FROM tab0 AS cor0
----
-1635
-6627
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT + + col0 DIV - 28 FROM tab0 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + + col0 / - 28 FROM tab0 cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * + col0 col1 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT MAX( - 35 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-1447
SELECT MAX ( - 35 ) FROM tab0
----
-35

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col1
----

query I rowsort
SELECT ALL + - 78 * - - 41 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-3198
-3198
-3198

query I rowsort
SELECT DISTINCT - 97 * + col0 AS col0 FROM tab2 AS cor0
----
-4462
-6208
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + + col1 + + col0 col0 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT - AVG ( DISTINCT - 58 ) FROM tab1 AS cor0 WHERE NOT - CAST( 67 AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT - AVG ( DISTINCT - 58 ) FROM tab1 AS cor0 WHERE NOT - CAST ( 67 AS INTEGER ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - COUNT( * ) * - MAX( ALL - col2 ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1455
SELECT - COUNT ( * ) * - MAX ( ALL - col2 ) AS col0 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + COUNT( * ) * 97 * + 86 FROM tab0
----
25026

skipif mysql # not compatible
query I rowsort label-1456
SELECT + COUNT ( * ) * 97 * + 86 FROM tab0
----
25026

query I rowsort
SELECT ALL - col0 * + 59 * + 63 + col1 AS col2 FROM tab2
----
-170931
-237811
-278708

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - 75 * - - 31 * + 32 / - - 13 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT DISTINCT - COUNT( * ) AS col2, + MAX( - - col0 ) FROM tab0
----
-3
97

skipif mysql # not compatible
query II rowsort label-1459
SELECT DISTINCT - COUNT ( * ) AS col2, + MAX ( - - col0 ) FROM tab0
----
-3
97

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

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

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT + + COUNT ( * ) * ( - - 3 ) * + + COUNT ( * ) + + 40 AS col2 FROM tab1 AS cor0
----
67

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

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

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

query I rowsort
SELECT DISTINCT 61 * col1 FROM tab0 AS cor0
----
1281
4941
61

query I rowsort
SELECT ALL - col1 + - - col2 * + col2 AS col1 FROM tab2
----
1523
3297
478

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

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

query I rowsort
SELECT DISTINCT + ( 11 ) FROM tab0 AS cor0 WHERE NOT col2 < + col0
----
11

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE - 95 = - ( - + 2 ) + + col2
----

query II rowsort
SELECT + 28 + + col2 AS col2, - 65 AS col2 FROM tab2 AS cor0
----
51
-65
68
-65
86
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 3 + - 79 col1 FROM tab1 cor0
----
-127
-161
-167

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

query I rowsort
SELECT 80 + - col2 AS col2 FROM tab2
----
22
40
57

query I rowsort
SELECT + col1 + 25 AS col1 FROM tab1
----
30
39
72

query I rowsort
SELECT ALL - col0 + + - 31 FROM tab2
----
-106
-77
-95

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

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

query I rowsort
SELECT ALL - 17 * + + ( + col1 ) + - + 38 + 8 FROM tab2
----
-1169
-1339
-897

query I rowsort
SELECT - 82 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL + 38 * 84 - + COUNT( * ) FROM tab2
----
3189

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + 38 * 84 - + COUNT ( * ) FROM tab2
----
3189

query I rowsort
SELECT + + col0 * - ( + col2 ) + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-529
-960
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT DISTINCT - MAX( DISTINCT + 93 ) * - 28 AS col1 FROM tab0 AS cor0
----
2604

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - MAX ( DISTINCT + 93 ) * - 28 AS col1 FROM tab0 AS cor0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT - + MAX( ALL ( + 76 ) ) * + 10 * + 38 AS col0 FROM tab2 AS cor0
----
-28880

skipif mysql # not compatible
query I rowsort label-1482
SELECT - + MAX ( ALL ( + 76 ) ) * + 10 * + 38 AS col0 FROM tab2 AS cor0
----
-28880

query I rowsort
SELECT DISTINCT + col2 * - 43 AS col0 FROM tab0 AS cor0
----
-2021
-4257
-430

query I rowsort
SELECT ALL + - col1 * + 98 - 78 AS col1 FROM tab2 AS cor0 WHERE NOT - ( - 64 ) IN ( + 93, ( - + col1 ), col0 )
----
-5076
-6644

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

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

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

query I rowsort
SELECT DISTINCT - col1 - col1 FROM tab1 WHERE NOT + col2 * + + col0 IN ( - ( col1 ) * 17 + - col0 / - col2 * - + 71 * + 26 + + + col0, + ( + + col0 ) * col0 + + 71, col2 * - col1 * - + 74, 76 )
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT SUM( ALL ( - col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1488
SELECT SUM ( ALL ( - col2 ) ) AS col0 FROM tab1
----
-223

query II rowsort
SELECT ALL col0 * + 26 AS col2, col0 AS col0 FROM tab2
----
1196
46
1664
64
1950
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab0 AS cor0 WHERE NOT col0 * - - 39 * col1 + 85 < - 83 * + col0
----
10
47
99

query I rowsort
SELECT ALL - 19 * + + 28 AS col0 FROM tab0 AS cor0
----
-532
-532
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL - CAST( - col0 AS SIGNED ) * 2 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - CAST ( - col0 AS INTEGER ) * 2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + ( 48 ) AS col2 FROM tab2
----
48

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

query I rowsort
SELECT ALL ( + 12 ) + 68 * - 27 AS col2 FROM tab0
----
-1824
-1824
-1824

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 98 + + 73 + + 23 * - 24 IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL = ( - 94 )
----

query II rowsort
SELECT ALL - col2 - - 6, col0 FROM tab0
----
-4
87
-41
15
-93
97

query I rowsort
SELECT col2 * + col1 * + col1 * - col1 + - 30 + - col0 AS col1 FROM tab1
----
-263505
-7060085
-7490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT CAST( col2 AS SIGNED ) + col0 * - col0 + - + 38 FROM tab0
----
-216
-7597
-9348

skipif mysql # not compatible
query I rowsort label-1501
SELECT CAST ( col2 AS INTEGER ) + col0 * - col0 + - + 38 FROM tab0
----
-216
-7597
-9348

query II rowsort
SELECT + col0 AS col2, 32 AS col0 FROM tab0
----
15
32
87
32
97
32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 - - + col0 col2 FROM tab2 AS cor0
----
120
138
149

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + + 41 * + COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1507
SELECT + + 41 * + COUNT ( * ) FROM tab1 AS cor0
----
123

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

query I rowsort
SELECT ALL - ( - + col2 ) + - 28 FROM tab1 AS cor0
----
31
40
68

query I rowsort
SELECT DISTINCT + col0 * - - 23 + + col0 + col1 AS col2 FROM tab1 AS cor0
----
1238
2045
2231

onlyif mysql # DIV for integer division: 
query II rowsort label-1511
SELECT ALL - col2 + + col1 AS col1, + col0 DIV + - 60 FROM tab2
----
28
0
37
-1
9
-1

skipif mysql # not compatible
query II rowsort label-1511
SELECT ALL - col2 + + col1 AS col1, + col0 / + - 60 FROM tab2
----
28
0
37
-1
9
-1

query II rowsort
SELECT + 14 + - + 27, col2 FROM tab1 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT MAX( 46 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1513
SELECT MAX ( 46 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1514
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 1 + - CAST( + 46 AS SIGNED ) * - + col1
----

skipif mysql # not compatible
query III rowsort label-1514
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 1 + - CAST ( + 46 AS INTEGER ) * - + col1
----

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

query I rowsort
SELECT DISTINCT + col2 * 53 * col2 AS col1 FROM tab1
----
184493
245072
488448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 * col0 col0 FROM tab2 cor0
----
506
704
825

query I rowsort
SELECT col1 - - + 50 * col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + + col2, + 78 + + 65 + - + col2 / col0 )
----
2351
3277
3817

query I rowsort
SELECT ALL + 42 + - + col1 AS col1 FROM tab1 AS cor0
----
-5
28
37

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

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

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

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - - ( - - col0 ) / - col0 AS col0 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT ALL + MAX( - col2 ) + MIN( ALL + col0 ) DIV - 23 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + MAX ( - col2 ) + MIN ( ALL + col0 ) / - 23 FROM tab1 AS cor0
----
-61

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

query I rowsort
SELECT + 86 * + col2 + - col2 AS col2 FROM tab0
----
3995
8415
850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT + col1 + - col0 + - 81 + - - 18 * - CAST( - col2 AS SIGNED ) FROM tab1
----
1099
1610
901

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + col1 + - col0 + - 81 + - - 18 * - CAST ( - col2 AS INTEGER ) FROM tab1
----
1099
1610
901

query I rowsort
SELECT - ( col0 ) + + col1 AS col2 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * - col1 + col2 + + + col1 BETWEEN - + col2 / col1 + + + col2 AND + 78 / + - 73 + + col0 )
----
51
-14
85
-5
91
-47

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

query I rowsort
SELECT DISTINCT + 18 + + - 98 AS col2 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 22 AND - 84 * - ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1530
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 22 AND - 84 * - ( - 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT 34 * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-102

skipif mysql # not compatible
query I rowsort label-1531
SELECT 34 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-102

query I rowsort
SELECT - col0 * - - col0 + - 38 AS col2 FROM tab1 AS cor0
----
-2639
-7263
-8319

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 / - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 41 + + - 7 FROM tab0 cor0
----
34
34
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT - - ( + - ( + col1 ) ) DIV + col2 * - ( + col2 ) col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1537
SELECT - - ( + - ( + col1 ) ) / + col2 * - ( + col2 ) col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL - MIN( - 97 ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - MIN ( - 97 ) FROM tab2 AS cor0
----
97

query II rowsort
SELECT 59, 16 AS col2 FROM tab1
----
59
16
59
16
59
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + MIN( DISTINCT - + col2 ) col1 FROM tab1
----
-96

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

query II rowsort
SELECT DISTINCT col1, - col0 * ( - + col0 ) AS col2 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL SUM( ALL - 28 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL SUM ( ALL - 28 ) FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL + COUNT( * ) FROM tab0, tab2 cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL + COUNT ( * ) FROM tab0, tab2 cor0 WHERE NULL IS NULL
----
9

query II rowsort
SELECT + col2, 42 FROM tab2 AS cor0
----
23
42
40
42
58
42

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col1, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT - 94 * 39 * col1 - - + 39 FROM tab2 AS cor0
----
-186927
-245583
-282243

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - COUNT( - - ( - 27 ) ) FROM tab2 AS cor0 WHERE NOT NULL > - col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - COUNT ( - - ( - 27 ) ) FROM tab2 AS cor0 WHERE NOT NULL > - col2 * col0
----
0

query I rowsort
SELECT - + col1 + 12 FROM tab0 AS cor0
----
-69
-9
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1551
SELECT + - col0 + - col0 - 26 - - col1 + CAST( NULL AS SIGNED ) * - col2 + - col1 AS col0, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1551
SELECT + - col0 + - col0 - 26 - - col1 + CAST ( NULL AS INTEGER ) * - col2 + - col1 AS col0, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT - - 45 FROM tab2 cor0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 28 ) <= NULL
----

query II rowsort
SELECT + 85 AS col0, + col2 FROM tab0 WHERE - col1 NOT BETWEEN - - col2 AND - 28
----
85
10
85
47
85
99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 33 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1557
SELECT ALL * FROM tab0 WHERE + - CAST( + ( + 94 ) AS SIGNED ) NOT IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1557
SELECT ALL * FROM tab0 WHERE + - CAST ( + ( + 94 ) AS INTEGER ) NOT IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + - 42 AS col0 FROM tab0
----
-32
5
57

query I rowsort
SELECT ALL - 52 + col0 AS col0 FROM tab1
----
-1
33
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + - 63
----

query I rowsort
SELECT DISTINCT - col0 + + 1 + - + col2 FROM tab1
----
-143
-146
-158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + SUM( + 10 ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + SUM ( + 10 ) AS col2 FROM tab2
----
30

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL <= + 84 + + + 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1566
SELECT * FROM tab2 WHERE col2 IN ( 61 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1566
SELECT * FROM tab2 WHERE col2 IN ( 61 - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT ALL 87 DIV - - col1 - col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1350
312
3197

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL 87 / - - col1 - col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1350
312
3197

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 48
----

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

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

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

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

query I rowsort
SELECT ALL + col2 * + - col0 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

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

query I rowsort
SELECT 10 * - - col1 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1575
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) = col0 / - 79 + - 42
----

skipif mysql # not compatible
query III rowsort label-1575
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) = col0 / - 79 + - 42
----

query I rowsort
SELECT DISTINCT - + 77 AS col2 FROM tab0 WHERE + ( - col1 ) * + + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT ALL - col0 DIV + 47 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - col0 / + 47 AS col0 FROM tab0
----
-1
-2
0

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab2
----
23

query I rowsort
SELECT - 95 * 71 AS col2 FROM tab0 AS cor0
----
-6745
-6745
-6745

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 < - 44
----
87
21
10

query I rowsort
SELECT ALL - - 87 AS col0 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT + col0 * + 4 AS col0 FROM tab2 AS cor0
----
184
256
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab0 WHERE + + 22 IS NULL
----

query II rowsort
SELECT - col2 AS col1, - 26 * + col2 * - 83 FROM tab0
----
-10
21580
-47
101426
-99
213642

query I rowsort
SELECT 83 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col2 * + - col1 AS col0 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT + - 56 AS col2, col1 * - col0 * - col0 + - + col2 AS col2 FROM tab2 cor0
----
-56
107893
-56
315352
-56
376817

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT COUNT( * ) + + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COUNT ( * ) + + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 / + - 44 + - + col0 * + 58 <= NULL
----

query II rowsort
SELECT + col0, 42 AS col1 FROM tab0 AS cor0
----
15
42
87
42
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col2 + col0
----
0

skipif mysql # not compatible
query I rowsort label-1591
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col2 + col0
----
0

query II rowsort
SELECT 9 + - 80 AS col2, col1 * + 56 FROM tab1 cor0
----
-71
2632
-71
280
-71
784

query I rowsort
SELECT DISTINCT - - 9 AS col0 FROM tab0 AS cor0
----
9

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

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

query I rowsort
SELECT col0 + col1 - - col1 + 64 AS col1 FROM tab1
----
143
159
249

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT + col1 + + + 63 DIV + - col0 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-1597
SELECT + col1 + + + 63 / + - col0 FROM tab2
----
50
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT MIN( - 6 ) + + - 40 + SUM( - ( + - col1 ) ) DIV - COUNT( * ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-1598
SELECT MIN ( - 6 ) + + - 40 + SUM ( - ( + - col1 ) ) / - COUNT ( * ) FROM tab1
----
-68

query I rowsort
SELECT 63 + col2 - - + col0 AS col0 FROM tab2
----
132
167
196

query I rowsort
SELECT - col0 + - + ( - col1 ) AS col2 FROM tab1
----
-37
-44
-80

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

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

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

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

query II rowsort
SELECT + 64 - ( + col1 ) * col1 + - col1, + col0 FROM tab0 AS cor0
----
-398
87
-6578
15
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT ALL 44 DIV + col2 + - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL 44 / + col2 + - col0 FROM tab2
----
-45
-63
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col0 ) <> NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + + 87 + + + col2 IS NULL
----
14
47
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

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

query I rowsort
SELECT DISTINCT - col2 * - 89 AS col2 FROM tab2 AS cor0
----
2047
3560
5162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 <= + - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL - col0 * 14, + col1 * 84 * + col0 * - + ( + col1 ) + - 64 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1190
-178564
-1274
-16885660
-714
-839728

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1614
SELECT ALL + col1 / col0 / col0 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT 9 * ( - - SUM( - + col0 ) ) FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT 9 * ( - - SUM ( - + col0 ) ) FROM tab1
----
-2043

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL - ( - - MIN( + + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - ( - - MIN ( + + col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col1 * - 86 * 25 FROM tab0
----
-174150
-2150
-45150

query I rowsort
SELECT ALL 77 FROM tab1 WHERE NOT - col2 IS NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT + - col1 + + col0 AS col0 FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) - + 5 - - 74 IS NULL
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1619
SELECT + - col1 + + col0 AS col0 FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) - + 5 - - 74 IS NULL
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT - 83 DIV - - 37 AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1620
SELECT - 83 / - - 37 AS col1 FROM tab1
----
-2
-2
-2

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

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

query II rowsort
SELECT ALL - 51 * - col2 AS col0, col2 AS col2 FROM tab0
----
2397
47
5049
99
510
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT 76 * + COUNT( * ) col1 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1624
SELECT 76 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1625
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-1625
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> ( col1 )
----

query I rowsort
SELECT col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT col0 DIV 42 + col1 DIV + 13 FROM tab2
----
4
6
6

skipif mysql # not compatible
query I rowsort label-1628
SELECT col0 / 42 + col1 / + 13 FROM tab2
----
4
6
6

query II rowsort
SELECT - + col2 + + 19 + - col0, 69 * - col1 AS col2 FROM tab1 AS cor0
----
-125
-345
-128
-966
-140
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1630
SELECT - 14 + col2 * col1 + - - CAST( + col1 AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
217
87
3874
15
86
97

skipif mysql # not compatible
query II rowsort label-1630
SELECT - 14 + col2 * col1 + - - CAST ( + col1 AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
217
87
3874
15
86
97

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

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

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

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

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

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

query I rowsort
SELECT DISTINCT + + col2 * - + col0 AS col0 FROM tab2 WHERE - 6 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) - + col1 + + 13 AS col0 FROM tab0
----
-230
-50
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1639
SELECT - 86, CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab1
----
9 values hashing to f0f259efc5efbbc6f9146917ccb290a2

skipif mysql # not compatible
query III rowsort label-1639
SELECT - 86, CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab1
----
9 values hashing to f0f259efc5efbbc6f9146917ccb290a2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1640
SELECT ALL 86 - + col0 DIV 99 - - - col2 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
-13
NULL
39
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-1640
SELECT ALL 86 - + col0 / 99 - - - col2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-13
NULL
39
NULL
76
NULL

query I rowsort
SELECT col1 + + 62 + - 79 FROM tab1
----
-12
-3
30

query I rowsort
SELECT + col0 + + - col0 - + col0 + 10 AS col1 FROM tab2 AS cor0
----
-36
-54
-65

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

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

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

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT - SUM ( + ( - + col2 ) ), COUNT ( * ) AS col1 FROM tab0
----
156
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 72 ) >= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + + 94 * - 84 AS col0 FROM tab1 AS cor0
----
-7896
-7896
-7896

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - ( + - col2 ) ) * + - 4 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + ( - col1 ) + - 22 AS col2, 53 FROM tab1 AS cor0 WHERE col2 * col2 / + col2 = NULL
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL - col1 DIV ( - + col2 ) * - + col2 + - col1 FROM tab0 AS cor0
----
-1
-128
-41

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - col1 / ( - + col2 ) * - + col2 + - col1 FROM tab0 AS cor0
----
-1
-128
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT + 44 * + + col0 DIV - col0 FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 44 * + + col0 / - col0 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT - 71, - COUNT( * ) * - 88 AS col0 FROM tab1
----
-71
264

skipif mysql # not compatible
query II rowsort label-1653
SELECT - 71, - COUNT ( * ) * - 88 AS col0 FROM tab1
----
-71
264

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

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

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

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

query II rowsort
SELECT + col0, + ( - col2 ) * + + col1 + + 54 AS col2 FROM tab0
----
15
-3753
87
-156
97
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + 13 - col0 col1, ( + col0 ) FROM tab0 AS cor0
----
-1384
97
-217
87
-626
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT ALL 65 + 24 DIV COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL 65 + 24 / COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT col0 * 42 FROM tab2 WHERE + col1 <> + 35
----
1932
2688
3150

query I rowsort
SELECT DISTINCT - col2 * - 96 AS col0 FROM tab0
----
4512
9504
960

query I rowsort
SELECT DISTINCT + 20 * - col1 AS col0 FROM tab0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + 33 - COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 33 - COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT - 34 + - col1 FROM tab2
----
-101
-111
-85

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

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

query I rowsort
SELECT ALL - 42 FROM tab0 WHERE NOT col1 NOT BETWEEN ( 62 ) AND NULL
----

query I rowsort
SELECT ALL - 76 - - 82 AS col2 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ( MAX( ALL ( + ( ( + col0 ) ) ) ) ) * 30 FROM tab2
----
2250

skipif mysql # not compatible
query I rowsort label-1669
SELECT ( MAX ( ALL ( + ( ( + col0 ) ) ) ) ) * 30 FROM tab2
----
2250

query I rowsort
SELECT col1 * - 46 AS col2 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT 73 * col2 - - col2 AS col2 FROM tab1
----
4366
5032
7104

query I rowsort
SELECT DISTINCT - 17 + - ( 5 ) AS col0 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col1 >= + ( 72 )
----
-81

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + MIN ( + col1 ) AS col1 FROM tab0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MIN( ALL 51 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MIN ( ALL 51 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT + 93 * col0 AS col2 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT - col0 * + 22 AS col2 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + COUNT( * ) * + 87 AS col0 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-1679
SELECT + COUNT ( * ) * + 87 AS col0 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT 64 * - COUNT( * ) AS col2 FROM tab0 WHERE ( col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT 64 * - COUNT ( * ) AS col2 FROM tab0 WHERE ( col2 ) = NULL
----
0

query I rowsort
SELECT 73 - - col2 AS col0 FROM tab1 WHERE NOT col1 * ( + col1 ) + 87 < ( NULL )
----

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

query I rowsort
SELECT ALL - col0 * 65 AS col2 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT DISTINCT - 84 * - col1 + + 22 AS col0 FROM tab0
----
106
1786
6826

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

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT 62 * + col1 + col0 >= 2 * - 49
----

query I rowsort
SELECT col1 + col2 FROM tab0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 6 < - col1 + 85
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 6 < - col1 + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1689
SELECT + COUNT( * ) + - AVG ( ALL col1 ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT + COUNT ( * ) + - AVG ( ALL col1 ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 51 * + 7 FROM tab0
----
357
357
357

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

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 96 / - COUNT ( ALL col1 ) AS col0 FROM tab1
----
-32

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 * col2 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE 29 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL + COUNT( * ) * - 28 AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + COUNT ( * ) * - 28 AS col1 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT 42 * + col0 - - col1 AS col2 FROM tab1 AS cor0
----
2156
3575
3869

query I rowsort
SELECT 91 AS col0 FROM tab0 cor0
----
91
91
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT - SUM( + ( - col2 ) ) DIV COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1699
SELECT - SUM ( + ( - col2 ) ) / COUNT ( * ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - MAX( 33 ) col0 FROM tab2
----
-33

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

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

skipif mysql # not compatible
query III rowsort label-1701
SELECT DISTINCT * FROM tab2 WHERE col1 + 79 * + CAST ( 24 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + col1 * - col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( - 16 ) AND col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - + 17 * 17 FROM tab0 AS cor0
----
-289
-289
-289

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( - col2 * + 44 )
----

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - col2 * + 44 )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( - 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL + MAX( DISTINCT - - 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + MAX ( DISTINCT - - 82 ) FROM tab1
----
82

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT + col0 FROM tab2 WHERE NOT ( col2 / + col1 ) BETWEEN ( col0 + - col2 ) AND + col2 + + CAST( 51 AS SIGNED )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1716
SELECT + col0 FROM tab2 WHERE NOT ( col2 / + col1 ) BETWEEN ( col0 + - col2 ) AND + col2 + + CAST ( 51 AS INTEGER )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT ALL 74 * + CAST( - MIN( DISTINCT col2 ) AS SIGNED ) * + 51 FROM tab1
----
-222666

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL 74 * + CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) * + 51 FROM tab1
----
-222666

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 36 / 13 ) BETWEEN - col2 AND 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1719
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 81 / - ( - ( col0 ) * col2 ) - - 0 * - CAST( - 17 + - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1719
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 81 / - ( - ( col0 ) * col2 ) - - 0 * - CAST ( - 17 + - col1 AS INTEGER )
----

query I rowsort
SELECT 24 * + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT - ( - col0 ) * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-1721
SELECT - ( - col0 ) * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - - col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT - 10 * - 87 * col1 AS col0 FROM tab0 AS cor0
----
18270
70470
870

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT DISTINCT col2 DIV - col2 - 89 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT col2 / - col2 - 89 AS col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT ALL col1 + + 7 AS col0 FROM tab1 AS cor0
----
12
21
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT 14 DIV - col0 + + col1 - + col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1726
SELECT 14 / - col0 + + col1 - + col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - + 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

query I rowsort
SELECT - 93 + - - 61 * + 91 * col2 FROM tab2
----
127580
221947
321865

query I rowsort
SELECT col0 * 50 - col0 AS col1 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT ALL + col0 DIV + 17 FROM tab0 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL + col0 / + 17 FROM tab0 AS cor0
----
0
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1732
SELECT - SUM( DISTINCT - ( - 76 ) ) DIV 46 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1732
SELECT - SUM ( DISTINCT - ( - 76 ) ) / 46 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL col0 DIV 96 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL col0 / 96 AS col1 FROM tab0 AS cor0
----
0
0
1

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

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1738
SELECT CAST( 11 AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-1738
SELECT CAST ( 11 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1739
SELECT - COUNT( * ) DIV 64 AS col2 FROM tab0 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + - col2 ) / - col1 <= - 42
----
-3

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + - col2 ) / - col1 <= - 42
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 + col2 col2 FROM tab2
----
0
17
35

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

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

query I rowsort
SELECT DISTINCT + 30 + - - col0 FROM tab1
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT 32 + + ( + - SUM( + 19 ) ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1747
SELECT 32 + + ( + - SUM ( + 19 ) ) AS col2 FROM tab1
----
-25

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 IN ( - + col0 )
----
-59
-68
-96

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

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

query I rowsort
SELECT ALL + col2 * - ( col2 * 75 ) AS col2 FROM tab0 AS cor0 WHERE ( 45 ) NOT BETWEEN col2 + - ( 27 ) AND ( - col1 )
----
-165675
-735075
-7500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col0 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT col1 * - + 82 FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT 39 * - col0 AS col2 FROM tab1
----
-1989
-3315
-3549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + col0 col2 FROM tab2 AS cor0
----
-322
-448
-525

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1758
SELECT ALL 11 AS col0, COUNT ( * ) AS col2 FROM tab0 cor0
----
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT MIN( DISTINCT col2 ) * - 44 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1012

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT MIN ( DISTINCT col2 ) * - 44 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1012

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 1 * - col2 * col2 * + 14 + col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col0 + - col2 * + - col1 FROM tab1
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - COUNT( * ) * 87 + 75 AS col1 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-1763
SELECT - COUNT ( * ) * 87 + 75 AS col1 FROM tab0
----
-186

query I rowsort
SELECT + 64 + - col1 FROM tab2
----
-13
-3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT COUNT( DISTINCT - ( - col0 ) ) + - MIN( + col2 ) * + - SUM( 82 ) - 20 FROM tab2
----
5641

skipif mysql # not compatible
query I rowsort label-1765
SELECT COUNT ( DISTINCT - ( - col0 ) ) + - MIN ( + col2 ) * + - SUM ( 82 ) - 20 FROM tab2
----
5641

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1767
SELECT ALL + 52 DIV col1 + col2 * - col1, 57 - - - col1 AS col0 FROM tab0
----
-208
36
-3807
-24
-47
56

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL + 52 / col1 + col2 * - col1, 57 - - - col1 AS col0 FROM tab0
----
-208
36
-3807
-24
-47
56

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + 14 * + + COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) AS col1 FROM tab2
----
2116
4096
5625

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

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

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

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

query II rowsort
SELECT - 56 AS col0, - 24 * + ( + 65 ) FROM tab0 AS cor0 WHERE - col0 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - 33 FROM tab2 AS cor0
----
-100
-110
-84

query III rowsort
SELECT * FROM tab2 WHERE - 13 BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND 17
----

query I rowsort
SELECT + col2 + col2 AS col1 FROM tab0 AS cor0 WHERE ( + 99 <> NULL )
----

query I rowsort
SELECT ALL 52 * - - col2 * 63 FROM tab0 AS cor0
----
153972
324324
32760

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT 81 + MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-1779
SELECT 81 + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT 96 + - COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
93
-3

skipif mysql # not compatible
query II rowsort label-1780
SELECT 96 + - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
93
-3

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

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

query I rowsort
SELECT + - ( + col2 ) FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-23
-40
-58

query II rowsort
SELECT 74, col2 AS col1 FROM tab0
----
74
10
74
47
74
99

query II rowsort
SELECT 86 AS col0, 81 * + col2 FROM tab2
----
86
1863
86
3240
86
4698

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col2 IN ( - + col2 )
----

query I rowsort
SELECT 22 * 58 FROM tab2
----
1276
1276
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT MIN( - 76 ) FROM tab2 WHERE NOT + + col2 + + col0 / - + col2 * + 16 >= - col1 + + ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT MIN ( - 76 ) FROM tab2 WHERE NOT + + col2 + + col0 / - + col2 * + 16 >= - col1 + + ( col2 )
----
NULL

query I rowsort
SELECT ALL col0 + - 48 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3
37
43

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

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( 47 ) IS NOT NULL
----

query II rowsort
SELECT - col0 * + + col2 * + col2, col2 AS col2 FROM tab0 AS cor0
----
-33135
47
-8700
10
-950697
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - + 70 + - + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - + 70 + - + col0 >= NULL
----
0

query I rowsort
SELECT + 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT col0 * - 50 * - + 15 FROM tab1
----
38250
63750
68250

query I rowsort
SELECT + ( 4 ) * col1 * + + 35 * - col2 + - + 46 AS col2 FROM tab2 AS cor0
----
-164266
-431246
-544086

query I rowsort
SELECT + col2 + - + 82 + + col0 AS col1 FROM tab1 AS cor0
----
62
65
77

query I rowsort
SELECT DISTINCT - 85 * - col2 AS col1 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1798
SELECT ALL + ( + col0 ), + col1 * - - CAST( - + col2 AS SIGNED ) - + 86 FROM tab1 AS cor0
----
51
-1430
85
-381
91
-3282

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL + ( + col0 ), + col1 * - - CAST ( - + col2 AS INTEGER ) - + 86 FROM tab1 AS cor0
----
51
-1430
85
-381
91
-3282

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 * 35 * + 86 BETWEEN NULL AND + col1 - - col2 + - col2 * - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - col0 + - 56 * + col1 FROM tab2
----
-2902
-3827
-4376

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

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

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

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

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

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

query I rowsort
SELECT + 29 * + 37 * - - 74 * 27 FROM tab2
----
2143854
2143854
2143854

query I rowsort
SELECT - - 10 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1610
3374
539

query I rowsort
SELECT - + col1 + 96 FROM tab0 AS cor0
----
15
75
95

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 83 * + - col1 BETWEEN NULL AND 55 + - + col0
----

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

skipif mysql # not compatible
query III rowsort label-1810
SELECT * FROM tab0 WHERE + col0 = ( CAST ( + + col2 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col2 - + - col2 * col1 AS col0 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + - SUM( ALL - + 72 ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1812
SELECT + - SUM ( ALL - + 72 ) FROM tab2 AS cor0
----
216

query I rowsort
SELECT - col2 - 55 AS col0 FROM tab2 AS cor0
----
-113
-78
-95

query II rowsort
SELECT ALL 35, col0 + - col0 AS col1 FROM tab1 AS cor0
----
35
0
35
0
35
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 > + 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT ALL col0 * + col1 + + 31 DIV 60 * + 20 AS col1 FROM tab2 cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL col0 * + col1 + + 31 / 60 * + 20 AS col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 1 + - col2 FROM tab1 WHERE NOT ( NOT ( 95 ) NOT BETWEEN NULL AND 57 * col1 )
----

query I rowsort
SELECT + 34 * - - col1 FROM tab1
----
1598
170
476

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

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

query I rowsort
SELECT + 52 * ( - col1 ) AS col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1821
SELECT DISTINCT * FROM tab2 WHERE col2 * - - 22 NOT BETWEEN - col1 * - + col1 AND CAST( - 90 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1821
SELECT DISTINCT * FROM tab2 WHERE col2 * - - 22 NOT BETWEEN - col1 * - + col1 AND CAST ( - 90 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col1 ) * 28 AS col1 FROM tab0
----
2268
28
588

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1824
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1824
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + - CAST ( + col0 AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1826
SELECT col2 AS col1, + 37 DIV 11 DIV - ( + + col2 ) AS col1 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-1826
SELECT col2 AS col1, + 37 / 11 / - ( + + col2 ) AS col1 FROM tab1
----
59
0
68
0
96
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - COUNT( * ) + - 53 AS col1 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1829
SELECT - COUNT ( * ) + - 53 AS col1 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT col2 / - col0 + + col0 + - 92 + - col0 * ( + 22 ) + 58 AS col2 FROM tab1 cor0 WHERE - 47 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL SUM( DISTINCT - col0 ) * - SUM( DISTINCT + - 6 ) FROM tab1
----
-1362

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL SUM ( DISTINCT - col0 ) * - SUM ( DISTINCT + - 6 ) FROM tab1
----
-1362

query I rowsort
SELECT + 25 + - - ( + + col0 ) + + 72 FROM tab0
----
112
184
194

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1833
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT - 59 ) + - MIN ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE col0 BETWEEN col0 * - col1 + - + col0 + col2 AND NULL
----
NULL

query I rowsort
SELECT - col0 * - col1 + + 53 AS col2 FROM tab2
----
2399
4981
5078

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT + MAX ( + col0 ) + COUNT ( * ) FROM tab1
----
94

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

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

query I rowsort
SELECT + 82 * - + col2 + + 15 FROM tab2
----
-1871
-3265
-4741

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

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT MIN ( ALL 8 ) AS col2 FROM tab1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1839
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) * + + col1 + - col0 + - col1 + + col0 + - ( + ( + + CAST( col2 AS DECIMAL ) ) ) + col0 + 80 / - col0 + 63 * col1 * col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + + col1 + - col0 + - col1 + + col0 + - ( + ( + + CAST ( col2 AS REAL ) ) ) + col0 + 80 / - col0 + 63 * col1 * col2 ) IS NULL
----
0

query I rowsort
SELECT col2 * col2 + - 3 FROM tab0
----
2206
97
9798

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1843
SELECT - 5 - - - MIN( + + CAST( NULL AS SIGNED ) ) AS col0, 59 FROM tab1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-1843
SELECT - 5 - - - MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0, 59 FROM tab1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL - COUNT( * ) + - 94 AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL - COUNT ( * ) + - 94 AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT CAST( 57 AS SIGNED ) - + 61 AS col0 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1845
SELECT CAST ( 57 AS INTEGER ) - + 61 AS col0 FROM tab0
----
-4
-4
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL 24 + col0 DIV + 18 + + col0 FROM tab0
----
115
126
39

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 24 + col0 / + 18 + + col0 FROM tab0
----
115
126
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) - COUNT( - + 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( - + 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - - ( + SUM( - 6 ) ) AS col0 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - ( + SUM ( - 6 ) ) AS col0 FROM tab2 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT - MIN( - - 1 ) * - ( + 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1851
SELECT - MIN ( - - 1 ) * - ( + 73 ) FROM tab1 AS cor0
----
73

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + MAX( ALL + - col0 ) * - COUNT( * ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1855
SELECT + MAX ( ALL + - col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
138

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

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 43 * + + COUNT ( * ) FROM tab2
----
129

query II rowsort
SELECT ALL 96 AS col0, ( - col1 ) - - - 76 AS col2 FROM tab1
----
96
-123
96
-81
96
-90

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

query I rowsort
SELECT - 10 * + - col0 FROM tab0
----
150
870
970

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT DISTINCT col0 + + - 74 + 66 DIV + col2 FROM tab1 AS cor0
----
-23
12
17

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT col0 + + - 74 + 66 / + col2 FROM tab1 AS cor0
----
-23
12
17

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE + 4 > NULL
----

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

query I rowsort
SELECT - 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

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

query I rowsort
SELECT col0 * + 49 AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN + + col2 AND col2 - - col0 + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT - col0 + - - 22 * + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-1869
SELECT - col0 + - - 22 * + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-29
-63
-69

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

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

query II rowsort
SELECT - 43 AS col2, + col2 * - col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-43
-705
-43
-870
-43
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - 61 * - + MIN( DISTINCT + 7 ) FROM tab0 AS cor0
----
427

skipif mysql # not compatible
query I rowsort label-1872
SELECT - 61 * - + MIN ( DISTINCT + 7 ) FROM tab0 AS cor0
----
427

query I rowsort
SELECT DISTINCT - col2 * col2 * 42 FROM tab0 AS cor0
----
-411642
-4200
-92778

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 / - - col1 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE 18 * + 57 * - col0 IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IN ( - - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL COUNT( * ) * + 99 + + 5 FROM tab0 WHERE + - col2 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL COUNT ( * ) * + 99 + + 5 FROM tab0 WHERE + - col2 IS NULL
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT 66 - + + 34 * - COUNT( * ) AS col0 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-1880
SELECT 66 - + + 34 * - COUNT ( * ) AS col0 FROM tab0
----
168

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

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

query II rowsort
SELECT DISTINCT - col2 - - - ( 42 ) AS col0, - ( + - col0 ) FROM tab1 AS cor0
----
-101
85
-110
91
-138
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1883
SELECT ALL + + COUNT( * ) DIV - - 85 * + 17 col0, - COUNT( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT ALL + + COUNT ( * ) / - - 85 * + 17 col0, - COUNT ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
0
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL < 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + SUM( + + 61 ) AS col1 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + SUM ( + + 61 ) AS col1 FROM tab2 AS cor0
----
183

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

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

query I rowsort
SELECT ALL 20 - col0 FROM tab1
----
-31
-65
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / - - col0 BETWEEN - + 15 / col0 + col2 - + col1 AND + col2 / + col0 * - + col0
----
-3

skipif mysql # not compatible
query I rowsort label-1888
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / - - col0 BETWEEN - + 15 / col0 + col2 - + col1 AND + col2 / + col0 * - + col0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL >= - 80 + col0 + - 57 * + 57
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 0
----

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

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

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab0 AS cor0 WHERE - 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 <= 20 * + col2
----

query I rowsort
SELECT - 48 * - 31 * + - ( - 68 ) AS col2 FROM tab1 AS cor0
----
101184
101184
101184

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

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

query I rowsort
SELECT col2 * - - 55 * + + 38 AS col0 FROM tab0
----
206910
20900
98230

query I rowsort
SELECT col1 * - 17 * col0 FROM tab0
----
-1649
-20655
-31059

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 < NULL
----

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

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

query I rowsort
SELECT ALL 79 * col0 FROM tab1
----
4029
6715
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + MIN( DISTINCT + + col2 ) col1 FROM tab0
----
10

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

query II rowsort
SELECT ALL + col2, + col2 * col1 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT DISTINCT 93 * + col1 + + CAST( + col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
4812
6364
7265

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT 93 * + col1 + + CAST ( + col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
4812
6364
7265

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1905
SELECT ALL col1, CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL col1, CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 WHERE + 11 + 96 * + + 16 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 WHERE + 11 + 96 * + + 16 IS NOT NULL
----
-3

query I rowsort
SELECT col1 * + + 68 + + col1 * + col2 AS col1 FROM tab1
----
2296
635
6392

query I rowsort
SELECT - col0 + + + col0 - 79 FROM tab2
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE - + col1 BETWEEN + + col0 AND col1
----

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 58 >= + col2 * + 72
----

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

query I rowsort
SELECT DISTINCT + 74 - + 43 FROM tab2
----
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 14 / - col2 + - 35 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT DISTINCT + - 56 - - col2 AS col1 FROM tab0 AS cor0
----
-46
-9
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT ALL 60 * + + 5 + - + CAST( + 64 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
236
236
236

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL 60 * + + 5 + - + CAST ( + 64 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
236
236
236

query I rowsort
SELECT - - col1 - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col0 ) col1 FROM tab1 AS cor0
----
51
85
91

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

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

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

query II rowsort
SELECT + + col2, col2 * - - 26 FROM tab2 AS cor0
----
23
598
40
1040
58
1508

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

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

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

skipif mysql # not compatible
query I rowsort label-1926
SELECT + MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 33 * + 5 * - col2 AND - + col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1931
SELECT + MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
-97

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

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

query I rowsort
SELECT DISTINCT - col2 + + + 31 + - ( - 59 ) * + 79 * - + 96 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - ( + - 70 ) FROM tab1
----
3570
5950
6370

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 64 NOT BETWEEN NULL AND + + col1
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + + 12 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + ( SUM ( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT - MIN( ALL - - 26 ) col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1938
SELECT DISTINCT - MIN ( ALL - - 26 ) col1 FROM tab2 AS cor0
----
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = + col1 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col1 - 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL - col0 * - col0 DIV - ( + col0 ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - col0 * - col0 / - ( + col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT DISTINCT - col1 DIV - col2 + + 39 DIV 40 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - col1 / - col2 + + 39 / 40 AS col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25, + 85 col1 FROM tab2 cor0
----
25
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - 45 * - COUNT( * ) col1 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1944
SELECT - 45 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - MAX( + 55 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1945
SELECT - MAX ( + 55 ) FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT + CAST( - - col2 AS SIGNED ) * + 95 - col0 AS col1 FROM tab1 cor0
----
5520
6369
9069

skipif mysql # not compatible
query I rowsort label-1946
SELECT + CAST ( - - col2 AS INTEGER ) * + 95 - col0 AS col1 FROM tab1 cor0
----
5520
6369
9069

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 59 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1948
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1948
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + SUM( ALL + col0 ) + - 47 col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1949
SELECT ALL + SUM ( ALL + col0 ) + - 47 col2 FROM tab2 AS cor0
----
138

query I rowsort
SELECT - - 22 * - + 47 FROM tab2 AS cor0
----
-1034
-1034
-1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL CAST( - 52 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL CAST ( - 52 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1952
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 81 / col2 <> + + ( - col0 ) / + 1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT - 3 + + + ( - - CAST( col0 AS SIGNED ) ) DIV + 55 - - col1 FROM tab1 AS cor0
----
11
3
45

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - 3 + + + ( - - CAST ( col0 AS INTEGER ) ) / + 55 - - col1 FROM tab1 AS cor0
----
11
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL ( - COUNT( * ) ) + - 39 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL ( - COUNT ( * ) ) + - 39 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL + COUNT( * ) + + 61 col0 FROM tab1
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1956
SELECT ALL + COUNT ( * ) + + 61 col0 FROM tab1
----
64

query I rowsort
SELECT ( + col2 ) - 93 * - + 28 FROM tab1
----
2663
2672
2700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1958
SELECT * FROM tab2 WHERE col2 NOT IN ( + + col2, + 1 + - 71 * col1 * - - CAST( NULL AS SIGNED ), col1, + col0 + + + col1 * + col0 * + 66, - 64 + - - col1 )
----

skipif mysql # not compatible
query III rowsort label-1958
SELECT * FROM tab2 WHERE col2 NOT IN ( + + col2, + 1 + - 71 * col1 * - - CAST ( NULL AS INTEGER ), col1, + col0 + + + col1 * + col0 * + 66, - 64 + - - col1 )
----

query I rowsort
SELECT ALL 63 + - 7 AS col0 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ( + + MAX( DISTINCT - col2 ) ) + - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1960
SELECT ( + + MAX ( DISTINCT - col2 ) ) + - COUNT ( * ) FROM tab2
----
-26

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2, col0 * + col0 * - - 3 * + col2 )
----

query I rowsort
SELECT DISTINCT + - 67 - - - col2 AS col1 FROM tab2 AS cor0
----
-107
-125
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT DISTINCT - SUM( DISTINCT col2 ) * - 34 - + MIN( - col1 ) - - 1 * - CAST( + - SUM( - 9 ) AS SIGNED ) FROM tab2 AS cor0
----
4164

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - SUM ( DISTINCT col2 ) * - 34 - + MIN ( - col1 ) - - 1 * - CAST ( + - SUM ( - 9 ) AS INTEGER ) FROM tab2 AS cor0
----
4164

query II rowsort
SELECT ALL - col2 * 99 * + ( 29 ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-134937
-81
-284229
-1
-28710
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL 88 * 85 FROM tab0 AS cor0 WHERE NOT - 58 BETWEEN CAST( NULL AS SIGNED ) * + col1 + + col2 + - col0 AND col1 + - + col1
----

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 88 * 85 FROM tab0 AS cor0 WHERE NOT - 58 BETWEEN CAST ( NULL AS INTEGER ) * + col1 + + col2 + - col0 AND col1 + - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + COUNT( * ) * + 22 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1782

skipif mysql # not compatible
query I rowsort label-1967
SELECT + COUNT ( * ) * + 22 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1782

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT ALL - + ( - + col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - + ( - + col0 ) / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - MAX( col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1969
SELECT - MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + ( - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT 18 DIV + - col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT 18 / + - col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + ( - - col0 ) * + - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - 52 FROM tab2
----
46
-52
64
-52
75
-52

query II rowsort
SELECT + col1 + - - col0 + + col1 * + col1, + col0 * + - col2 AS col2 FROM tab1
----
115
-5015
2347
-6188
261
-4896

query I rowsort
SELECT 65 + + col2 FROM tab2
----
105
123
88

query I rowsort
SELECT - col2 + col1 + - + col1 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col2 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2, ( - col0 ) * - col2 col1 FROM tab2 AS cor0
----
2
1058
2
2560
2
4350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 49 / + + col2 + 70, - 53, ( col0 ) )
----

query I rowsort
SELECT DISTINCT 1 * + 94 + - - col2 + 68 * - col0 * - 90 * 60 + + 69 FROM tab2 AS cor0
----
16891386
23501003
27540221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + + col1 col1, + col0 FROM tab2
----
-8
75
13
64
5
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - - 95 IS NULL AND NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT DISTINCT + CAST( 0 AS SIGNED ) AS col1, COUNT( * ) col2 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1984
SELECT DISTINCT + CAST ( 0 AS INTEGER ) AS col1, COUNT ( * ) col2 FROM tab0 cor0
----
0
3

query I rowsort
SELECT DISTINCT 8 * - ( + + 44 ) FROM tab0 AS cor0
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT 16 + - + col1 DIV + + col1 + + col2 - + col2 * col1 AS col0 FROM tab1 cor0
----
-1233
-221
-3113

skipif mysql # not compatible
query I rowsort label-1986
SELECT 16 + - + col1 / + + col1 + + col2 - + col2 * col1 AS col0 FROM tab1 cor0
----
-1233
-221
-3113

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT - COUNT( * ) + - COUNT( ALL - + col0 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL - + col0 ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1988
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + ( CAST( - col2 AS SIGNED ) ) AND - 82
----

skipif mysql # not compatible
query III rowsort label-1988
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + ( CAST ( - col2 AS INTEGER ) ) AND - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1989
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
81

query I rowsort
SELECT - + 32 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND - + col2 * - + ( - 74 )
----

query I rowsort
SELECT - + 4 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1994
SELECT + COUNT( * ) * + MAX( ALL - - col0 ) * - - 69 * + CAST( NULL AS DECIMAL ) * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) * + MAX ( ALL - - col0 ) * - - 69 * + CAST ( NULL AS REAL ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col0, - 16 AS col2 FROM tab0
----
15
-16
87
-16
97
-16

query II rowsort
SELECT DISTINCT + 22, + col0 AS col0 FROM tab2 AS cor0
----
22
46
22
64
22
75

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab2 cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col1 <= NULL
----

query I rowsort
SELECT - + 12 * - col1 FROM tab0 AS cor0
----
12
252
972

query II rowsort
SELECT + col1 AS col1, - 99 AS col1 FROM tab0 AS cor0
----
1
-99
21
-99
81
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT - COUNT( * ) AS col1, 72 AS col1 FROM tab0 AS cor0
----
-3
72

skipif mysql # not compatible
query II rowsort label-2001
SELECT - COUNT ( * ) AS col1, 72 AS col1 FROM tab0 AS cor0
----
-3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT MIN( ALL 73 ) AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT MIN ( ALL 73 ) AS col1 FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL + ( 57 ) + - col0 + - - 29 + + col2 * col0 * - col2 FROM tab2 AS cor0
----
-102378
-24294
-252289

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT MIN( + - col0 ) col2, SUM( ALL + + col1 ) FROM tab1
----
-91
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2004
SELECT MIN ( + - col0 ) col2, SUM ( ALL + + col1 ) FROM tab1
----
-91
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL - MIN( + 46 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - MIN ( + 46 ) FROM tab0
----
-46

query I rowsort
SELECT DISTINCT 63 * - col0 AS col1 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT - col1 * + 31 FROM tab1
----
-1457
-155
-434

query III rowsort
SELECT * FROM tab0 WHERE - col0 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT - - col2 DIV col0 + - ( + col2 ) DIV + 95 + 79 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2009
SELECT - - col2 / col0 + - ( + col2 ) / + 95 + 79 FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col0 IS NULL
----

query I rowsort
SELECT + col1 * 21 * + col2 AS col2 FROM tab2 AS cor0
----
24633
64680
81606

query I rowsort
SELECT DISTINCT - col2 * col0 - + 67 AS col1 FROM tab1 AS cor0
----
-4963
-5082
-6255

query II rowsort
SELECT 53, col0 FROM tab0 AS cor0
----
53
15
53
87
53
97

query I rowsort
SELECT DISTINCT + 42 / col1 + - - col1 * + ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 84 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 49 - + col0 FROM tab1 AS cor0
----
-100
-134
-140

onlyif mysql # DIV for integer division: 
query II rowsort label-2017
SELECT - 68 DIV col0, + col2 col1 FROM tab2
----
-1
23
-1
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2017
SELECT - 68 / col0, + col2 col1 FROM tab2
----
-1
23
-1
40
0
58

query I rowsort
SELECT DISTINCT - 25 * + ( - ( + - col0 ) ) FROM tab0 WHERE col0 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT + 70 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + 70 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 * - 27 col2 FROM tab2
----
121203
160083
70227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT 63 * + + 49 AS col1 FROM tab2
----
3087
3087
3087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT + col1 DIV - col1 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2024
SELECT + col1 / - col1 col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT 85 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-2025
SELECT 85 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-765

query II rowsort
SELECT - col1 + - ( + 92 ), - col2 * col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 6 * + ( + col2 ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL + MAX( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + MAX ( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT DISTINCT - 35 DIV + - 64 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT - 35 / + - 64 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT - ( + - SUM( DISTINCT - + 15 ) ) FROM tab0, tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - ( + - SUM ( DISTINCT - + 15 ) ) FROM tab0, tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT COUNT( * ) + - COUNT( * ) col2, - 62 + - ( - COUNT( * ) ) FROM tab0
----
0
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2030
SELECT COUNT ( * ) + - COUNT ( * ) col2, - 62 + - ( - COUNT ( * ) ) FROM tab0
----
0
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT + COUNT( * ) + - + COUNT( * ) AS col2, + 72 FROM tab2
----
0
72

skipif mysql # not compatible
query II rowsort label-2031
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col2, + 72 FROM tab2
----
0
72

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 23 > + - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL CAST( - - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL CAST ( - - col0 AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2035
SELECT DISTINCT MAX( DISTINCT - - 17 ) + + + 6 * ( + - 27 ) AS col2 FROM tab0 AS cor0 WHERE NOT 34 * col2 * + col2 = col0 + 27 / - + CAST( col2 AS SIGNED )
----
-145

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT MAX ( DISTINCT - - 17 ) + + + 6 * ( + - 27 ) AS col2 FROM tab0 AS cor0 WHERE NOT 34 * col2 * + col2 = col0 + 27 / - + CAST ( col2 AS INTEGER )
----
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - ( + col0 ) FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 * + + col2 + - - col1 * - col1, - col1 col1 FROM tab1 AS cor0
----
4183
-47
5521
-5
8828
-14

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 15 + + 43, col2 FROM tab0
----
28
10
28
47
28
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) - + 22 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) - + 22 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT + + 34 - - COUNT( * ) * + + 32 FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + + 34 - - COUNT ( * ) * + + 32 FROM tab0 AS cor0
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + col1 + col2 col0, col0 + 96 FROM tab2 AS cor0
----
23
142
40
160
58
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ), - ( col0 ) col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2044
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2044
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 * - 83 AS col1 FROM tab0
----
1
8051
21
7221
81
1245

query I rowsort
SELECT - ( 97 ) AS col2 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT 79 DIV - MIN( DISTINCT + ( col1 ) ) AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2047
SELECT 79 / - MIN ( DISTINCT + ( col1 ) ) AS col1 FROM tab1
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 * - - col2 col2 FROM tab2
----
163840
326250
48668

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT col1 DIV - 97 * + + col0 * col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT col1 / - 97 * + + col0 * col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT - MIN( ALL col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - MIN ( ALL col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL - SUM( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - SUM ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT + 54 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col0, 36 AS col0 FROM tab1 AS cor0
----
14
36
47
36
5
36

query II rowsort
SELECT DISTINCT col2 AS col0, 73 AS col2 FROM tab0 AS cor0
----
10
73
47
73
99
73

query I rowsort
SELECT - col1 * - - 3 AS col1 FROM tab1 AS cor0
----
-141
-15
-42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 < + col1 + + + 56 * - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT + COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2057
SELECT + COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query II rowsort
SELECT ALL + col2 * - col1 AS col2, - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - COUNT( * ) * - 81 FROM tab0 AS cor0 WHERE NOT 52 - + ( + col2 ) IS NULL
----
243

skipif mysql # not compatible
query I rowsort label-2059
SELECT - COUNT ( * ) * - 81 FROM tab0 AS cor0 WHERE NOT 52 - + ( + col2 ) IS NULL
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - - COUNT( * ) + + + COUNT( ALL - 72 ) * - COUNT( * ) * + 43 - + - 66 AS col0 FROM tab1 cor0
----
-318

skipif mysql # not compatible
query I rowsort label-2060
SELECT - - COUNT ( * ) + + + COUNT ( ALL - 72 ) * - COUNT ( * ) * + 43 - + - 66 AS col0 FROM tab1 cor0
----
-318

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - - 3 + - + 54 * - + 44 * 21 NOT IN ( + col2, col2, + col2, - + 28, - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT + + col1 DIV 72 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT + + col1 / 72 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col2, + 45 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
45
40
45
58
45

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 95 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + MAX( - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2066
SELECT + MAX ( - + col0 ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + - 62 AS col2, + 44 col2 FROM tab1 cor0
----
-15
44
-48
44
-57
44

query I rowsort
SELECT DISTINCT + + col2 + + ( + + 13 ) AS col2 FROM tab1 AS cor0
----
109
72
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> col2
----

query I rowsort
SELECT 70 * + 61 AS col1 FROM tab0
----
4270
4270
4270

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT DISTINCT + ( - COUNT( * ) ) * - 48 AS col1, MIN( ALL - col0 ) FROM tab1
----
144
-91

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT + ( - COUNT ( * ) ) * - 48 AS col1, MIN ( ALL - col0 ) FROM tab1
----
144
-91

query I rowsort
SELECT ALL + col1 + - col2 * + - col0 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - COUNT( DISTINCT - col1 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2073
SELECT - COUNT ( DISTINCT - col1 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - ( - 25 ) FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT col2 + + + col1 + + ( 28 ) FROM tab1 AS cor0
----
138
143
92

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT DISTINCT + CAST( SUM( + - col0 ) AS SIGNED ) + + - 39 FROM tab2 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + CAST ( SUM ( + - col0 ) AS INTEGER ) + + - 39 FROM tab2 AS cor0
----
-224

query I rowsort
SELECT col0 * col0 + col1 FROM tab2 WHERE NULL < 35 * + ( - - ( 40 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 / + col0 * - col2 + ( + col2 ) + col0 + + col0 IN ( col1, - ( - ( - col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL col0 + col2 + + + col1 + - col2 / - col0 * + CAST( NULL AS SIGNED ) + + - col1 + ( + 70 ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL col0 + col2 + + + col1 + - col2 / - col0 * + CAST ( NULL AS INTEGER ) + + - col1 + ( + 70 ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - - 82 - - + SUM( ALL - - col2 ) FROM tab0 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-2081
SELECT - - 82 - - + SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT col1 / - CAST( - + col0 AS SIGNED ) + - col2 + + - 61 + 18 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT col1 / - CAST ( - + col0 AS INTEGER ) + - col2 + + - 61 + 18 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 12 AS col0, col0 col1 FROM tab0 AS cor0
----
-12
15
-12
87
-12
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - SUM( + 92 ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - SUM ( + 92 ) FROM tab2 AS cor0
----
-276

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2086
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( - 34 AS SIGNED ) + - ( - 92 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2086
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( - 34 AS INTEGER ) + - ( - 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL - ( - + MAX( + + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - ( - + MAX ( + + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT ALL col2 * + + 6 * + col1 FROM tab1
----
1770
19176
8064

query I rowsort
SELECT DISTINCT + ( - 34 ) FROM tab0
----
-34

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + - 26 * 45 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT + col2 * - - ( - CAST( - + col1 AS SIGNED ) ) + - 83 FROM tab1
----
1261
212
3113

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + col2 * - - ( - CAST ( - + col1 AS INTEGER ) ) + - 83 FROM tab1
----
1261
212
3113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 15 FROM tab2
----
-1005
-1155
-765

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * col2 * - + col1 IS NOT NULL
----

query I rowsort
SELECT + + ( - col2 ) + + col2 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL - - MIN( ALL 24 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - - MIN ( ALL 24 ) FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * + col2 col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT + 9 + col2 + - col0 * - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-262095
-421808
-97304

query III rowsort
SELECT * FROM tab2 WHERE + 70 <= col0
----
75
67
58

query I rowsort
SELECT - col2 + + + 47 AS col1 FROM tab2
----
-11
24
7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + col0 * CAST( + 68 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + col0 * CAST ( + 68 AS REAL )
----

query I rowsort
SELECT col0 + + - 26 * + col0 * - col2 FROM tab1
----
127347
130475
160979

query I rowsort
SELECT + 61 + 87 * - + col0 FROM tab1
----
-4376
-7334
-7856

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2105
SELECT SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = + col2 * + ( col0 ) / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2107
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST( NULL AS SIGNED ) + - col0 NOT BETWEEN NULL AND + col0 + - col1 + - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2107
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST ( NULL AS INTEGER ) + - col0 NOT BETWEEN NULL AND + col0 + - col1 + - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 2 col2, col1 FROM tab0
----
2
1
2
21
2
81

query I rowsort
SELECT - 37 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-37
-37
-37

query I rowsort
SELECT - col2 + 60 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) < col2 * + 65 * col1
----

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < col2 * + 65 * col1
----

query I rowsort
SELECT ALL - + col1 * + + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT + MAX( col1 ) * - - CAST( + COUNT( * ) AS SIGNED ) + - - SUM( ALL + - col2 ) FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-2115
SELECT + MAX ( col1 ) * - - CAST ( + COUNT ( * ) AS INTEGER ) + - - SUM ( ALL + - col2 ) FROM tab2 AS cor0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + MAX( col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2116
SELECT + MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT 70 * - + col1 >= - + col2
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + col1 * col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT - - MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - - MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 col2 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT ALL + 48 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL + 48 / + col0 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT col0 DIV + col1 AS col2 FROM tab2 WHERE NOT - - 26 * col0 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT col0 / + col1 AS col2 FROM tab2 WHERE NOT - - 26 * col0 IS NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col0 + - col1 + - + ( col1 ) col1 FROM tab0 AS cor0
----
-387
-7611
-9411

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 25 BETWEEN + ( + - col2 ) / - - 91 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT col2 / col1 + + - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT col2 / col1 + + - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - SUM( 23 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2126
SELECT - SUM ( 23 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 < + 56
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT col2 DIV + + col0 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2128
SELECT col2 / + + col0 AS col0 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT COUNT( * ) * + MIN( ALL + - 95 ) AS col2 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL + - 95 ) AS col2 FROM tab1 AS cor0
----
-285

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - 24 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2131
SELECT ALL ( - 26 ) - + - 93 * + CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL ( - 26 ) - + - 93 * + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab2
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT - + col2 DIV col0 + + col1 + - col0 DIV col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-2132
SELECT - + col2 / col0 + + col1 + - col0 / col2 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT ALL - 38 - + - col1 FROM tab2 AS cor0
----
13
29
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT ALL + 75 * + 0 DIV + + 12 - - + col1 + - - 50 FROM tab1 AS cor0
----
55
64
97

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + 75 * + 0 / + + 12 - - + col1 + - - 50 FROM tab1 AS cor0
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - MAX( DISTINCT + 21 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - MAX ( DISTINCT + 21 ) FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2138
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 = + col1
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 + - col1 * - ( + col0 ) <> ( CAST( + 41 AS SIGNED ) * - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 + - col1 * - ( + col0 ) <> ( CAST ( + 41 AS INTEGER ) * - 39 )
----
0

query I rowsort
SELECT col1 * + 21 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col1 + - 90 AS col0 FROM tab1
----
-4367
-515
-804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 94 + 76 col0 FROM tab2
----
4870
6374
7314

query I rowsort
SELECT - col0 FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE ( - 66 + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + MIN( - 49 ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-2148
SELECT + MIN ( - 49 ) AS col1 FROM tab2
----
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col1 + col1
----

query I rowsort
SELECT DISTINCT - ( + 21 ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 47 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - 43 AS col2 FROM tab0 WHERE NULL IS NULL
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + 82 IN ( col0 - - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * col2 - - col0 AS col2 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2157
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 87 * + 39 FROM tab2 cor0
----
3393
3393
3393

query I rowsort
SELECT DISTINCT 96 + + col0 FROM tab2 AS cor0
----
142
160
171

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + + 34 = ( + col2 + - col0 )
----

query I rowsort
SELECT ALL col1 * 9 AS col0 FROM tab2 AS cor0
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT MIN( - col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 - 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT MAX( DISTINCT - 57 ) * - COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2163
SELECT MAX ( DISTINCT - 57 ) * - COUNT ( * ) FROM tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + 72 * 35 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2523

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + 72 * 35 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2523

query I rowsort
SELECT DISTINCT 1 + + col1 FROM tab2
----
52
68
78

query I rowsort
SELECT DISTINCT col1 + - 21 FROM tab1 WHERE NOT - 35 * 40 + + 61 * col1 IS NULL
----
-16
-7
26

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col1 / + col0 - col0 FROM tab2 WHERE 62 > NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NULL >= 33
----

query I rowsort
SELECT ALL col1 * 47 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT - + CAST( NULL AS SIGNED ) + + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT - + CAST ( NULL AS INTEGER ) + + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2173
SELECT + + 56 + - 2 DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2173
SELECT + + 56 + - 2 / + COUNT ( * ) col0 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ( + COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0 WHERE ( + col2 ) * col1 NOT IN ( 4 + 3 )
----
9

skipif mysql # not compatible
query I rowsort label-2174
SELECT ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col2 ) * col1 NOT IN ( 4 + 3 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT ALL - col2 DIV - 13 AS col2 FROM tab0 cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - col2 / - 13 AS col2 FROM tab0 cor0
----
0
3
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - - col2 DIV + CAST( + 83 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - - col2 / + CAST ( + 83 AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT - COUNT( DISTINCT col0 ) + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT 82 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2179
SELECT - 2 + - 0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT - 2 + - 0 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT COUNT( * ) + + + 90 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) + + + 90 FROM tab2
----
93

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE ( col1 - col2 ) NOT IN ( - col1 * col0 )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + col2 col0 FROM tab0
----
110
2256
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 34 FROM tab2
----
17
33
43

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 21 + - 19 FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT COUNT( * ) * ( COUNT( * ) ) - 39 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT COUNT ( * ) * ( COUNT ( * ) ) - 39 AS col2 FROM tab1
----
-30

query I rowsort
SELECT ALL col2 * col1 - col2 AS col2 FROM tab0
----
0
200
3760

query III rowsort
SELECT * FROM tab0 WHERE + ( + col1 ) / + 63 > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + 66 - - ( - COUNT( - col2 ) ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT DISTINCT + 66 - - ( - COUNT ( - col2 ) ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 NOT IN ( - ( 62 ) * 28 )
----

query I rowsort
SELECT 81 * - ( col2 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 col0 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 98 * col1 AS col2 FROM tab0 AS cor0
----
2058
7938
98

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT + COUNT( * ) * - 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-405

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + COUNT ( * ) * - 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-405

query I rowsort
SELECT ALL - + 9 * - 52 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5bfe70ae8ece8dbd5bb80a4bc486628f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 29 BETWEEN 65 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + SUM( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 BETWEEN ( NULL ) AND 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT + SUM ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 BETWEEN ( NULL ) AND 51
----
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) * + ( + 45 ) FROM tab1 AS cor0
----
-2655
-3060
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 57 col0 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + - col2 * - - 93 + + col2 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT - col1 * + + 5 + col1 AS col2 FROM tab2 AS cor0
----
-204
-268
-308

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 51 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT col2 ) col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col2 * - 54 )
----
NULL

query I rowsort
SELECT DISTINCT + 33 * ( + 37 ) * col1 AS col1 FROM tab2 AS cor0
----
62271
81807
94017

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( - 57 * 55 * col1 - + col0 )
----

query II rowsort
SELECT - + 73, - col1 AS col2 FROM tab2 AS cor0
----
-73
-51
-73
-67
-73
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 72 IS NOT NULL OR col2 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - SUM( DISTINCT - 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - SUM ( DISTINCT - 14 ) FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - COUNT( * ) * COUNT( * ) / AVG ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT - COUNT ( * ) * COUNT ( * ) / AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 17 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + ( - - col0 ) ) > NULL
----

query I rowsort
SELECT ALL + 21 + - col0 AS col0 FROM tab0
----
-66
-76
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 55 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - ( col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 88 + + + col0 * col1 FROM tab2
----
2258
4840
4937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * - - 86 * + col1 col2 FROM tab1
----
-153596
-16340
-45752

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( 4 ) BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN 68 / 54 AND + 85 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN 68 / 54 AND + 85 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 1 * + ( - ( 27 ) ) AS col1 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - 1 + + - 7 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-8

query I rowsort
SELECT ALL - - col2 + ( col2 ) FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL + 64 * + - COUNT( * ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + 64 * + - COUNT ( * ) FROM tab1
----
-192

query I rowsort
SELECT - 4 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT DISTINCT 5 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT 5 / - + col1 AS col2 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - + 34 + MAX( ALL 52 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2230
SELECT - + 34 + MAX ( ALL 52 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT 65 + - + ( + col1 ) AS col2 FROM tab0 cor0
----
-16
44
64

query I rowsort
SELECT ( + + 79 ) + col0 + + + col0 AS col2 FROM tab1
----
181
249
261

query II rowsort
SELECT col0 AS col1, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT + col0 * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT ALL col1, + 29 + + ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
51
75
67
104
77
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 / + 96 * 76 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - + col1 col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT col0 + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 + col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2239
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab1 WHERE CAST( + + 69 AS SIGNED ) DIV + - col1 * + - ( - col2 ) IS NOT NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT col0 / - col1 AS col2 FROM tab1 WHERE CAST ( + + 69 AS INTEGER ) / + - col1 * + - ( - col2 ) IS NOT NULL
----
-1
-17
-3

query I rowsort
SELECT ALL - 7 * col1 + - 26 FROM tab2
----
-383
-495
-565

query I rowsort
SELECT ALL + 17 * + + 48 AS col0 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT DISTINCT + 19 + MIN( DISTINCT col0 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + 19 + MIN ( DISTINCT col0 ) FROM tab0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2243
SELECT col0, - col2 DIV col2 AS col0 FROM tab0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-2243
SELECT col0, - col2 / col2 AS col0 FROM tab0
----
15
-1
87
-1
97
-1

query I rowsort
SELECT DISTINCT col1 * - - 76 FROM tab2
----
3876
5092
5852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT - 3 * col0 * CAST( + col2 AS SIGNED ) * - + 31 * - 22 AS col1 FROM tab0
----
-1442430
-1780020
-19647738

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 3 * col0 * CAST ( + col2 AS INTEGER ) * - + 31 * - 22 AS col1 FROM tab0
----
-1442430
-1780020
-19647738

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MAX( - ( - 42 ) ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-2247
SELECT MAX ( - ( - 42 ) ) FROM tab0 cor0
----
42

query I rowsort
SELECT + 50 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
50
50
50

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN + 21 AND + - col2 AND NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( 81 ) - - 1 + - + col2 / + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL + COUNT( * ) * COUNT( * ) * - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT DISTINCT + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2 cor0
----
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - col1 )
----

query I rowsort
SELECT - col1 + + col1 - - col1 AS col0 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 - col2 col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( - - col0 ) + + col2 + + - col1 AS col0 FROM tab0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL + col2 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL + col2 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col1 * - + col2 * 12 AS col1 FROM tab0
----
1189
2541
45765

query I rowsort
SELECT col1 + col0 * - col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT col2 + 64 FROM tab0
----
111
163
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 20 * - col1 BETWEEN ( + col1 + - 72 + 40 ) AND + col2 * + + 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - + 51 * + - 0 col1 FROM tab0
----
-10
-47
-99

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL NOT IN ( + 93, - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT COUNT( * ) - + 43 AS col0 FROM tab1 AS cor0 WHERE col0 IN ( ( + - col2 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2267
SELECT COUNT ( * ) - + 43 AS col0 FROM tab1 AS cor0 WHERE col0 IN ( ( + - col2 ) )
----
-43

query I rowsort
SELECT - 23 - + col1 * 80 * + col1 * - + col0 FROM tab1 AS cor0 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2269
SELECT - 14 AS col1, SUM( + col2 ) * - + 30 FROM tab0 AS cor0 WHERE col2 + - 24 IS NULL
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-2269
SELECT - 14 AS col1, SUM ( + col2 ) * - + 30 FROM tab0 AS cor0 WHERE col2 + - 24 IS NULL
----
-14
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 70 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + - COUNT( * ) * - + MIN( DISTINCT + - col1 ) col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2271
SELECT ALL + - COUNT ( * ) * - + MIN ( DISTINCT + - col1 ) col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - 95 * + MIN( DISTINCT col0 ) col0 FROM tab0
----
-1425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT - 95 * + MIN ( DISTINCT col0 ) col0 FROM tab0
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT - 97 * - - COUNT( * ) AS col0 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - 97 * - - COUNT ( * ) AS col0 FROM tab1
----
-291

query I rowsort
SELECT DISTINCT col0 * - 53 FROM tab1
----
-2703
-4505
-4823

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND + + 17 <= NULL
----

query I rowsort
SELECT 9 * + col2 - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT DISTINCT - CAST( - - 83 AS SIGNED ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - CAST ( - - 83 AS INTEGER ) FROM tab1 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - + 38 DIV - col1 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + 38 / - col1 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL - COUNT( - 50 ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - COUNT ( - 50 ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT MIN( DISTINCT + + col0 ) DIV - SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT MIN ( DISTINCT + + col0 ) / - SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 98 + + - 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN col2 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT DISTINCT 35, COUNT( * ) AS col0 FROM tab2
----
35
3

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT 35, COUNT ( * ) AS col0 FROM tab2
----
35
3

query I rowsort
SELECT - 67 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT + col2 * 79 AS col2 FROM tab0 AS cor0
----
3713
7821
790

query I rowsort
SELECT ALL + - ( - 38 ) FROM tab2 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND + col0 IN ( - 11 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT ( + SUM( CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ( + SUM ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col2 * + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT COUNT( * ) * 75 + - 10 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT COUNT ( * ) * 75 + - 10 FROM tab2 AS cor0
----
215

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE 27 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col1, + col2, 20 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * + col2 * col2 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 68 AS col0 FROM tab2 WHERE - 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + ( - + 12 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + ( - + 12 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL - - 53 + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - - 53 + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL - + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT CAST( - - 55 AS SIGNED ) FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2299
SELECT CAST ( - - 55 AS INTEGER ) FROM tab1
----
55
55
55

query III rowsort
SELECT * FROM tab1 WHERE 7 * - + 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 59 + - - col1 FROM tab0
----
140
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - COUNT( - - ( + 60 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2302
SELECT - COUNT ( - - ( + 60 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 - + 62 FROM tab2 AS cor0
----
-108
-126
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - col2 * col1 - - col1 DIV - - col1 FROM tab1 AS cor0
----
-1343
-294
-3195

skipif mysql # not compatible
query I rowsort label-2304
SELECT - col2 * col1 - - col1 / - - col1 FROM tab1 AS cor0
----
-1343
-294
-3195

query II rowsort
SELECT - col1, 48 AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col2 - + 79 FROM tab0 cor0
----
-126
-178
-89

query I rowsort
SELECT DISTINCT - + col1 * - - col1 + + + 25 FROM tab2 AS cor0
----
-2576
-4464
-5904

query I rowsort
SELECT - 5 * - col1 + col1 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT ALL + 65 * + 28 FROM tab0 AS cor0
----
1820
1820
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL - col2 DIV - + col0 AS col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - col2 / - + col0 AS col1 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * - 33 AS col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT CAST( NULL AS SIGNED ) * + - MIN( DISTINCT - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT - col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT COUNT( - ( + - 78 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2314
SELECT COUNT ( - ( + - 78 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL COUNT( * ) * - 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL COUNT ( * ) * - 37 FROM tab0
----
-111

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE + ( - - col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 7 / col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - - SUM( DISTINCT + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2318
SELECT - - SUM ( DISTINCT + col0 ) FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2320
SELECT * FROM tab2 AS cor0 WHERE + - CAST( - col1 AS SIGNED ) + col0 IS NOT NULL AND + col0 * + col1 <= + col2
----

skipif mysql # not compatible
query III rowsort label-2320
SELECT * FROM tab2 AS cor0 WHERE + - CAST ( - col1 AS INTEGER ) + col0 IS NOT NULL AND + col0 * + col1 <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT COUNT( ALL - + 84 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2322
SELECT COUNT ( ALL - + 84 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + SUM( ALL - col2 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-2323
SELECT + SUM ( ALL - col2 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
468

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 71 IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + col2 * - 20 + - col0 + + col0 * + col2 AS col0 FROM tab1
----
2925
3750
4737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 - 9 + - - col1 col0 FROM tab2
----
139
200
209

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL - MAX( DISTINCT + - col0 ) + - - 43 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - MAX ( DISTINCT + - col0 ) + - - 43 FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 col2, ( + col0 ) - - col0 AS col0 FROM tab0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 col2, - col2 * + + 79 AS col0 FROM tab0
----
-11
-3713
-11
-7821
-11
-790

query I rowsort
SELECT DISTINCT - col2 + + + 31 AS col0 FROM tab0
----
-16
-68
21

query III rowsort
SELECT * FROM tab0 WHERE 72 + 10 * col1 <= NULL
----

query II rowsort
SELECT DISTINCT + 96 AS col0, col0 FROM tab2
----
96
46
96
64
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT COUNT( ALL + 35 ) + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT COUNT ( ALL + 35 ) + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col0, ( col1 ) * - 12 FROM tab1 cor0
----
51
-168
85
-60
91
-564

onlyif mysql # aggregate syntax: 
query II rowsort label-2336
SELECT - COUNT( * ), 61 col0 FROM tab0 AS cor0
----
-3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2336
SELECT - COUNT ( * ), 61 col0 FROM tab0 AS cor0
----
-3
61

query I rowsort
SELECT + 0 - + col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-2338
SELECT col2 - 98 DIV - col2 AS col0, col1 DIV 35 * + col1 FROM tab2
----
27
51
42
154
59
67

skipif mysql # not compatible
query II rowsort label-2338
SELECT col2 - 98 / - col2 AS col0, col1 / 35 * + col1 FROM tab2
----
27
51
42
154
59
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col0 FROM tab0 WHERE + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT 89, + col2 FROM tab0 AS cor0 WHERE NULL <= 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT + - 41 AS col1, + COUNT( * ) col0 FROM tab2 cor0 WHERE NOT 98 + - + col1 = + col1
----
-41
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2342
SELECT + - 41 AS col1, + COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT 98 + - + col1 = + col1
----
-41
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT - 74 * + COUNT( ALL + CAST( - 23 AS SIGNED ) ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2343
SELECT - 74 * + COUNT ( ALL + CAST ( - 23 AS INTEGER ) ) FROM tab2 AS cor0
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 3 ), 1 col1 FROM tab0 AS cor0
----
3
1
3
1
3
1

query I rowsort
SELECT - + ( - - 65 ) * + - 4 AS col0 FROM tab1 AS cor0
----
260
260
260

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2346
SELECT 50 col1, + col2 - ( + CAST( 89 AS SIGNED ) ) + col0 AS col2 FROM tab2
----
50
-20
50
15
50
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2346
SELECT 50 col1, + col2 - ( + CAST ( 89 AS INTEGER ) ) + col0 AS col2 FROM tab2
----
50
-20
50
15
50
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT 69 * + + 89 * - COUNT( * ) AS col0 FROM tab1
----
-18423

skipif mysql # not compatible
query I rowsort label-2347
SELECT 69 * + + 89 * - COUNT ( * ) AS col0 FROM tab1
----
-18423

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL 34 * COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL 34 * COUNT ( * ) FROM tab2
----
102

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN col2 AND - - 94 )
----

query II rowsort
SELECT 24 AS col1, col0 AS col2 FROM tab2 AS cor0
----
24
46
24
64
24
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 2 AS col2, - 67 col0 FROM tab1 AS cor0
----
-2
-67
-2
-67
-2
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT ALL + COUNT( * ) DIV + ( - - 38 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + COUNT ( * ) / + ( - - 38 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL SUM( - - 94 ) AS col0 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL SUM ( - - 94 ) AS col0 FROM tab2 AS cor0
----
282

query I rowsort
SELECT ALL - 43 AS col2 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL + 39 + + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 39 + + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + + col0 FROM tab0 cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col2 * - + col1 AS col2 FROM tab0 WHERE ( 1 + - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT col1 DIV + - 6 + 0 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT col1 / + - 6 + 0 FROM tab1
----
-2
-7
0

query I rowsort
SELECT - col2 + 60 * + col0 FROM tab2
----
2737
3800
4442

query I rowsort
SELECT DISTINCT 78 + + - col0 AS col2 FROM tab2
----
14
3
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT col1 DIV col1 * + + col2 * 53 AS col0 FROM tab1
----
3127
3604
5088

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT col1 / col1 * + + col2 * 53 AS col0 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT + col0 + + col0 + - - col2 + - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE col2 = ( + 95 + + + 64 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2364
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / + col1 * CAST( NULL AS SIGNED ) * 30 + + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2364
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / + col1 * CAST ( NULL AS INTEGER ) * 30 + + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col1, col1 - + col2 * - 37 * - 23 AS col2 FROM tab2 AS cor0
----
-51
-19522
-67
-49291
-77
-33963

query I rowsort
SELECT + 11 + col1 AS col0 FROM tab1 AS cor0
----
16
25
58

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, + ( col0 ), col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + - MAX( DISTINCT + + 17 ) - + SUM( 24 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2369
SELECT + - MAX ( DISTINCT + + 17 ) - + SUM ( 24 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL - MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - - col1 ) ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT - - CAST( + - 24 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - - CAST ( + - 24 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - - 28 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL + + ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + + ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT + ( + + col1 ), col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2376
SELECT - CAST( NULL AS SIGNED ) * 29, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2376
SELECT - CAST ( NULL AS INTEGER ) * 29, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT ( - ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * - 56 + 90 - - 60 FROM tab1 AS cor0
----
-130
-2482
-634

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL MIN( - - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL MIN ( - - col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT col1, 84 * + col0 - - - col2 FROM tab0
----
1
8049
21
7298
81
1213

query I rowsort
SELECT DISTINCT 72 * + 75 FROM tab2
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2383
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 col0 FROM tab0 AS cor0 WHERE NULL < col1 + + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2386
SELECT + col2 * col2 + 72 DIV 29 * + + 20 AS col1, col1 AS col0 FROM tab2
----
1640
77
3404
67
569
51

skipif mysql # not compatible
query II rowsort label-2386
SELECT + col2 * col2 + 72 / 29 * + + 20 AS col1, col1 AS col0 FROM tab2
----
1640
77
3404
67
569
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT 37 DIV 44 + + 37 + - + ( + + 49 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 37 / 44 + + 37 + - + ( + + 49 ) FROM tab2
----
-12

query I rowsort
SELECT + 23 + + - 51 + 43 AS col0 FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT CAST( + MAX( ALL 99 ) AS SIGNED ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2389
SELECT CAST ( + MAX ( ALL 99 ) AS INTEGER ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + - col1 * - ( + + col2 ) AND NULL
----

query I rowsort
SELECT ALL - - 4 AS col1 FROM tab0 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - - col0 - col2 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - 61 FROM tab0 AS cor0
----
148
158
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - + col1 + col0 + + col2 + - - 64 IS NOT NULL
----

query I rowsort
SELECT ( - 2 ) * col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - + 76 AS col1, - col2 * - col1 + + col1 FROM tab0 AS cor0
----
-76
100
-76
231
-76
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL MAX( ALL + - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL MAX ( ALL + - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - MAX( DISTINCT - + ( col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT - MAX ( DISTINCT - + ( col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT - 8 * + CAST( 63 AS SIGNED ) FROM tab1
----
-504
-504
-504

skipif mysql # not compatible
query I rowsort label-2401
SELECT - 8 * + CAST ( 63 AS INTEGER ) FROM tab1
----
-504
-504
-504

query I rowsort
SELECT ALL col0 * col1 + 17 AS col0 FROM tab1 AS cor0
----
4294
442
731

query I rowsort
SELECT DISTINCT + col1 + - - 29 + - col2 FROM tab1 AS cor0
----
-25
-53
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL COUNT( * ) + 96 AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL COUNT ( * ) + 96 AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT + col1 * - + col0 * + 15 AS col1 FROM tab2
----
-35190
-73920
-75375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT + 24 AS col1 FROM tab0 WHERE ( col2 - + - 18 / col0 + + col0 NOT IN ( + col0, + 79 + + col0 + - col0 * + + ( - + CAST( NULL AS SIGNED ) ) + - col0, col1, - col2 * - + col1 + - - 90 ) )
----

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + 24 AS col1 FROM tab0 WHERE ( col2 - + - 18 / col0 + + col0 NOT IN ( + col0, + 79 + + col0 + - col0 * + + ( - + CAST ( NULL AS INTEGER ) ) + - col0, col1, - col2 * - + col1 + - - 90 ) )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE NOT col2 + + - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + + MAX( 92 ) FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2408
SELECT + + MAX ( 92 ) FROM tab2 cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT - CAST( NULL AS SIGNED ) - 50 * + col1 / 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT - CAST ( NULL AS INTEGER ) - 50 * + col1 / 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT ALL + 61 DIV + + 22 + - col2 - - - col0 AS col0 FROM tab0
----
-194
-60
-95

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + 61 / + + 22 + - col2 - - - col0 AS col0 FROM tab0
----
-194
-60
-95

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + + col2 * 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
9

query I rowsort
SELECT - - col1 * - col2 * - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * - ( + col1 ) * - 97 col0 FROM tab0
----
114072
439992
5432

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT COUNT( DISTINCT - 30 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT COUNT ( DISTINCT - 30 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col2 + + ( - - ( 55 ) ) FROM tab0
----
102
154
65

query I rowsort
SELECT - ( - ( col0 ) ) + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + 39 * 64 FROM tab2 WHERE NOT NULL < + - col2 - + col2
----

query I rowsort
SELECT DISTINCT + col2 + - col2 * - 61 AS col0 FROM tab1 AS cor0
----
3658
4216
5952

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2421
SELECT DISTINCT * FROM tab0 WHERE + col0 * + 83 + - col2 * col1 + + + CAST( - 45 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2421
SELECT DISTINCT * FROM tab0 WHERE + col0 * + 83 + - col2 * col1 + + + CAST ( - 45 AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 76 + + col0 FROM tab0
----
-61
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT + 83 + + COUNT( - 12 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
92

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + 83 + + COUNT ( - 12 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT - 21 AS col0 FROM tab0 cor0 WHERE - col1 * + col1 <= 70 + col2 + - col0 + col1
----
-21
-21
-21

query I rowsort
SELECT ALL - ( - + col1 ) * col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col1 + - - col0 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT + MAX( ALL - 26 ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2427
SELECT + MAX ( ALL - 26 ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ( COUNT( 67 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2428
SELECT ( COUNT ( 67 ) ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col2 FROM tab0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 - - col1 < NULL
----

query I rowsort
SELECT DISTINCT ( + 32 ) + - col1 AS col0 FROM tab1
----
-15
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + SUM( DISTINCT - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT + SUM ( DISTINCT - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT - MIN( DISTINCT + ( + col0 ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - MIN ( DISTINCT + ( + col0 ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT COUNT( * ) * COUNT( - + col0 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2434
SELECT COUNT ( * ) * COUNT ( - + col0 ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col0 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL MAX( 72 ) * + + 95 AS col1 FROM tab1
----
6840

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL MAX ( 72 ) * + + 95 AS col1 FROM tab1
----
6840

query I rowsort
SELECT DISTINCT - + 24 * + + col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

query I rowsort
SELECT - - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL + - col0 * - col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT ( - - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT SUM( ALL 35 ) AS col0 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2441
SELECT SUM ( ALL 35 ) AS col0 FROM tab0 AS cor0
----
105

query I rowsort
SELECT ALL + - col2 + + col1 * + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE - + col2 * + ( col0 ) >= + col2 * col1 * - col1 + 79 * - col0 + - 11
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE col2 * - 10 / col0 + - col2 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - 47 + COUNT( * ) FROM tab1 WHERE NOT NULL > + col2
----
-47

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 47 + COUNT ( * ) FROM tab1 WHERE NOT NULL > + col2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 54 col1 FROM tab1
----
-31
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT + MAX( DISTINCT col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2447
SELECT + MAX ( DISTINCT col1 ) col0 FROM tab1
----
47

query I rowsort
SELECT + col0 * 76 AS col1 FROM tab0 AS cor0
----
1140
6612
7372

query I rowsort
SELECT + col0 + + - 9 + - 87 FROM tab1 AS cor0
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT MAX( DISTINCT 91 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
91

skipif mysql # not compatible
query I rowsort label-2450
SELECT MAX ( DISTINCT 91 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT + - COUNT( * ) col1 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-2451
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - MIN( DISTINCT + - ( - ( + - col0 ) ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - MIN ( DISTINCT + - ( - ( + - col0 ) ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE ( col0 ) NOT BETWEEN col1 * col0 AND + 47
----
-15
-87
-97

query I rowsort
SELECT ALL - 80 - + col2 AS col1 FROM tab1 AS cor0
----
-139
-148
-176

query I rowsort
SELECT DISTINCT - 90 * - col1 * - ( 69 ) AS col1 FROM tab2 AS cor0
----
-316710
-416070
-478170

query I rowsort
SELECT + 62 - - - 74 AS col1 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT - col0 - - col1 * + - col1 + - 31 + - col0 DIV col1 FROM tab2 AS cor0
----
-2678
-4596
-6024

skipif mysql # not compatible
query I rowsort label-2457
SELECT - col0 - - col1 * + - col1 + - 31 + - col0 / col1 FROM tab2 AS cor0
----
-2678
-4596
-6024

query I rowsort
SELECT ( - ( + 84 ) ) - + + col1 AS col2 FROM tab1 AS cor0
----
-131
-89
-98

query I rowsort
SELECT + - col2 * - col2 - 78 FROM tab0 AS cor0
----
2131
22
9723

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT - COUNT( * ), + 70 AS col0 FROM tab0
----
-3
70

skipif mysql # not compatible
query II rowsort label-2460
SELECT - COUNT ( * ), + 70 AS col0 FROM tab0
----
-3
70

query I rowsort
SELECT ALL + 95 * + 18 FROM tab2
----
1710
1710
1710

query II rowsort
SELECT 61, + col2 + - col1 AS col2 FROM tab1
----
61
21
61
54
61
82

query II rowsort
SELECT + col1 AS col2, col2 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - col0 * col2 + - + ( - 81 ) * + 1 FROM tab0 AS cor0
----
-624
-789
-9522

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 93 - + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL + - col1 DIV - col1 + + col1 DIV - col0 AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + - col1 / - col1 + + col1 / - col0 AS col0 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT - COUNT( * ) DIV MIN( DISTINCT - 23 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT - COUNT ( * ) / MIN ( DISTINCT - 23 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT ALL - MIN( DISTINCT - 77 ) DIV - 34 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - MIN ( DISTINCT - 77 ) / - 34 FROM tab2 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT - 53 DIV - ( + 21 ) AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 53 / - ( + 21 ) AS col2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2470
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - 1 AS SIGNED ) NOT IN ( 26 + + - col2, - col0 * - col0, - col1 )
----

skipif mysql # not compatible
query III rowsort label-2470
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - 1 AS INTEGER ) NOT IN ( 26 + + - col2, - col0 * - col0, - col1 )
----

query II rowsort
SELECT DISTINCT 34 * - 28 AS col2, - 69 FROM tab1 cor0
----
-952
-69

query II rowsort
SELECT ALL col0 + + - col2, col1 * col1 AS col2 FROM tab0 AS cor0
----
-2
1
-32
6561
77
441

query I rowsort
SELECT ALL - 13 * 80 FROM tab1 AS cor0
----
-1040
-1040
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2474
SELECT ALL + + COUNT( * ) DIV 4, - ( + 72 ) AS col2 FROM tab0 cor0
----
0
-72

skipif mysql # not compatible
query II rowsort label-2474
SELECT ALL + + COUNT ( * ) / 4, - ( + 72 ) AS col2 FROM tab0 cor0
----
0
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT DISTINCT - - COUNT( * ) + + 76 AS col0, 69 AS col0 FROM tab2 AS cor0
----
79
69

skipif mysql # not compatible
query II rowsort label-2475
SELECT DISTINCT - - COUNT ( * ) + + 76 AS col0, 69 AS col0 FROM tab2 AS cor0
----
79
69

query I rowsort
SELECT - 38 * + 57 + col2 AS col1 FROM tab0
----
-2067
-2119
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - 79 FROM tab2
----
-102
-119
-137

query I rowsort
SELECT + col1 + + 93 AS col2 FROM tab1
----
107
140
98

query I rowsort
SELECT + 96 * + 3 + 49 + 96 AS col0 FROM tab0
----
433
433
433

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 AS col0 FROM tab0
----
-100
-451
-6608

query I rowsort
SELECT - col2 * col2 * col0 + 51 FROM tab0
----
-33084
-8649
-950646

query III rowsort
SELECT * FROM tab2 WHERE - + 6 = + - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - COUNT( * ) + + 23 * COUNT( * ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - COUNT ( * ) + + 23 * COUNT ( * ) AS col1 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL COUNT( * ) * + 24 AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL COUNT ( * ) * + 24 AS col2 FROM tab1
----
72

query I rowsort
SELECT ALL + 78 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL + 78 + + 72 AS col1 FROM tab1
----
150
150
150

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab2 cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 - + + 26 col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * col0 * + ( + col0 ) * + ( col0 ) + + 22 * - + col2 + + 74 + + 99 * CAST( NULL AS SIGNED ) BETWEEN - - col2 AND + 48
----

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * col0 * + ( + col0 ) * + ( col0 ) + + 22 * - + col2 + + 74 + + 99 * CAST ( NULL AS INTEGER ) BETWEEN - - col2 AND + 48
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col1 ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + 31 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2495
SELECT + 31 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + COUNT( + col0 ) * MIN( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2496
SELECT + COUNT ( + col0 ) * MIN ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-2497
SELECT ALL + MIN( DISTINCT - + 16 ) AS col2, COUNT( ALL + + col1 ) FROM tab2 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL + MIN ( DISTINCT - + 16 ) AS col2, COUNT ( ALL + + col1 ) FROM tab2 AS cor0
----
-16
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 72 / + 57
----

query II rowsort
SELECT DISTINCT + 60 AS col0, col2 FROM tab1
----
60
59
60
68
60
96

query I rowsort
SELECT + 92 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2501
SELECT DISTINCT - - ( 19 ) * ( - ( - col1 ) ) + + - 19 AS col0, + col1 * + col2 + + col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
0
NULL
1520
NULL
380
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2501
SELECT DISTINCT - - ( 19 ) * ( - ( - col1 ) ) + + - 19 AS col0, + col1 * + col2 + + col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
0
NULL
1520
NULL
380
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL MIN( - 83 ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL MIN ( - 83 ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT col2 * + + 48 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + + 46 FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2506
SELECT ALL 95 AS col0, 47 + - - col2 DIV + col1 + col2 FROM tab1 AS cor0
----
95
116
95
117
95
149

skipif mysql # not compatible
query II rowsort label-2506
SELECT ALL 95 AS col0, 47 + - - col2 / + col1 + col2 FROM tab1 AS cor0
----
95
116
95
117
95
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + SUM( ALL - ( + 31 ) ) col0 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT + SUM ( ALL - ( + 31 ) ) col0 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT + col1 AS col2, 30 AS col1 FROM tab2 AS cor0
----
51
30
67
30
77
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 - 69 FROM tab2 AS cor0 WHERE - 0 IS NULL
----

query I rowsort
SELECT ALL + 76 + + - col2 AS col2 FROM tab0 AS cor0
----
-23
29
66

query I rowsort
SELECT - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col2 ) + col0 <= + + 51
----
15
81
47
97
1
99

query I rowsort
SELECT + - 42 FROM tab1 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
82

query I rowsort
SELECT ALL - col0 * + 88 + + + 84 FROM tab1
----
-4404
-7396
-7924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) / 24 / col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) / 24 / col0 FROM tab2
----
NULL

query I rowsort
SELECT - - col0 + + 5 AS col0 FROM tab1 AS cor0
----
56
90
96

query I rowsort
SELECT ALL + 6 + + col2 AS col1 FROM tab0
----
105
16
53

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 WHERE col2 <= NULL
----

query I rowsort
SELECT 19 * + + col2 AS col1 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT DISTINCT + col1 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + col1 / - + col1 AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT col1, - col1 + + col1 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query II rowsort
SELECT - - col1 AS col0, 90 FROM tab1 AS cor0
----
14
90
47
90
5
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2526
SELECT + ( - col0 ) * + + col1, + col1 * + col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
NULL
-4928
NULL
-5025
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT + ( - col0 ) * + + col1, + col1 * + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
NULL
-4928
NULL
-5025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - COUNT( - col1 ) + + + 29 FROM tab2 AS cor0 WHERE NOT + 19 IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-2527
SELECT - COUNT ( - col1 ) + + + 29 FROM tab2 AS cor0 WHERE NOT + 19 IS NULL
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-2528
SELECT + - 24 AS col2, + col0 * col1 - - ( 78 ) + - + 32 DIV - - ( + 9 ) - + col2 FROM tab2 AS cor0
----
-24
2398
-24
4963
-24
5042

skipif mysql # not compatible
query II rowsort label-2528
SELECT + - 24 AS col2, + col0 * col1 - - ( 78 ) + - + 32 / - - ( + 9 ) - + col2 FROM tab2 AS cor0
----
-24
2398
-24
4963
-24
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + + MAX( ALL + col1 ) col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2529
SELECT DISTINCT + + MAX ( ALL + col1 ) col2 FROM tab1 cor0
----
47

query I rowsort
SELECT + - col2 * - 32 AS col0 FROM tab1 cor0
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + - ( - COUNT( * ) ) * 55 FROM tab2 AS cor0 WHERE NOT ( + - 94 * + 21 = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT + - ( - COUNT ( * ) ) * 55 FROM tab2 AS cor0 WHERE NOT ( + - 94 * + 21 = NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col2 FROM tab2
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2533
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) + + - col0 <> + + col0
----

skipif mysql # not compatible
query III rowsort label-2533
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) + + - col0 <> + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT + - 75 + + col1 = + ( + col1 ) * - + col1
----
3

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - 75 + + col1 = + ( + col1 ) * - + col1
----
3

query I rowsort
SELECT - 80 * - 51 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT - - ( - COUNT( ALL + + col2 ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - - ( - COUNT ( ALL + + col2 ) ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 84 NOT BETWEEN col1 AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 - + 54 * + 73 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT col0 * + - CAST( NULL AS SIGNED ) / - ( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT col0 * + - CAST ( NULL AS INTEGER ) / - ( col1 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 71 + 45 AS col2 FROM tab2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL ( + MIN( ALL - col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL ( + MIN ( ALL - col2 ) ) AS col0 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col1 + - ( + col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT - + 93 AS col2, col2 * 17 * - 75, col0 AS col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + col2 + - col1 + - 60 FROM tab1 AS cor0
----
-107
-65
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT + col1 * - - ( col1 ) - + + 86 + - 43 / CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + col1 * - - ( col1 ) - + + 86 + - 43 / CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2547
SELECT + CAST( NULL AS SIGNED ) + - col1 * - col1 AS col2, + 64 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
-5568
NULL
-6208
NULL
-960

skipif mysql # not compatible
query II rowsort label-2547
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - col1 AS col2, + 64 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
-5568
NULL
-6208
NULL
-960

query I rowsort
SELECT ALL + 32 + + - 27 FROM tab1
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT + col1 DIV + ( + col1 ) + - - col2 AS col1 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2549
SELECT + col1 / + ( + col1 ) + - - col2 AS col1 FROM tab0
----
100
11
48

query I rowsort
SELECT - 91 + + - col1 FROM tab2
----
-142
-158
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL + COUNT( * ) * CAST( MIN( DISTINCT col2 ) AS SIGNED ) + 22 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + COUNT ( * ) * CAST ( MIN ( DISTINCT col2 ) AS INTEGER ) + 22 FROM tab0
----
52

query III rowsort
SELECT * FROM tab1 WHERE - 23 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT ALL - 6 + col0 DIV - + 93 col2 FROM tab0
----
-6
-6
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2553
SELECT ALL - 6 + col0 / - + 93 col2 FROM tab0
----
-6
-6
-7

query I rowsort
SELECT DISTINCT + 53 * - + 65 + + col1 FROM tab2
----
-3368
-3378
-3394

query I rowsort
SELECT col0 * + 47 AS col1 FROM tab2
----
2162
3008
3525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT - col2 col2, CAST( - 25 AS SIGNED ) FROM tab2
----
-23
-25
-40
-25
-58
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2556
SELECT - col2 col2, CAST ( - 25 AS INTEGER ) FROM tab2
----
-23
-25
-40
-25
-58
-25

query I rowsort
SELECT DISTINCT 70 / 50 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + COUNT( ALL + col0 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT + COUNT ( ALL + col0 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT + 46 - - + col0 AS col1 FROM tab0 cor0
----
133
143
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + + col1 - + + 18 * - 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 55 * 99 AS col0 FROM tab0 AS cor0
----
5445

query II rowsort
SELECT + col1 * col1, col1 FROM tab0
----
1
1
441
21
6561
81

query I rowsort
SELECT ALL 79 * + col1 FROM tab0
----
1659
6399
79

query I rowsort
SELECT ALL - 45 FROM tab0 AS cor0 WHERE + col1 * + + col2 < + col0
----

query I rowsort
SELECT ALL - + 85 AS col1 FROM tab1 cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NULL <> col2 * col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 5 + 85 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2568
SELECT DISTINCT - col2 + - + col0 - - col2 col2, - CAST( NULL AS SIGNED ) * - + 9 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 87
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2568
SELECT DISTINCT - col2 + - + col0 - - col2 col2, - CAST ( NULL AS INTEGER ) * - + 9 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * - + ( col1 ) col2 FROM tab0
----
-2079
-8019
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2570
SELECT - CAST( NULL AS DECIMAL ) * + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT - CAST ( NULL AS REAL ) * + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT ALL 9 * 12 DIV + col1 AS col1 FROM tab0
----
1
108
5

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL 9 * 12 / + col1 AS col1 FROM tab0
----
1
108
5

query II rowsort
SELECT - col0, - col2 * + + col2 AS col0 FROM tab2
----
-46
-529
-64
-1600
-75
-3364

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 * + col0 * + ( ( + col0 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 / - col0 FROM tab0 WHERE NOT col1 + 63 - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2575
SELECT DISTINCT 80 AS col2, CAST( + 32 AS SIGNED ) AS col1 FROM tab0
----
80
32

skipif mysql # not compatible
query II rowsort label-2575
SELECT DISTINCT 80 AS col2, CAST ( + 32 AS INTEGER ) AS col1 FROM tab0
----
80
32

query I rowsort
SELECT DISTINCT - 9 * - + 39 FROM tab2 AS cor0
----
351

query II rowsort
SELECT ALL - 29 AS col0, + 40 FROM tab2 cor0
----
-29
40
-29
40
-29
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT col2 AS col0, + 13 DIV + col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-2578
SELECT col2 AS col0, + 13 / + col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

query II rowsort
SELECT ALL - 79, - col0 AS col1 FROM tab0 AS cor0
----
-79
-15
-79
-87
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL COUNT( + ( 87 ) ) + + MIN( + col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL COUNT ( + ( 87 ) ) + + MIN ( + col1 ) FROM tab1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT DISTINCT - 21 DIV - 67 - MIN( ALL - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT - 21 / - 67 - MIN ( ALL - col0 ) FROM tab1
----
91

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT col1 * 55 IN ( - col1 + col1 )
----
59
68
96

query I rowsort
SELECT + col0 * 61 FROM tab0
----
5307
5917
915

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2584
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * 28 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2584
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col2 * col2 )
----

query I rowsort
SELECT col2 * 88 AS col1 FROM tab2
----
2024
3520
5104

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 55 ) IS NULL
----

query I rowsort
SELECT ALL - 91 * - 94 + + 55 AS col0 FROM tab2
----
8609
8609
8609

query I rowsort
SELECT ALL - ( + 64 ) FROM tab1
----
-64
-64
-64

query I rowsort
SELECT 9 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - ( - ( col2 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT COUNT( + col0 ) - - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2593
SELECT COUNT ( + col0 ) - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT + ( col0 ) DIV col1 - + col0 * + 23 AS col1 FROM tab0
----
-1997
-2134
-345

skipif mysql # not compatible
query I rowsort label-2594
SELECT + ( col0 ) / col1 - + col0 * + 23 AS col1 FROM tab0
----
-1997
-2134
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT MAX( + col2 ) FROM tab2 WHERE NOT - 28 / 50 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT MAX ( + col2 ) FROM tab2 WHERE NOT - 28 / 50 > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT 12 - MIN( col2 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2596
SELECT 12 - MIN ( col2 ) FROM tab2
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col0 FROM tab1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2598
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT DISTINCT + 95 + + col1 FROM tab2
----
146
162
172

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT 36 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT 36 / col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT col2 DIV 28 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2603
SELECT col2 / 28 FROM tab0
----
0
1
3

query I rowsort
SELECT DISTINCT 46 / 41 FROM tab1 WHERE NULL NOT IN ( 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 79 DIV + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT 79 / + col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + 82 * 86 AS col0 FROM tab1
----
7052
7052
7052

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - 87 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 69 FROM tab2 WHERE 4 = NULL
----

query I rowsort
SELECT - col0 + 29 * - col1 AS col0 FROM tab2
----
-1525
-2018
-2297

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL - 44 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - 44 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= 91
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * 9 col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3fe6d34542444007a6fe97bc05cd9c74

query I rowsort
SELECT + col0 + + col2 FROM tab2 AS cor0 WHERE NOT - col1 + - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT COUNT( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2616
SELECT COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT - COUNT( * ) * 39 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - COUNT ( * ) * 39 FROM tab2 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT + + col1 DIV - 48 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + + col1 / - 48 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + 36 = - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IN ( col0 * + 90 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= ( 47 + 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL CAST( 71 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
1633
2840
4118

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL CAST ( 71 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 BETWEEN 48 / col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 64 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE col0 > - 98
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - ( - 82 ) ) IS NOT NULL OR NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2627
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( + 15 * - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2627
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( + 15 * - CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT - 72 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - COUNT( * ) + + 75 col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2629
SELECT - COUNT ( * ) + + 75 col0 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT + col1 DIV col0 + col0 AS col1 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-2630
SELECT + col1 / col0 + col0 AS col1 FROM tab2
----
47
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT ( + MIN( + col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT ( + MIN ( + col0 ) ) AS col0 FROM tab2
----
46

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT + col1 + 21 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - MAX( - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - MAX ( - col2 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ( + COUNT( * ) ) FROM tab1 WHERE NOT ( col0 * + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2634
SELECT ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( col0 * + col1 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT - col1 DIV + 11 + col1 * col2 FROM tab2
----
1169
3073
3880

skipif mysql # not compatible
query I rowsort label-2635
SELECT - col1 / + 11 + col1 * col2 FROM tab2
----
1169
3073
3880

query I rowsort
SELECT col2 + - 79 AS col2 FROM tab0
----
-32
-69
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 98 + 96 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( ( + col2 ) ) + - col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col0 < - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL + col1 + + ( col1 ) FROM tab1
----
10
28
94

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON ( NULL ) BETWEEN ( NULL ) AND ( 15 ) WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT DISTINCT col0 FROM tab2 WHERE ( - CAST( 13 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT col0 FROM tab2 WHERE ( - CAST ( 13 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 45 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
45

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE NULL = ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT COUNT( DISTINCT - col0 ) FROM tab2 cor0 WHERE ( NULL ) IN ( 42 )
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT COUNT ( DISTINCT - col0 ) FROM tab2 cor0 WHERE ( NULL ) IN ( 42 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2647
SELECT * FROM tab0 AS cor0 WHERE + CAST( - - col2 AS SIGNED ) < - col2 + col0 * 2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2647
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - - col2 AS INTEGER ) < - col2 + col0 * 2
----
87
21
10

query I rowsort
SELECT + 23 + + 63 FROM tab0 AS cor0 WHERE NULL > col2 * - 10 * + ( col2 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - + COUNT( * ) + + 46 AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + COUNT ( * ) + + 46 AS col2 FROM tab0 AS cor0
----
43

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63, col0 col0 FROM tab2 cor0
----
63
46
63
64
63
75

query I rowsort
SELECT DISTINCT col1 + + + col2 + - col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
2233
255
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - 65 DIV - col1 col2 FROM tab1
----
1
13
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT - 65 / - col1 col2 FROM tab1
----
1
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL + SUM( DISTINCT - col0 ) * AVG ( - col1 ) AS col1 FROM tab2 WHERE ( NULL ) IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + SUM ( DISTINCT - col0 ) * AVG ( - col1 ) AS col1 FROM tab2 WHERE ( NULL ) IN ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col2 - - ( col1 ) + + col1 / col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 + - - 92 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL - 72 - + COUNT( * ) AS col2, 59 AS col1 FROM tab0
----
-75
59

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL - 72 - + COUNT ( * ) AS col2, 59 AS col1 FROM tab0
----
-75
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 27 * 42 FROM tab2 AS cor0
----
1134
1134
1134

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < ( NULL ) AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - 6 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 6 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - 4 * + + ( col0 ) * + col2 + col0 - 13 FROM tab0 AS cor0
----
-2818
-3406
-38328

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 87 ) <> + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + ( + 37 ) AS col2 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT SUM( ALL + + 23 ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT SUM ( ALL + + 23 ) AS col2 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL 23 * - 79 FROM tab0 WHERE col1 * col1 / - 79 + col1 + + 72 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 28 ) = 0 + - 54 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab0 WHERE NOT 69 IN ( + + col2 / - - 10 )
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) BETWEEN - ( 45 ) + + - col1 + + col2 * 52 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - col1 FROM tab1 WHERE NOT + 98 * - col1 - + col1 >= - col0 + + 83 * col2
----
-425
-4277
-714

query I rowsort
SELECT - col0 * + col1 - + - col2 FROM tab2 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND 38 * col2
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND 38 * col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT - + ( + col1 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - + ( + col1 ) / + col1 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT DISTINCT col0 DIV - 90 col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT DISTINCT col0 / - 90 col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - - ( - col2 ) + 70 FROM tab2 AS cor0
----
12
30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL MAX( DISTINCT - 17 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL MAX ( DISTINCT - 17 ) FROM tab1 AS cor0
----
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col2 / + 15 + - 18 ) IS NULL )
----

query I rowsort
SELECT - ( 53 ) - - col0 + - 90 AS col2 FROM tab0 AS cor0
----
-128
-46
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 * 58 col1 FROM tab1 AS cor0
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL - COUNT( + col0 ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - COUNT ( + col0 ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab2 AS cor0 WHERE ( 89 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) + - col2 BETWEEN NULL AND NULL OR NULL BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT col2 + + - col1 DIV + col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-2686
SELECT col2 + + - col1 / + col0 FROM tab0
----
10
42
99

query I rowsort
SELECT DISTINCT + col2 + - - col2 + - col1 * + col1 AS col0 FROM tab1
----
-2073
-4
93

query I rowsort
SELECT ALL - 44 + - col1 * - + col0 AS col2 FROM tab0
----
1171
1783
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT MAX( DISTINCT + - 65 ) AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT MAX ( DISTINCT + - 65 ) AS col2 FROM tab1
----
-65

query I rowsort
SELECT DISTINCT + ( 86 ) FROM tab0 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + - MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2692
SELECT + - MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 70 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT 45 * ( 40 ) * ( 1 ) - + MIN( ALL col1 ) DIV 10 FROM tab0
----
1800

skipif mysql # not compatible
query I rowsort label-2694
SELECT 45 * ( 40 ) * ( 1 ) - + MIN ( ALL col1 ) / 10 FROM tab0
----
1800

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT col0 * + - 86 AS col1 FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT - 15 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL <> - + 75
----

query I rowsort
SELECT col2 * 13 AS col1 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( + 8 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( + 8 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL 9 + + + CAST( NULL AS SIGNED ) - - col0 + - 6 * - ( - col0 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 9 + + + CAST ( NULL AS INTEGER ) - - col0 + - 6 * - ( - col0 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 * 75 + ( col0 ), col1 FROM tab1 AS cor0
----
-3774
14
-6290
5
-6734
47

query I rowsort
SELECT DISTINCT + col1 + 7 FROM tab0
----
28
8
88

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE - - col2 * - 44 NOT BETWEEN + col0 AND NULL
----
99
99
99

query I rowsort
SELECT col1 + 36 AS col2 FROM tab1
----
41
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT COUNT( * ) + MIN( DISTINCT + + ( - col2 ) ) + + - 88 AS col1 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-2707
SELECT COUNT ( * ) + MIN ( DISTINCT + + ( - col2 ) ) + + - 88 AS col1 FROM tab1
----
-181

query I rowsort
SELECT ALL 13 * col1 FROM tab1
----
182
611
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT ALL col2 DIV - - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL col2 / - - col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT - - ( - + CAST( NULL AS SIGNED ) ) * 87 * + col2 + 86 - + - col1 * col2 / + - ( col0 ) / - 0 - - 90 * col0 FROM tab2 WHERE NULL > - 81
----

skipif mysql # not compatible
query I rowsort label-2710
SELECT - - ( - + CAST ( NULL AS INTEGER ) ) * 87 * + col2 + 86 - + - col1 * col2 / + - ( col0 ) / - 0 - - 90 * col0 FROM tab2 WHERE NULL > - 81
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2711
SELECT ALL - 37 + - + CAST( NULL AS DECIMAL ) col0 FROM tab1 WHERE col1 NOT BETWEEN ( ( + - col1 ) ) AND - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2711
SELECT ALL - 37 + - + CAST ( NULL AS REAL ) col0 FROM tab1 WHERE col1 NOT BETWEEN ( ( + - col1 ) ) AND - col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 87 + - col1 FROM tab1 AS cor0
----
124
131
167

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT col1 - 29 DIV - col2 AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT col1 - 29 / - col2 AS col1 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) * - + col0 * - 50 + + col2 IS NULL
----

query I rowsort
SELECT + 68 FROM tab1 AS cor0 WHERE 48 IS NOT NULL
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT - 97 DIV - + col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-2717
SELECT - 97 / - + col2 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT DISTINCT + + 92 AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT COUNT( + 24 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT COUNT ( + 24 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - + col0 ) + - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + + MIN( + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2721
SELECT + + MIN ( + col0 ) AS col1 FROM tab2 cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + 71 * col0 <= ( + - 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + + col2 * + + 12 * - - col0 FROM tab2
----
-1966080
-3915000
-584016

query I rowsort
SELECT + 53 * col0 * - 26 FROM tab2
----
-103350
-63388
-88192

onlyif mysql # DIV for integer division: 
query II rowsort label-2725
SELECT DISTINCT col0 DIV + + col1 col1, col1 * - + col1 + - 26 * - 50 AS col0 FROM tab1
----
1
-909
17
1275
3
1104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2725
SELECT DISTINCT col0 / + + col1 col1, col1 * - + col1 + - 26 * - 50 AS col0 FROM tab1
----
1
-909
17
1275
3
1104

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = col2 / col2 + col0
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 14 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col2 ) BETWEEN col1 * - + col0 AND NULL
----

query I rowsort
SELECT ALL + 50 AS col2 FROM tab1 AS cor0 WHERE + col0 * - + ( + 68 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + + col2 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT AVG ( DISTINCT 17 ) + - COUNT( * ) + - - 27 AS col0 FROM tab2 WHERE NOT 33 NOT IN ( - 92 + + + col0 * - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT AVG ( DISTINCT 17 ) + - COUNT ( * ) + - - 27 AS col0 FROM tab2 WHERE NOT 33 NOT IN ( - 92 + + + col0 * - 8 )
----
NULL

query I rowsort
SELECT DISTINCT 37 + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT DISTINCT + CAST( - 83 AS SIGNED ) AS col2 FROM tab2 WHERE - + 68 / 36 + + 88 NOT BETWEEN + col2 AND + col2 * - col2
----
-83

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + CAST ( - 83 AS INTEGER ) AS col2 FROM tab2 WHERE - + 68 / 36 + + 88 NOT BETWEEN + col2 AND + col2 * - col2
----
-83

query II rowsort
SELECT + - col0 AS col1, - col0 * - ( - 64 ) FROM tab1 AS cor0
----
-51
-3264
-85
-5440
-91
-5824

query I rowsort
SELECT - + ( - + 50 ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT col2 * - - 73 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT col2 * - - 73 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 74 ) FROM tab2 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT COUNT( * ) + + + 55 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT DISTINCT COUNT ( * ) + + + 55 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT DISTINCT + + 0 * + + col2 + 32 AS col0 FROM tab2 AS cor0
----
32

query II rowsort
SELECT + col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col0 AND ( - 60 + - 38 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 59 ) * + + 47 + + - 88 FROM tab1
----
2685
2685
2685

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT SUM( + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2743
SELECT SUM ( + - col0 ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT + col0 * - 27 * - ( + 86 ) * - col1 + - col2 FROM tab0
----
-225333
-2821277
-4242304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT DISTINCT - CAST( - 92 AS SIGNED ) * - col2 * - col1 FROM tab0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) * - col2 * - col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL + COUNT( * ) + COUNT( * ) + + + CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( * ) + + 13 / - 90 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) + + 13 / - 90 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + col2 - - - col0 AS col0 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT + 22 + + col1 FROM tab1 AS cor0
----
27
36
69

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = 1
----

query I rowsort
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 25 ) OR NULL NOT IN ( - col0 / - 22, col2 * - - col0 / 8 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT + 68 DIV COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2751
SELECT + 68 / COUNT ( * ) FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2752
SELECT + 82 + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 WHERE NOT col2 + + col1 NOT BETWEEN col1 + col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT + 82 + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 WHERE NOT col2 + + col1 NOT BETWEEN col1 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( 29 + + - 10 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * + 30 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * + 30 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * - - 60 + + col1 - - + 46 * + + 85 col0 FROM tab2 AS cor0
----
205817
35701
99987

query II rowsort
SELECT DISTINCT col1 AS col1, 43 FROM tab1
----
14
43
47
43
5
43

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + 67 IS NULL
----

query II rowsort
SELECT - 98 AS col2, col1 AS col0 FROM tab0
----
-98
1
-98
21
-98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT SUM( ALL + 27 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT SUM ( ALL + 27 ) FROM tab1
----
81

query II rowsort
SELECT ALL 77 AS col1, 70 AS col2 FROM tab0
----
77
70
77
70
77
70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 50 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL COUNT( * ) * + 82 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL COUNT ( * ) * + 82 FROM tab1 AS cor0
----
246

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * - 2 = + 36 + 78 + + - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 96 * - - col0 + 94 + col2 FROM tab1 AS cor0 WHERE 87 IN ( col1 - - col0, col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2767
SELECT DISTINCT 45 + - + 32, + CAST( + col1 AS SIGNED ) * - 48 * + - col2 AS col1 FROM tab1 AS cor0
----
13
14160
13
153408
13
64512

skipif mysql # not compatible
query II rowsort label-2767
SELECT DISTINCT 45 + - + 32, + CAST ( + col1 AS INTEGER ) * - 48 * + - col2 AS col1 FROM tab1 AS cor0
----
13
14160
13
153408
13
64512

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2768
SELECT - col0 + + col2 + - - col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT - col0 + + col2 + - - col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + + col0 ) + - + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - 58 * + col0 + col1 AS col0 FROM tab2
----
-2617
-3635
-4283

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT DISTINCT SUM( DISTINCT + ( - col0 ) ) AS col1, + 92 FROM tab1
----
-227
92

skipif mysql # not compatible
query II rowsort label-2771
SELECT DISTINCT SUM ( DISTINCT + ( - col0 ) ) AS col1, + 92 FROM tab1
----
-227
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 80 col0 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT ALL - col2 + ( ( - 48 ) ) FROM tab1
----
-107
-116
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + COUNT( ALL - col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2774
SELECT + COUNT ( ALL - col0 ) col2 FROM tab1
----
3

query I rowsort
SELECT 57 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query II rowsort
SELECT + col2 AS col0, + col1 * + - col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

query II rowsort
SELECT - col0 AS col0, - col1 AS col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT DISTINCT - + ( 11 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2779
SELECT * FROM tab2 AS cor0 WHERE col1 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2779
SELECT * FROM tab2 AS cor0 WHERE col1 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL 86 + COUNT( * ) AS col0 FROM tab2 cor0
----
89

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL 86 + COUNT ( * ) AS col0 FROM tab2 cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 - col0 col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT 23 + col0 AS col0, - col1 FROM tab0
----
110
-21
120
-1
38
-81

query I rowsort
SELECT ALL + col1 - - col1 * col1 FROM tab1
----
210
2256
30

query I rowsort
SELECT DISTINCT 52 * col1 FROM tab2 cor0
----
2652
3484
4004

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT + col0 BETWEEN NULL AND ( - 12 * 52 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT - - MAX( - - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - - MAX ( - - col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - col2 ) col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT col0 * + + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT DISTINCT + - col0 * col1 / - 96, 56 * 9 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 50 ) * - 62 AS col1 FROM tab0 AS cor0
----
-3100

query I rowsort
SELECT + col1 * 24 FROM tab0 AS cor0
----
1944
24
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL + - CAST( NULL AS SIGNED ) * + - 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + - CAST ( NULL AS INTEGER ) * + - 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT - CAST( NULL AS SIGNED ) * - ( + - 3 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT - CAST ( NULL AS INTEGER ) * - ( + - 3 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 32 * - - col1 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
3007
38865
58377

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2796
SELECT col1, CAST( + 32 AS SIGNED ) FROM tab2 cor0
----
51
32
67
32
77
32

skipif mysql # not compatible
query II rowsort label-2796
SELECT col1, CAST ( + 32 AS INTEGER ) FROM tab2 cor0
----
51
32
67
32
77
32

onlyif mysql # DIV for integer division: 
query II rowsort label-2797
SELECT ALL col0 col1, + col2 DIV col2 + + - col2 AS col1 FROM tab2
----
46
-22
64
-39
75
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2797
SELECT ALL col0 col1, + col2 / col2 + + - col2 AS col1 FROM tab2
----
46
-22
64
-39
75
-57

query II rowsort
SELECT DISTINCT col2 AS col0, - 24 FROM tab1
----
59
-24
68
-24
96
-24

query I rowsort
SELECT - + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE col0 <> 4 * - - col1 + - ( - + col0 ) * + 81
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + - COUNT( * ) * - + 99 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2800
SELECT + - COUNT ( * ) * - + 99 FROM tab2 AS cor0
----
297

query II rowsort
SELECT + 56 AS col1, 51 FROM tab2 AS cor0
----
56
51
56
51
56
51

query I rowsort
SELECT - 33 * - + 34 * col1 FROM tab0 cor0
----
1122
23562
90882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT + 37 DIV + COUNT( * ) AS col1 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 37 / + COUNT ( * ) AS col1 FROM tab2 cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 AS col1, + 87 col0 FROM tab2 AS cor0
----
4
87
4
87
4
87

onlyif mysql # DIV for integer division: 
query II rowsort label-2805
SELECT - - 38, ( col1 ) * 60 DIV - - 67 AS col1 FROM tab1 AS cor0
----
38
12
38
4
38
42

skipif mysql # not compatible
query II rowsort label-2805
SELECT - - 38, ( col1 ) * 60 / - - 67 AS col1 FROM tab1 AS cor0
----
38
12
38
4
38
42

query I rowsort
SELECT + - 39 AS col0 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL + COUNT( * ) + - 63 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + COUNT ( * ) + - 63 FROM tab0
----
-60

query I rowsort
SELECT ALL - col0 - - - ( col2 ) FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT 70 + COUNT( ALL col1 ) col0 FROM tab2
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT DISTINCT 70 + COUNT ( ALL col1 ) col0 FROM tab2
----
73

query I rowsort
SELECT col2 + + ( - col1 ) + + col2 AS col0 FROM tab1
----
113
178
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 34
----

query II rowsort
SELECT DISTINCT + col0 - + 86 AS col0, + 81 AS col0 FROM tab0 AS cor0
----
-71
81
1
81
11
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - col0 <= + + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + + COUNT( * ) + 88 * + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2814
SELECT + + COUNT ( * ) + 88 * + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
267

query I rowsort
SELECT DISTINCT col2 - + col0 + - col0 FROM tab2 AS cor0
----
-69
-88
-92

query I rowsort
SELECT DISTINCT - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col2 * 40 * - col1 FROM tab0
----
-152280
-3960
-8400

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT + 55 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 55 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + + ( - 95 ) FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2820
SELECT - MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT MIN( col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT SUM( ALL + + col0 ) * 19 + + - COUNT( DISTINCT + 77 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3780

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT SUM ( ALL + + col0 ) * 19 + + - COUNT ( DISTINCT + 77 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3780

onlyif mysql # DIV for integer division: 
query II rowsort label-2823
SELECT DISTINCT + col1 AS col2, col2 DIV - col1 FROM tab0 AS cor0
----
1
-99
21
0
81
0

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT + col1 AS col2, col2 / - col1 FROM tab0 AS cor0
----
1
-99
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL MIN( ALL + 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL MIN ( ALL + 4 ) FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT - COUNT( ALL + + 39 ) AS col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - COUNT ( ALL + + 39 ) AS col1 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT 81 * + - col2 FROM tab2
----
-1863
-3240
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT - col2 DIV - 79 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2827
SELECT - col2 / - 79 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * - + ( 17 ) FROM tab2
----
-1139
-1309
-867

query III rowsort
SELECT ALL * FROM tab2 WHERE - 18 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + 37 ) = - 36
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 92 + + col2 AS col2 FROM tab1 cor0
----
151
160
188

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + + MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + + MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - + 98 + + 22 AS col2 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT DISTINCT col0 * - 41 + 44 DIV - col0 - + col1 + - + 61 FROM tab2 cor0
----
-1998
-2762
-3203

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT col0 * - 41 + 44 / - col0 - + col1 + - + 61 FROM tab2 cor0
----
-1998
-2762
-3203

query I rowsort
SELECT DISTINCT + ( - 32 ) + 10 AS col1 FROM tab1
----
-22

query II rowsort
SELECT - col1 AS col1, 73 + + col2 FROM tab1
----
-14
169
-47
141
-5
132

query I rowsort
SELECT - col2 * 27 AS col0 FROM tab2
----
-1080
-1566
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2840
SELECT ALL + + SUM( DISTINCT CAST( - + ( - 9 ) AS SIGNED ) ) AS col2, - 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL + + SUM ( DISTINCT CAST ( - + ( - 9 ) AS INTEGER ) ) AS col2, - 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
-89

query I rowsort
SELECT ALL + col2 * 59 * - - 53 - col0 FROM tab0
----
146954
309476
31183

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT MIN( ALL - col2 ) - COUNT( * ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT MIN ( ALL - col2 ) - COUNT ( * ) AS col0 FROM tab2
----
-61

query I rowsort
SELECT DISTINCT - col2 - 16 AS col1 FROM tab2
----
-39
-56
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) - - + 4 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) - - + 4 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL - COUNT( DISTINCT 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - COUNT ( DISTINCT 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - 61 * + - ( + + 35 ) * + + 0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + - SUM( DISTINCT 14 ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2849
SELECT + - SUM ( DISTINCT 14 ) FROM tab2 cor0
----
-14

query I rowsort
SELECT - - ( + ( - - col0 ) ) * + 87 FROM tab1 AS cor0
----
4437
7395
7917

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < 17
----

query I rowsort
SELECT + 66 * - col1 * - 33 AS col2 FROM tab0
----
176418
2178
45738

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 / + col1
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - + 17 IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - 50 AS col0, col2 AS col2 FROM tab2
----
-50
23
-50
40
-50
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT + COUNT( * ) * 54 AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + COUNT ( * ) * 54 AS col0 FROM tab0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + CAST( + 67 AS SIGNED ) FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + CAST ( + 67 AS INTEGER ) FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT 83 * - - 85 + 79 + + + COUNT( * ) AS col2 FROM tab1 cor0
----
7137

skipif mysql # not compatible
query I rowsort label-2858
SELECT 83 * - - 85 + 79 + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
7137

query III rowsort
SELECT * FROM tab2 WHERE - - 9 < - 34
----

query I rowsort
SELECT ALL 58 + + + col1 + - col1 + - + 79 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 86 * - 86 FROM tab1
----
-7396

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2862
SELECT + col0 / + + ( + CAST( + col1 AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + ( - col0 ) * + + 84 + - col1
----

skipif mysql # not compatible
query I rowsort label-2862
SELECT + col0 / + + ( + CAST ( + col1 AS REAL ) ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + ( - col0 ) * + + 84 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 IN ( 61 )
----

query I rowsort
SELECT - 85 * + col0 AS col0 FROM tab1 cor0
----
-4335
-7225
-7735

query I rowsort
SELECT + 69 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
69
69
69

query I rowsort
SELECT + col0 * - + 34 FROM tab2 AS cor0
----
-1564
-2176
-2550

query I rowsort
SELECT DISTINCT + 7 - - 4 + - col0 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * + ( + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2869
SELECT ALL - CAST( - 95 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
1
4
95

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - CAST ( - 95 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
1
4
95

query I rowsort
SELECT + ( col2 ) * 44 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT - col2 - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-34
100
2141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 35 col1 FROM tab2 cor0
----
-12
23
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT + CAST( NULL AS SIGNED ) * + 45 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2875
SELECT + CAST ( NULL AS INTEGER ) * + 45 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 88 * + col1 + + + col0 + col0 FROM tab1
----
1334
4318
610

query I rowsort
SELECT - 46 * - col2 + - 11 - col1 - + col1 * + 55 FROM tab1
----
2423
3621
485

query I rowsort
SELECT + - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - - COUNT( ALL + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - - COUNT ( ALL + - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 87 * + - 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64273c200086b1f9b00b1a4b63606eb

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 NOT IN ( - + col1, + ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT + 75 * col1 * - CAST( - + ( + col1 ) AS SIGNED ) FROM tab1
----
14700
165675
1875

skipif mysql # not compatible
query I rowsort label-2883
SELECT + 75 * col1 * - CAST ( - + ( + col1 ) AS INTEGER ) FROM tab1
----
14700
165675
1875

query II rowsort
SELECT ALL + col0 AS col0, + col0 * + + col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 44 > + - col2
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 col2, + col1 FROM tab1 cor0
----
77
14
77
47
77
5

query II rowsort
SELECT ALL 34 AS col2, 15 FROM tab1 AS cor0
----
34
15
34
15
34
15

query I rowsort
SELECT col1 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT DISTINCT SUM( DISTINCT col0 ), - ( + 61 ) AS col1 FROM tab1
----
227
-61

skipif mysql # not compatible
query II rowsort label-2890
SELECT DISTINCT SUM ( DISTINCT col0 ), - ( + 61 ) AS col1 FROM tab1
----
227
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL - ( + + ( + - col1 ) ) DIV + + col1 + col0 + col0 * 63 + - - 25 FROM tab2
----
2970
4122
4826

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - ( + + ( + - col1 ) ) / + + col1 + col0 + col0 * 63 + - - 25 FROM tab2
----
2970
4122
4826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab1
----
37

query I rowsort
SELECT DISTINCT - 35 + col1 FROM tab1
----
-21
-30
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT col2 + + + CAST( - 68 AS SIGNED ) AS col1 FROM tab2
----
-10
-28
-45

skipif mysql # not compatible
query I rowsort label-2894
SELECT col2 + + + CAST ( - 68 AS INTEGER ) AS col1 FROM tab2
----
-10
-28
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT MIN( + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2895
SELECT MIN ( + 15 ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT MAX( + col1 ) * 65 FROM tab0
----
5265

skipif mysql # not compatible
query I rowsort label-2896
SELECT MAX ( + col1 ) * 65 FROM tab0
----
5265

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + - col0 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 82 * - + 98 FROM tab1
----
8036
8036
8036

query I rowsort
SELECT ALL - 39 AS col0 FROM tab0 AS cor0 WHERE - ( + col0 ) * + + col1 NOT BETWEEN ( NULL ) AND - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT - - MIN( + 41 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - - MIN ( + 41 ) FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT col1 * + 51 + + CAST( + 38 AS SIGNED ) FROM tab1 cor0
----
2435
293
752

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT col1 * + 51 + + CAST ( + 38 AS INTEGER ) FROM tab1 cor0
----
2435
293
752

query I rowsort
SELECT ALL 0 + - 37 * + 83 FROM tab1 AS cor0
----
-3071
-3071
-3071

query I rowsort
SELECT DISTINCT - 30 - - + col2 AS col1 FROM tab0
----
-20
17
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT - + col2 + 45 * col2 DIV + - col0 AS col1 FROM tab1 AS cor0
----
-101
-180
-90

skipif mysql # not compatible
query I rowsort label-2904
SELECT - + col2 + 45 * col2 / + - col0 AS col1 FROM tab1 AS cor0
----
-101
-180
-90

query I rowsort
SELECT ALL col2 * + col2 * col2 * col0 FROM tab2 AS cor0
----
14633400
4096000
559682

query I rowsort
SELECT col2 * - col1 - - + 90 + - + col0 * 35 FROM tab1 AS cor0
----
-3039
-3180
-6291

query II rowsort
SELECT - 3 AS col1, 30 FROM tab0 AS cor0
----
-3
30
-3
30
-3
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 * - col0 AS col1, + 88 FROM tab1
----
-2601
88
-7225
88
-8281
88

query II rowsort
SELECT DISTINCT 74 + col2, ( - - col0 ) AS col2 FROM tab0
----
121
15
173
97
84
87

query III rowsort
SELECT * FROM tab2 WHERE - 7 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - 1 * - MIN( ALL 60 ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 1 * - MIN ( ALL 60 ) AS col0 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT + 18, MIN( ALL col2 ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
18
59

skipif mysql # not compatible
query II rowsort label-2913
SELECT + 18, MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
18
59

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col1 ) + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + SUM( col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2915
SELECT + SUM ( col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT - MIN( ALL - 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - MIN ( ALL - 86 ) FROM tab1
----
86

query II rowsort
SELECT ALL ( col1 ), 11 + 54 + + + 79 * - 80 AS col2 FROM tab0 AS cor0
----
1
-6255
21
-6255
81
-6255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT CAST( NULL AS SIGNED ) * + 93 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT CAST ( NULL AS INTEGER ) * + 93 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT SUM( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT SUM ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query I rowsort
SELECT + col0 * + col1 + - 63 AS col2 FROM tab1 AS cor0
----
362
4214
651

query I rowsort
SELECT ALL col2 * + 62 FROM tab2
----
1426
2480
3596

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT + + col0 DIV + 87 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT + + col0 / + 87 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT + CAST( + - AVG ( col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2923
SELECT + CAST ( + - AVG ( col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-34

query II rowsort
SELECT - col1, 73 + - + col2 * col0 * 82 * col2 + + - 65 AS col2 FROM tab1 AS cor0
----
-14
-38541304
-47
-34504280
-5
-24262562

query I rowsort
SELECT ALL - 93 * + + 93 AS col2 FROM tab2 AS cor0
----
-8649
-8649
-8649

query I rowsort
SELECT DISTINCT + - ( + + 10 ) AS col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 3 + - + col0 * + - 23 * - col0 AS col2 FROM tab0 AS cor0
----
-174090
-216410
-5178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2928
SELECT + ( - ( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT + ( - ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT CAST( + + 15 AS SIGNED ) AS col0 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-2929
SELECT CAST ( + + 15 AS INTEGER ) AS col0 FROM tab1
----
15
15
15

query I rowsort
SELECT ALL 80 + + col2 AS col0 FROM tab2
----
103
120
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL col2 + - CAST( + - col0 AS SIGNED ) col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT ALL col2 + - CAST ( + - col0 AS INTEGER ) col1 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL COUNT( - CAST( CAST( - - 66 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL COUNT ( - CAST ( CAST ( - - 66 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT - 97 + + + col1 FROM tab0 AS cor0
----
-16
-76
-96

query I rowsort
SELECT DISTINCT 93 + - + col2 * + + col0 * - col2 AS col2 FROM tab1
----
295978
420877
470109

query II rowsort
SELECT DISTINCT + col2 + - col1, ( col1 ) * - + 80 + 22 * 72 + - col2 AS col0 FROM tab1
----
21
-2244
54
1125
82
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL - ( - ( - 98 ) ) + + + CAST( NULL AS SIGNED ) + + - COUNT( * ) * 16 - - 6 / - AVG ( + 28 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL - ( - ( - 98 ) ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * 16 - - 6 / - AVG ( + 28 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + COUNT( * ) * + MIN( - 20 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + COUNT ( * ) * + MIN ( - 20 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 + - 68 FROM tab2 AS cor0 WHERE NOT col0 + - col0 - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + + COUNT( * ) * - 30 - - + COUNT( * ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2939
SELECT + + COUNT ( * ) * - 30 - - + COUNT ( * ) FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + COUNT( * ) - + 99 AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2940
SELECT + COUNT ( * ) - + 99 AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT 74 - - COUNT( * ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2941
SELECT 74 - - COUNT ( * ) FROM tab1 AS cor0
----
77

query I rowsort
SELECT - - col0 * + col1 - col1 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT - COUNT( + - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - COUNT ( + - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + - - col0 FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT + col2 - CAST( 49 AS SIGNED ) col1 FROM tab1 AS cor0
----
10
19
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2945
SELECT + col2 - CAST ( 49 AS INTEGER ) col1 FROM tab1 AS cor0
----
10
19
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 49 * + col0 + - + 0 + - - col0 + - 65 * 75 col1 FROM tab0 AS cor0
----
-25
-4125
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL + COUNT( * ) * MAX( - 77 ) FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + COUNT ( * ) * MAX ( - 77 ) FROM tab1 AS cor0
----
-231

query I rowsort
SELECT DISTINCT + col0 * col2 * - col1 + - col1 FROM tab0 AS cor0
----
-18291
-57186
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL + COUNT( DISTINCT col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2949
SELECT ALL + COUNT ( DISTINCT col0 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + 42 * - COUNT( * ) AS col1 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + 42 * - COUNT ( * ) AS col1 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 * - col1 IS NULL OR + col0 * - col2 >= NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 * - col1 IS NULL OR + col0 * - col2 >= NULL
----
-3

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2954
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col2 BETWEEN - - 54 * CAST( NULL AS SIGNED ) AND - 56
----

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col2 BETWEEN - - 54 * CAST ( NULL AS INTEGER ) AND - 56
----

query I rowsort
SELECT DISTINCT - - 65 FROM tab0 AS cor0 WHERE - 77 NOT BETWEEN col2 + col0 AND + + 99
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT + col1 * - - col2 DIV + col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2957
SELECT + col1 * - - col2 / + col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2958
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < - 57 * CAST( NULL AS SIGNED ) + - - col2
----

skipif mysql # not compatible
query III rowsort label-2958
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < - 57 * CAST ( NULL AS INTEGER ) + - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT - - 14 DIV - MAX( + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT - - 14 / - MAX ( + col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2960
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 62 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + - 81 + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2962
SELECT + - 81 + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT MAX( + ( - + col2 ) ) + 46 AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT MAX ( + ( - + col2 ) ) + 46 AS col2 FROM tab1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL - + col0 AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND + - CAST( ( + col1 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - + col0 AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND + - CAST ( ( + col1 ) AS INTEGER )
----

query I rowsort
SELECT col1 * - - col1 + col0 FROM tab0
----
528
6576
98

query I rowsort
SELECT - 90 * + - 50 AS col0 FROM tab2
----
4500
4500
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT ALL SUM( DISTINCT - - 64 ) + - + ( - COUNT( DISTINCT 60 ) ), 67 + + 56 AS col2 FROM tab2
----
65
123

skipif mysql # not compatible
query II rowsort label-2967
SELECT ALL SUM ( DISTINCT - - 64 ) + - + ( - COUNT ( DISTINCT 60 ) ), 67 + + 56 AS col2 FROM tab2
----
65
123

query I rowsort
SELECT ALL + ( col2 ) * 89 AS col0 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT + ( + ( - + 67 ) ) FROM tab0
----
-67
-67
-67

query I rowsort
SELECT ALL ( - - col0 ) + + 70 AS col2 FROM tab1
----
121
155
161

query I rowsort
SELECT ALL col0 * - col1 * 5 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + - COUNT( * ) + - + 0 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2972
SELECT + - COUNT ( * ) + - + 0 AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 BETWEEN col0 AND - 86 + + - ( + col2 ) - - 66
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT IN ( + - col1, - col1 - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2975
SELECT + - CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT + - CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col2 * + col2 col0 FROM tab1 AS cor0
----
-14
9216
-47
4624
-5
3481

query II rowsort
SELECT - - 16 + col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT 42 IS NULL
----
17
99
37
10
97
47

query II rowsort
SELECT - col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT - - 15 AS col1 FROM tab1 AS cor0
----
15

query I rowsort
SELECT + col1 * - 86 AS col2 FROM tab1 cor0
----
-1204
-4042
-430

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 + + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL COUNT( col2 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL COUNT ( col2 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 71 NOT BETWEEN + ( - - col2 ) + - col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 58 col2 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT MAX( + ( col1 ) ) * + SUM( - col0 ) FROM tab0 AS cor0
----
-16119

skipif mysql # not compatible
query I rowsort label-2985
SELECT MAX ( + ( col1 ) ) * + SUM ( - col0 ) FROM tab0 AS cor0
----
-16119

query I rowsort
SELECT ALL + col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - MAX( ALL - 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - MAX ( ALL - 7 ) FROM tab1
----
7

query I rowsort
SELECT DISTINCT 99 + + col1 FROM tab1
----
104
113
146

query I rowsort
SELECT DISTINCT - col2 * - 24 FROM tab1 AS cor0
----
1416
1632
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2990
SELECT - SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT + col2 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL - ( + 67 ) * CAST( - + 29 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1943
1943
1943

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - ( + 67 ) * CAST ( - + 29 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1943
1943
1943

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT DISTINCT - 68 DIV - 13 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT - 68 / - 13 FROM tab2 AS cor0
----
5

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL - + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT + ( - - COUNT( DISTINCT - + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + ( - - COUNT ( DISTINCT - + col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2997
SELECT * FROM tab2 cor0 WHERE - CAST( - ( - col2 ) AS SIGNED ) * - 92 - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2997
SELECT * FROM tab2 cor0 WHERE - CAST ( - ( - col2 ) AS INTEGER ) * - 92 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + - col2 + - - ( - 11 ), + col0 / - - col2, + 16 * - col2, 21, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + - col2 + - - ( - 11 ), + col0 / - - col2, + 16 * - col2, 21, col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT CAST( + COUNT( + + col2 ) AS SIGNED ) + + 7 + ( + 0 ) col2 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2999
SELECT CAST ( + COUNT ( + + col2 ) AS INTEGER ) + + 7 + ( + 0 ) col2 FROM tab1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 9 * col0 BETWEEN NULL AND - col2 + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 9 * col0 BETWEEN NULL AND - col2 + - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + - 48 + 0 * + + col2 - - 77 + - col2 * - + col0 FROM tab1 cor0
----
4925
5044
6217

query I rowsort
SELECT DISTINCT col0 * - 20 AS col1 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3003
SELECT - COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 90 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col1 FROM tab0 AS cor0
----
30

query II rowsort
SELECT col1, + 54 FROM tab0 AS cor0
----
1
54
21
54
81
54

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL >= ( + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL COUNT( * ) * - 89 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL COUNT ( * ) * - 89 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT ALL - col0 + 19 * + - 84 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + col1 + - 39 * + col2 <= ( - - col1 * - + col1 - + 61 + + col2 + + + col2 )
----

query I rowsort
SELECT 70 - - col2 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3011
SELECT DISTINCT + CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT + CAST ( NULL AS REAL ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT col0, + 16 + 52 FROM tab0
----
15
68
87
68
97
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT ALL + 54 AS col2, 27 FROM tab0 AS cor0
----
54
27
54
27
54
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - ( MIN( + + col1 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3015
SELECT - ( MIN ( + + col1 ) ) FROM tab0 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col0 + + col0 - - + col1 ) AND 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT ALL CAST( + - 30 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL CAST ( + - 30 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + 41 + - col1 AS col1 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT - 66 * - ( - col1 ) - col2 - col1 + - ( + 0 ) * - col2 + - 32 FROM tab0 AS cor0
----
-1449
-198
-5506

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( - ( - col1 ) ) * + - 98 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col2 + - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 87 > NULL
----

query I rowsort
SELECT ALL - col1 * + 74 * + col2 + col0 AS col0 FROM tab0
----
-15453
-281703
-7229

query II rowsort
SELECT col1, + 9 AS col1 FROM tab0
----
1
9
21
9
81
9

query I rowsort
SELECT DISTINCT + col0 + - 21 AS col0 FROM tab2
----
25
43
54

query I rowsort
SELECT ALL 82 + + col1 AS col2 FROM tab2
----
133
149
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT CAST( NULL AS SIGNED ) * + 57 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT CAST ( NULL AS INTEGER ) * + 57 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT col1 DIV - + ( - col2 ) col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3028
SELECT col1 / - + ( - col2 ) col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL + COUNT( * ) + 89 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + COUNT ( * ) + 89 AS col0 FROM tab1
----
92

query I rowsort
SELECT + 73 FROM tab2 WHERE NULL NOT IN ( + col2, 78, col1 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE + col1 + + ( - col2 ) - - - col0 * - - col1 / + + col1 * + ( - - col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT + + col2, 20 FROM tab1 AS cor0
----
59
20
68
20
96
20

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 23 AND - col2
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * 79 AS col0 FROM tab0 WHERE NOT ( 73 ) IS NULL
----
1659
6399
79

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 25
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT + ( + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 WHERE NOT ( + col0 ) NOT IN ( - col0 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 WHERE NOT ( + col0 ) NOT IN ( - col0 - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + COUNT( col1 ) + - 10 AS col0 FROM tab1 WHERE + 32 + - col0 IN ( + 48 + - col2 )
----
-10

skipif mysql # not compatible
query I rowsort label-3038
SELECT + COUNT ( col1 ) + - 10 AS col0 FROM tab1 WHERE + 32 + - col0 IN ( + 48 + - col2 )
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - 79 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - 79 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL COUNT( * ) + + 60 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL COUNT ( * ) + + 60 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3042
SELECT ALL * FROM tab2 WHERE + CAST( col0 AS SIGNED ) BETWEEN - 21 * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3042
SELECT ALL * FROM tab2 WHERE + CAST ( col0 AS INTEGER ) BETWEEN - 21 * - col0 AND NULL
----

query I rowsort
SELECT ALL col1 - - 63 FROM tab1
----
110
68
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3044
SELECT DISTINCT - 21 FROM tab1 WHERE + CAST( + col0 AS DECIMAL ) + col1 * col1 BETWEEN ( + 50 ) AND 96
----

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - 21 FROM tab1 WHERE + CAST ( + col0 AS REAL ) + col1 * col1 BETWEEN ( + 50 ) AND 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE col1 / - 52 + 64 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3045
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE col1 / - 52 + 64 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 24 * - col0 + - 56 AS col0 FROM tab0
----
-2144
-2384
-416

query III rowsort
SELECT * FROM tab1 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + MAX( + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + MAX ( + col1 ) FROM tab2
----
77

query I rowsort
SELECT col0 * 68 - col0 FROM tab1
----
3417
5695
6097

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN ( - col1 ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + ( col0 * + ( + 67 ) ) + - col0 AS col0 FROM tab2
----
171456
291375
70840

query I rowsort
SELECT + 77 FROM tab1 WHERE NOT + ( + 43 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 74 NOT IN ( 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - COUNT( 83 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - COUNT ( 83 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL 86 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * col1 + col0 IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL 86 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * col1 + col0 IS NOT NULL
----
89

query I rowsort
SELECT col1 + - 98 AS col1 FROM tab1 AS cor0
----
-51
-84
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT 30 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3058
SELECT 30 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL - COUNT( * ) + + COUNT( ( col1 ) ) * 28 AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - COUNT ( * ) + + COUNT ( ( col1 ) ) * 28 AS col1 FROM tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 71 BETWEEN ( col2 / col1 - col1 * 3 ) AND + 40
----

query I rowsort
SELECT ALL + + 39 + 85 FROM tab1 AS cor0
----
124
124
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3062
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 34 * 76 AS col1 FROM tab2 AS cor0
----
2584
2584
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - + ( - MAX( + 15 ) ) col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3064
SELECT - + ( - MAX ( + 15 ) ) col2 FROM tab0 cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT + 39 DIV col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 39 / col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 48 - 87 FROM tab0 AS cor0
----
-135
-135
-135

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col0 + - 39 FROM tab2
----
25
36
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - 84 AS col0 FROM tab1
----
-16
-25
12

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + - + col0 + col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT 81 * - col0 FROM tab1 WHERE ( + 95 * - 91 ) NOT IN ( col0 )
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3076
SELECT ALL 81 FROM tab2 WHERE + col0 * 66 + + 4 NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL 81 FROM tab2 WHERE + col0 * 66 + + 4 NOT IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL ( - + 26 ) - col0 * 95 AS col2 FROM tab1
----
-4871
-8101
-8671

query I rowsort
SELECT ( ( - 93 ) ) FROM tab0 WHERE ( - col2 + col0 ) IS NOT NULL
----
-93
-93
-93

query I rowsort
SELECT DISTINCT 80 - - + col2 FROM tab1
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - COUNT( ALL - col2 ) * - 33 AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3080
SELECT - COUNT ( ALL - col2 ) * - 33 AS col2 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ALL col1 - + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - - ( + ( COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3082
SELECT - - ( + ( COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 14 * col1 AS col1 FROM tab2 AS cor0
----
1078
714
938

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL > ( + 5 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + ( 8 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # DIV for integer division: 
query III rowsort label-3088
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN - col0 * col1 AND 11 DIV - col2
----

skipif mysql # not compatible
query III rowsort label-3088
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN - col0 * col1 AND 11 / - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT 11 DIV COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3089
SELECT 11 / COUNT ( * ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT ( 46 IS NULL )
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3091
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL SUM( ALL + 52 ) AS col2 FROM tab2, tab2 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL SUM ( ALL + 52 ) AS col2 FROM tab2, tab2 AS cor0
----
468

query II rowsort
SELECT + - col2, 94 AS col0 FROM tab2 AS cor0
----
-23
94
-40
94
-58
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - ( + SUM( + col0 ) ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3094
SELECT - ( + SUM ( + col0 ) ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + MAX( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + MAX ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 AS cor0 WHERE - 12 + col2 IN ( 35 + - 9 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3098
SELECT - col2 AS col0, + col1 DIV col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-3098
SELECT - col2 AS col0, + col1 / col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 61 AS col2, SUM( - col1 ) FROM tab1 AS cor0
----
-61
-66

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 61 AS col2, SUM ( - col1 ) FROM tab1 AS cor0
----
-61
-66

query I rowsort
SELECT ALL + 55 * + 70 * + + col1 - col1 AS col1 FROM tab0 AS cor0
----
311769
3849
80829

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 / + col0 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT - 2 AS col2, + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
-2
99

skipif mysql # not compatible
query II rowsort label-3103
SELECT - 2 AS col2, + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3104
SELECT * FROM tab1 AS cor0 WHERE NOT - 33 NOT IN ( - ( - 37 ) * - ( ( + col0 ) * 6 ) + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3104
SELECT * FROM tab1 AS cor0 WHERE NOT - 33 NOT IN ( - ( - 37 ) * - ( ( + col0 ) * 6 ) + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3105
SELECT DISTINCT ( SUM( ALL ( - 61 ) ) ) DIV + COUNT( * ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT ( SUM ( ALL ( - 61 ) ) ) / + COUNT ( * ) FROM tab2 cor0
----
-61

query I rowsort
SELECT + col0 * + 95 + - col0 * + col0 AS col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3108
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) * + col0 + - 65 NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3108
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) * + col0 + - 65 NOT IN ( + col0 )
----

query I rowsort
SELECT col1 + col0 + + col1 + ( 72 ) FROM tab2
----
220
281
290

query I rowsort
SELECT ALL ( 88 ) AS col1 FROM tab2
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - ( - 87 ) ) col1 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL ( col2 ) AS col0 FROM tab1 WHERE NOT ( + 65 ) NOT IN ( + CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL ( col2 ) AS col0 FROM tab1 WHERE NOT ( + 65 ) NOT IN ( + CAST ( NULL AS INTEGER ) + col2 )
----

query I rowsort
SELECT DISTINCT + 13 * + - 61 FROM tab0
----
-793

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 41 ) FROM tab0
----
-41
-41
-41

query I rowsort
SELECT 92 * + col0 FROM tab0 WHERE NOT ( + col1 + + ( col0 ) - - col2 / + ( col1 ) ) = ( + 64 )
----
1380
8004
8924

query I rowsort
SELECT 94 * - ( - - ( + col1 ) ) FROM tab1 AS cor0
----
-1316
-4418
-470

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 + + + col2 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 4 ) > ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT ALL - - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - - col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT 48 + + + CAST( - COUNT( * ) AS SIGNED ) * + 62 AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-3121
SELECT 48 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 62 AS col1 FROM tab0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL + 64 + + + COUNT( + ( - 79 ) ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + 64 + + + COUNT ( + ( - 79 ) ) AS col0 FROM tab0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT col0 * - - CAST( - col0 AS SIGNED ) * + col1 + - col1 AS col2 FROM tab1
----
-36130
-36428
-389254

skipif mysql # not compatible
query I rowsort label-3123
SELECT col0 * - - CAST ( - col0 AS INTEGER ) * + col1 + - col1 AS col2 FROM tab1
----
-36130
-36428
-389254

query I rowsort
SELECT + + col1 + - - col0 + + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT - - 71 + COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3125
SELECT - - 71 + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
77

query II rowsort
SELECT ALL - - 27 AS col0, col2 AS col0 FROM tab0 AS cor0
----
27
10
27
47
27
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 34, col2 * ( - 67 ) + col0 * + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3128
SELECT * FROM tab2 AS cor0 WHERE - 91 > ( col0 + - CAST( NULL AS DECIMAL ) + - + col1 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT * FROM tab2 AS cor0 WHERE - 91 > ( col0 + - CAST ( NULL AS REAL ) + - + col1 * - col2 )
----

query I rowsort
SELECT - ( + col2 ) + + 17 FROM tab1 AS cor0
----
-42
-51
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 73
----

query I rowsort
SELECT + 8 * + col0 + + col1 - + - col1 - + - col0 AS col1 FROM tab2 AS cor0
----
516
730
809

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col1 AND + + col0 * 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + 46 + + - col2 / + ( + col1 ) * col2 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT + + COUNT( * ) * - - ( + 56 ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + + COUNT ( * ) * - - ( + 56 ) AS col1 FROM tab1 AS cor0
----
168

query II rowsort
SELECT - col2, + col0 + - col1 AS col2 FROM tab2
----
-23
-5
-40
-13
-58
8

query I rowsort
SELECT DISTINCT - col1 - - - col2 - + col0 * + 22 FROM tab1
----
-1232
-1934
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + SUM( ALL + + col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3137
SELECT + SUM ( ALL + + col2 ) col0 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + col1 + - col0 * col0 FROM tab1
----
-2587
-7220
-8234

query III rowsort
SELECT * FROM tab0 WHERE NULL > + + col2 + + ( - 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3140
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + - CAST( col0 AS SIGNED ) BETWEEN ( col2 ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-3140
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + - CAST ( col0 AS INTEGER ) BETWEEN ( col2 ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 * + + col1 ) >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + col2, ( - + col2 ) )
----
110
115
64

query II rowsort
SELECT ( + col2 ), + col2 * col0 FROM tab0 AS cor0 WHERE NOT 67 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT - col0 + + 31 FROM tab0 AS cor0 WHERE NOT + 62 NOT IN ( 12 * - - col0, CAST( + 10 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3144
SELECT - col0 + + 31 FROM tab0 AS cor0 WHERE NOT + 62 NOT IN ( 12 * - - col0, CAST ( + 10 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN 1 + - 36 AND + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 22 * + - 0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 87 >= + 27
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 66 - - 8 AND 58
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3149
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + 29 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3149
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + 29 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT + col1 * - 55 FROM tab1 AS cor0 WHERE NOT NULL <= - CAST( - 49 AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-3150
SELECT + col1 * - 55 FROM tab1 AS cor0 WHERE NOT NULL <= - CAST ( - 49 AS INTEGER ) + col1
----

query I rowsort
SELECT ALL - - 81 * 67 AS col1 FROM tab1 AS cor0
----
5427
5427
5427

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT - - col1 NOT IN ( - - 11, col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 + + + col1 + - + col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + 99 + - 24 + + col1 DIV + ( col2 ) + + + CAST( 59 AS SIGNED ) - col1 * + col1 FROM tab2 AS cor0
----
-2465
-4354
-5794

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + 99 + - 24 + + col1 / + ( col2 ) + + + CAST ( 59 AS INTEGER ) - col1 * + col1 FROM tab2 AS cor0
----
-2465
-4354
-5794

query I rowsort
SELECT DISTINCT - 35 + + col0 AS col2 FROM tab1
----
16
50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL 8 * COUNT( * ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL 8 * COUNT ( * ) AS col1 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL + 2 + + 18 * COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL + 2 + + 18 * COUNT ( * ) FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 94 / - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL MAX( DISTINCT + + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL MAX ( DISTINCT + + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - COUNT( * ) + 21 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3160
SELECT - COUNT ( * ) + 21 FROM tab1 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT DISTINCT + 4 DIV + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT + 4 / + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 68 - 72 AS col1 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT col2 * - 4 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT - + ( - - 77 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT - + ( - - 77 ) / + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + - COUNT( * ) - - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + - COUNT ( * ) - - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3166
SELECT - CAST( NULL AS SIGNED ) - + - col1, - col0 + + + 90 AS col2 FROM tab0 AS cor0
----
NULL
-7
NULL
3
NULL
75

skipif mysql # not compatible
query II rowsort label-3166
SELECT - CAST ( NULL AS INTEGER ) - + - col1, - col0 + + + 90 AS col2 FROM tab0 AS cor0
----
NULL
-7
NULL
3
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MAX( DISTINCT col2 ) - - + 7 AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3167
SELECT MAX ( DISTINCT col2 ) - - + 7 AS col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT 76 - - 77 FROM tab2 AS cor0
----
153
153
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + 2 * - ( - - COUNT( * ) ) - + ( + - 42 ) * - 67 FROM tab1 AS cor0
----
-2820

skipif mysql # not compatible
query I rowsort label-3169
SELECT + 2 * - ( - - COUNT ( * ) ) - + ( + - 42 ) * - 67 FROM tab1 AS cor0
----
-2820

query II rowsort
SELECT - col2 + - - col0 AS col2, + 80 FROM tab2 AS cor0
----
17
80
23
80
24
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3171
SELECT - + col0 + col1 FROM tab1 WHERE NOT + - 68 * - - CAST( NULL AS DECIMAL ) + - 38 <= col0 + - 27
----

skipif mysql # not compatible
query I rowsort label-3171
SELECT - + col0 + col1 FROM tab1 WHERE NOT + - 68 * - - CAST ( NULL AS REAL ) + - 38 <= col0 + - 27
----

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT 88 = - col0 / 81
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT + - MAX( + col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + - MAX ( + col0 ) AS col2 FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3175
SELECT ALL + 44, + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL + 44, + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0
----
44
NULL
44
NULL
44
NULL

query I rowsort
SELECT DISTINCT + col1 * + 33 * - 44 FROM tab0 AS cor0
----
-117612
-1452
-30492

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT + COUNT( ALL - col2 ) * - 84 * 44 * + 65 AS col2 FROM tab0 AS cor0
----
-720720

skipif mysql # not compatible
query I rowsort label-3177
SELECT + COUNT ( ALL - col2 ) * - 84 * 44 * + 65 AS col2 FROM tab0 AS cor0
----
-720720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE ( col2 + - 12 + - 29 * + + col1 / + col0 + ( - CAST( NULL AS SIGNED ) ) + - col0 ) = ( - 40 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE ( col2 + - 12 + - 29 * + + col1 / + col0 + ( - CAST ( NULL AS INTEGER ) ) + - col0 ) = ( - 40 / - col0 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - 6 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - col1 + - col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + col0 + - 93 FROM tab2
----
-18
-29
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3182
SELECT DISTINCT - ( col2 ) * - - 42 + col1 + - CAST( col1 AS DECIMAL ) + + - col2 / - 24 * 77 * + col1 AS col1 FROM tab1 WHERE NOT ( - 82 = NULL )
----

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - ( col2 ) * - - 42 + col1 + - CAST ( col1 AS REAL ) + + - col2 / - 24 * 77 * + col1 AS col1 FROM tab1 WHERE NOT ( - 82 = NULL )
----

query I rowsort
SELECT DISTINCT col0 + - 67 * 90 * + col1 * col2 AS col1 FROM tab1
----
-1778765
-19271789
-8104269

query I rowsort
SELECT 54 * + col2 AS col2 FROM tab2
----
1242
2160
3132

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 + - 78 FROM tab0
----
-31
-68
21

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL - 57 - - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - 57 - - COUNT ( * ) FROM tab2
----
-54

query II rowsort
SELECT 32 + + ( - 73 ), + col2 FROM tab1
----
-41
59
-41
68
-41
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * + col2 * - - col1 + col0 col0 FROM tab1
----
-16435
-178885
-75213

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <= ( + col2 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) - - + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) - - + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IN ( - 3, + 49, + col0 * - col0 ) )
----

query I rowsort
SELECT col1 * + 11 AS col2 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT - + col2 DIV 6 AS col2 FROM tab2 AS cor0
----
-3
-6
-9

skipif mysql # not compatible
query I rowsort label-3195
SELECT - + col2 / 6 AS col2 FROM tab2 AS cor0
----
-3
-6
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - MAX( 26 ) * + - COUNT( - col2 ) col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT ALL - MAX ( 26 ) * + - COUNT ( - col2 ) col0 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - COUNT( col2 ) FROM tab2 WHERE NOT + 67 = + col0
----
-3

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - COUNT ( col2 ) FROM tab2 WHERE NOT + 67 = + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL - SUM( DISTINCT + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - SUM ( DISTINCT + col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT MIN( - - CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT COUNT( * ) FROM tab0 WHERE NOT - - ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( * ) FROM tab0 WHERE NOT - - ( - col1 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0, - 79 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT + 57 DIV - col1 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + 57 / - col1 AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT + 34 + + 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT ALL - - CAST( - 11 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - - CAST ( - 11 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL + + col0 * - 83 AS col1 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT DISTINCT + - col0 * + - 64 AS col2 FROM tab2 AS cor0
----
2944
4096
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 29 col2, col1 * + col2 * + col2 FROM tab2 cor0
----
-29
123200
-29
225388
-29
26979

query I rowsort
SELECT - col2 * + col2 * - 98 AS col0 FROM tab1 AS cor0
----
341138
453152
903168

query I rowsort
SELECT + ( - 4 ) FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3212
SELECT ALL - col2 + + 17 + 76 * + - 51 + + ( - + col2 ) AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3905
NULL
-3939
NULL
-3975
NULL

skipif mysql # not compatible
query II rowsort label-3212
SELECT ALL - col2 + + 17 + 76 * + - 51 + + ( - + col2 ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3905
NULL
-3939
NULL
-3975
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT + - 90 + + 14 - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + - 90 + + 14 - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT - 90 + - - COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - 90 + - - COUNT ( * ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col2 + 40 FROM tab0
----
139
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT + col0 + - + 75 FROM tab0 WHERE - col1 + col1 * 15 BETWEEN col2 * + CAST( - - col2 AS SIGNED ) * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3216
SELECT + col0 + - + 75 FROM tab0 WHERE - col1 + col1 * 15 BETWEEN col2 * + CAST ( - - col2 AS INTEGER ) * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 62 * 85 + - 23 FROM tab0
----
5247

query I rowsort
SELECT ALL + col1 * + + col1 AS col0 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 WHERE + + col2 / - col1 IS NULL
----

query I rowsort
SELECT col2 + - - 80 * col1 + - - col0 + - - col0 - - col2 * + - col0 - + col0 AS col1 FROM tab2
----
1143
3091
3704

query II rowsort
SELECT ALL - + col1 AS col2, + col2 * 25 AS col0 FROM tab0 AS cor0
----
-1
2475
-21
250
-81
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT DISTINCT - - 10 col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3223
SELECT DISTINCT - - 10 col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT CAST( - col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-3224
SELECT CAST ( - col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col1 ) col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT - CAST( NULL AS SIGNED ) / - - col0 + - col1 + col2 - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT - CAST ( NULL AS INTEGER ) / - - col0 + - col1 + col2 - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT COUNT( DISTINCT - - 32 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT COUNT ( DISTINCT - - 32 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 + - 5 FROM tab1
----
-10
-19
-52

query I rowsort
SELECT 82 * + 82 - - - col2 AS col2 FROM tab0
----
6625
6677
6714

query I rowsort
SELECT ALL - - 56 * - col2 AS col1 FROM tab1 AS cor0
----
-3304
-3808
-5376

query II rowsort
SELECT ( - - col0 ) * + + 58 AS col2, ( - 40 ) + + col2 + col0 AS col2 FROM tab2
----
2668
29
3712
64
4350
93

query I rowsort
SELECT ( col1 ) * - + col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col1 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT + 3 AS col2, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3234
SELECT + 3 AS col2, + COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT + - col0, col2 * - 85 AS col0 FROM tab0 AS cor0
----
-15
-3995
-87
-850
-97
-8415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3236
SELECT - + col2 AS col1, col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3236
SELECT - + col2 AS col1, col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT ALL - COUNT( * ) DIV ( + 53 ) * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( * ) / ( + 53 ) * - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 82 * - + col2 FROM tab2
----
-1886
-3280
-4756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col2 ) <> + 73 + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3240
SELECT - CAST( + col2 AS SIGNED ) DIV - - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3240
SELECT - CAST ( + col2 AS INTEGER ) / - - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - col2 > + - ( 48 ) + - ( - col0 )
----
59
68
96

query I rowsort
SELECT + 80 * + 17 * - col2 FROM tab0 AS cor0
----
-134640
-13600
-63920

query I rowsort
SELECT - 50 * - + 27 + + col0 FROM tab0 AS cor0
----
1365
1437
1447

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + col0 * + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT DISTINCT 45 DIV + col0 + - + col1 + + col0 AS col1 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT 45 / + col0 + - + col1 + + col0 AS col1 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT - col1 * + - CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT - col1 * + - CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col0 ) * + 85 + + - ( 86 ) + col1 * + ( - col2 ) FROM tab0
----
-5168
-7691
-8430

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col1 AS col2 FROM tab0
----
-354
-6546
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3250
SELECT * FROM tab1 WHERE + col0 * + + 60 + - ( - col2 ) + + col1 + + - CAST( NULL AS SIGNED ) * + col0 NOT IN ( ( ( + col1 ) ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3250
SELECT * FROM tab1 WHERE + col0 * + + 60 + - ( - col2 ) + + col1 + + - CAST ( NULL AS INTEGER ) * + col0 NOT IN ( ( ( + col1 ) ), col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 49 AS col0, - col0 - + col1 col2, - 87 FROM tab0
----
9 values hashing to e0f3589d6aa347ca0ea35d1e4827a73d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT DISTINCT + 28 * CAST( NULL AS SIGNED ) + + - COUNT( DISTINCT + col1 ) + + 7 * COUNT( * ) FROM tab2 WHERE NOT - ( + col0 ) + - 5 - + 93 * - 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + 28 * CAST ( NULL AS INTEGER ) + + - COUNT ( DISTINCT + col1 ) + + 7 * COUNT ( * ) FROM tab2 WHERE NOT - ( + col0 ) + - 5 - + 93 * - 43 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( col2 ), + col0 * 40 )
----

query I rowsort
SELECT - - 25 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query II rowsort
SELECT ALL 60, col2 FROM tab0
----
60
10
60
47
60
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3256
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) + - - 58 col2 FROM tab2 AS cor0
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3256
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) + - - 58 col2 FROM tab2 AS cor0
----
3
61

query II rowsort
SELECT ALL + - col1, col1 * + 80 AS col1 FROM tab1 cor0
----
-14
1120
-47
3760
-5
400

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT - - 7 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3259
SELECT ALL col2 * + + col2 - + col1 + CAST( NULL AS SIGNED ) * 80 / - 98 / + col2 * + 67 * - + col0 * + col1 + + + col0, - col2 * + 52 AS col0 FROM tab0 AS cor0
----
NULL
-2444
NULL
-5148
NULL
-520

skipif mysql # not compatible
query II rowsort label-3259
SELECT ALL col2 * + + col2 - + col1 + CAST ( NULL AS INTEGER ) * 80 / - 98 / + col2 * + 67 * - + col0 * + col1 + + + col0, - col2 * + 52 AS col0 FROM tab0 AS cor0
----
NULL
-2444
NULL
-5148
NULL
-520

query II rowsort
SELECT + 59, + col1 FROM tab1 AS cor0
----
59
14
59
47
59
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT - col1 * + + CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3262
SELECT - col1 * + + CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - - col2 * + + 83 AS col2 FROM tab2 AS cor0
----
1909
3320
4814

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + - 10 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3265
SELECT DISTINCT + AVG ( col0 ) * + - COUNT( * ) / MIN( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + AVG ( col0 ) * + - COUNT ( * ) / MIN ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * + - col1 * + col0 * + + 15 col0 FROM tab0
----
-101850
-1275750
-1918350

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL SUM( + 60 ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL SUM ( + 60 ) FROM tab2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 WHERE NOT + + 41 * col0 + - CAST( + - 18 AS SIGNED ) + - 25 * + + ( - col2 ) * + ( col0 ) - + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 WHERE NOT + + 41 * col0 + - CAST ( + - 18 AS INTEGER ) + - 25 * + + ( - col2 ) * + ( col0 ) - + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT MAX( DISTINCT col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3269
SELECT MAX ( DISTINCT col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT + ( - ( - + 46 ) ) AS col1 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + col0 * - 39 AS col1 FROM tab1 AS cor0
----
-1989
-3315
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3272
SELECT + 64 + + 76 AS col0, CAST( NULL AS SIGNED ) * + 89 FROM tab1 AS cor0
----
140
NULL
140
NULL
140
NULL

skipif mysql # not compatible
query II rowsort label-3272
SELECT + 64 + + 76 AS col0, CAST ( NULL AS INTEGER ) * + 89 FROM tab1 AS cor0
----
140
NULL
140
NULL
140
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 * - - col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT col1 + + col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT col1 + + col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 48 * + col2 FROM tab1 cor0
----
2832
3264
4608

query I rowsort
SELECT DISTINCT - - 23 * + 12 AS col0 FROM tab1 AS cor0
----
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 29 col2 FROM tab0 AS cor0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3278
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> - + 57
----

skipif mysql # not compatible
query III rowsort label-3278
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> - + 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT - + COUNT( + + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT DISTINCT - + COUNT ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 83 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + + - col2 * + - col1 col2 FROM tab1
----
1322
273
3174

query III rowsort
SELECT * FROM tab1 WHERE col0 = + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 35 * 74 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + col1 * + col0 * + - col1 AS col0 FROM tab1
----
-200928
-2040
-9945

query II rowsort
SELECT + - col1 + + col1 + + 84 * col2 AS col0, + 14 AS col2 FROM tab0 AS cor0
----
3948
14
8316
14
840
14

query I rowsort
SELECT col2 * + - ( + col0 ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT MIN( DISTINCT 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT MIN ( DISTINCT 89 ) FROM tab0 AS cor0
----
89

query II rowsort
SELECT DISTINCT - + 88 * + col1 + 88, 92 AS col2 FROM tab2 AS cor0
----
-4400
92
-5808
92
-6688
92

query I rowsort
SELECT ALL 96 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 - + col0 >= + - col2
----
96
96
96

query I rowsort
SELECT DISTINCT - 61 * - 31 * - - ( + col0 ) * + + 36 + + col2 * + - 75 FROM tab2 AS cor0
----
3129771
4353864
5101350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - ( CAST( + + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3291
SELECT - ( CAST ( + + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT MAX( ( + col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 57 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-3293
SELECT MAX ( ( + col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 57 IS NULL
----
97

query I rowsort
SELECT - col0 * - 85 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # DIV for integer division: 
query III rowsort label-3295
SELECT ALL * FROM tab0 WHERE NOT - col1 <= - col2 DIV 61
----

skipif mysql # not compatible
query III rowsort label-3295
SELECT ALL * FROM tab0 WHERE NOT - col1 <= - col2 / 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL + MAX( + 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + MAX ( + 73 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3297
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + - col0 ) IS NULL
----
3

query I rowsort
SELECT - col2 * + 7 FROM tab2
----
-161
-280
-406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( - col1 ) col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 78 * + col0 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + col2 ) * - + 98 + - 60 - + col1 + - col2 - - - col2 AS col2 FROM tab0
----
4371
879
9443

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + 34 * COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3302
SELECT + 34 * COUNT ( * ) FROM tab2
----
102

query I rowsort
SELECT + 52 * + 30 FROM tab1
----
1560
1560
1560

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 90 * - 87 FROM tab2 AS cor0
----
7830
7830
7830

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + col0
----

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT DISTINCT CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) * + col0 AS col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) * + col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT ALL 71 * - 70 AS col1, + COUNT( ALL + col0 ) * + + COUNT( DISTINCT - ( - + 57 ) ) FROM tab0
----
-4970
3

skipif mysql # not compatible
query II rowsort label-3309
SELECT ALL 71 * - 70 AS col1, + COUNT ( ALL + col0 ) * + + COUNT ( DISTINCT - ( - + 57 ) ) FROM tab0
----
-4970
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT ALL - 96 DIV - 42 AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - 96 / - 42 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + col2 + + ( - col2 ) * + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3312
SELECT + SUM ( ALL col1 ) FROM tab1
----
66

query II rowsort
SELECT DISTINCT col1 + - 27 + - + 12, col1 * - col1 + + col2 AS col0 FROM tab1
----
-25
-100
-34
34
8
-2141

query II rowsort
SELECT - col1 AS col1, 20 * + + col2 AS col0 FROM tab0
----
-1
1980
-21
200
-81
940

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT COUNT( * ) * - 2 AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3315
SELECT COUNT ( * ) * - 2 AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3316
SELECT * FROM tab0 WHERE + col2 + + col2 <> - + CAST( NULL AS SIGNED ) * + - col0 - - + 2 * - 77 / + 43
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT * FROM tab0 WHERE + col2 + + col2 <> - + CAST ( NULL AS INTEGER ) * + - col0 - - + 2 * - 77 / + 43
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= + 25
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 54 + - + col0 FROM tab2
----
-10
-21
8

query I rowsort
SELECT ALL col1 * + col1 - + col2 * + + 96 FROM tab2
----
-1079
2089
393

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT ALL + 60 + - - col2 DIV - 79 col0 FROM tab2
----
60
60
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT ALL + 60 + - - col2 / - 79 col0 FROM tab2
----
60
60
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, col2, + col2 )
----

query I rowsort
SELECT + 52 * + - col0 AS col1 FROM tab0 AS cor0
----
-4524
-5044
-780

query I rowsort
SELECT 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL col2 + - col0 DIV col1 DIV 48 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL col2 + - col0 / col1 / 48 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + - MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3326
SELECT + - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3327
SELECT + + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + COUNT( * ) + + 99 + - COUNT( * ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + COUNT ( * ) + + 99 + - COUNT ( * ) AS col2 FROM tab1
----
99

query I rowsort
SELECT + col1 * + 72 FROM tab0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + + COUNT( * ) col2 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3330
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
3

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT col2 + + col1 AS col1, + 70 FROM tab0 AS cor0 WHERE NOT - col0 > - 95
----
100
70

query I rowsort
SELECT - 19 + + - 29 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - 68 * SUM( - + col1 ) AS col1 FROM tab2
----
13260

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 68 * SUM ( - + col1 ) AS col1 FROM tab2
----
13260

query I rowsort
SELECT - 80 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query II rowsort
SELECT DISTINCT + col1, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + 20 + + col2 FROM tab2 AS cor0
----
43
60
78

query I rowsort
SELECT - - ( + col2 ) - + 71 AS col2 FROM tab1 AS cor0
----
-12
-3
25

query II rowsort
SELECT DISTINCT col2, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - col0 - + - 84 AS col0 FROM tab2 AS cor0
----
20
38
9

query I rowsort
SELECT - 30 * + col2 - + col2 FROM tab0 AS cor0
----
-1457
-3069
-310

query II rowsort
SELECT DISTINCT - col1, ( col1 ) + - - ( + - 58 ) AS col0 FROM tab2 AS cor0
----
-51
-7
-67
9
-77
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT col2 * + col2 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND col0 + - + col1
----
-3

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT col2 * + col2 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND col0 + - + col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT COUNT( * ) DIV + 45 * COUNT( * ) - - 97 FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3344
SELECT COUNT ( * ) / + 45 * COUNT ( * ) - - 97 FROM tab2 cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + 26 * + - MAX( ALL + col2 ) AS col2 FROM tab2
----
-1508

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + 26 * + - MAX ( ALL + col2 ) AS col2 FROM tab2
----
-1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT ALL + col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - + col1 + + - 63 + - col0 * - - col0 FROM tab0
----
-450
-7674
-9474

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT col0 DIV - - col2 + ( col1 ) + col1 - + + 51 - - col1 * + col2 * - col1 * col1 FROM tab2 AS cor0
----
-17444170
-18261216
-3050920

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT col0 / - - col2 + ( col1 ) + col1 - + + 51 - - col1 * + col2 * - col1 * col1 FROM tab2 AS cor0
----
-17444170
-18261216
-3050920

query I rowsort
SELECT + col2 * col0 * + col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT + + col0 * + col2 - - 49 AS col2 FROM tab2 AS cor0
----
1107
2609
4399

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL AND + col0 * + - ( + + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 * - 74 FROM tab1
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3355
SELECT * FROM tab2 WHERE NOT ( NOT col0 + + col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3355
SELECT * FROM tab2 WHERE NOT ( NOT col0 + + col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT + COUNT( * ) * + + 31 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3356
SELECT + COUNT ( * ) * + + 31 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT + col2 DIV + 45 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT + col2 / + 45 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + COUNT( ALL - 40 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3359
SELECT + COUNT ( ALL - 40 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
44

query I rowsort
SELECT DISTINCT + 83 + - col1 AS col1 FROM tab2 cor0
----
16
32
6

query I rowsort
SELECT ( - col2 ) + + + 55 FROM tab2 AS cor0
----
-3
15
32

query I rowsort
SELECT ALL - 60 + col2 FROM tab1
----
-1
36
8

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + AVG ( ALL + col0 ) + - - COUNT( * ) * + + 93 AS col2 FROM tab0 WHERE NOT col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + AVG ( ALL + col0 ) + - - COUNT ( * ) * + + 93 AS col2 FROM tab0 WHERE NOT col0 = NULL
----
NULL

query II rowsort
SELECT col0 * - 1 AS col1, - col2 * col2 FROM tab1
----
-51
-9216
-85
-3481
-91
-4624

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3368
SELECT ALL * FROM tab2 WHERE NOT - + col1 / 89 - col1 >= CAST( NULL AS SIGNED ) * - col1 + - 96
----

skipif mysql # not compatible
query III rowsort label-3368
SELECT ALL * FROM tab2 WHERE NOT - + col1 / 89 - col1 >= CAST ( NULL AS INTEGER ) * - col1 + - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL ( + + CAST( + col2 AS SIGNED ) ) col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT ALL ( + + CAST ( + col2 AS INTEGER ) ) col1 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL - + 61 * 41 + ( - col2 ), - 56 AS col2 FROM tab0 AS cor0
----
-2511
-56
-2548
-56
-2600
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT DISTINCT - col0 + - - col2 - - 39 FROM tab2 AS cor0 WHERE NULL > CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col0 + - - col2 - - 39 FROM tab2 AS cor0 WHERE NULL > CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT - ( - 23 ) + - CAST( + 92 AS SIGNED ) AS col0 FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-3372
SELECT - ( - 23 ) + - CAST ( + 92 AS INTEGER ) AS col0 FROM tab0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT CAST( NULL AS SIGNED ) * - col2 + + + 84 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT CAST ( NULL AS INTEGER ) * - col2 + + + 84 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 5 + - col0 AS col0 FROM tab2
----
-41
-59
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + COUNT( * ) * + 77 - 69 AS col2 FROM tab1 AS cor0 WHERE col2 + + + col1 IS NOT NULL
----
162

skipif mysql # not compatible
query I rowsort label-3375
SELECT + COUNT ( * ) * + 77 - 69 AS col2 FROM tab1 AS cor0 WHERE col2 + + + col1 IS NOT NULL
----
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3376
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - + col1 - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - 39 + - COUNT( * ) * + 52 AS col1 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - 39 + - COUNT ( * ) * + 52 AS col1 FROM tab1 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT ALL + CAST( + + col1 AS SIGNED ) * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL + CAST ( + + col1 AS INTEGER ) * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

query II rowsort
SELECT col1 AS col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col2 * - col0 * - 53 FROM tab0
----
-37365
-46110
-508959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, col0 col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT col1 + - + col0 + + - col0 * + - 46 AS col2 FROM tab2 WHERE NOT col1 + col0 IS NULL
----
2121
2957
3442

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3384
SELECT + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * ( - col2 ) IS NOT NULL )
----

query II rowsort
SELECT ALL col2, + 83 AS col1 FROM tab0 AS cor0
----
10
83
47
83
99
83

query I rowsort
SELECT ALL - col2 * - 88 + - col0 FROM tab1 AS cor0
----
5107
5893
8397

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3388
SELECT - - col2 col1, CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3388
SELECT - - col2 col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT + - col0, 72 + col0 AS col0 FROM tab0 AS cor0
----
-15
87
-87
159
-97
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL + 75 * COUNT( * ) col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3390
SELECT ALL + 75 * COUNT ( * ) col1 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT + col0 * + - 19 AS col0 FROM tab1
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3393
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3393
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT + MAX( col1 ) FROM tab2 AS cor0 WHERE NULL >= + ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0 WHERE NULL >= + ( - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT + col1 * - + col2 AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3395
SELECT + col1 * - + col2 AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 23 + 44 + + + col2 NOT BETWEEN - + ( - col1 ) AND + 70 + + 99 * + col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT 40, COUNT( * ) AS col0 FROM tab2
----
40
3

skipif mysql # not compatible
query II rowsort label-3397
SELECT 40, COUNT ( * ) AS col0 FROM tab2
----
40
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT DISTINCT col2 DIV col2 + 89 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT col2 / col2 + 89 FROM tab0
----
90

query I rowsort
SELECT ALL col2 + - 94 FROM tab2
----
-36
-54
-71

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL MIN( - - 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL MIN ( - - 62 ) FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + ( + + COUNT( DISTINCT col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + ( + + COUNT ( DISTINCT col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL - COUNT( * ) AS col1, ( + 27 ) * COUNT( * ) AS col0 FROM tab1 cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL - COUNT ( * ) AS col1, ( + 27 ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
81

query I rowsort
SELECT - + col0 + + + 63 + + + ( - - 21 ) - + col1 FROM tab2 AS cor0
----
-13
-57
-58

query I rowsort
SELECT ALL + col0 + - col2 * - - col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT ALL ( + 88 ) FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT - + 85 * - 16 * + col1 + + ( - col0 ) FROM tab2 AS cor0
----
104656
69314
91045

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL + + COUNT( * ) col2 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-3408
SELECT ALL + + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT - SUM( DISTINCT - 41 ) AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - SUM ( DISTINCT - 41 ) AS col2 FROM tab0
----
41

query I rowsort
SELECT - col2 - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL ( + ( - MAX( ALL + 71 ) ) ) * COUNT( * ) FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL ( + ( - MAX ( ALL + 71 ) ) ) * COUNT ( * ) FROM tab0 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - + 94 * 33 FROM tab2 cor0
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT + MIN( DISTINCT - + ( + col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + MIN ( DISTINCT - + ( + col0 ) ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT DISTINCT - COUNT( * ), 77 col0 FROM tab1
----
-3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3414
SELECT DISTINCT - COUNT ( * ), 77 col0 FROM tab1
----
-3
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT 97 DIV - - SUM( DISTINCT col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT 97 / - - SUM ( DISTINCT col2 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 40, col0 col1 FROM tab2
----
-40
46
-40
64
-40
75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NOT 73 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3420
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT ALL - 27 DIV + ( + col1 ) col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3421
SELECT ALL - 27 / + ( + col1 ) col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col2 * + col1 + + - 70 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * col0 col2 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT + - 32 * - ( - MAX( ALL + + 74 ) ) AS col2 FROM tab1 AS cor0
----
-2368

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + - 32 * - ( - MAX ( ALL + + 74 ) ) AS col2 FROM tab1 AS cor0
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT COUNT( - col1 ) * + 48 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT COUNT ( - col1 ) * + 48 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3426
SELECT ALL + COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + 88 + - 14 AS col1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL IN ( - 11 )
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE + 0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) col2, ( col0 ) FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ( - + col2 ) + 29 * + 61 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 49
----

query I rowsort
SELECT + 31 * - - 32 AS col2 FROM tab1
----
992
992
992

query I rowsort
SELECT - 80 * + - 77 AS col1 FROM tab2
----
6160
6160
6160

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN - col2 - col2 + - 29 AND - + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 89 - + 6 * + 29 AS col1 FROM tab1
----
-263

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + + ( ( + 24 ) ) AS col1 FROM tab1 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL - - 80 * - - 80 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6409

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - - 80 * - - 80 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3440
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3440
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL - SUM( - + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - SUM ( - + col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - ( + 36 ) * + col2 + + col0 * - + 38 FROM tab2 AS cor0
----
-2576
-3872
-4938

query I rowsort
SELECT ALL + - ( - - col0 ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 56 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 2 * - 95 FROM tab2
----
-190
-190
-190

query I rowsort
SELECT col0 * - 68 AS col1 FROM tab0
----
-1020
-5916
-6596

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3449
SELECT + SUM( DISTINCT - col1 ) DIV - 4 col1 FROM tab2
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3449
SELECT + SUM ( DISTINCT - col1 ) / - 4 col1 FROM tab2
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - + col0 < - col2 - + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

query II rowsort
SELECT ALL - - col2 * - 35 + - ( - - col1 ), - col2 AS col0 FROM tab2 AS cor0
----
-1477
-40
-2097
-58
-856
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT MAX( - col2 ) + + - 44 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT MAX ( - col2 ) + + - 44 FROM tab0
----
-54

query II rowsort
SELECT DISTINCT + col1 * 56 + - 48 AS col2, col2 FROM tab1 AS cor0
----
232
59
2584
68
736
96

query I rowsort
SELECT ALL 69 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + 20 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, + 14 * col2 AS col1 FROM tab1 cor0
----
14
1344
47
952
5
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT - col2 AS col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT ALL + - col1 DIV + + col0 + col0 + + col2 * + col0 DIV + + col0 FROM tab2 AS cor0
----
103
133
68

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + - col1 / + + col0 + col0 + + col2 * + col0 / + + col0 FROM tab2 AS cor0
----
103
133
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + col1 DIV - ( + - 28 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3461
SELECT + col1 / - ( + - 28 ) FROM tab1
----
0
0
1

query I rowsort
SELECT - 90 + + col2 + 8 AS col0 FROM tab2
----
-24
-42
-59

query I rowsort
SELECT ALL col2 + + col0 + + + 93 * + col2 AS col0 FROM tab1
----
5631
6483
9075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab2
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT - col1 - + + 25 + 46 DIV + col1 AS col2 FROM tab2
----
-102
-76
-92

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - col1 - + + 25 + 46 / + col1 AS col2 FROM tab2
----
-102
-76
-92

query I rowsort
SELECT + 97 + + 57 AS col1 FROM tab2
----
154
154
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3467
SELECT * FROM tab0 WHERE 12 <> CAST( - + 25 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3467
SELECT * FROM tab0 WHERE 12 <> CAST ( - + 25 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - - COUNT( + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3469
SELECT - - COUNT ( + + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query III rowsort label-3470
SELECT ALL * FROM tab0 WHERE NOT + 23 < + + 54 DIV col2 * + 89
----
97
1
99

skipif mysql # not compatible
query III rowsort label-3470
SELECT ALL * FROM tab0 WHERE NOT + 23 < + + 54 / col2 * + 89
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + MIN( ALL + - ( + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + MIN ( ALL + - ( + col1 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT MAX( DISTINCT - 10 ) AS col0 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3472
SELECT MAX ( DISTINCT - 10 ) AS col0 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT + + 11 * - ( + + col0 ) FROM tab0 AS cor0
----
-1067
-165
-957

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT + - COUNT( * ) - 83 FROM tab2 AS cor0 WHERE NOT 48 IS NULL
----
-86

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + - COUNT ( * ) - 83 FROM tab2 AS cor0 WHERE NOT 48 IS NULL
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col0 FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL - 30 AS col2, 98 * + + col1 FROM tab1
----
-30
1372
-30
4606
-30
490

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT + col0 DIV 27 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-3478
SELECT + col0 / 27 FROM tab0
----
0
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 93 + - 69 IS NULL
----

query II rowsort
SELECT col0 AS col2, - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT + + 94 + - col1 * + col2 * - col1 * + ( + col1 ) - - col0 + - col0 DIV + - col1 AS col0 FROM tab0 AS cor0
----
24977836
387
92795

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + + 94 + - col1 * + col2 * - col1 * + ( + col1 ) - - col0 + - col0 / + - col1 AS col0 FROM tab0 AS cor0
----
24977836
387
92795

query I rowsort
SELECT DISTINCT - 68 * ( col1 ) FROM tab2
----
-3468
-4556
-5236

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT + col1 NOT BETWEEN 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT 2 * COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 2 * COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - 73 - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 73 - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + 17 + + COUNT( * ) AS col0 FROM tab1 WHERE + 15 IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 17 + + COUNT ( * ) AS col0 FROM tab1 WHERE + 15 IS NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) * + 61 + - 49 * + ( 58 ) FROM tab0
----
-2659

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) * + 61 + - 49 * + ( 58 ) FROM tab0
----
-2659

query I rowsort
SELECT ALL col0 * col2 FROM tab2 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col0 + - 41 * col1 AS col0 FROM tab2
----
-2137
-2822
-3221

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3491
SELECT ALL * FROM tab1 WHERE 24 / - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3491
SELECT ALL * FROM tab1 WHERE 24 / - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 24 + 23 * 47 AS col2 FROM tab2
----
1057
1057
1057

query I rowsort
SELECT ALL + col0 * 5 FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT col2 * ( - 31 ) AS col2 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - COUNT( * ) * + 9 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3495
SELECT - COUNT ( * ) * + 9 FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT - CAST( 44 AS SIGNED ) * col1 AS col0 FROM tab0
----
-3564
-44
-924

skipif mysql # not compatible
query I rowsort label-3496
SELECT - CAST ( 44 AS INTEGER ) * col1 AS col0 FROM tab0
----
-3564
-44
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NULL <> ( - col0 / + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL <> ( - col0 / + col2 )
----
0

query I rowsort
SELECT ALL 34 * 37 AS col2 FROM tab2
----
1258
1258
1258

query I rowsort
SELECT - 96 * col1 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT 99 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL COUNT( - col0 ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL COUNT ( - col0 ) * COUNT ( * ) AS col1 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col1 BETWEEN - 29 * col0 + col1 AND - col2 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 44 * + 91 AS col0 FROM tab0
----
4004
4004
4004

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= col0 + - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT + col2 FROM tab0 WHERE 18 * - col0 + 42 / - CAST( + col0 AS SIGNED ) BETWEEN col0 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3508
SELECT + col2 FROM tab0 WHERE 18 * - col0 + 42 / - CAST ( + col0 AS INTEGER ) BETWEEN col0 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + COUNT( * ) + 22 col0 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3509
SELECT + COUNT ( * ) + 22 col0 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT + 89 DIV col0 col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT + 89 / col0 col1 FROM tab0
----
0
1
5

query I rowsort
SELECT + col1 * + 69 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col2 * 84 AS col2 FROM tab1
----
-4956
-5712
-8064

query III rowsort
SELECT * FROM tab0 WHERE NOT 29 + + col0 * + col0 BETWEEN ( 88 ) AND 98 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3515
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 54 > - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT - CAST( + col0 AS SIGNED ) * col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-3518
SELECT - CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + - 34 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3519
SELECT + - 34 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
102

query I rowsort
SELECT ALL 71 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
71
71
71

query I rowsort
SELECT ALL + - 4 * col0 FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3522
SELECT ALL * FROM tab1 cor0 WHERE ( - 26 * 16 ) > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3522
SELECT ALL * FROM tab1 cor0 WHERE ( - 26 * 16 ) > - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL + SUM( ALL 83 ) col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3523
SELECT ALL + SUM ( ALL 83 ) col0 FROM tab0 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + - COUNT( * ) * - ( + 91 ) AS col1 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3524
SELECT + - COUNT ( * ) * - ( + 91 ) AS col1 FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL ( + SUM( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL ( + SUM ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT COUNT( * ) DIV + + COUNT( col2 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3527
SELECT COUNT ( * ) / + + COUNT ( col2 ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT ALL + 87 / - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT ALL + 87 / - CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( col2 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-3529
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( col2 AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3530
SELECT 11 DIV + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 DIV + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3530
SELECT 11 / + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 / + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT COUNT( 31 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT COUNT ( 31 ) FROM tab0
----
3

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NULL ) = 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT col0 + - 15 + col0 DIV 21 col0 FROM tab1 AS cor0
----
38
74
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3533
SELECT col0 + - 15 + col0 / 21 col0 FROM tab1 AS cor0
----
38
74
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + + 62 * - 56 AS col2 FROM tab0 AS cor0
----
-3375
-3385
-3457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT col2 + + - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT col2 + + - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 56 * 60 + - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - 30 * 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6aaaffbe672d347caaf14881a461c07f

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT COUNT( * ) FROM tab0 WHERE ( - ( - 4 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) FROM tab0 WHERE ( - ( - 4 ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT COUNT( * ) * 39 FROM tab2, tab2 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT COUNT ( * ) * 39 FROM tab2, tab2 AS cor0
----
351

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3541
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) IN ( 58 + ( CAST( - 88 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-3541
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) IN ( 58 + ( CAST ( - 88 AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT 75 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3542
SELECT 75 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
225

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col2 / 69 IS NOT NULL
----
15
87
97

query I rowsort
SELECT 38 + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
123
129
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL CAST( NULL AS SIGNED ) * 49 - + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) + col0 ) NOT BETWEEN + col1 * - ( - 51 ) AND col0 * 98
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3545
SELECT ALL CAST ( NULL AS INTEGER ) * 49 - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) + col0 ) NOT BETWEEN + col1 * - ( - 51 ) AND col0 * 98
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 93 * - 93 >= ( NULL ) OR NOT ( + 72 / + 31 ) NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT - MAX( col0 ) / - ( - CAST( NULL AS SIGNED ) ) + 91 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT - MAX ( col0 ) / - ( - CAST ( NULL AS INTEGER ) ) + 91 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + ( col2 ) + + col0 * 19 >= + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3549
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col1 * + 2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - 50 * COUNT( ALL 50 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 12 NOT BETWEEN ( col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - 50 * COUNT ( ALL 50 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 12 NOT BETWEEN ( col2 ) AND NULL
----
0

query I rowsort
SELECT - col1 - 61 AS col2 FROM tab1 AS cor0
----
-108
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - + ( - - MAX( DISTINCT col1 ) ) + - 80 FROM tab2 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - + ( - - MAX ( DISTINCT col1 ) ) + - 80 FROM tab2 AS cor0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT SUM( col2 ) AS col2 FROM tab1 WHERE ( NULL ) BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT SUM ( col2 ) AS col2 FROM tab1 WHERE ( NULL ) BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col1 FROM tab2
----
-2652
-4556
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT col0 * + ( - CAST( col2 AS SIGNED ) ) + - col0 AS col2 FROM tab0
----
-720
-957
-9700

skipif mysql # not compatible
query I rowsort label-3557
SELECT col0 * + ( - CAST ( col2 AS INTEGER ) ) + - col0 AS col2 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT ALL - 27 - + - 45 FROM tab1
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - ( COUNT( ALL + ( col1 ) ) ) * 69 AS col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3559
SELECT - ( COUNT ( ALL + ( col1 ) ) ) * 69 AS col1 FROM tab2 AS cor0
----
-207

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 80 )
----

query I rowsort
SELECT DISTINCT 97 + + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + MIN( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + MIN ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL - 76, col2 AS col1 FROM tab2
----
-76
23
-76
40
-76
58

query I rowsort
SELECT - + 36 AS col0 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + - 22 FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT - + col2 * + CAST( NULL AS SIGNED ) 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-3566
SELECT - + col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT DISTINCT - + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3568
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - 62 + - + CAST( + col1 AS SIGNED ) + + 91 AND col1
----

skipif mysql # not compatible
query III rowsort label-3568
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - 62 + - + CAST ( + col1 AS INTEGER ) + + 91 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL - + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + 35 BETWEEN NULL AND + 64
----
10
47

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL NOT IN ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT col0 DIV - col0 col0 FROM tab0 WHERE NOT ( ( + col1 - + 10 ) IS NULL )
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3572
SELECT col0 / - col0 col0 FROM tab0 WHERE NOT ( ( + col1 - + 10 ) IS NULL )
----
-1
-1
-1

query I rowsort
SELECT + col0 * - col1 + - col1 + col0 - - col1 AS col1 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 33 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 26 + - + col0 FROM tab0
----
-113
-123
-41

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - COUNT( * ) * + MAX( ALL - col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3577
SELECT - COUNT ( * ) * + MAX ( ALL - col1 ) FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT ( col1 ) DIV col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3578
SELECT ( col1 ) / col1 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT 71 DIV + col2 col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT 71 / + col2 col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - 98 + COUNT( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( + col1 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 98 + COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( + col1 ) )
----
-98

query I rowsort
SELECT 7 AS col2 FROM tab0 AS cor0 WHERE ( - 26 - + col1 ) IS NULL OR col2 * ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3582
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) > - col0 - - - col0 + col0 * col1
----

skipif mysql # not compatible
query III rowsort label-3582
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > - col0 - - - col0 + col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT DISTINCT - col1 + col1 DIV col1 * 71 AS col2 FROM tab0
----
-10
50
70

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - col1 + col1 / col1 * 71 AS col2 FROM tab0
----
-10
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL MAX( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL MAX ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col2 / - col2 AND - ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + - col0 * 36 col0 FROM tab0 AS cor0 WHERE + ( + col1 ) <> ( 25 * 39 + + + col2 / - + col0 )
----
-3093
-3453
-501

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL <= + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL - MAX( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3588
SELECT ALL - MAX ( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT MIN( DISTINCT + ( ( + - col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3589
SELECT MIN ( DISTINCT + ( ( + - col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col0 + - 68 + + col2 ) < NULL )
----

query II rowsort
SELECT - 25, + col1 FROM tab0
----
-25
1
-25
21
-25
81

query I rowsort
SELECT DISTINCT - 93 + + - 76 FROM tab2
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT COUNT( * ) * - 26 - - COUNT( * ) + + MIN( DISTINCT - + col2 ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-3593
SELECT COUNT ( * ) * - 26 - - COUNT ( * ) + + MIN ( DISTINCT - + col2 ) FROM tab0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT 58 * + - 51 - 13 * + col1 - - + 68 + + - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT 58 * + - 51 - 13 * + col1 - - + 68 + + - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT + 9 DIV - - ( + - col0 ) - 10 AS col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 9 / - - ( + - col0 ) - 10 AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - MAX( ALL + ( - ( col1 ) ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - MAX ( ALL + ( - ( col1 ) ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 74 IS NULL
----

query II rowsort
SELECT - 33, col1 AS col0 FROM tab1
----
-33
14
-33
47
-33
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3599
SELECT ALL * FROM tab2 WHERE NULL < + ( - CAST( NULL AS SIGNED ) ) + - 7
----

skipif mysql # not compatible
query III rowsort label-3599
SELECT ALL * FROM tab2 WHERE NULL < + ( - CAST ( NULL AS INTEGER ) ) + - 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 11 DIV - + col2 * - col0 > - ( + - 15 ) + + 5
----
3

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 11 / - + col2 * - col0 > - ( + - 15 ) + + 5
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + - - col0 * col1 * + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT AVG ( - - col0 ) + - - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT AVG ( - - col0 ) + - - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT - 80 * - + CAST( + + col2 AS SIGNED ) FROM tab2
----
1840
3200
4640

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 80 * - + CAST ( + + col2 AS INTEGER ) FROM tab2
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT ALL + MIN( ALL - - col0 ) AS col0, ( + 75 ) AS col2 FROM tab0
----
15
75

skipif mysql # not compatible
query II rowsort label-3606
SELECT ALL + MIN ( ALL - - col0 ) AS col0, ( + 75 ) AS col2 FROM tab0
----
15
75

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= - 17 / - - ( 37 )
----

query I rowsort
SELECT ALL + 82 * - + 2 FROM tab0
----
-164
-164
-164

query I rowsort
SELECT - 12 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT - - 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + + 44 * - 46 * - ( + 35 ) + - SUM( ALL + col0 ) FROM tab0 AS cor0
----
70641

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + + 44 * - 46 * - ( + 35 ) + - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
70641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT 3 DIV COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3613
SELECT DISTINCT 3 / COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3614
SELECT ALL + - col1 DIV + col0, col2 col0 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3614
SELECT ALL + - col1 / + col0, col2 col0 FROM tab0 AS cor0
----
-5
47
0
10
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT + - MIN( DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT + - MIN ( DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT DISTINCT - 50 AS col0, 12 + - COUNT( * ) FROM tab0
----
-50
9

skipif mysql # not compatible
query II rowsort label-3616
SELECT DISTINCT - 50 AS col0, 12 + - COUNT ( * ) FROM tab0
----
-50
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + MIN( + + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3617
SELECT + MIN ( + + col2 ) AS col2 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 + + col0 * + 24 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3619
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) + + + col0 NOT BETWEEN ( NULL ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-3619
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) + + + col0 NOT BETWEEN ( NULL ) AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT - COUNT( * ) + - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT - COUNT ( * ) + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT 50 + CAST( ( - 23 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-3623
SELECT 50 + CAST ( ( - 23 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - col0 * + col2 + - + 67 FROM tab0 cor0
----
-772
-937
-9670

query I rowsort
SELECT DISTINCT + col1 + 42 AS col0 FROM tab1
----
47
56
89

query I rowsort
SELECT DISTINCT 57 - col0 + - + 76 * 10 * + 89 FROM tab0
----
-67598
-67670
-67680

query I rowsort
SELECT - 81 - + 81 + + - col1 AS col2 FROM tab2 AS cor0
----
-213
-229
-239

query I rowsort
SELECT ALL + col1 - 68 FROM tab2 AS cor0
----
-1
-17
9

query I rowsort
SELECT + 0 - + col0 + col1 * + col0 + - 66 * + 22 * 44 FROM tab2 AS cor0
----
-58938
-59024
-61588

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + COUNT( * ) + + COUNT( DISTINCT + 25 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3631
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + 25 ) AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT col0 + col2 * - + 22 FROM tab2 AS cor0
----
-1201
-460
-816

query II rowsort
SELECT ALL + col0, 66 AS col2 FROM tab1 cor0
----
51
66
85
66
91
66

query II rowsort
SELECT ALL + - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + 73 > + 20
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT ( + col0 ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - - 86 * COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT - - 86 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ALL CAST( - 76 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL CAST ( - 76 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL SUM( DISTINCT + ( col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL SUM ( DISTINCT + ( col1 ) ) FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0, tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL + - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 * + + col1, ( + - col2 ) col0 FROM tab1 AS cor0
----
141
-68
15
-59
42
-96

query II rowsort
SELECT DISTINCT - 28, col0 AS col1 FROM tab0
----
-28
15
-28
87
-28
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3645
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT COUNT( * ) * + + COUNT( * ) DIV + 57 * - 39 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT COUNT ( * ) * + + COUNT ( * ) / + 57 * - 39 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + + col1 * - 27 FROM tab1 AS cor0
----
-1269
-135
-378

query I rowsort
SELECT col2 * - col1 + - - 70 FROM tab2 AS cor0
----
-1103
-3010
-3816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT DISTINCT 33 + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT 33 + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
33

query I rowsort
SELECT - 96 + - + col0 - 80 + + - 70 FROM tab2 AS cor0
----
-292
-310
-321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + ( - + col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + ( - + col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 * + col2 + - - 66 AS col0 FROM tab0 AS cor0
----
1852
3828
446

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3653
SELECT ALL - 50 + - COUNT( * ) + - 15 DIV 10, SUM( + - col2 ) AS col1 FROM tab2
----
-54
-121

skipif mysql # not compatible
query II rowsort label-3653
SELECT ALL - 50 + - COUNT ( * ) + - 15 / 10, SUM ( + - col2 ) AS col1 FROM tab2
----
-54
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT COUNT( ALL - + 28 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT COUNT ( ALL - + 28 ) col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 * - 86 * + col1 FROM tab0
----
37926
564246
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL 95 * + + 11 * 7 + - - COUNT( * ) FROM tab1
----
7318

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 95 * + + 11 * 7 + - - COUNT ( * ) FROM tab1
----
7318

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT ALL ( col0 ) DIV col0 * col2 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL ( col0 ) / col0 * col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MIN( ALL - 59 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3658
SELECT MIN ( ALL - 59 ) FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * 0 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 * 41 col1, - col2 * + + 94 + - + ( 73 ) FROM tab1 AS cor0
----
-4059
-5619
-4059
-6465
-4059
-9097

query I rowsort
SELECT DISTINCT 67 + ( + col1 ) FROM tab1
----
114
72
81

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - col2 <= - col0 * + col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 82 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3664
SELECT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 82 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT 79 * SUM( ALL col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
5214

skipif mysql # not compatible
query I rowsort label-3665
SELECT 79 * SUM ( ALL col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + + 85 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + + 85 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT - 69 DIV + + 74 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3667
SELECT - 69 / + + 74 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col1, + col0 * + col2 + - + col1 AS col0 FROM tab0 cor0
----
1
9602
21
849
81
624

query I rowsort
SELECT + + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + 8 AS col2, - 45 FROM tab2 AS cor0
----
8
-45

query II rowsort
SELECT ALL + col1 AS col0, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - - 79 NOT BETWEEN NULL AND + - ( - + 39 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3673
SELECT CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3673
SELECT CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT ALL + 10 AS col2, - MIN( DISTINCT - col1 ) FROM tab1
----
10
47

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL + 10 AS col2, - MIN ( DISTINCT - col1 ) FROM tab1
----
10
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - + col0 + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT - 48 * - + COUNT( - col1 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT - 48 * - + COUNT ( - col1 ) FROM tab0
----
144

query I rowsort
SELECT ALL 86 * col0 * - + col1 FROM tab2
----
-201756
-423808
-432150

query I rowsort
SELECT + ( col2 ) * - + 58 AS col2 FROM tab0
----
-2726
-5742
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT + + CAST( + CAST( + ( 40 ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3680
SELECT + + CAST ( + CAST ( + ( 40 ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT + MIN( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 41 BETWEEN - 27 - - + col2 AND - col2 * - - col2 + + + 35 * + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT 38 DIV col1 * + - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT 38 / col1 * + - col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3684
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT - CAST( - 69 AS SIGNED ) * SUM( - - 26 ) AS col2 FROM tab2
----
5382

skipif mysql # not compatible
query I rowsort label-3685
SELECT - CAST ( - 69 AS INTEGER ) * SUM ( - - 26 ) AS col2 FROM tab2
----
5382

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT - 51 * + 46 / - AVG ( + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - 51 * + 46 / - AVG ( + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN + 35 * - col2 - - col2 AND - 67 + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE col2 * - + 94 * + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3688
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col2 * - + 94 * + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col2 + + col1 + ( + ( 28 ) ) FROM tab2 AS cor0
----
37
56
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT ALL MIN( - + col0 ), + 90 AS col2 FROM tab0 AS cor0
----
-97
90

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL MIN ( - + col0 ), + 90 AS col2 FROM tab0 AS cor0
----
-97
90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT - + col1 DIV col0 DIV + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3692
SELECT - + col1 / col0 / + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - - SUM( - - ( - col1 ) ) + + MIN( + col2 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - - SUM ( - - ( - col1 ) ) + + MIN ( + col2 ) FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL 79 + + - ( - + COUNT( - col0 ) ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 79 + + - ( - + COUNT ( - col0 ) ) AS col2 FROM tab0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3695
SELECT col2, - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3695
SELECT col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL + col2 + - - col2 + - ( col1 ) * + col0 * + col2 + + col1 AS col0 FROM tab0
----
-18229
-56930
-9404

query I rowsort
SELECT ALL ( col0 ) * + + col1 + + + col2 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT - COUNT( * ) + + 96 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - COUNT ( * ) + + 96 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - + COUNT( * ) + - 20 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3699
SELECT - + COUNT ( * ) + - 20 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - 99 * - col1 AS col2 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT DISTINCT + 56 + - - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + 56 + - - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( + col2 )
----

query I rowsort
SELECT - 75 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + COUNT( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + COUNT ( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 13 * - col1 FROM tab1 AS cor0
----
-182
-611
-65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT DISTINCT + col1 * col0 AS col1, - CAST( NULL AS SIGNED ) / col1 + col0 - - - col0 * col1 AS col0 FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + col1 * col0 AS col1, - CAST ( NULL AS INTEGER ) / col1 + col0 - - - col0 * col1 AS col0 FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

query I rowsort
SELECT - - col0 FROM tab0 cor0 WHERE NOT ( NULL <> col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - + MAX( + + col1 ) * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + MAX ( + + col1 ) * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 76 ) > NULL
----

query I rowsort
SELECT - col1 * ( ( + - 54 ) ) AS col1 FROM tab0 WHERE NOT - 11 - - - col0 >= 32
----
1134
4374
54

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - + 44 IS NOT NULL
----

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - 37 + - 87 + + col0, ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - 37 + - 87 + + col0, ( col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL MIN( ALL 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL MIN ( ALL 0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL MIN( ALL + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT - COUNT( * ) * - - MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - COUNT ( * ) * - - MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT - ( 37 ) FROM tab1 cor0
----
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 20 BETWEEN NULL AND + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT - CAST( 81 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif mysql # not compatible
query I rowsort label-3719
SELECT - CAST ( 81 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL < NULL )
----

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT MAX( - - col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3722
SELECT DISTINCT MAX ( - - col2 ) col1 FROM tab1
----
96

query I rowsort
SELECT ALL + + 63 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 72 NOT IN ( + - col0, col1, + 58, + 93 + - - col1 / col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT 43 * - - 90 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3873

skipif mysql # not compatible
query I rowsort label-3725
SELECT 43 * - - 90 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3873

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - MAX( DISTINCT - - col2 ) + + - MIN( + - 28 ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3726
SELECT - MAX ( DISTINCT - - col2 ) + + - MIN ( + - 28 ) AS col0 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + col0 + + col1 + + 99 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT - SUM( + 29 ) FROM tab1 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - SUM ( + 29 ) FROM tab1 cor0
----
-87

query I rowsort
SELECT ALL + col2 + - + col0 + + 62 + + 67 FROM tab1
----
103
106
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT col2 + - - col2 * + CAST( NULL AS SIGNED ) * - col1 / + - col1 + - col0 * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT col2 + - - col2 * + CAST ( NULL AS INTEGER ) * - col1 / + - col1 + - col0 * col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 53 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT col2 DIV - col1 FROM tab0 WHERE + 65 + col2 IS NOT NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 / - col1 FROM tab0 WHERE + 65 + col2 IS NOT NULL
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT + CAST( NULL AS SIGNED ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT + CAST ( NULL AS INTEGER ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT col0 + - col2 + col1 + - col1 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - - 9 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT DISTINCT col2 DIV + 24 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT col2 / + 24 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT DISTINCT - 90 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - 90 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - col1 col1 FROM tab1 cor0
----
-1128
-120
-336

query II rowsort
SELECT 31 AS col0, 41 * + 59 * - col2 AS col0 FROM tab0 cor0
----
31
-113693
31
-239481
31
-24190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT DISTINCT - + 42 * - - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - + 42 * - - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - ( + 39 ) * col2 AS col1, 30 AS col1 FROM tab1 AS cor0
----
-2301
30
-2652
30
-3744
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT col1 * - 73 FROM tab1
----
-1022
-3431
-365

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 66 IS NULL )
----

query I rowsort
SELECT col1 * + 33 * + + col2 FROM tab0
----
125631
3267
6930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 26 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 26 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 49 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - col2 * + + 31 FROM tab1
----
-1829
-2108
-2976

query I rowsort
SELECT - 52 * + col1 FROM tab1
----
-2444
-260
-728

query II rowsort
SELECT ALL 89, col1 AS col0 FROM tab0 AS cor0
----
89
1
89
21
89
81

query I rowsort
SELECT - col2 * + col0 / col0 + + 86 FROM tab1 AS cor0 WHERE + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT + - 1 * + 70 - - col1 + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + - 1 * + 70 - - col1 + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 * - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 24 * + col0 * + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN 86 AND + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT ( ( + - col1 ) ) * + col1 + - col1 * ( CAST( - col2 AS SIGNED ) ) FROM tab0 cor0
----
-231
-2754
98

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT ( ( + - col1 ) ) * + col1 + - col1 * ( CAST ( - col2 AS INTEGER ) ) FROM tab0 cor0
----
-231
-2754
98

query I rowsort
SELECT ALL + col1 * + 54 + - col0 AS col1 FROM tab0
----
-43
1047
4359

query I rowsort
SELECT ALL - ( + 77 ) + col0 FROM tab2
----
-13
-2
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT COUNT( * ) + + 81 AS col2 FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
81

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT COUNT ( * ) + + 81 AS col2 FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
81

query I rowsort
SELECT ALL - ( 54 ) + + - 37 AS col1 FROM tab1
----
-91
-91
-91

query II rowsort
SELECT DISTINCT + - col2 AS col1, - col2 FROM tab1 WHERE col0 IS NOT NULL
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT - col1 * + col0 * - col0 + + 17 AS col1 FROM tab1
----
36142
36431
389224

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - MAX( + col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3766
SELECT - MAX ( + col1 ) col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + + col1 * + col2 * - - col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT CAST( + - 25 AS SIGNED ) FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-3769
SELECT CAST ( + - 25 AS INTEGER ) FROM tab1
----
-25
-25
-25

query I rowsort
SELECT ALL 96 * - col1 AS col2 FROM tab1 AS cor0
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ( - - COUNT( + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3771
SELECT ( - - COUNT ( + col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT ALL col0 * col0 + + + ( CAST( NULL AS SIGNED ) ) - - + col1 * - col1 * 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL col0 * col0 + + + ( CAST ( NULL AS INTEGER ) ) - - + col1 * - col1 * 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT ( + + MAX( col1 ) ) * 66 AS col1 FROM tab2
----
5082

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT ( + + MAX ( col1 ) ) * 66 AS col1 FROM tab2
----
5082

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT COUNT( * ), - 33 AS col2 FROM tab1
----
3
-33

skipif mysql # not compatible
query II rowsort label-3775
SELECT COUNT ( * ), - 33 AS col2 FROM tab1
----
3
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3776
SELECT ALL CAST( NULL AS DECIMAL ), MIN( col2 ) AS col2 FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL CAST ( NULL AS REAL ), MIN ( col2 ) AS col2 FROM tab2
----
NULL
23

query I rowsort
SELECT ALL + - col0 * - 3 AS col0 FROM tab0 AS cor0
----
261
291
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 69 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL - col2 DIV 7 + - col2 * + col0 FROM tab0 AS cor0
----
-711
-871
-9617

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - col2 / 7 + - col2 * + col0 FROM tab0 AS cor0
----
-711
-871
-9617

query I rowsort
SELECT 16 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 BETWEEN NULL AND col2 / + ( - col0 ) + 98
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - ( - ( + 68 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT COUNT( ALL - - col2 ) + - - 19 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3783
SELECT COUNT ( ALL - - col2 ) + - - 19 AS col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL 98 * - COUNT( * ) FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 98 * - COUNT ( * ) FROM tab1 cor0
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT - col0 DIV + 2 FROM tab0 AS cor0
----
-43
-48
-7

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - col0 / + 2 FROM tab0 AS cor0
----
-43
-48
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - MIN( + 95 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3786
SELECT - MIN ( + 95 ) FROM tab2 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - - col1 - + 84 >= col2 / - col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 46, - ( + - 91 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
46
91
46
91
46
91

query I rowsort
SELECT - 94 * - 27 AS col2 FROM tab2
----
2538
2538
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT + ( + COUNT( * ) ) + - MAX( - + col0 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + ( + COUNT ( * ) ) + - MAX ( - + col0 ) FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL MIN( ALL + - col1 ) - COUNT( * ) * - 67 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL MIN ( ALL + - col1 ) - COUNT ( * ) * - 67 FROM tab1
----
154

query I rowsort
SELECT + col1 - col2 + - col0 FROM tab2
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT + ( COUNT( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3793
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 - + - 42 col1 FROM tab2
----
-100
-55
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT ALL - 6, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL - 6, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6
3

query I rowsort
SELECT DISTINCT + - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + 35 * + - COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 35 * + - COUNT ( * ) FROM tab1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3798
SELECT + 58 + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( - CAST( NULL AS DECIMAL ) / - CAST( NULL AS DECIMAL ) + + col0, ( - - 95 ) )
----
58

skipif mysql # not compatible
query I rowsort label-3798
SELECT + 58 + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( - CAST ( NULL AS REAL ) / - CAST ( NULL AS REAL ) + + col0, ( - - 95 ) )
----
58

query I rowsort
SELECT + 18 FROM tab2 AS cor0 WHERE NOT + 56 IS NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT ALL + + 69 AS col2, + SUM( col1 ) FROM tab2 AS cor0
----
69
195

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL + + 69 AS col2, + SUM ( col1 ) FROM tab2 AS cor0
----
69
195

query II rowsort
SELECT DISTINCT - - col0, 39 AS col0 FROM tab0 AS cor0
----
15
39
87
39
97
39

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - COUNT( * ) * + - MIN( + 63 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3803
SELECT - COUNT ( * ) * + - MIN ( + 63 ) FROM tab1 AS cor0
----
189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 * + - 78 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - - COUNT( DISTINCT - 35 ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - COUNT ( DISTINCT - 35 ) AS col2 FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 43
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3807
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) * + col1 + - + 55 DIV col2 * - col2 + + + ( - col1 ) FROM tab2 WHERE NOT ( - col2 * 43 * - 25 ) < - col1
----
-2606
-4556
-5966

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) * + col1 + - + 55 / col2 * - col2 + + + ( - col1 ) FROM tab2 WHERE NOT ( - col2 * 43 * - 25 ) < - col1
----
-2606
-4556
-5966

query I rowsort
SELECT DISTINCT - 79 * - col2 AS col2 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT ALL + ( + - col0 ) + - + 6 AS col0 FROM tab2
----
-52
-70
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 55 <> NULL
----

query I rowsort
SELECT DISTINCT 86 * + col2 * + col1 AS col1 FROM tab2
----
100878
264880
334196

query I rowsort
SELECT DISTINCT col0 * 21 FROM tab0
----
1827
2037
315

query I rowsort
SELECT ALL - - col1 * col0 + - col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + 91 * SUM( - + 58 ) FROM tab1 AS cor0
----
-15834

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + 91 * SUM ( - + 58 ) FROM tab1 AS cor0
----
-15834

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL + - 45 + + col2 DIV + - col1 FROM tab0 AS cor0
----
-144
-45
-45

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + - 45 + + col2 / + - col1 FROM tab0 AS cor0
----
-144
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + + 72 + + 27 + + - COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3816
SELECT + + 72 + + 27 + + - COUNT ( * ) FROM tab2 AS cor0
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col1 + - 94 * - col1 col2 FROM tab2 AS cor0
----
1273
2310
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL - 0 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - 0 * - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 27 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 27 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT ( - COUNT( * ) ) AS col2, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-3821
SELECT ( - COUNT ( * ) ) AS col2, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

query I rowsort
SELECT - - ( - 96 ) * + + 81 + + 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6f9f2b103f4bc1068cdbee377288f535

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + + 84 + - col2, 39 + + col0, + col1, col1 + 16 + + ( col1 ) * - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + 57 - COUNT( * ) col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT + 57 - COUNT ( * ) col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL 37 + col1 AS col0 FROM tab0 AS cor0
----
118
38
58

query I rowsort
SELECT + 46 + + col0 + - 95 + - col1 * + col1 FROM tab1 AS cor0
----
-194
-2167
11

query I rowsort
SELECT col0 + + col2 + - + 7 FROM tab1 AS cor0
----
137
140
152

query II rowsort
SELECT DISTINCT - col0 + - col0 + - 38, - col0 AS col2 FROM tab2 AS cor0
----
-130
-46
-166
-64
-188
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL MIN( 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL MIN ( 52 ) FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 + - col0 col0 FROM tab2
----
-115
-126
-97

query I rowsort
SELECT + 65 AS col2 FROM tab1 WHERE - col0 >= - - 57
----

query I rowsort
SELECT ALL col1 + - 87 AS col2 FROM tab1
----
-40
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 + + 75 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT DISTINCT + - 7 * + - 88 * 3 FROM tab2 WHERE + - col1 IS NOT NULL
----
1848

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 99 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - - col0 ) * - + 36 col1 FROM tab0 AS cor0
----
3132
3492
540

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE + 19 * col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 99 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-99
10
-99
47
-99
99

query I rowsort
SELECT ALL - 29 * col2 + - col0 AS col1 FROM tab1
----
-1796
-2063
-2835

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT ( col2 ) + + + col0 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT ( col2 ) + + + col0 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 91, col2 AS col2 FROM tab2
----
91
23
91
40
91
58

query II rowsort
SELECT - 70, - col1 AS col2 FROM tab1
----
-70
-14
-70
-47
-70
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 col1, - col1 AS col1 FROM tab2
----
81
-51
81
-67
81
-77

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 81 AND + 71 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + 50 * - COUNT( * ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 50 * - COUNT ( * ) AS col1 FROM tab0
----
-150

query I rowsort
SELECT DISTINCT - 23 * - col1 * + col2 FROM tab1
----
30912
6785
73508

query II rowsort
SELECT - col1, 79 * + + col1 AS col0 FROM tab2 AS cor0
----
-51
4029
-67
5293
-77
6083

query III rowsort
SELECT * FROM tab0 WHERE 70 <= NULL
----

query I rowsort
SELECT col2 + + - 16 + - col1 * + 95 * col1 AS col1 FROM tab0
----
-12
-41901
-623264

query II rowsort
SELECT col1 + + - 29 AS col2, 32 AS col2 FROM tab0
----
-28
32
-8
32
52
32

query I rowsort
SELECT ALL - 41 - + col1 FROM tab0 cor0
----
-122
-42
-62

query I rowsort
SELECT DISTINCT col0 * - col0 + - 39 * + col2 FROM tab1 AS cor0
----
-10933
-6345
-9526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE ( - 38 ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + - 85 * + - 72 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
6120

skipif mysql # not compatible
query I rowsort label-3856
SELECT + - 85 * + - 72 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
6120

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT MAX( ALL + col2 ) col1, 92 FROM tab2 AS cor0
----
58
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3857
SELECT MAX ( ALL + col2 ) col1, 92 FROM tab2 AS cor0
----
58
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT - 2 DIV + 88 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 2 / + 88 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN + col0 AND ( - col1 ) - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 80 + + - col2 - - + 7 IS NOT NULL
----

query I rowsort
SELECT ( + ( + - 63 ) ) AS col0 FROM tab0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL + COUNT( ALL col1 ) + + + 54 AS col1 FROM tab2 WHERE NOT NULL <> col1
----
54

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + COUNT ( ALL col1 ) + + + 54 AS col1 FROM tab2 WHERE NOT NULL <> col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3863
SELECT - COUNT( * ) DIV + + ( + 50 ) * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT - COUNT ( * ) / + + ( + 50 ) * - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT + COUNT( ( - 41 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + COUNT ( ( - 41 ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT + 90 DIV - 58 col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT DISTINCT + 90 / - 58 col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL 3 * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL 3 * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT + COUNT( - - 92 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3867
SELECT + COUNT ( - - 92 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT - COUNT( * ) AS col1, - 62 AS col0 FROM tab0 AS cor0
----
-3
-62

skipif mysql # not compatible
query II rowsort label-3868
SELECT - COUNT ( * ) AS col1, - 62 AS col0 FROM tab0 AS cor0
----
-3
-62

query I rowsort
SELECT + 60 * + col2 FROM tab0 AS cor0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + COUNT( * ) * + + 28 FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + COUNT ( * ) * + + 28 FROM tab2 cor0
----
84

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 NOT IN ( - 20, + col0 / + col0 * - + 77 * - - col0 )
----

query I rowsort
SELECT 91 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT + - ( - CAST( - + col2 AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + - ( - CAST ( - + col2 AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3875
SELECT + - 20 + - col0, CAST( NULL AS SIGNED ) * - 44 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col0
----

skipif mysql # not compatible
query II rowsort label-3875
SELECT + - 20 + - col0, CAST ( NULL AS INTEGER ) * - 44 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col0
----

query II rowsort
SELECT DISTINCT + - col2 + col1 AS col0, col2 FROM tab1 AS cor0
----
-21
68
-54
59
-82
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 49 BETWEEN NULL AND + + col2 / + + 59 + + 89
----

query I rowsort
SELECT ALL - col0 + + col2 + - - 11 + col2 * + + 88 AS col1 FROM tab2 AS cor0
----
2012
3507
5098

query I rowsort
SELECT col0 - + col1 FROM tab2 WHERE NULL IS NULL
----
-13
-5
8

query II rowsort
SELECT 61, + col2 * col1 * - - col2 + col0 AS col1 FROM tab1
----
61
129075
61
17490
61
217419

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL MAX( ALL + col0 ) + - 52 col2 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3881
SELECT ALL MAX ( ALL + col0 ) + - 52 col2 FROM tab1
----
39

query I rowsort
SELECT DISTINCT - 90 + - 2 FROM tab0
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - 84 FROM tab2 AS cor0
----
-130
-148
-159

query I rowsort
SELECT - 66 - - + col0 AS col2 FROM tab0
----
-51
21
31

query I rowsort
SELECT + 92 + - 74 AS col2 FROM tab2 cor0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL - col0 * + col2 + 90 + - - 97 * - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-712
-877
-9610

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - col0 * + col2 + 90 + - - 97 * - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-712
-877
-9610

query I rowsort
SELECT ALL - 56 * - col1 AS col2 FROM tab1
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT COUNT( * ) * - 37 AS col2 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-3889
SELECT COUNT ( * ) * - 37 AS col2 FROM tab0
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT ALL MIN( DISTINCT - 19 ), - COUNT( * ) AS col0 FROM tab2
----
-19
-3

skipif mysql # not compatible
query II rowsort label-3890
SELECT ALL MIN ( DISTINCT - 19 ), - COUNT ( * ) AS col0 FROM tab2
----
-19
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + ( - - 90 ) * COUNT( * ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3891
SELECT + ( - - 90 ) * COUNT ( * ) FROM tab0 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT SUM( col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3892
SELECT SUM ( col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT + ( 91 ) AS col0 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT + COUNT( * ) DIV + + 1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3894
SELECT + COUNT ( * ) / + + 1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 45 * + 4 FROM tab2
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT - col0 DIV 48 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT - col0 / 48 FROM tab0
----
-1
-2
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 3 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + - col2 * + ( - col1 ), + ( 43 ) * col1 AS col2 FROM tab2 AS cor0
----
1173
2193
3080
3311
3886
2881

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + - 90 + 77 * + 79 - - + col0 AND + - 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT - CAST( ( + - col0 ) AS SIGNED ) * - + col1 AS col1 FROM tab0 WHERE + 58 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT - CAST ( ( + - col0 ) AS INTEGER ) * - + col1 AS col1 FROM tab0 WHERE + 58 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + 71 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - 77 AS col0, - col2 - col0 AS col1 FROM tab0
----
-3619
-62
-7623
-196
-770
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col0 * - + 59 * - ( ( + - 45 ) ) FROM tab0
----
-230985
-257535
-39825

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT ALL CAST( MAX( + 96 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL CAST ( MAX ( + 96 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

query I rowsort
SELECT ALL 77 - - col0 FROM tab2
----
123
141
152

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT - SUM( DISTINCT + - col1 ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-309

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 24 * 37 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col1 - 24 NOT IN ( + 69 + + col0 * - 14, col2 * + col2 + + ( + col0 ) )
----

query I rowsort
SELECT - col0 * + + 29 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT + COUNT( * ) DIV 17 * + ( - ( 98 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT + COUNT ( * ) / 17 * + ( - ( 98 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * + col0 * 91 FROM tab1 AS cor0
----
236691
657475
753571

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - col2 IN ( - - 83 + - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - ( - col2 ) AS col1 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT - COUNT( - ( + 41 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - COUNT ( - ( + 41 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL col2 * + 81 FROM tab0
----
3807
8019
810

query I rowsort
SELECT col1 * 80 AS col0 FROM tab2
----
4080
5360
6160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - col2 + + col2
----

query I rowsort
SELECT DISTINCT - - 15 * - col0 * col1 + - col0 FROM tab1 AS cor0
----
-10761
-64246
-6460

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 28 * + col2 AS col2 FROM tab0
----
1316
2772
280

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - 46
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3926
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST( - + 90 AS DECIMAL ) + col0, - 25 * + + 99 )
----

skipif mysql # not compatible
query III rowsort label-3926
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( - + 90 AS REAL ) + col0, - 25 * + + 99 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3927
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 8 + + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 8 + + + COUNT ( * ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 82 + + col0 col1 FROM tab0 AS cor0
----
3869
8215
907

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + 34 / 45 + 55, col2, ( - 87 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL - - 94 + - COUNT( * ) col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT ALL - - 94 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3932
SELECT COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT COUNT( * ) + - 70 FROM tab1 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3933
SELECT COUNT ( * ) + - 70 FROM tab1 cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL col0 * - + ( - - CAST( NULL AS SIGNED ) ) + - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL col0 * - + ( - - CAST ( NULL AS INTEGER ) ) + - - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + 20 + + + COUNT( * ) - + + MAX( - col1 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3935
SELECT + 20 + + + COUNT ( * ) - + + MAX ( - col1 ) FROM tab1
----
28

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * 87 - col0 + - - ( + - 9 ) - + - 86 BETWEEN 71 AND + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT DISTINCT 87 DIV 80 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT 87 / 80 AS col2 FROM tab0
----
1

query II rowsort
SELECT - col0, + col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - CAST( NULL AS SIGNED ) * - - col0 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - CAST ( NULL AS INTEGER ) * - - col0 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + 25 AS col2 FROM tab0 cor0
----
-56
24
4

query II rowsort
SELECT col1 AS col1, 58 AS col2 FROM tab1 AS cor0
----
14
58
47
58
5
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3942
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 + - + col1 * ( - - 57 ) * + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3942
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 + - + col1 * ( - - 57 ) * + CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT - ( col2 ) DIV - col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3943
SELECT - ( col2 ) / - col2 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE 41 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - COUNT( - ( - col1 ) ) + 10 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3945
SELECT - COUNT ( - ( - col1 ) ) + 10 AS col2 FROM tab0
----
7

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 74 / - col1 - - 11 BETWEEN NULL AND ( + 64 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE ( NULL ) < 53 * + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + + col0 col2 FROM tab0 WHERE + col1 NOT BETWEEN col1 * 90 AND NULL
----
146
156
74

query I rowsort
SELECT ALL col0 * 4 + col0 FROM tab0
----
435
485
75

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 55 )
----

query I rowsort
SELECT - col0 * 20 AS col0 FROM tab0 WHERE NOT NULL IN ( 11 + - 50 * + col0 )
----

query I rowsort
SELECT DISTINCT 3 + + col2 AS col1 FROM tab1
----
62
71
99

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT + CAST( - col2 AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT + CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - 12 FROM tab0 WHERE NOT ( - col2 + - ( + col0 ) * - 11 ) NOT IN ( + col2 + + col2 * 23 )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( - ( + 11 ) + + 37 ) IS NULL
----

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab2 WHERE ( - 3 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - MIN( DISTINCT + 53 ) AS col1 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - MIN ( DISTINCT + 53 ) AS col1 FROM tab2
----
-53

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( - 63 / + 13 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( col1 * - 62 )
----

query I rowsort
SELECT DISTINCT 46 * col0 + + 65 FROM tab1
----
2411
3975
4251

query I rowsort
SELECT DISTINCT col1 - 62 FROM tab1
----
-15
-48
-57

query III rowsort
SELECT * FROM tab0 WHERE ( ( col0 ) ) = NULL
----

query I rowsort
SELECT ALL 33 AS col1 FROM tab0 cor0 WHERE NOT ( + col1 ) = 27
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN + col1 * + col0 AND + 85 * + col2
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * 16 ) BETWEEN 33 AND 47
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 74 ) <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + + 31 FROM tab0
----
130
241
3838

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT 82 + + MIN( DISTINCT 66 ) * COUNT( * ) FROM tab2
----
280

skipif mysql # not compatible
query I rowsort label-3970
SELECT 82 + + MIN ( DISTINCT 66 ) * COUNT ( * ) FROM tab2
----
280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * - ( - col0 ) + ( col0 ) col0 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL 50 * MAX( ALL col2 ) FROM tab1 AS cor0
----
4800

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL 50 * MAX ( ALL col2 ) FROM tab1 AS cor0
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - COUNT( * ) + - MAX( DISTINCT + 24 ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3973
SELECT - COUNT ( * ) + - MAX ( DISTINCT + 24 ) AS col0 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - - col0 + + col2 * + col0 FROM tab1 AS cor0
----
4947
5100
6279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) + + col1 NOT BETWEEN ( col0 ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 * + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT - CAST( - 46 AS SIGNED ) AS col2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3979
SELECT - CAST ( - 46 AS INTEGER ) AS col2 FROM tab0
----
46
46
46

query I rowsort
SELECT ( - 37 ) FROM tab0
----
-37
-37
-37

query I rowsort
SELECT + col1 - + 61 AS col0 FROM tab1
----
-14
-47
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2 / - 32 )
----

query I rowsort
SELECT + col2 - + 71 FROM tab1
----
-12
-3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT + 51 + - MAX( ( 8 ) ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT + 51 + - MAX ( ( 8 ) ) AS col0 FROM tab0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT - CAST( + 42 AS SIGNED ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - CAST ( + 42 AS INTEGER ) AS col1 FROM tab2
----
-42

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - 9 - + MAX( + col1 ) + ( ( 25 ) ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 9 - + MAX ( + col1 ) + ( ( 25 ) ) AS col0 FROM tab2
----
-61

query I rowsort
SELECT ( + 25 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 - - - 28 AS col0 FROM tab0 cor0
----
-18
19
71

query I rowsort
SELECT + col1 / col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 69 * + - 0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col0 * 96 - 16 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL + 73 DIV + 31 col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT ALL + 73 / + 31 col1 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE ( + col2 + - 88 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab1 cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL col0 + + 92 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col0 + + 92 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + 56 AS col2 FROM tab1 cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT - + CAST( 58 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4001
SELECT - + CAST ( 58 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT + 12 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 12 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 39 ) >= ( + col0 )
----
-45
23
26

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL - 91 FROM tab1 WHERE NOT + 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 2 + - + col0 + 19 * ( - col0 ) * + 30 FROM tab1
----
-29119
-48533
-51959

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT + MIN( 32 ) col2 FROM tab1 WHERE - ( 41 ) + 10 * col0 <= ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4008
SELECT DISTINCT + MIN ( 32 ) col2 FROM tab1 WHERE - ( 41 ) + 10 * col0 <= ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT - 27 DIV col2 + + + 74 AS col2 FROM tab0 AS cor0
----
72
74
74

skipif mysql # not compatible
query I rowsort label-4009
SELECT - 27 / col2 + + + 74 AS col2 FROM tab0 AS cor0
----
72
74
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 65 ) <= ( + col1 )
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 + - 8 col0 FROM tab2 AS cor0
----
-25
-31
-32

query I rowsort
SELECT ALL + ( + - ( - 78 ) ) + col0 AS col2 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT - - 6 + + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 60 IN ( col2 * - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - 95 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 - + - 61 AS col0 FROM tab2 AS cor0
----
21
3
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT + - CAST( NULL AS SIGNED ) * - + CAST( col2 AS SIGNED ) + col1 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <= - + 9
----

skipif mysql # not compatible
query I rowsort label-4018
SELECT + - CAST ( NULL AS INTEGER ) * - + CAST ( col2 AS INTEGER ) + col1 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <= - + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - SUM( ALL 31 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - SUM ( ALL 31 ) FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT - col0 + + - 99 - + - CAST( col2 AS SIGNED ) - + col1 * col0 FROM tab2 AS cor0
----
-2468
-5051
-5141

skipif mysql # not compatible
query I rowsort label-4020
SELECT - col0 + + - 99 - + - CAST ( col2 AS INTEGER ) - + col1 * col0 FROM tab2 AS cor0
----
-2468
-5051
-5141

query I rowsort
SELECT - col0 + - col2 + 8 FROM tab1 AS cor0
----
-136
-139
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + COUNT( * ) + + 21 AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4022
SELECT + COUNT ( * ) + + 21 AS col1 FROM tab2
----
24

query I rowsort
SELECT - 30 FROM tab2 WHERE col2 IS NOT NULL
----
-30
-30
-30

query I rowsort
SELECT ALL - ( - col1 ) + - + col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT 75 - col1 + - col2 + 57 FROM tab0
----
101
32
4

query I rowsort
SELECT - - col0 * 53 FROM tab1 AS cor0
----
2703
4505
4823

query II rowsort
SELECT DISTINCT col2, - col1 AS col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - MIN( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IN ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT - MIN ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IN ( + + col1 )
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT - ( - COUNT( * ) ) DIV COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4031
SELECT - ( - COUNT ( * ) ) / COUNT ( * ) FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT - + col2 * - col1 - + col0 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT + col1 + 72 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( - 41 / + ( ( - ( 76 ) ) ) + - col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= ( 30 )
----

query I rowsort
SELECT - - col0 + col2 + + 62 FROM tab0 AS cor0
----
124
159
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL + 66 + - CAST( NULL AS SIGNED ) * + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 66 + - CAST ( NULL AS INTEGER ) * + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4037
SELECT DISTINCT + + 62 DIV + COUNT( * ) AS col1, COUNT( * ) FROM tab0 cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-4037
SELECT DISTINCT + + 62 / + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 cor0
----
20
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL - 84 * + 64 * CAST( - - MIN( - col1 ) AS SIGNED ) AS col0 FROM tab0
----
435456

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 84 * + 64 * CAST ( - - MIN ( - col1 ) AS INTEGER ) AS col0 FROM tab0
----
435456

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT DISTINCT col2 + col0 + - col1 DIV + 44 FROM tab2
----
103
132
68

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT col2 + col0 + - col1 / + 44 FROM tab2
----
103
132
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 97 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4042
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 97 IS NULL
----
3

query I rowsort
SELECT + ( - - 32 ) AS col1 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4044
SELECT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) + - col0 * + CAST( NULL AS SIGNED ) IN ( 32 )
----

skipif mysql # not compatible
query III rowsort label-4044
SELECT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) + - col0 * + CAST ( NULL AS INTEGER ) IN ( 32 )
----

query I rowsort
SELECT + ( 26 ) FROM tab0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / - 60 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT - MAX( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - MAX ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - COUNT( * ) * 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-4048
SELECT - COUNT ( * ) * 86 FROM tab0 AS cor0
----
-258

query I rowsort
SELECT DISTINCT - ( + - col0 ) * 27 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT ALL ( + col1 ) * - col0 + + + 74 FROM tab2 cor0
----
-2272
-4854
-4951

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - COUNT( DISTINCT col0 ) + + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + + + COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT COUNT( * ) + 98 * + ( + 26 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
2548

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT COUNT ( * ) + 98 * + ( + 26 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + ( - col2 ) - - 49 + + col2 col2 FROM tab2 AS cor0
----
1689
3471
601

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL 64 * MIN( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col2 * - - 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL 64 * MIN ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT - col2 * - - 84 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - + col2 AS col0, - 97 - col1 FROM tab1 AS cor0 WHERE NOT NULL < 22 + - + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 74 + - col0 * - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 20 col1 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT DISTINCT 85 + - 17 * - COUNT( DISTINCT - + col0 ) + + COUNT( * ) AS col1, COUNT( * ) * + 25 * 80 FROM tab1
----
139
6000

skipif mysql # not compatible
query II rowsort label-4059
SELECT DISTINCT 85 + - 17 * - COUNT ( DISTINCT - + col0 ) + + COUNT ( * ) AS col1, COUNT ( * ) * + 25 * 80 FROM tab1
----
139
6000

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT DISTINCT 92 AS col1, COUNT( * ) FROM tab0
----
92
3

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT 92 AS col1, COUNT ( * ) FROM tab0
----
92
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL - SUM( ALL + + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - SUM ( ALL + + col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + col2 * - 90 * + col2 AS col0 FROM tab2
----
-144000
-302760
-47610

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT SUM( DISTINCT - 59 ) FROM tab0 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT SUM ( DISTINCT - 59 ) FROM tab0 cor0
----
-59

query I rowsort
SELECT ALL col0 * - + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * - col2 + + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4068
SELECT 96, + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
96
9

skipif mysql # not compatible
query II rowsort label-4068
SELECT 96, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
96
9

query II rowsort
SELECT - 95, 84 + + - col2 AS col1 FROM tab0 AS cor0
----
-95
-15
-95
37
-95
74

query I rowsort
SELECT ALL - col0 + + 12 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( + CAST( 41 AS SIGNED ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4071
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( + CAST ( 41 AS INTEGER ) ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT COUNT( * ) + - CAST( - - 49 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT COUNT ( * ) + - CAST ( - - 49 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, col2 + - col2 col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

query II rowsort
SELECT col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT col2 + + 26 DIV 53 * + col0 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4075
SELECT col2 + + 26 / 53 * + col0 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + COUNT( ALL - col0 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + COUNT ( ALL - col0 ) * COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT ALL - col2 DIV - ( col0 ) * + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - col2 / - ( col0 ) * + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + ( 31 ) + COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4078
SELECT + ( 31 ) + COUNT ( * ) FROM tab0 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT + 26 + - col2 DIV - + col0 AS col0 FROM tab0 AS cor0
----
26
27
29

skipif mysql # not compatible
query I rowsort label-4079
SELECT + 26 + - col2 / - + col0 AS col0 FROM tab0 AS cor0
----
26
27
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 60 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 + col0 FROM tab2
----
141
159
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT + COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4082
SELECT + COUNT ( - col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col0 ) NOT BETWEEN - col0 - 15 + + col1 * - + col1 * 77 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + col2 = + 24
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + col2 = + 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL + MAX( ALL - 10 ) - + - 11 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + MAX ( ALL - 10 ) - + - 11 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - 31 - + - col0 FROM tab0 AS cor0
----
118
128
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL MAX( - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL MAX ( - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
81

query I rowsort
SELECT ( - - 81 ) + - - 97 AS col0 FROM tab2 AS cor0
----
178
178
178

query I rowsort
SELECT + col0 + + 60 FROM tab0 AS cor0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL MAX( ( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL MAX ( ( + col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL SUM( - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL SUM ( - col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT + 39 DIV + + 20 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 39 / + + 20 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - - 55 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT ALL + 75 / col0 + + col2 + + + 19 + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL + 75 / col0 + + col2 + + + 19 + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL + MIN( ALL col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT DISTINCT - - 96 * + - SUM( ALL + 56 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
5376

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - - 96 * + - SUM ( ALL + 56 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT - col0 DIV - col2 + - ( - + 84 ) FROM tab2 AS cor0
----
85
85
86

skipif mysql # not compatible
query I rowsort label-4098
SELECT - col0 / - col2 + - ( - + 84 ) FROM tab2 AS cor0
----
85
85
86

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT DISTINCT col2 + 20 AS col2 FROM tab1
----
116
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL + 1 * + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + 1 * + COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - 19 * + + SUM( ALL 35 ) FROM tab0
----
-1995

skipif mysql # not compatible
query I rowsort label-4102
SELECT - 19 * + + SUM ( ALL 35 ) FROM tab0
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT - SUM( - + ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - SUM ( - + ( - col1 ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT DISTINCT - + col2 DIV + col1 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - + col2 / + col1 FROM tab0 cor0
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 96 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 96 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + 28 FROM tab1 cor0
----
113
119
79

query I rowsort
SELECT ALL + - 60 + - col1 FROM tab1 AS cor0
----
-107
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT - COUNT( + + 60 ) FROM tab1 WHERE - + 70 > + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT - COUNT ( + + 60 ) FROM tab1 WHERE - + 70 > + + col1
----
0

query I rowsort
SELECT ALL col0 * col0 * - 96 - - col2 AS col2 FROM tab1
----
-249600
-693541
-794908

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL - COUNT( * ) * 82 + + COUNT( + 58 ) FROM tab2 AS cor0 WHERE + 32 IS NOT NULL
----
-243

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL - COUNT ( * ) * 82 + + COUNT ( + 58 ) FROM tab2 AS cor0 WHERE + 32 IS NOT NULL
----
-243

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT ALL 11 * - 63 * CAST( + col0 AS SIGNED ) FROM tab0
----
-10395
-60291
-67221

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL 11 * - 63 * CAST ( + col0 AS INTEGER ) FROM tab0
----
-10395
-60291
-67221

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - COUNT( * ) * 40 AS col1 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - COUNT ( * ) * 40 AS col1 FROM tab0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT COUNT( DISTINCT - 27 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4115
SELECT COUNT ( DISTINCT - 27 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - SUM ( col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - col2 * - + 68 FROM tab0 AS cor0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ( + - MIN( DISTINCT + + 37 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( + - MIN ( DISTINCT + + 37 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query II rowsort
SELECT - + col1 AS col2, + 47 FROM tab2 cor0
----
-51
47
-67
47
-77
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT + MAX( ALL 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT + MAX ( ALL 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT + CAST( + - 89 AS SIGNED ) * + col2 FROM tab0
----
-4183
-8811
-890

skipif mysql # not compatible
query I rowsort label-4123
SELECT + CAST ( + - 89 AS INTEGER ) * + col2 FROM tab0
----
-4183
-8811
-890

query I rowsort
SELECT + 23 * + col2 FROM tab1 cor0
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - col2 * - ( col2 ) FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - col2 + - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 18 + + ( + 8 ) AS col0 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4130
SELECT 83 + col0 + - col0 * + - CAST( - - col2 AS SIGNED ), - 38 AS col1 FROM tab0
----
1040
-38
803
-38
9783
-38

skipif mysql # not compatible
query II rowsort label-4130
SELECT 83 + col0 + - col0 * + - CAST ( - - col2 AS INTEGER ), - 38 AS col1 FROM tab0
----
1040
-38
803
-38
9783
-38

query I rowsort
SELECT DISTINCT 17 + - - 97 AS col1 FROM tab2
----
114

query I rowsort
SELECT DISTINCT - col2 * + 69 FROM tab1
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + COUNT( * ) + - - COUNT( DISTINCT - - ( + 82 ) ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + COUNT ( * ) + - - COUNT ( DISTINCT - - ( + 82 ) ) FROM tab1
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4134
SELECT - CAST( NULL AS DECIMAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT - CAST ( NULL AS REAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT - col0 DIV - 7 col0 FROM tab0 AS cor0
----
12
13
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT - col0 / - 7 col0 FROM tab0 AS cor0
----
12
13
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - MAX( DISTINCT 4 ) * - - 38 FROM tab2 cor0
----
-152

skipif mysql # not compatible
query I rowsort label-4136
SELECT - MAX ( DISTINCT 4 ) * - - 38 FROM tab2 cor0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT - - ( + CAST( NULL AS SIGNED ) ) * ( - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT - - ( + CAST ( NULL AS INTEGER ) ) * ( - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL - MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - MAX ( - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT + MAX( 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + MAX ( 55 ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT + 37 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT - col2 * + - ( - col1 ) + 11 AS col2 FROM tab0
----
-199
-3796
-88

query II rowsort
SELECT ALL col1 AS col2, - 34 AS col1 FROM tab2 AS cor0
----
51
-34
67
-34
77
-34

query I rowsort
SELECT + - 10 * + 83 AS col1 FROM tab2 AS cor0
----
-830
-830
-830

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT + + 22, + COUNT( * ) - - MIN( - 26 ) AS col2 FROM tab1 AS cor0
----
22
-23

skipif mysql # not compatible
query II rowsort label-4144
SELECT + + 22, + COUNT ( * ) - - MIN ( - 26 ) AS col2 FROM tab1 AS cor0
----
22
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - 86 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - ( + - 53 ) AS col2 FROM tab0 AS cor0
----
15
53
87
53
97
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4147
SELECT + + CAST( NULL AS SIGNED ) col0, - col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4147
SELECT + + CAST ( NULL AS INTEGER ) col0, - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT - CAST( NULL AS SIGNED ) * col0 * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT - CAST ( NULL AS INTEGER ) * col0 * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - COUNT( * ) * - 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - COUNT ( * ) * - 97 FROM tab2
----
291

query III rowsort
SELECT DISTINCT col2 * 42 * + col1 * + ( - col2 ), col0 + - col1 + - + col2 * + - col1 * + col1 AS col1, - + col0 AS col1 FROM tab2
----
9 values hashing to 83027a2a7bfccfdb7ce1265ebba30ad4

query I rowsort
SELECT ALL 8 * - col1 * 5 * col1 * - col1 AS col0 FROM tab1
----
109760
4152920
5000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4152
SELECT ALL * FROM tab1 WHERE NOT - + 30 NOT IN ( + 59, - col2, + - col0 * - col0, - CAST( NULL AS SIGNED ), - 87, col1, col0 + - + col2 + col0 * + CAST( NULL AS SIGNED ) * + col0 + + + 25 + + col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-4152
SELECT ALL * FROM tab1 WHERE NOT - + 30 NOT IN ( + 59, - col2, + - col0 * - col0, - CAST ( NULL AS INTEGER ), - 87, col1, col0 + - + col2 + col0 * + CAST ( NULL AS INTEGER ) * + col0 + + + 25 + + col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL - CAST( + AVG ( DISTINCT + - ( + - col0 ) ) AS SIGNED ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - CAST ( + AVG ( DISTINCT + - ( + - col0 ) ) AS INTEGER ) AS col1 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT CAST( - 83 AS SIGNED ) DIV + 10 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4156
SELECT CAST ( - 83 AS INTEGER ) / + 10 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - - 63 AS col1 FROM tab1 cor0
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT 48 * + 12 * - - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
1728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4158
SELECT DISTINCT 48 * + 12 * - - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
1728

query II rowsort
SELECT DISTINCT + - ( + col0 ) AS col2, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT 44 + + col2 FROM tab2 WHERE NOT + col1 >= + 56
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 78 ) col1 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - ( 23 ) FROM tab0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 * - 96 * + col0 * + - col2 col1 FROM tab1
----
-2407195
-27920209
-6580210

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT ALL + 17 + + col1 DIV - 5 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
15
16
8

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + 17 + + col1 / - 5 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
15
16
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT COUNT( DISTINCT - - 29 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT COUNT ( DISTINCT - - 29 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL 80 + - COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL 80 + - COUNT ( * ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL 99 + + 48 AS col0, col2 AS col2 FROM tab1
----
147
59
147
68
147
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT + col1 * - col1 DIV + + col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4168
SELECT + col1 * - col1 / + + col1 FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col1 FROM tab2
----
47
47
47

query II rowsort
SELECT DISTINCT + 64 - - col1 AS col0, - 38 + - col2 AS col1 FROM tab2
----
115
-61
131
-96
141
-78

query III rowsort
SELECT * FROM tab1 WHERE 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4172
SELECT - ( + 1 ), - col0 DIV col0 AS col0 FROM tab1
----
-1
-1
-1
-1
-1
-1

skipif mysql # not compatible
query II rowsort label-4172
SELECT - ( + 1 ), - col0 / col0 AS col0 FROM tab1
----
-1
-1
-1
-1
-1
-1

query I rowsort
SELECT ALL ( + + col1 ) - - col1 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4174
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4174
SELECT CAST ( NULL AS REAL ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT SUM( DISTINCT + 38 ) FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT SUM ( DISTINCT + 38 ) FROM tab1 cor0
----
38

query I rowsort
SELECT - col1 + - col1 * - col1 - + + col0 AS col0 FROM tab1 AS cor0
----
-65
131
2071

query I rowsort
SELECT 85 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT col2 * + 11 * + col2 FROM tab1
----
101376
38291
50864

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( - col0, 90, + ( - 95 ) + 30 * - 63 )
----

query I rowsort
SELECT ALL + col1 * - - 80 * + col2 FROM tab2 AS cor0 WHERE NULL IN ( col1 * 14, 20, - - 47, + 84 * + 80 * + col0 + + - col0 * - + 29 / - 0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - COUNT( * ) * + 71 AS col0 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - COUNT ( * ) * + 71 AS col0 FROM tab2 AS cor0
----
-213

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT ALL - col1 DIV - col1 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - col1 / - col1 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + + col2 col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - 9 col2 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT + col1 * col1 * - + 70 FROM tab1
----
-13720
-154630
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + 49 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4188
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 49 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT MAX( DISTINCT + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT MAX ( DISTINCT + 35 ) FROM tab2
----
35

query II rowsort
SELECT ALL + col2 * + col1 AS col2, - col2 FROM tab0
----
210
-10
3807
-47
99
-99

query I rowsort
SELECT + col2 * - 5 FROM tab2
----
-115
-200
-290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + ( 53 ) col2 FROM tab0 AS cor0
----
4717
4717
4717

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT ALL - 50 + + col1 DIV col1 + + col2 * - 95 + + col0 + 10 AS col0 FROM tab2 AS cor0
----
-2178
-3775
-5474

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - 50 + + col1 / col1 + + col2 * - 95 + + col0 + 10 AS col0 FROM tab2 AS cor0
----
-2178
-3775
-5474

query I rowsort
SELECT + 31 + - col2 + + 10 FROM tab2 AS cor0
----
-17
1
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col0 ) + 95 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + + COUNT( * ) * ( + + 22 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
198

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + + COUNT ( * ) * ( + + 22 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL CAST( NULL AS SIGNED ) + - CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL CAST ( NULL AS INTEGER ) + - CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 73 - 90 * col0 AS col0 FROM tab1 AS cor0
----
-4663
-7723
-8263

query I rowsort
SELECT - ( + 94 ) + 10 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + 77 + + 0 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT + col2 + - col2 - - col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT col0 AS col2, 50 + col0 FROM tab0
----
15
65
87
137
97
147

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 - - - col1 AS col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + 42 * col2 * col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 42 * col2 * col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE - 0 * + - 10 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT COUNT( * ) * - 27 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4208
SELECT COUNT ( * ) * - 27 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL - 76 * + col0 AS col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT DISTINCT - - 33 * - + CAST( - 67 AS SIGNED ) FROM tab2 AS cor0
----
2211

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - - 33 * - + CAST ( - 67 AS INTEGER ) FROM tab2 AS cor0
----
2211

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * col1 IS NOT NULL )
----

query I rowsort
SELECT + + 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT - + 19 + - CAST( - + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + 33 - - col1 / + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - + 19 + - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + 33 - - col1 / + + col0 IS NULL
----

query II rowsort
SELECT ALL - col1 * + - col2 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
1344
-51
295
-85
3196
-91

query I rowsort
SELECT ALL col0 * + col1 + col2 * + + col2 + col0 AS col1 FROM tab0 AS cor0
----
2014
3439
9995

query I rowsort
SELECT ALL + col2 * - col2 - col2 AS col1 FROM tab0 cor0
----
-110
-2256
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4219
SELECT + col0, CAST( - ( col0 ) AS SIGNED ) + + + ( + + 57 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4219
SELECT + col0, CAST ( - ( col0 ) AS INTEGER ) + + + ( + + 57 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - MAX( - - 50 ) * - 64 FROM tab1
----
3200

skipif mysql # not compatible
query I rowsort label-4220
SELECT - MAX ( - - 50 ) * - 64 FROM tab1
----
3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + + ( + col2 ) col1, + 88 AS col1 FROM tab1
----
118
88
136
88
192
88

query I rowsort
SELECT - col2 * - - 54 AS col1 FROM tab1
----
-3186
-3672
-5184

query I rowsort
SELECT ALL 82 * + col0 FROM tab1
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT + MAX( - - 94 ) * + + COUNT( * ) + 88 AS col1 FROM tab2
----
370

skipif mysql # not compatible
query I rowsort label-4224
SELECT + MAX ( - - 94 ) * + + COUNT ( * ) + 88 AS col1 FROM tab2
----
370

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 29 * 5 + - 60 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT SUM( 13 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4226
SELECT SUM ( 13 ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - 71 * + - col2 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # DIV for integer division: 
query II rowsort label-4228
SELECT + col1 DIV + - col0 + + 80 - col1 - - col1 AS col0, - col0 + - 60 col0 FROM tab2 AS cor0
----
79
-106
79
-124
80
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4228
SELECT + col1 / + - col0 + + 80 - col1 - - col1 AS col0, - col0 + - 60 col0 FROM tab2 AS cor0
----
79
-106
79
-124
80
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT DISTINCT + CAST( col2 AS SIGNED ) col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT DISTINCT + CAST ( col2 AS INTEGER ) col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4230
SELECT - 89 DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 89 / - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29

query I rowsort
SELECT ALL - 15 * 78 + 5 - + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1227
-1262
-1361

query I rowsort
SELECT - col1 * col2 + - 81 + col0 * col2 AS col1 FROM tab2
----
-196
-601
383

query I rowsort
SELECT col0 + + + col2 AS col2 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 70 + + ( + 2 ) AS col2 FROM tab0
----
72
72
72

query II rowsort
SELECT ALL col2 + + 96 AS col0, - 55 AS col2 FROM tab0
----
106
-55
143
-55
195
-55

query II rowsort
SELECT DISTINCT 19 + 72 AS col0, col0 AS col1 FROM tab2
----
91
46
91
64
91
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4238
SELECT DISTINCT + COUNT( * ) - 9 AS col0, COUNT( * ) DIV + 84 AS col0 FROM tab0
----
-6
0

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT + COUNT ( * ) - 9 AS col0, COUNT ( * ) / + 84 AS col0 FROM tab0
----
-6
0

query I rowsort
SELECT col2 - 69 FROM tab2
----
-11
-29
-46

query I rowsort
SELECT ALL col0 + - ( - + col0 ) FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - 98 * col1 * + - col0 AS col0 FROM tab1 AS cor0
----
41650
419146
69972

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 91 < - + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 91 < - + col0
----
-3

query I rowsort
SELECT ALL - 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 11 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT - + 52 AS col0, - ( + 1 ) + + + col2 FROM tab0 AS cor0
----
-52
46
-52
9
-52
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + 33 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 <= NULL
----
33

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + 33 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 <= NULL
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * 59 col1 FROM tab2 AS cor0
----
-2714
-3776
-4425

query II rowsort
SELECT ALL col0 AS col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT ALL ( - col1 ) + - col2 * - - col1 AS col0, col0 * + 14 FROM tab1 AS cor0
----
-1358
714
-300
1190
-3243
1274

query I rowsort
SELECT - + ( + 31 ) AS col0 FROM tab2 cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + 4 * + - 79 FROM tab2
----
-316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT + ( - 47 ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT + ( - 47 ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 14 * - - col1 AS col2 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 22 * COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4254
SELECT 22 * COUNT ( * ) FROM tab2
----
66

query I rowsort
SELECT DISTINCT + 9 * ( + 55 ) AS col0 FROM tab2
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT - COUNT( DISTINCT col0 ) + + + 82 DIV + COUNT( + col0 ) AS col0 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( DISTINCT col0 ) + + + 82 / + COUNT ( + col0 ) AS col0 FROM tab1 cor0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4257
SELECT col2, col1, + 95 AS col1 FROM tab1 AS cor0 WHERE - 54 / CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to d25223fcd116a9f6cee71e56586d2e80

skipif mysql # not compatible
query III rowsort label-4257
SELECT col2, col1, + 95 AS col1 FROM tab1 AS cor0 WHERE - 54 / CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to d25223fcd116a9f6cee71e56586d2e80

query I rowsort
SELECT + 82 + + col1 AS col2 FROM tab2 AS cor0
----
133
149
159

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4259
SELECT + - CAST( ( - 98 ) AS DECIMAL ) + - - col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + - CAST ( ( - 98 ) AS REAL ) + - - col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) * - + col1 + - + 46 * - col1 + col0 FROM tab2 AS cor0
----
-1332
-209
-2323

query I rowsort
SELECT + 49 * + + col0 FROM tab0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT - 29 - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - 29 - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col1 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL COUNT( * ) - + + ( - MIN( ALL col0 ) ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL COUNT ( * ) - + + ( - MIN ( ALL col0 ) ) FROM tab2 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT - 90 DIV + 49 col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4265
SELECT DISTINCT - 90 / + 49 col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - + COUNT( * ) - 67 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4266
SELECT - + COUNT ( * ) - 67 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL + col0 + 87 AS col2 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT 64 + + 0 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT + 30 * - + SUM( ALL - 69 ) + - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
6213

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + 30 * - + SUM ( ALL - 69 ) + - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
6213

query I rowsort
SELECT ALL - 41 + - - col2 FROM tab1
----
18
27
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL col0 - col1 + - col1 DIV - - 97 * 98 * col0 + + ( + ( - - col1 ) ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL col0 - col1 + - col1 / - - 97 * 98 * col0 + + ( + ( - - col1 ) ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4272
SELECT DISTINCT - 21 col1, col0 DIV - 3 FROM tab2
----
-21
-15
-21
-21
-21
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4272
SELECT DISTINCT - 21 col1, col0 / - 3 FROM tab2
----
-21
-15
-21
-21
-21
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - 33 / + col1 * col0 - + col0 * - col1 + ( + 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4274
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * + 46 ) BETWEEN ( 73 ) AND ( CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4274
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * + 46 ) BETWEEN ( 73 ) AND ( CAST ( - - col2 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 87 * - - 5 * + - col2 + col1 + col0 FROM tab1 AS cor0
----
25755
29718
41825

query I rowsort
SELECT + - col0 * + - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ( - 21 ) FROM tab0
----
-21
-21
-21

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT 7 * + + ( - 85 ) AS col1 FROM tab2
----
-595
-595
-595

query I rowsort
SELECT ( - 9 ) * - col1 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT - 27 DIV col2 + + 96 FROM tab2 AS cor0
----
95
96
96

skipif mysql # not compatible
query I rowsort label-4282
SELECT - 27 / col2 + + 96 FROM tab2 AS cor0
----
95
96
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 58 - + 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 + + col2, + 34 col1 FROM tab0 AS cor0
----
272
34
7579
34
9508
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT + MAX( ALL + ( - 21 ) ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + MAX ( ALL + ( - 21 ) ) AS col0 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT 5 + - col2 AS col2 FROM tab2 AS cor0
----
-18
-35
-53

query I rowsort
SELECT DISTINCT - + col2 + - 62 FROM tab1 AS cor0
----
-121
-130
-158

query I rowsort
SELECT DISTINCT col1 * - col0 + - 16 AS col2 FROM tab1
----
-4293
-441
-730

query III rowsort
SELECT * FROM tab0 WHERE - 28 > + - col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - 8 + + + 62 AS col0 FROM tab0
----
54
54
54

query I rowsort
SELECT + 16 FROM tab2 WHERE col1 NOT IN ( - col2 )
----
16
16
16

query I rowsort
SELECT 53 * - 80 AS col0 FROM tab2
----
-4240
-4240
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT - 98 * - MIN( DISTINCT - 6 ) FROM tab0
----
-588

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - 98 * - MIN ( DISTINCT - 6 ) FROM tab0
----
-588

query II rowsort
SELECT ALL + - 75, col1 FROM tab2 AS cor0
----
-75
51
-75
67
-75
77

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT ALL ( col2 ) - + - 88 DIV ( + - col0 ) col2 FROM tab1
----
58
68
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4296
SELECT ALL ( col2 ) - + - 88 / ( + - col0 ) col2 FROM tab1
----
58
68
95

query I rowsort
SELECT DISTINCT col1 * - + 15 * col1 + - col1 + - col0 + col2 FROM tab0
----
-14
-6713
-98464

query I rowsort
SELECT DISTINCT - - col2 * + col0 + 74 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
1985
4256
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - COUNT( 86 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4299
SELECT - COUNT ( 86 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + - col1 * 76 AS col2 FROM tab0 AS cor0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * 70 * 57, + 3 col0 FROM tab0
----
187530
3
395010
3
39900
3

query I rowsort
SELECT DISTINCT - col2 * + 31 * col2 FROM tab2
----
-104284
-16399
-49600

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT 80 * MIN( DISTINCT + col1 ) FROM tab2
----
4080

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT 80 * MIN ( DISTINCT + col1 ) FROM tab2
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT + 92 DIV + 79 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 92 / + 79 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT COUNT( ALL + - 14 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( ALL + - 14 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * + - col1 col0 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # DIV for integer division: 
query II rowsort label-4307
SELECT 28, - col2 DIV ( - ( - + col2 ) ) * - 60 AS col1 FROM tab0
----
28
60
28
60
28
60

skipif mysql # not compatible
query II rowsort label-4307
SELECT 28, - col2 / ( - ( - + col2 ) ) * - 60 AS col1 FROM tab0
----
28
60
28
60
28
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 19 BETWEEN + - 89 - - col1 AND + col0
----
87
21
10
97
1
99

query I rowsort
SELECT - col0 * - col0 * - + col1 * - col1 AS col2 FROM tab1
----
180625
18292729
509796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + 32 * - 94 FROM tab2
----
-3008
-3008
-3008

query I rowsort
SELECT + 59 AS col0 FROM tab1 WHERE NOT + + col2 + - col1 <> + 70
----

query I rowsort
SELECT - col2 * - ( + ( col0 ) ) FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT - 34 FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NULL
----
-34

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + + 72 * + - col2 * col0 / + + col0 + 10
----

query I rowsort
SELECT + - 38 AS col0 FROM tab2 AS cor0 WHERE NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4318
SELECT + col0 * + - 8 + - CAST( NULL AS DECIMAL ) AS col0, - 68, col1 + - col2 FROM tab1 AS cor0 WHERE col1 * - + 13 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4318
SELECT + col0 * + - 8 + - CAST ( NULL AS REAL ) AS col0, - 68, col1 + - col2 FROM tab1 AS cor0 WHERE col1 * - + 13 >= NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4320
SELECT + col1, CAST( NULL AS DECIMAL ) * + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4320
SELECT + col1, CAST ( NULL AS REAL ) * + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col0 + col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL - MIN( ALL col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - MIN ( ALL col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT 98 + + 44 FROM tab0
----
142

query II rowsort
SELECT + col0 AS col2, + col0 FROM tab0 WHERE - 98 * + col2 IS NOT NULL
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 79 >= NULL
----

query I rowsort
SELECT ALL - col1 + - ( + col2 ) AS col0 FROM tab2
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col0 ) ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL - COUNT( * ) * 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - COUNT ( * ) * 76 FROM tab0
----
-228

query I rowsort
SELECT - 88 + 24 AS col1 FROM tab1 AS cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * - col2 col0 FROM tab1 AS cor0
----
-5487
-6324
-8928

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4331
SELECT - CAST( NULL AS DECIMAL ) col1, ( 30 ) FROM tab0 cor0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4331
SELECT - CAST ( NULL AS REAL ) col1, ( 30 ) FROM tab0 cor0
----
NULL
30
NULL
30
NULL
30

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 79 * - 84 AS col0 FROM tab2 AS cor0
----
-6636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT ALL - COUNT( * ), - COUNT( ALL - CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL - COUNT ( * ), - COUNT ( ALL - CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4336
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4337
SELECT - col2 DIV - - 27, col0 AS col0 FROM tab0
----
-1
15
-3
97
0
87

skipif mysql # not compatible
query II rowsort label-4337
SELECT - col2 / - - 27, col0 AS col0 FROM tab0
----
-1
15
-3
97
0
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT COUNT( * ) * - MAX( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT COUNT ( * ) * - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 3 * - - ( col2 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT + col1 DIV + col2 + 44 AS col1 FROM tab1 WHERE NOT + - col2 IS NULL
----
44
44
44

skipif mysql # not compatible
query I rowsort label-4340
SELECT + col1 / + col2 + 44 AS col1 FROM tab1 WHERE NOT + - col2 IS NULL
----
44
44
44

query I rowsort
SELECT + + 82 AS col2 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT ALL - 63 * - - col2 + - - col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - ( + 98 ) * + + ( col0 ) col0 FROM tab0 AS cor0
----
-8085
-9505
5091

query II rowsort
SELECT ALL - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - - col0 / ( - - col0 ) + col0 FROM tab1 AS cor0 WHERE NULL >= - 25
----

query I rowsort
SELECT col2 + + col0 + - - 10 AS col1 FROM tab1 AS cor0
----
154
157
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + 37 * COUNT( * ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + 37 * COUNT ( * ) FROM tab0 AS cor0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT ALL - col0 * col1 + + - col1 DIV - 1 col2 FROM tab2 cor0
----
-2295
-4851
-4958

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4348
SELECT ALL - col0 * col1 + + - col1 / - 1 col2 FROM tab2 cor0
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 67 * + + 95 IS NULL
----

query I rowsort
SELECT ALL - ( col2 ) * + ( + 33 ) AS col2 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - - COUNT( * ) + 19 + - 37 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + 63
----
-18

skipif mysql # not compatible
query I rowsort label-4351
SELECT - - COUNT ( * ) + 19 + - 37 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + 63
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT SUM( ALL + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4353
SELECT SUM ( ALL + col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE - col0 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - 81 * - COUNT( * ) AS col0 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-4355
SELECT - 81 * - COUNT ( * ) AS col0 FROM tab1
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 48 * - 30 AS col0 FROM tab1
----
-1440
-1440
-1440

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT ALL - col0 DIV - col0 - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - col0 / - col0 - col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT + col0 * - 34 * - + ( + CAST( - ( - 10 ) AS SIGNED ) ) / + 54 + - col1 + col0 * ( - 84 ) + + - col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-4360
SELECT + col0 * - 34 * - + ( + CAST ( - ( - 10 ) AS INTEGER ) ) / + 54 + - col1 + col0 * ( - 84 ) + + - col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 44 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 6 + - col2 AS col1 FROM tab1 AS cor0
----
-102
-65
-74

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + col1 * + - col1 * col1 AS col2 FROM tab1
----
263424
7059964
7375

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT - ( + COUNT( * ) ) col1 FROM tab0 WHERE NOT 8 BETWEEN + col1 AND + - 62
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4365
SELECT DISTINCT - ( + COUNT ( * ) ) col1 FROM tab0 WHERE NOT 8 BETWEEN + col1 AND + - 62
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + SUM( DISTINCT + 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4366
SELECT + SUM ( DISTINCT + 47 ) FROM tab2 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col2 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - CAST( 95 AS SIGNED ) * + col1 * + - col2 - + 61 + - - ( + 44 ) FROM tab1 AS cor0 WHERE NULL <= + col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - CAST ( 95 AS INTEGER ) * + col1 * + - col2 - + 61 + - - ( + 44 ) FROM tab1 AS cor0 WHERE NULL <= + col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT + CAST( + - col2 AS SIGNED ) * - + 23 FROM tab2 AS cor0
----
1334
529
920

skipif mysql # not compatible
query I rowsort label-4369
SELECT + CAST ( + - col2 AS INTEGER ) * - + 23 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT - + CAST( + 69 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-4370
SELECT - + CAST ( + 69 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + COUNT( * ) * - 38 AS col0 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-4371
SELECT + COUNT ( * ) * - 38 AS col0 FROM tab2 AS cor0
----
-114

query II rowsort
SELECT ALL + col2, - col1 * + + 13 + - - col1 AS col0 FROM tab2
----
23
-612
40
-924
58
-804

query II rowsort
SELECT + - col2 * - + col0 + col0 + - col0 AS col0, col1 * - col2 AS col1 FROM tab2 WHERE NOT col1 * - + col2 + + col2 - + col1 + - 77 * + 10 + - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4374
SELECT col2 AS col0, + col0 DIV + col0 - 34 + col2 FROM tab1
----
59
26
68
35
96
63

skipif mysql # not compatible
query II rowsort label-4374
SELECT col2 AS col0, + col0 / + col0 - 34 + col2 FROM tab1
----
59
26
68
35
96
63

query II rowsort
SELECT ALL - 41 AS col2, 38 FROM tab1
----
-41
38
-41
38
-41
38

query I rowsort
SELECT DISTINCT - col2 * + + 85 * + 3 AS col2 FROM tab1 AS cor0
----
-15045
-17340
-24480

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT - ( - + col0 ) + + col1, + col0 AS col2 FROM tab1 AS cor0
----
138
91
65
51
90
85

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE ( 8 ) IN ( col2 )
----

query I rowsort
SELECT 39 - col1 FROM tab2 WHERE NOT NULL BETWEEN + col0 + - 38 AND NULL
----

query I rowsort
SELECT ALL 73 FROM tab2 WHERE - 23 NOT BETWEEN col2 + 6 AND NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( * ) + + 17 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( * ) + + 17 FROM tab0
----
20

query I rowsort
SELECT - col0 + ( - 85 ) FROM tab2
----
-131
-149
-160

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( 93 + col2 * 22 ) IN ( col2 * + col2 )
----
1
21
81

query I rowsort
SELECT - col2 * col1 - + col0 * + col1 AS col1 FROM tab0
----
-196
-2037
-5022

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( + col1 * 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT 5 / MAX( DISTINCT ( - col2 ) * - col2 ) AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( col2 * + ( - col1 ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT 5 / MAX ( DISTINCT ( - col2 ) * - col2 ) AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( col2 * + ( - col1 ) ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4389
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) / + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4389
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) / + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT + col1 * - 8 AS col1 FROM tab1
----
-112
-376
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT - col0 / CAST( col1 AS SIGNED ) col1 FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4391
SELECT DISTINCT - col0 / CAST ( col1 AS INTEGER ) col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT + 70 - col1 AS col2 FROM tab1
----
23
56
65

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - 70 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT + col1 * + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT + col1 * + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab1 WHERE - col2 NOT IN ( 80 - ( col0 ) )
----
196
2209
25

query I rowsort
SELECT 18 + + 73 FROM tab0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 93 col2 FROM tab0
----
-4371
-9207
-930

query I rowsort
SELECT col0 * + 93 AS col2 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT ALL + 47 + - col2 AS col0 FROM tab2
----
-11
24
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT + COUNT( * ) * + 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4400
SELECT + COUNT ( * ) * + 92 FROM tab0
----
276

query I rowsort
SELECT + 67 * 26 FROM tab2
----
1742
1742
1742

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 44 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + col2 / + col1 AS col2 FROM tab1
----
1
11
6

query I rowsort
SELECT col2 + 29 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND ( - col0 * - 33 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4405
SELECT - 87 + + col2 FROM tab1 AS cor0 WHERE - col2 IN ( + CAST( 43 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 87 + + col2 FROM tab1 AS cor0 WHERE - col2 IN ( + CAST ( 43 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4406
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT - 91 DIV 43 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4407
SELECT - 91 / 43 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + 58 * + col1 FROM tab1 cor0
----
2726
290
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT ALL SUM( ALL + 13 ) + + COUNT( * ) DIV 73 AS col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL SUM ( ALL + 13 ) + + COUNT ( * ) / 73 AS col2 FROM tab2 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN + col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT COUNT( * ) * + 22 + + 58 FROM tab0 WHERE NOT ( NULL ) <= col1 * - col1
----
58

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( * ) * + 22 + + 58 FROM tab0 WHERE NOT ( NULL ) <= col1 * - col1
----
58

query I rowsort
SELECT - col1 * 48 FROM tab2
----
-2448
-3216
-3696

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( 53 ) * 39 FROM tab2 AS cor0 WHERE NOT - col0 * 16 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL MAX( ALL 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL MAX ( ALL 12 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( col0 / + col2 ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + - COUNT( * ) * - 64 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4420
SELECT + - COUNT ( * ) * - 64 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - + SUM( col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - + SUM ( col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT + COUNT( * ) - 12 FROM tab2 WHERE NOT ( 1 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + COUNT ( * ) - 12 FROM tab2 WHERE NOT ( 1 ) IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT MAX( ALL - 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT MAX ( ALL - 40 ) FROM tab2
----
-40

query I rowsort
SELECT 95 + 45 AS col0 FROM tab2 WHERE NOT - 28 <> + 78
----

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 WHERE NOT ( 5 / - col2 ) = + 21 * - 47
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 28 * 8 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT 36 DIV + + COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4428
SELECT 36 / + + COUNT ( * ) AS col1 FROM tab1
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT 57 BETWEEN ( + col0 * col0 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 94 * 77 FROM tab2
----
369138
484946
557326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL CAST( - + 4 AS SIGNED ) * - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL CAST ( - + 4 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT DISTINCT + + 12 * 79 AS col0 FROM tab2 AS cor0
----
948

query I rowsort
SELECT col0 * - 67 FROM tab2 AS cor0
----
-3082
-4288
-5025

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * - col2 + col2 BETWEEN + col0 AND + col0
----

query I rowsort
SELECT DISTINCT - col0 + - 44 AS col2 FROM tab2
----
-108
-119
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL COUNT( - 22 ) * ( ( 73 ) ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL COUNT ( - 22 ) * ( ( 73 ) ) FROM tab0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + MIN( ALL 64 ) * - 42 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2688

skipif mysql # not compatible
query I rowsort label-4437
SELECT + MIN ( ALL 64 ) * - 42 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2688

query I rowsort
SELECT + 35 + col1 AS col2 FROM tab0
----
116
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + + MIN( + 58 ) * - + COUNT( * ) + 64 AS col0 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + + MIN ( + 58 ) * - + COUNT ( * ) + 64 AS col0 FROM tab0 AS cor0
----
-110

query I rowsort
SELECT 3 * + 1 * - 88 + - col0 * col2 FROM tab2 AS cor0
----
-1322
-2824
-4614

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL + - 77 + - col1 - + - col0 DIV 84 col2 FROM tab1 AS cor0
----
-123
-81
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4441
SELECT ALL + - 77 + - col1 - + - col0 / 84 col2 FROM tab1 AS cor0
----
-123
-81
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT - COUNT( * ) DIV + - 97 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT - COUNT ( * ) / + - 97 col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT 35 + + col2 * + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT 35 + + col2 * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL - SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 - + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT AVG ( CAST( 7 AS SIGNED ) ) FROM tab2 WHERE - col1 >= ( + col2 / col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT AVG ( CAST ( 7 AS INTEGER ) ) FROM tab2 WHERE - col1 >= ( + col2 / col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 3 <> + + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + + col1 + col1 FROM tab1
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4449
SELECT * FROM tab0 WHERE ( col0 ) > CAST( - 77 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4449
SELECT * FROM tab0 WHERE ( col0 ) > CAST ( - 77 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT 35 - col2 - - - 51 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT 35 - col2 - - - 51 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4451
SELECT col2 - + CAST( NULL AS DECIMAL ) / + - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT col2 - + CAST ( NULL AS REAL ) / + - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + COUNT( 79 ) - + 76 * + 72 FROM tab2 WHERE + 64 + + + col0 IN ( - col0 )
----
-5472

skipif mysql # not compatible
query I rowsort label-4452
SELECT + COUNT ( 79 ) - + 76 * + 72 FROM tab2 WHERE + 64 + + + col0 IN ( - col0 )
----
-5472

query I rowsort
SELECT - col1 FROM tab0 WHERE + + col2 / - 97 > col0 * 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT + 66 * 13 - + + col1 + + CAST( NULL AS SIGNED ) + col2 * + 93 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT + 66 * 13 - + + col1 + + CAST ( NULL AS INTEGER ) + col2 * + 93 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4456
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4456
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT 16 * col0 + - ( 2 ) AS col0 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN ( + 73 + + col1 ) AND col0 - - col0
----
1358

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT col0 DIV + 95 * 22 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT col0 / + 95 * 22 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT DISTINCT 7 DIV + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT 7 / + COUNT ( * ) FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT ALL + col2 DIV + 59 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL + col2 / + 59 FROM tab0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col1 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 + + col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT + - col1 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT + - col1 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL AND + 72 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4464
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL AND + 72 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT + ( - COUNT( ALL - + 96 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + ( - COUNT ( ALL - + 96 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - 16 * + MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-736

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - 16 * + MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col0 * + - col0 + - + 86 * - col1 AS col1 FROM tab2 AS cor0
----
10718
11387
6502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT + CAST( - 26 AS SIGNED ) AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) AS col0 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL IN ( 9 + + 69 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4471
SELECT DISTINCT COUNT( * ) AS col0, - SUM( ALL - - col1 ) DIV - - COUNT( * ) FROM tab0
----
3
-34

skipif mysql # not compatible
query II rowsort label-4471
SELECT DISTINCT COUNT ( * ) AS col0, - SUM ( ALL - - col1 ) / - - COUNT ( * ) FROM tab0
----
3
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - COUNT( * ) * 44 * + + COUNT( * ) AS col1 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - COUNT ( * ) * 44 * + + COUNT ( * ) AS col1 FROM tab2
----
-396

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( - ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - COUNT( * ) * 16 + - 63 * + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + col2, - col0 * + - 12 * + - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT - COUNT ( * ) * 16 + - 63 * + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + col2, - col0 * + - 12 * + - 50 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT - - 29 * - col2 * - col2 + + CAST( + col0 AS SIGNED ) * - col2 * + 7 + col0 AS col2 FROM tab2 AS cor0
----
28544
67181
7981

skipif mysql # not compatible
query I rowsort label-4475
SELECT - - 29 * - col2 * - col2 + + CAST ( + col0 AS INTEGER ) * - col2 * + 7 + col0 AS col2 FROM tab2 AS cor0
----
28544
67181
7981

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + 48 + - COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 48 + - COUNT ( * ) FROM tab0 AS cor0
----
45

query II rowsort
SELECT ALL - col2 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4478
SELECT * FROM tab2 AS cor0 WHERE col0 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4478
SELECT * FROM tab2 AS cor0 WHERE col0 < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 48 FROM tab0 cor0 WHERE ( 45 + - col2 ) IS NOT NULL
----
48
48
48

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL BETWEEN ( + 47 ) AND NULL
----

query I rowsort
SELECT - - col0 - - 59 AS col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT - - col0 * + col0 - - col0 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT + 5 DIV + 11 + + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4483
SELECT + 5 / + 11 + + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT + + col1 * 86 + + col0 DIV + - col1 col2 FROM tab2 AS cor0
----
4386
5761
6622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT + + col1 * 86 + + col0 / + - col1 col2 FROM tab2 AS cor0
----
4386
5761
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL - SUM( DISTINCT - 76 ) * - + COUNT( DISTINCT - + col0 ) * + COUNT( * ) + + + 25 AS col0 FROM tab1 AS cor0
----
-659

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - SUM ( DISTINCT - 76 ) * - + COUNT ( DISTINCT - + col0 ) * + COUNT ( * ) + + + 25 AS col0 FROM tab1 AS cor0
----
-659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - - col0 col0 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT - ( - col0 ) + 6 + + 27 - + - 26 * col0 AS col0 FROM tab2 AS cor0
----
1275
1761
2058

query I rowsort
SELECT ALL + 22 AS col2 FROM tab1
----
22
22
22

query I rowsort
SELECT col2 + - 95 + - 77 FROM tab2
----
-114
-132
-149

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + col1 NOT IN ( - 73 * col2, 42 * - col2 + - col0 * 38 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 54 / + + col1 + - + ( col1 ) col2 FROM tab0 WHERE - col1 * - 87 IS NULL
----

query I rowsort
SELECT ALL - ( col0 ) * + col2 - col0 FROM tab0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query II rowsort label-4493
SELECT col0, + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4493
SELECT col0, + col1 / col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ( - + SUM( ALL col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4495
SELECT ( - + SUM ( ALL col0 ) ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 95 + - col0 NOT BETWEEN - 7 AND ( - 71 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT - + COUNT( * ) DIV COUNT( * ) * + + COUNT( * ) + + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4497
SELECT - + COUNT ( * ) / COUNT ( * ) * + + COUNT ( * ) + + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT MAX( ALL + col0 ) + - 8 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4498
SELECT MAX ( ALL + col0 ) + - 8 FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT + COUNT( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4499
SELECT + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 72 + - + 96 AS col0 FROM tab2 WHERE NOT + - ( + 5 ) + + - col0 + - 34 BETWEEN + col2 AND ( NULL )
----
-24
-24
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 80 <= ( 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT MIN( ( + ( - 28 ) ) ) DIV - 25 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4504
SELECT MIN ( ( + ( - 28 ) ) ) / - 25 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT 25 DIV - ( - 82 ) * - - col0 * col0 * 23 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT 25 / - ( - 82 ) * - - col0 * col0 * 23 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT ALL CAST( - 63 AS SIGNED ) AS col0 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL CAST ( - 63 AS INTEGER ) AS col0 FROM tab1
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT + 98 * col1 <> - col1 + + - col1
----

query I rowsort
SELECT DISTINCT + col1 * + 80 * - 76 FROM tab2 AS cor0
----
-310080
-407360
-468160

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT - - ( 37 ) AS col1, col0 AS col2 FROM tab2 AS cor0 WHERE 87 NOT BETWEEN ( col1 ) AND - col1
----
37
46
37
64
37
75

query I rowsort
SELECT ( - 42 ) FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT col2 - 25 * - - col1 * + + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT col2 - 25 * - - col1 * + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - COUNT( * ) + 38 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - COUNT ( * ) + 38 FROM tab1
----
35

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT DISTINCT SUM( - + 18 ) AS col0, COUNT( DISTINCT 14 ) + 64 FROM tab0
----
-54
65

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT SUM ( - + 18 ) AS col0, COUNT ( DISTINCT 14 ) + 64 FROM tab0
----
-54
65

query I rowsort
SELECT ALL 53 AS col2 FROM tab1 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT SUM( ALL + - 58 ) * + 61 AS col2 FROM tab2 AS cor0
----
-10614

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT SUM ( ALL + - 58 ) * + 61 AS col2 FROM tab2 AS cor0
----
-10614

query I rowsort
SELECT ( + 34 ) AS col1 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-4520
SELECT - + col2 DIV - col0 + + 91 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
91
-21
92
-1
94
-81

skipif mysql # not compatible
query II rowsort label-4520
SELECT - + col2 / - col0 + + 91 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
91
-21
92
-1
94
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4521
SELECT CAST( SUM( + + 39 ) AS SIGNED ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-4521
SELECT CAST ( SUM ( + + 39 ) AS INTEGER ) FROM tab1
----
117

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + + 86 - + col1
----

query I rowsort
SELECT col1 * 63 AS col2 FROM tab0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4524
SELECT MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4525
SELECT DISTINCT + CAST( NULL AS DECIMAL ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4525
SELECT DISTINCT + CAST ( NULL AS REAL ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT ALL + AVG ( DISTINCT + col0 ) AS col2, + 72 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
72

query II rowsort
SELECT ALL 68 * - - ( - col0 ), + col1 AS col2 FROM tab0 AS cor0
----
-1020
81
-5916
21
-6596
1

query I rowsort
SELECT ( - + 94 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 NOT BETWEEN NULL AND ( + col0 * + col2 + + 76 * + 24 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - COUNT( * ) * 5 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COUNT ( * ) * 5 FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT CAST( + + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4530
SELECT CAST ( + + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT COUNT( * ) + - + 55 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT COUNT ( * ) + - + 55 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL - COUNT( * ) * - COUNT( * ) + + + MIN( ALL - + ( + col2 ) ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + + MIN ( ALL - + ( + col2 ) ) AS col0 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT + col0 + + 43 FROM tab0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT DISTINCT COUNT( ALL ( - + col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT COUNT ( ALL ( - + col2 ) ) FROM tab1
----
3

query I rowsort
SELECT - 87 AS col1 FROM tab0 WHERE NULL IS NULL
----
-87
-87
-87

query I rowsort
SELECT + - 46 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT ALL - col0 + col1 + col0 * - - col0 AS col1, - 91 AS col1 FROM tab2 AS cor0
----
2121
-91
4109
-91
5617
-91

query I rowsort
SELECT DISTINCT - col0 + - - 78 AS col2 FROM tab1
----
-13
-7
27

query I rowsort
SELECT DISTINCT ( - col1 ) * + + col0 AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT + 56 - - - 63 AS col1 FROM tab1 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 25 - + col1 AS col2, 83 col2 FROM tab1 AS cor0
----
-25
83
-25
83
-25
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + + col2 * col1 + - col1 + - 88 * + col2 + + col1 col1 FROM tab0 AS cor0
----
-391
-732
-8675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col1 col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT DISTINCT COUNT( * ) AS col0, + 72 AS col1 FROM tab1 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-4545
SELECT DISTINCT COUNT ( * ) AS col0, + 72 AS col1 FROM tab1 AS cor0
----
3
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col1 + + col0 + col0 col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT DISTINCT 66 col2, + ( + - COUNT( * ) ) AS col0 FROM tab1
----
66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4547
SELECT DISTINCT 66 col2, + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
66
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + COUNT( * ) * - - 75 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4548
SELECT + COUNT ( * ) * - - 75 FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL 77 * - COUNT( * ) * + 61 AS col2 FROM tab2
----
-14091

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL 77 * - COUNT ( * ) * + 61 AS col2 FROM tab2
----
-14091

query II rowsort
SELECT 75, - 10 AS col0 FROM tab1
----
75
-10
75
-10
75
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - SUM( DISTINCT 25 ) AS col1 FROM tab1 AS cor0 WHERE NOT 55 <= 36
----
-25

skipif mysql # not compatible
query I rowsort label-4551
SELECT - SUM ( DISTINCT 25 ) AS col1 FROM tab1 AS cor0 WHERE NOT 55 <= 36
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col0 + + + col2 * CAST( - - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col0 + + + col2 * CAST ( - - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) AS INTEGER ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 85 IN ( 30, + 92 + 46 + + - 11 )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4555
SELECT - col0 + - ( - + col2 ) + 55 AS col1, - col0 * ( CAST( NULL AS SIGNED ) ) + + 13 + - col1 FROM tab2 WHERE NOT NULL <= + 38
----

skipif mysql # not compatible
query II rowsort label-4555
SELECT - col0 + - ( - + col2 ) + 55 AS col1, - col0 * ( CAST ( NULL AS INTEGER ) ) + + 13 + - col1 FROM tab2 WHERE NOT NULL <= + 38
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT ALL - COUNT( * ) AS col2, 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
10

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL - COUNT ( * ) AS col2, 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
10

query I rowsort
SELECT col0 * - + ( + - 30 ) AS col1 FROM tab1
----
1530
2550
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT ALL + 87 * - col1 AS col1, col1 FROM tab0
----
-1827
21
-7047
81
-87
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - - col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + 58 + + COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4561
SELECT + 58 + + COUNT ( * ) FROM tab0
----
61

query II rowsort
SELECT col1 + - - 61 AS col0, ( + 91 ) AS col2 FROM tab2 AS cor0
----
112
91
128
91
138
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * col2 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - 58 + COUNT( * ) + - + 30 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 58 + COUNT ( * ) + - + 30 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT 51 + 21 - - col0 + - col0 FROM tab2 AS cor0
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT - COUNT( * ) * - 36 * + COUNT( * ) FROM tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - COUNT ( * ) * - 36 * + COUNT ( * ) FROM tab1 AS cor0
----
324

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4569
SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col2, ( + 2 ) AS col0 FROM tab2 AS cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col2, ( + 2 ) AS col0 FROM tab2 AS cor0
----
NULL
2
NULL
2
NULL
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4570
SELECT ALL - CAST( NULL AS SIGNED ), ( - + 99 ) AS col0 FROM tab1
----
NULL
-99
NULL
-99
NULL
-99

skipif mysql # not compatible
query II rowsort label-4570
SELECT ALL - CAST ( NULL AS INTEGER ), ( - + 99 ) AS col0 FROM tab1
----
NULL
-99
NULL
-99
NULL
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT - 31 * col1 FROM tab0 WHERE - CAST( + col1 AS SIGNED ) * - - 54 IS NOT NULL
----
-2511
-31
-651

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 31 * col1 FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) * - - 54 IS NOT NULL
----
-2511
-31
-651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + - - col0 col2 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL - SUM( + col0 ) + + 65 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - SUM ( + col0 ) + + 65 FROM tab0
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-4574
SELECT 87 * + COUNT( * ) * - + 27 AS col1, + ( COUNT( + col2 ) ) FROM tab1
----
-7047
3

skipif mysql # not compatible
query II rowsort label-4574
SELECT 87 * + COUNT ( * ) * - + 27 AS col1, + ( COUNT ( + col2 ) ) FROM tab1
----
-7047
3

query I rowsort
SELECT DISTINCT col2 + + - 74 FROM tab0
----
-27
-64
25

query I rowsort
SELECT DISTINCT 50 * + col1 AS col1 FROM tab1
----
2350
250
700

query I rowsort
SELECT ( col2 ) * + - 44 - - col1 + + + 9 FROM tab1
----
-2582
-2936
-4201

query I rowsort
SELECT DISTINCT - col2 * + 89 AS col1 FROM tab1
----
-5251
-6052
-8544

query II rowsort
SELECT col1 AS col1, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL col1 + + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4581
SELECT DISTINCT + - col1 AS col2, - CAST( + + ( - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * + - col0 * - col2 ) AND - col2
----

skipif mysql # not compatible
query II rowsort label-4581
SELECT DISTINCT + - col1 AS col2, - CAST ( + + ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * + - col0 * - col2 ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 / - - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - 66 * + COUNT( * ) FROM tab2 WHERE - ( + + col1 ) IS NOT NULL
----
-198

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 66 * + COUNT ( * ) FROM tab2 WHERE - ( + + col1 ) IS NOT NULL
----
-198

query I rowsort
SELECT - col2 FROM tab1 WHERE - col2 = col2 + - - col2
----

query II rowsort
SELECT - 60 AS col2, col0 FROM tab0 WHERE + col0 >= ( NULL )
----

query I rowsort
SELECT ALL col0 * + 53 - + - 96 AS col0 FROM tab0
----
4707
5237
891

query I rowsort
SELECT DISTINCT col2 + - 24 FROM tab1
----
35
44
72

query I rowsort
SELECT 96 * - col1 FROM tab0 cor0
----
-2016
-7776
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4589
SELECT - + 7 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-4589
SELECT - + 7 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
7

query I rowsort
SELECT ALL - ( + + col1 ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + 96 / + - col0 - - - col2 <= - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4592
SELECT 35, CAST( NULL AS SIGNED ) / + col1 col2 FROM tab1
----
35
NULL
35
NULL
35
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4592
SELECT 35, CAST ( NULL AS INTEGER ) / + col1 col2 FROM tab1
----
35
NULL
35
NULL
35
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 72 > NULL
----

query I rowsort
SELECT + col2 * col2 * + col2 AS col1 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT ALL 68 * - 57 AS col0 FROM tab0 cor0
----
-3876
-3876
-3876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col2 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + 65 * + - col0 AS col1 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL - CAST( - col1 AS SIGNED ) - + col1 / - - col1 * - col1 FROM tab0 AS cor0 WHERE ( - 48 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - CAST ( - col1 AS INTEGER ) - + col1 / - - col1 * - col1 FROM tab0 AS cor0 WHERE ( - 48 ) IS NULL
----

query II rowsort
SELECT DISTINCT + + 8, 94 AS col0 FROM tab2 AS cor0
----
8
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT COUNT( * ) * - SUM( + 64 ) - + MIN( DISTINCT + col1 ) + + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-574

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT COUNT ( * ) * - SUM ( + 64 ) - + MIN ( DISTINCT + col1 ) + + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-574

query I rowsort
SELECT - ( + - col1 ) + + col1 AS col2 FROM tab1 cor0
----
10
28
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 98 ) + - col1 = NULL
----

query I rowsort
SELECT 11 + + - ( - col1 ) FROM tab0 AS cor0
----
12
32
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT DISTINCT + - 54 + - - COUNT( * ) AS col2, - 90 FROM tab0 AS cor0
----
-51
-90

skipif mysql # not compatible
query II rowsort label-4605
SELECT DISTINCT + - 54 + - - COUNT ( * ) AS col2, - 90 FROM tab0 AS cor0
----
-51
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT CAST( NULL AS SIGNED ) + + + col0 + - 23 - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT CAST ( NULL AS INTEGER ) + + + col0 + - 23 - + col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 98 * + col0 col0 FROM tab2
----
4531
6312
7408

query I rowsort
SELECT 55 + - col1 + - col2 FROM tab2 WHERE + col1 <> ( - col2 / col1 )
----
-19
-62
-70

query III rowsort
SELECT * FROM tab1 WHERE ( - + 85 ) > - ( - 64 )
----

query I rowsort
SELECT ALL - 61 - + - 92 * - col1 FROM tab0
----
-153
-1993
-7513

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT - MIN( col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - MIN ( col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 97 * - col1 + - col0 * + - col1 * + 83 AS col1 FROM tab2 AS cor0
----
189771
401555
410576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 51 + 89 AS col0, col0 col2 FROM tab2 AS cor0
----
140
46
140
64
140
75

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - 16 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4615
SELECT DISTINCT * FROM tab1 WHERE + col0 * - - col0 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4615
SELECT DISTINCT * FROM tab1 WHERE + col0 * - - col0 >= + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col2 AS col2, + col2 - - 41 FROM tab0
----
10
51
47
88
99
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT + col1 * - col1 + - CAST( NULL AS SIGNED ) - - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT + col1 * - col1 + - CAST ( NULL AS INTEGER ) - - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 85 AS col0 FROM tab2 AS cor0
----
85
85
85

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 * col0 - col1 FROM tab2 AS cor0
----
23
-1109
40
-2637
58
-4417

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * col1 AND NULL
----

query II rowsort
SELECT + + 20 AS col2, col2 * + - col1 + + col1 FROM tab2 AS cor0
----
20
-1122
20
-3003
20
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + SUM( - - 58 ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4622
SELECT + SUM ( - - 58 ) FROM tab0 AS cor0
----
174

query I rowsort
SELECT + 7 * - 5 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + + SUM( + + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + + SUM ( + + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - MIN( - col0 ) * - MIN( ( - 10 ) ) FROM tab0 AS cor0
----
970

skipif mysql # not compatible
query I rowsort label-4627
SELECT - MIN ( - col0 ) * - MIN ( ( - 10 ) ) FROM tab0 AS cor0
----
970

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4629
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + - col2 * - 84 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4629
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + - col2 * - 84 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4630
SELECT ALL 52 DIV - - col1, + col1 DIV + col2 * - col1 * - col2 AS col1 FROM tab1
----
1
0
10
0
3
0

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL 52 / - - col1, + col1 / + col2 * - col1 * - col2 AS col1 FROM tab1
----
1
0
10
0
3
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 98 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - 31
----

query I rowsort
SELECT ALL - 30 + - col2 FROM tab1 AS cor0
----
-126
-89
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 <> + ( + - col2 ) / - - col2
----

query I rowsort
SELECT ( + 99 ) FROM tab2
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + + ( col0 ) ) + - ( - col2 ) * col2 * - ( + + 46 ) col1 FROM tab0
----
-101518
-4492
-450748

query I rowsort
SELECT ALL + 4 FROM tab2 cor0 WHERE NOT col2 / - + 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT + col0 + - - CAST( - 10 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
41
75
81

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + col0 + - - CAST ( - 10 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
41
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - col2 col1 FROM tab2 AS cor0
----
-117
-134
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, 70 AS col2 FROM tab0 cor0
----
15
70
87
70
97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT + COUNT( * ) + 28 AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + COUNT ( * ) + 28 AS col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT + ( + + ( col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( 26 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( - col1 ) + 14 * 31 FROM tab1
----
499
524
572

query I rowsort
SELECT ALL + col1 * - - ( - col0 ) + + + 72 AS col1 FROM tab1
----
-353
-4205
-642

query II rowsort
SELECT 4 AS col0, + col2 AS col2 FROM tab1
----
4
59
4
68
4
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT ALL 24, - 17 * - + COUNT( + CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2
----
24
51

skipif mysql # not compatible
query II rowsort label-4647
SELECT ALL 24, - 17 * - + COUNT ( + CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2
----
24
51

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND + + ( + 33 ) - + col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - 86 - + col0 col1 FROM tab1
----
-3663
-3697
-3703

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( 75 ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4650
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( 75 ) FROM tab0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab0
----
31
31
31

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 - - 32 / - + 13, - col0 )
----

query I rowsort
SELECT DISTINCT + + 80 * - col1 FROM tab0 AS cor0
----
-1680
-6480
-80

query II rowsort
SELECT ALL ( col1 ), + col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - col2 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4657
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( CAST( NULL AS DECIMAL ) ) ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4657
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( CAST ( NULL AS REAL ) ) ) BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + 86 DIV - - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4658
SELECT + 86 / - - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT 52 DIV - - 67 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT 52 / - - 67 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4660
SELECT DISTINCT 26 AS col2, - CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4660
SELECT DISTINCT 26 AS col2, - CAST ( NULL AS REAL ) * col2 FROM tab1
----
26
NULL

query I rowsort
SELECT 39 * - - col1 FROM tab2
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - COUNT( * ) * + 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - COUNT ( * ) * + 62 FROM tab2
----
-186

query I rowsort
SELECT - + 25 + - 11 FROM tab2 WHERE NOT col0 / col0 * + + col2 + + 8 * + 77 / 71 IS NULL
----
-36
-36
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 55 + - + col2 <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL 96 * col0 * CAST( NULL AS SIGNED ) + + 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL 96 * col0 * CAST ( NULL AS INTEGER ) + + 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * + - col2, - 71 + - col1 AS col2 FROM tab2
----
-1600
-148
-3364
-138
-529
-122

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT + ( col1 ) * col1 * + 94 + col1 FROM tab0 AS cor0
----
41475
616815
95

query I rowsort
SELECT + + 53 + ( + col0 ) AS col1 FROM tab2 cor0
----
117
128
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4670
SELECT - col2 + col0 AS col2, 5 + + CAST( + 20 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
25
23
25
24
25

skipif mysql # not compatible
query II rowsort label-4670
SELECT - col2 + col0 AS col2, 5 + + CAST ( + 20 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
25
23
25
24
25

query III rowsort
SELECT * FROM tab0 WHERE 18 * - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + MIN( - col0 ) - COUNT( * ) * + COUNT( * ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + MIN ( - col0 ) - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT MIN( + 94 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT MIN ( + 94 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 + 12 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT - ( - 11 ) - + ( SUM( col2 ) ) FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - ( - 11 ) - + ( SUM ( col2 ) ) FROM tab0
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT + SUM( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 66 - + - col0 + + col2 - - col1 FROM tab2
----
115
134
54

query I rowsort
SELECT + 13 * + col2 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
127413
1300
28717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL + + col2 + CAST( ( + + col1 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + + col2 + CAST ( ( + + col1 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT COUNT( DISTINCT + 74 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( DISTINCT + 74 ) AS col1 FROM tab2 AS cor0
----
1

query II rowsort
SELECT - col1, 30 AS col0 FROM tab0 AS cor0
----
-1
30
-21
30
-81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT - SUM( 10 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - SUM ( 10 ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT ALL COUNT( * ) DIV + + 68 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL COUNT ( * ) / + + 68 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4687
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4687
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT DISTINCT ( + col2 ) DIV - 89 + + col1 + - + col0 FROM tab1
----
-38
-44
-80

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT ( + col2 ) / - 89 + + col1 + - + col0 FROM tab1
----
-38
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 56 + 69 col2 FROM tab2 WHERE NOT - col0 * + ( 4 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + MIN( ALL + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4690
SELECT + MIN ( ALL + + col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE NOT - col1 + - + col0 <> - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4692
SELECT col0 * + + col1 AS col0, - col2 - + + 0 + - + col1 * + col1 DIV + col1 + + 83 AS col0 FROM tab1
----
425
19
4277
-32
714
-27

skipif mysql # not compatible
query II rowsort label-4692
SELECT col0 * + + col1 AS col0, - col2 - + + 0 + - + col1 * + col1 / + col1 + + 83 AS col0 FROM tab1
----
425
19
4277
-32
714
-27

query II rowsort
SELECT + ( + 29 ), col0 * + + 60 * - col0 AS col0 FROM tab2
----
29
-126960
29
-245760
29
-337500

query I rowsort
SELECT col2 * col2 - + - col1 FROM tab1 AS cor0
----
3486
4671
9230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - - 50 >= - - 10
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - - ( - col2 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 5 + - 93 FROM tab2
----
-13
-24
-42

query I rowsort
SELECT - 63 * col0 * + + col2 - col1 AS col2 FROM tab2
----
-161357
-274117
-66705

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT COUNT( * ) * - 90 - 15 AS col2 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-4700
SELECT COUNT ( * ) * - 90 - 15 AS col2 FROM tab1
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - - col2 * - col2 - ( 55 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - - col2 * - col2 - ( 55 ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - - 43 * - col0 * - + col2 FROM tab0
----
30396
37431
412930

query II rowsort
SELECT + 43 - - 74, - 17 + + + ( - 80 ) + col2 AS col1 FROM tab0
----
117
-50
117
-87
117
2

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2 WHERE col0 BETWEEN col2 AND + ( 90 ) / - col0
----

query II rowsort
SELECT ALL + 96 - col0 * - 98, + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - - col0 ) BETWEEN - col1 * - col2 * col0 AND - col1
----
5094
51
8426
85
9014
91

query I rowsort
SELECT DISTINCT 10 * - + col0 FROM tab1 AS cor0
----
-510
-850
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT ALL + 90 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 90 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4708
SELECT CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 * + - 30 * - - col2 FROM tab2 AS cor0
----
-10440
-4140
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - 17 * + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-4711
SELECT - 17 * + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - col2 AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + 41 AS col2, 82 + col2 - + ( - + col0 ) + - col2 AS col1 FROM tab0
----
41
169
41
179
41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - COUNT( * ) * 24 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4714
SELECT - COUNT ( * ) * 24 FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL + col2 + - col0 + + CAST( - col2 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + col2 + - col0 + + CAST ( - col2 AS INTEGER ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT - col2 * + - col1 AS col1, + ( col2 ) FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT DISTINCT - col1 * - 24 FROM tab0
----
1944
24
504

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT ALL 88 * col1 DIV - col1 AS col2 FROM tab2
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 88 * col1 / - col1 AS col2 FROM tab2
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT - - ( + CAST( + - 44 AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) + + + 81 * + CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) + + + 81 * + CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + 83 + + 23 + + - COUNT( * ) FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4720
SELECT + 83 + + 23 + + - COUNT ( * ) FROM tab1 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT 35 + - col2 DIV - col1 + + - col2 FROM tab0 AS cor0
----
-12
25
35

skipif mysql # not compatible
query I rowsort label-4721
SELECT 35 + - col2 / - col1 + + - col2 FROM tab0 AS cor0
----
-12
25
35

query I rowsort
SELECT col2 + + ( + + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT MIN( ALL + col2 ) + - COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT MIN ( ALL + col2 ) + - COUNT ( * ) FROM tab0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT DISTINCT + 88 DIV 75 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + 88 / 75 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL + + CAST( NULL AS SIGNED ) / + - col2 + - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + + CAST ( NULL AS INTEGER ) / + - col2 + - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT - MAX( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - MAX ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT 5 + SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT 5 + SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - - col1 + + ( + CAST( + 88 AS SIGNED ) ) - + col1 + + col1 * col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
197208
291538
54046

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - - col1 + + ( + CAST ( + 88 AS INTEGER ) ) - + col1 + + col1 * col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
197208
291538
54046

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT 44 DIV - 65 + + + col1 + + col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-4730
SELECT 44 / - 65 + + + col1 + + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT ALL ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 62 + 95 AS col2 FROM tab0 AS cor0
----
157
157
157

query I rowsort
SELECT - col1 * - ( + - ( - 69 ) ) + col0 FROM tab0
----
1536
166
5604

query II rowsort
SELECT DISTINCT 93 + - col0 * - col1 AS col0, col2 FROM tab0
----
1308
47
190
99
1920
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL - 66 + + COUNT( * ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - 66 + + COUNT ( * ) AS col2 FROM tab1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT ALL + col1 DIV + - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + col1 / + - col0 AS col2 FROM tab0
----
-5
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 NOT BETWEEN + 31 AND col2 - + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 50 * - + col2 FROM tab0 AS cor0
----
-2350
-4950
-500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 35 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT col2 * + + ( - col1 ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT - + ( - COUNT( + - 6 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - + ( - COUNT ( + - 6 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL - - CAST( - 93 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - - CAST ( - 93 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

query I rowsort
SELECT + - col2 + + 61 AS col2 FROM tab2 cor0
----
21
3
38

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT - MIN( DISTINCT - 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - MIN ( DISTINCT - 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col0 / + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL + - 66 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + - 66 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 33 + + col2 FROM tab0
----
-23
14
66

query I rowsort
SELECT ALL - 83 * + 83 * ( + - col1 ) AS col2 FROM tab2
----
351339
461563
530453

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - 39 + COUNT( ALL 57 ) * - COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - 39 + COUNT ( ALL 57 ) * - COUNT ( * ) FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - SUM( ALL - + col2 ) * - ( COUNT( * ) ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-4753
SELECT - SUM ( ALL - + col2 ) * - ( COUNT ( * ) ) FROM tab0
----
-468

query III rowsort
SELECT * FROM tab0 WHERE - col2 / 83 * - col0 NOT BETWEEN - 25 AND + col1 + ( + - ( + 78 ) ) * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 17 < - + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT - COUNT( * ) DIV ( + 1 ) * + ( - 9 ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4756
SELECT - COUNT ( * ) / ( + 1 ) * + ( - 9 ) AS col2 FROM tab0
----
27

query I rowsort
SELECT ALL ( - 36 ) AS col2 FROM tab0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col2 ) * - 40 col0, - 34 - + ( + col1 ) + 8 FROM tab2 AS cor0
----
-1600
-103
-2320
-93
-920
-77

query I rowsort
SELECT col0 * + col2 - ( + col0 ) AS col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT + 59 / - + 24 + - 76 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4760
SELECT + 59 / - + 24 + - 76 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 49 AS col2 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - 60 + - col1 * + 97 * - col0 + - - col2 FROM tab2
----
227525
477996
487423

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4763
SELECT ALL col0 + + col2 + - col2 + + ( + CAST( NULL AS SIGNED ) ) * - col0 + + 56 * + col1 * - col1 + + CAST( NULL AS DECIMAL ) * 60 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL col0 + + col2 + - col2 + + ( + CAST ( NULL AS INTEGER ) ) * - col0 + + 56 * + col1 * - col1 + + CAST ( NULL AS REAL ) * 60 * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + col1 - ( - + ( col2 ) ) + + 31 AS col1 FROM tab2 AS cor0
----
105
148
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4766
SELECT ALL - CAST( col1 AS SIGNED ) + + - col0 AS col2, col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 * + - 98 IS NOT NULL AND col2 + + CAST( NULL AS SIGNED ) + ( + - col2 ) IS NULL
----
-138
4277
-65
714
-90
425

skipif mysql # not compatible
query II rowsort label-4766
SELECT ALL - CAST ( col1 AS INTEGER ) + + - col0 AS col2, col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 * + - 98 IS NOT NULL AND col2 + + CAST ( NULL AS INTEGER ) + ( + - col2 ) IS NULL
----
-138
4277
-65
714
-90
425

query II rowsort
SELECT col1 AS col2, col0 - + - col2 AS col2 FROM tab1 AS cor0
----
14
147
47
159
5
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL + + 26 * + CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL + + 26 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + col0 col2 FROM tab0 AS cor0 WHERE NOT + 91 * - col2 NOT BETWEEN - - ( + - col1 ) / - - col0 + - 34 + - col0 * + + 50 AND 4
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 51 col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT 43 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT 43 / + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4772
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0, - col0 - + ( + col1 ) + - 14 FROM tab1
----
NULL
-104
NULL
-152
NULL
-79

skipif mysql # not compatible
query II rowsort label-4772
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0, - col0 - + ( + col1 ) + - 14 FROM tab1
----
NULL
-104
NULL
-152
NULL
-79

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4774
SELECT + + col2 AS col1, - col0 DIV + col1 FROM tab2 AS cor0
----
23
0
40
0
58
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT + + col2 AS col1, - col0 / + col1 FROM tab2 AS cor0
----
23
0
40
0
58
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 69 col2 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT + - 96, - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-96
-45
-96
23
-96
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT MAX( + ( + col2 ) ) + - + 21 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT MAX ( + ( + col2 ) ) + - + 21 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT SUM( + col2 ) + COUNT( + 4 ) AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-4780
SELECT SUM ( + col2 ) + COUNT ( + 4 ) AS col0 FROM tab2
----
124

query I rowsort
SELECT - ( - 56 ) FROM tab2 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT SUM( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4782
SELECT SUM ( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT MAX( ALL - ( 9 ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT MAX ( ALL - ( 9 ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + col2 - - col1 + 28 FROM tab1
----
138
143
92

query I rowsort
SELECT DISTINCT + 61 - + 55 FROM tab0
----
6

query I rowsort
SELECT - - col0 FROM tab0 WHERE - col2 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 col1 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4788
SELECT + COUNT( * ) AS col2, - MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-4788
SELECT + COUNT ( * ) AS col2, - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
3
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 + - col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4790
SELECT ALL - COUNT( * ) DIV - + MIN( ALL 96 ) AS col0, COUNT( * ) - + COUNT( * ) * COUNT( * ) + - + 23 FROM tab0 AS cor0
----
0
-29

skipif mysql # not compatible
query II rowsort label-4790
SELECT ALL - COUNT ( * ) / - + MIN ( ALL 96 ) AS col0, COUNT ( * ) - + COUNT ( * ) * COUNT ( * ) + - + 23 FROM tab0 AS cor0
----
0
-29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4792
SELECT + 50 AS col2, + col1 DIV + 11 col0 FROM tab2
----
50
4
50
6
50
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4792
SELECT + 50 AS col2, + col1 / + 11 col0 FROM tab2
----
50
4
50
6
50
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT + COUNT( ALL + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT 61 DIV - - MAX( + - col1 ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4794
SELECT 61 / - - MAX ( + - col1 ) col2 FROM tab2
----
-1

query II rowsort
SELECT - 24, - 58 * - col0 AS col1 FROM tab1
----
-24
2958
-24
4930
-24
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + 13 * + ( + ( - 61 ) ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
2379

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT ALL + 13 * + ( + ( - 61 ) ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
2379

query I rowsort
SELECT + col2 * + 43 FROM tab2 AS cor0
----
1720
2494
989

query II rowsort
SELECT 92 AS col0, 45 AS col1 FROM tab0 AS cor0
----
92
45
92
45
92
45

query I rowsort
SELECT ALL - - col1 * + col1 * - col1 - - 89 + - - col1 FROM tab2 AS cor0
----
-132511
-300607
-456367

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT + 50 + - CAST( NULL AS SIGNED ) * ( - - col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 50 + - CAST ( NULL AS INTEGER ) * ( - - col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT MAX( ALL - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT MAX ( ALL - 28 ) FROM tab0
----
-28

query I rowsort
SELECT DISTINCT col0 * 11 + - col2 FROM tab2 WHERE NOT + 55 IS NULL
----
483
664
767

query I rowsort
SELECT - - col0 + 2 * - ( - 55 ) FROM tab2 AS cor0
----
156
174
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) * - MIN( ALL - + 5 ) * COUNT( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) * - MIN ( ALL - + 5 ) * COUNT ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 > - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 + + col0, - 82 AS col0 FROM tab1 AS cor0
----
138
-82
65
-82
90
-82

query I rowsort
SELECT ALL - 72 + + - 96 + + col0 AS col0 FROM tab0 AS cor0
----
-153
-71
-81

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab2, tab1 AS cor0
----
85

query II rowsort
SELECT - col2, ( + col1 ) FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - COUNT( * ) - + 74 AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4812
SELECT - COUNT ( * ) - + 74 AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + 51 - - SUM( DISTINCT + 12 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 51 - - SUM ( DISTINCT + 12 ) FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + + col1 + - - 87 col1 FROM tab2 AS cor0
----
50
59
78

query I rowsort
SELECT DISTINCT + col1 - + - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - col1 + + - 33 * - + 1 * - col1 - + 4 AS col0 FROM tab0 AS cor0
----
-2758
-38
-718

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4817
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4817
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < + ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( - 3 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) > + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT - col0 DIV 78 + 51 AS col0 FROM tab1
----
50
51

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - col0 / 78 + 51 AS col0 FROM tab1
----
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - col0 * col2 col1 FROM tab0
----
-687
-852
-9585

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( ALL col0 ) * + 8 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( ALL col0 ) * + 8 AS col2 FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - 8 - COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4823
SELECT - 8 - COUNT ( * ) AS col2 FROM tab2
----
-11

query I rowsort
SELECT + col0 + - 66 FROM tab0
----
-51
21
31

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT col1 + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 5 FROM tab2 WHERE NOT - col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 36 NOT IN ( - col2 * + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT MIN( DISTINCT 61 ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4828
SELECT MIN ( DISTINCT 61 ) AS col1 FROM tab2
----
61

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE ( col0 + - 69 / - 25 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + MAX( - 79 ) AS col0 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-4830
SELECT + MAX ( - 79 ) AS col0 FROM tab2
----
-79

query I rowsort
SELECT ALL - 0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 88 ) col2 FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> + 31
----

query I rowsort
SELECT - col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + 68 + + col2 * + 75 col1 FROM tab0 AS cor0
----
12865
6190
8965

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * + col2 ) NOT BETWEEN ( 32 ) * + col1 AND col2
----

query I rowsort
SELECT DISTINCT + 49 * - col2 FROM tab2
----
-1127
-1960
-2842

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT + col2 DIV - col0 col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4839
SELECT + col2 / - col0 col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 - col2 * + 24 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT 82 DIV - col2 FROM tab0 cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT 82 / - col2 FROM tab0 cor0
----
-1
-8
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT DISTINCT - 63 DIV col0 AS col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - 63 / col0 AS col2 FROM tab1 cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT ( - 91 ) DIV - SUM( ALL col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4844
SELECT ( - 91 ) / - SUM ( ALL col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 34 + 61 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 )
----
0

query I rowsort
SELECT - col1 + - 11 AS col0 FROM tab1 AS cor0
----
-16
-25
-58

query I rowsort
SELECT DISTINCT 14 + col0 AS col1 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT + + ( + col0 ) + col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4850
SELECT * FROM tab1 AS cor0 WHERE ( 18 ) NOT BETWEEN - col2 AND ( - 91 / - CAST( col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4850
SELECT * FROM tab1 AS cor0 WHERE ( 18 ) NOT BETWEEN - col2 AND ( - 91 / - CAST ( col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( ( + 20 ) ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-1240
-1442
-897

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT - - 90 + - col1 DIV col0 col1 FROM tab2 cor0
----
89
89
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT - - 90 + - col1 / col0 col1 FROM tab2 cor0
----
89
89
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT COUNT( * ) + - - 56 AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) + - - 56 AS col0 FROM tab0
----
59

query I rowsort
SELECT ALL - 22 - + col1 * col0 FROM tab2
----
-2368
-4950
-5047

query I rowsort
SELECT DISTINCT col2 + - - 62 FROM tab0
----
109
161
72

query I rowsort
SELECT DISTINCT - 89 - + col0 AS col0 FROM tab2
----
-135
-153
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT col0 DIV 21 - col0 FROM tab2
----
-44
-61
-72

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT col0 / 21 - col0 FROM tab2
----
-44
-61
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL - 36 DIV + col0 - + 61 DIV 36 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - 36 / + col0 - + 61 / 36 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 - - + col1 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4861
SELECT DISTINCT CAST( - - COUNT( * ) AS DECIMAL ) * 15 - - CAST( NULL AS SIGNED ) * ( - COUNT( * ) + - 19 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT CAST ( - - COUNT ( * ) AS REAL ) * 15 - - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) + - 19 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT ALL - ( - col0 ) - - col1 DIV col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - ( - col0 ) - - col1 / col1 FROM tab2 AS cor0
----
47
65
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * + + col0 + - col0 - + 29 FROM tab1 AS cor0
----
-2681
-7339
-8401

query I rowsort
SELECT col1 * - - col1 * + 83 FROM tab0 AS cor0
----
36603
544563
83

query I rowsort
SELECT + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT 64 * - 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0459ee87487c65752b7ba24661a41611

query II rowsort
SELECT 92 AS col1, col2 AS col2 FROM tab0 AS cor0
----
92
10
92
47
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL COUNT( DISTINCT + - 70 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL COUNT ( DISTINCT + - 70 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 50 * + 34 FROM tab2 AS cor0
----
1700

query I rowsort
SELECT ALL + ( - - col2 ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE 60 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE 60 BETWEEN ( NULL ) AND NULL
----
0

query II rowsort
SELECT - - 95 AS col2, col2 FROM tab2 cor0
----
95
23
95
40
95
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4876
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT IN ( ( col1 ) * + 31 + col1 * + 79 )
----

skipif mysql # not compatible
query III rowsort label-4876
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT IN ( ( col1 ) * + 31 + col1 * + 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL + COUNT( * ) * + 36 FROM tab2 WHERE NULL IS NULL
----
108

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + COUNT ( * ) * + 36 FROM tab2 WHERE NULL IS NULL
----
108

query III rowsort
SELECT * FROM tab1 WHERE NOT - 74 NOT IN ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT CAST( + - 51 AS SIGNED ) FROM tab1
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-4879
SELECT CAST ( + - 51 AS INTEGER ) FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE - col1 / - col1 < ( + 2 * - 16 - - 55 )
----
51
67
77

query I rowsort
SELECT ALL + ( - + 88 ) + + + col0 AS col0 FROM tab1 AS cor0
----
-3
-37
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( - 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT ALL + col2 DIV + + col2 + col0 DIV 25 AS col1 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + col2 / + + col2 + col0 / 25 AS col1 FROM tab2
----
2
3
4

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - col0 BETWEEN col1 / - - 15 AND NULL
----

query I rowsort
SELECT ALL col0 * - 35 * ( - col0 ) FROM tab0 AS cor0
----
264915
329315
7875

onlyif mysql # DIV for integer division: 
query II rowsort label-4886
SELECT DISTINCT + col0 DIV - col2 - + col1 AS col0, 13 AS col1 FROM tab2 AS cor0
----
-53
13
-68
13
-78
13

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT + col0 / - col2 - + col1 AS col0, 13 AS col1 FROM tab2 AS cor0
----
-53
13
-68
13
-78
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + MIN( + 63 ) * ( - - 39 ) FROM tab1 AS cor0
----
2457

skipif mysql # not compatible
query I rowsort label-4887
SELECT + MIN ( + 63 ) * ( - - 39 ) FROM tab1 AS cor0
----
2457

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT 58 DIV + + ( + - 31 ) + + 5 AS col1 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4888
SELECT 58 / + + ( + - 31 ) + + 5 AS col1 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab0 cor0
----
50

query I rowsort
SELECT DISTINCT + 32 + ( 51 ) AS col1 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL + 80 - 98 + + - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + 80 - 98 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + MIN( + 43 ) AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4892
SELECT + MIN ( + 43 ) AS col0 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL + COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4893
SELECT ALL + COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL col2 - col2 * + + col0 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT + col1 - - - 58 * col0 * - - col0 FROM tab0
----
-12969
-438981
-545721

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT COUNT( * ) + ( 49 ) + COUNT( * ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT COUNT ( * ) + ( 49 ) + COUNT ( * ) AS col2 FROM tab0
----
55

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( - col0 * - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4898
SELECT ALL * FROM tab2 WHERE ( ( NULL ) NOT IN ( - col1 * + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4898
SELECT ALL * FROM tab2 WHERE ( ( NULL ) NOT IN ( - col1 * + CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL COUNT( ALL + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL COUNT ( ALL + + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 89 AS col1 FROM tab1 AS cor0
----
89

query I rowsort
SELECT - + 51 AS col2 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + + col1 * + - 62 * - - 84 FROM tab2 AS cor0
----
-265608
-348936
-401016

query I rowsort
SELECT ALL 65 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - ( COUNT( DISTINCT - 7 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4905
SELECT - ( COUNT ( DISTINCT - 7 ) ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col2 AS col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + MAX( ALL + + 20 ) col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4907
SELECT + MAX ( ALL + + 20 ) col0 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4908
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4908
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 51 < col2 - - - col2
----

query II rowsort
SELECT ALL - 39 AS col2, 6 FROM tab0 WHERE NOT NULL NOT IN ( - 12 * + 57 - - - col1 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN 49 AND - col0
----

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col1 * - - ( + + col2 ) + 48 FROM tab0 WHERE NOT NULL >= - col2 + - ( + col0 )
----

query I rowsort
SELECT 38 + 46 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT 74 + - + col2 FROM tab2 AS cor0
----
16
34
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 13 col1 FROM tab1 cor0
----
46
55
83

query II rowsort
SELECT - + ( col1 ) * 20 + + - col1 AS col0, 60 AS col1 FROM tab0 AS cor0
----
-1701
60
-21
60
-441
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 28 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT + 90 + + 67 AS col0, COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
157
9

skipif mysql # not compatible
query II rowsort label-4920
SELECT + 90 + + 67 AS col0, COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
157
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT 72, ( col2 ) + - - col2 AS col2 FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4921
SELECT 72, ( col2 ) + - - col2 AS col2 FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4922
SELECT DISTINCT - CAST( - 97 AS SIGNED ) - 96 + - 76 DIV - col2 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) - 96 + - 76 / - col2 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 0 - - col1 + + col2 + - col0 col0 FROM tab1 cor0
----
-21
24
59

query I rowsort
SELECT + col0 * col0 + col2 + - + 26 AS col0 FROM tab2 AS cor0
----
2113
4110
5657

query I rowsort
SELECT + col1 + + - ( - col2 ) FROM tab2 cor0
----
117
125
74

query II rowsort
SELECT DISTINCT ( - col0 ) + + 18 * + col1 AS col0, ( + + col2 ) FROM tab0 AS cor0
----
-79
99
1443
47
291
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT COUNT( + col0 ) + - 64 AS col1 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4928
SELECT COUNT ( + col0 ) + - 64 AS col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT - + 95 + + - ( - + col0 ) FROM tab2 cor0
----
-20
-31
-49

query I rowsort
SELECT ALL - 89 * col1 + - col0 FROM tab2
----
-4585
-6038
-6917

query I rowsort
SELECT ALL - 44 - col1 FROM tab0
----
-125
-45
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL col0 * 66 + CAST( NULL AS SIGNED ) + ( - col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL col0 * 66 + CAST ( NULL AS INTEGER ) + ( - col0 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT 40 AS col2, COUNT( * ) FROM tab0 WHERE NOT - 46 * + - col2 IS NULL
----
40
3

skipif mysql # not compatible
query II rowsort label-4933
SELECT 40 AS col2, COUNT ( * ) FROM tab0 WHERE NOT - 46 * + - col2 IS NULL
----
40
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT DISTINCT ( + 88 ) DIV - col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT ( + 88 ) / - col0 FROM tab0
----
-1
-5
0

query I rowsort
SELECT ALL - ( + 81 ) FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - col1 * - 35 * col1 * + + 67 AS col1 FROM tab1 AS cor0
----
459620
5180105
58625

query I rowsort
SELECT ALL - 87 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87
-87
-87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * - col1 * - col0 NOT BETWEEN col2 AND - col0 * + col1 * + 39 * col1 / - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 * - ( + - col1 ) NOT IN ( - col0 + + 3, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + - MIN( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4940
SELECT ALL + - MIN ( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
-7

query II rowsort
SELECT - + col1 AS col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - 94 + - COUNT( * ) * + 33 AS col0 FROM tab2 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-4942
SELECT - 94 + - COUNT ( * ) * + 33 AS col0 FROM tab2 AS cor0
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - + CAST( - 7 AS SIGNED ) + 10 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-4943
SELECT - + CAST ( - 7 AS INTEGER ) + 10 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4944
SELECT ALL - col0, + CAST( NULL AS SIGNED ) + - - 46 AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4944
SELECT ALL - col0, + CAST ( NULL AS INTEGER ) + - - 46 AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + SUM( + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4945
SELECT + SUM ( + + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-4946
SELECT ( - col2 ) * ( + 68 ) * col1, 97 DIV + col0 AS col0 FROM tab1
----
-20060
1
-217328
1
-91392
1

skipif mysql # not compatible
query II rowsort label-4946
SELECT ( - col2 ) * ( + 68 ) * col1, 97 / + col0 AS col0 FROM tab1
----
-20060
1
-217328
1
-91392
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT 86 DIV col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-4947
SELECT 86 / col1 FROM tab1
----
1
17
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 20 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - + SUM( ALL + + 56 ) / - 92 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT - + SUM ( ALL + + 56 ) / - 92 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT COUNT( * ) DIV 80 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT COUNT ( * ) / 80 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + 15 * - 82 + - MAX( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-1326

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4952
SELECT + 15 * - 82 + - MAX ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL - + MAX( ALL - 77 ) AS col1 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - + MAX ( ALL - 77 ) AS col1 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT col1 * + + col2 + col2 + col2 FROM tab1 cor0
----
1536
3332
413

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 76 ) - col1 FROM tab1 AS cor0
----
-123
-81
-90

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NULL = + ( - col0 ) * + + col0 * - 31
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col0 * - col1 + - col2 + col0 * - 22 IS NOT NULL )
----

query I rowsort
SELECT - + 38 - + 71 AS col2 FROM tab0 AS cor0
----
-109
-109
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-4960
SELECT ALL - 24 * - + ( + - col1 ) * - ( - col2 ) * - - col2 * col2 DIV + + col2 + - + col2, - 4 col1 FROM tab1
----
-3096672
-4
-417779
-4
-5215940
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4960
SELECT ALL - 24 * - + ( + - col1 ) * - ( - col2 ) * - - col2 * col2 / + + col2 + - + col2, - 4 col1 FROM tab1
----
-3096672
-4
-417779
-4
-5215940
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - COUNT( * ) * 63 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - COUNT ( * ) * 63 FROM tab0
----
-189

query I rowsort
SELECT col1 * + 38 AS col0 FROM tab1
----
1786
190
532

query I rowsort
SELECT DISTINCT 33 * - 16 * + + ( + col0 ) * - - col0 AS col0 FROM tab0
----
-118800
-3996432
-4967952

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND 65 - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 / + + ( + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4966
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4967
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4967
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * 50 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT col0 DIV - - 30 col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT col0 / - - 30 col0 FROM tab0
----
0
2
3

query I rowsort
SELECT ALL - - 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN col1 + - - col0 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT DISTINCT + 24 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + 24 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - COUNT( * ) + + SUM( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - COUNT ( * ) + + SUM ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT SUM( + 38 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4974
SELECT SUM ( + 38 ) FROM tab2 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + + 94 AS col0 FROM tab0
----
109
181
191

onlyif mysql # DIV for integer division: 
query II rowsort label-4977
SELECT ALL - 66 AS col2, col1 * + col2 DIV - col2 col2 FROM tab2
----
-66
-51
-66
-67
-66
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4977
SELECT ALL - 66 AS col2, col1 * + col2 / - col2 col2 FROM tab2
----
-66
-51
-66
-67
-66
-77

query I rowsort
SELECT ALL 24 + - + 99 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT ALL ( - col1 ) * + col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 64 col0 FROM tab0
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL SUM( DISTINCT - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL SUM ( DISTINCT - - col1 ) FROM tab1
----
66

query II rowsort
SELECT - - col1, col0 * + col2 * - col0 FROM tab0 WHERE - 40 IS NULL
----

query II rowsort
SELECT ALL - col2 AS col2, + col1 * - col1 + - ( - + 1 ) FROM tab2
----
-23
-2600
-40
-5928
-58
-4488

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 / - col1 + - - 18 * - 32 >= + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + - MAX( + col1 ) * - ( - 19 ) + - + 1 AS col0 FROM tab1 AS cor0
----
-894

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + - MAX ( + col1 ) * - ( - 19 ) + - + 1 AS col0 FROM tab1 AS cor0
----
-894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16 col0, col2 FROM tab1 AS cor0
----
-16
59
-16
68
-16
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 + - 86 = NULL
----

query I rowsort
SELECT ALL 97 + 38 + + col2 AS col1 FROM tab2
----
158
175
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - COUNT( * ) + - + 63 + + - ( - COUNT( * ) ) * - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4989
SELECT - COUNT ( * ) + - + 63 + + - ( - COUNT ( * ) ) * - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col1 + + col1 AS col1, + 39 + - ( - col2 ) FROM tab2 AS cor0
----
0
62
0
79
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT DISTINCT - 50 - + + col2 DIV ( + + col2 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT - 50 - + + col2 / ( + + col2 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT + col2 + - col2, + CAST( 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
36
0
36
0
36

skipif mysql # not compatible
query II rowsort label-4992
SELECT + col2 + - col2, + CAST ( 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
36
0
36
0
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( + col1 + - - col1 + col1 - - col1 * + col2, + col1 / + col0, col2 * 15 )
----

query I rowsort
SELECT DISTINCT - 10 * - + col2 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT ALL - 55 AS col2 FROM tab0 cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4996
SELECT DISTINCT 28 * col0 FROM tab2 AS cor0 WHERE NOT + 45 >= + col1 - + 51 + + + col1 + col2 + CAST( + + col2 AS DECIMAL )
----
1288
1792
2100

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT 28 * col0 FROM tab2 AS cor0 WHERE NOT + 45 >= + col1 - + 51 + + + col1 + col2 + CAST ( + + col2 AS REAL )
----
1288
1792
2100

query I rowsort
SELECT col2 * col2 - - col1 + - col2 AS col2 FROM tab2 AS cor0
----
1637
3373
557

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4998
SELECT ALL * FROM tab0 WHERE + col2 + + - col0 * + CAST( - + 46 AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4998
SELECT ALL * FROM tab0 WHERE + col2 + + - col0 * + CAST ( - + 46 AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col1 * - col1 * - 30 * - + col1 * 26 col1 FROM tab0
----
1
780
21
7223580
81
414523980

onlyif mysql # DIV for integer division: 
query II rowsort label-5000
SELECT ALL - col1, + col2 DIV - 17 + - col2 AS col0 FROM tab2
----
-51
-24
-67
-61
-77
-42

skipif mysql # not compatible
query II rowsort label-5000
SELECT ALL - col1, + col2 / - 17 + - col2 AS col0 FROM tab2
----
-51
-24
-67
-61
-77
-42

query II rowsort
SELECT DISTINCT 80 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
80
14
80
47
80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + MAX( col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5002
SELECT + MAX ( col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT + 96 * COUNT( * ) FROM tab2 cor0
----
288

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + 96 * COUNT ( * ) FROM tab2 cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + COUNT( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5004
SELECT + COUNT ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - COUNT( ALL - col0 ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5005
SELECT - COUNT ( ALL - col0 ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + 94 col1 FROM tab2 AS cor0 WHERE NOT col1 * 56 * - col0 IS NULL
----
-36
-54
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + + 91 AS col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + + 91 AS col2 FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL - CAST( NULL AS SIGNED ) * ( - col0 ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - col0 ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT 31 + + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT 31 + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col1 * - col1 >= + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT col2 + col0 + + col0 * - 33 - - col2 + - 36 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT col2 + col0 + + col0 * - 33 - - col2 + - 36 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 16 * col2 + col2 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL + - col2 + + + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL + - col2 + + + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL CAST( NULL AS SIGNED ) * - 13 + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL CAST ( NULL AS INTEGER ) * - 13 + + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + - ( - + COUNT( * ) ) FROM tab1 WHERE - + 62 + col1 - col1 * - 45 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT + - ( - + COUNT ( * ) ) FROM tab1 WHERE - + 62 + col1 - col1 * - 45 IS NULL
----
0

query I rowsort
SELECT - 21 * - 55 FROM tab2
----
1155
1155
1155

query II rowsort
SELECT DISTINCT col0 AS col2, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - col1 > NULL
----

query I rowsort
SELECT - 47 + + - 82 FROM tab0 AS cor0
----
-129
-129
-129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 76 * col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL + - COUNT( * ) * - COUNT( * ) + + + 36 AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + + + 36 AS col2 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT DISTINCT COUNT( * ), COUNT( + col0 ) AS col2 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5024
SELECT DISTINCT COUNT ( * ), COUNT ( + col0 ) AS col2 FROM tab0 cor0
----
3
3

query I rowsort
SELECT ALL + - 3 AS col1 FROM tab0 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - + MAX( ALL 9 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - + MAX ( ALL 9 ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5027
SELECT ALL col0 DIV + - CAST( - 49 AS SIGNED ) FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL col0 / + - CAST ( - 49 AS INTEGER ) FROM tab0 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT + + col1 DIV col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 <= - 23
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT + + col1 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 <= - 23
----
0
0
0

query I rowsort
SELECT 75 * - + col0 AS col0 FROM tab1 cor0
----
-3825
-6375
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - SUM( ALL + + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5030
SELECT - SUM ( ALL + + col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT 23 * + + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5031
SELECT 23 * + + COUNT ( * ) FROM tab1
----
69

query I rowsort
SELECT DISTINCT + col0 * + col0 * + + 36 - col1 AS col2 FROM tab0 WHERE NOT - - ( + + 64 ) * - - col1 * - 72 BETWEEN + - col0 * - 19 AND ( + - col1 )
----
272463
338723
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT + MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5033
SELECT + MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - - MAX( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT - - MAX ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 37 col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT COUNT( * ) * - + MAX( + col0 ), - 4 AS col0 FROM tab1
----
-273
-4

skipif mysql # not compatible
query II rowsort label-5036
SELECT COUNT ( * ) * - + MAX ( + col0 ), - 4 AS col0 FROM tab1
----
-273
-4

query I rowsort
SELECT col0 * 23 AS col1 FROM tab2
----
1058
1472
1725

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + + 9 FROM tab1 AS cor0
----
-531
-612
-864

query II rowsort
SELECT ALL + - col0 AS col0, + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT + SUM( ALL col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT + SUM ( ALL col2 ) AS col2 FROM tab2 cor0
----
121

query I rowsort
SELECT + 14 * - 71 + ( - + 63 ) FROM tab2 AS cor0
----
-1057
-1057
-1057

query I rowsort
SELECT + col0 + - 6 FROM tab1 AS cor0
----
45
79
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + COUNT( ALL - col1 ) + - - 78 + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5044
SELECT + COUNT ( ALL - col1 ) + - - 78 + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT DISTINCT + - col0 DIV + 22 + + col0 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT + - col0 / + 22 + + col0 / - + col0 AS col1 FROM tab2 AS cor0
----
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT 90 + + 87 * + - SUM( + + col0 ) FROM tab1 AS cor0
----
-19659

skipif mysql # not compatible
query I rowsort label-5046
SELECT 90 + + 87 * + - SUM ( + + col0 ) FROM tab1 AS cor0
----
-19659

query I rowsort
SELECT ALL - col2 + 83 * - 52 AS col1 FROM tab2
----
-4339
-4356
-4374

query I rowsort
SELECT - 97 + col1 + - col0 FROM tab2
----
-105
-84
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT SUM( ALL + 26 ) + - - 32 AS col0 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-5049
SELECT SUM ( ALL + 26 ) + - - 32 AS col0 FROM tab1
----
110

query I rowsort
SELECT DISTINCT - col1 * - col1 + 26 + + col0 AS col2 FROM tab1
----
136
2326
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL col1 * - col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL col1 * - col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + ( + + col1 ) + + 28 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + COUNT( * ) DIV SUM( + 66 ) + - MAX( + col2 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + COUNT ( * ) / SUM ( + 66 ) + - MAX ( + col2 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col0 + ( - 43 ) AS col2 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NULL NOT IN ( col0, col1 * + col2 + - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT IN ( col0, col1 * + col2 + - - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5056
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5056
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL + col1 * - + 66 FROM tab1 WHERE NULL < + 85 * + 52 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - - MIN( - 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5058
SELECT - - MIN ( - 59 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL 31 + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - - MIN( ALL - 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5060
SELECT - - MIN ( ALL - 93 ) FROM tab0 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 30 ) col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT - 65 * + col0 AS col0 FROM tab1 cor0
----
-3315
-5525
-5915

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > 47 )
----

query I rowsort
SELECT - col0 * + 12 * - + 39 * - - col1 + - 47 AS col1 FROM tab2 AS cor0
----
1097881
2306257
2351653

query I rowsort
SELECT DISTINCT - + 77 * col1 AS col2 FROM tab0 AS cor0
----
-1617
-6237
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 15 ) col2 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT 2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 2 * + + col0 * - + col0 AS col1 FROM tab0
----
15138
18818
450

query I rowsort
SELECT - - ( + col2 ) * 60 / - col0 FROM tab0 WHERE NOT + 42 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( col2 + + col1 * - - col1 * col2, 29, ( - + ( + 15 ) ), - col2, ( - 18 ), + col0 - + - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT 14 FROM tab2 WHERE NOT ( NULL ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5072
SELECT 14 FROM tab2 WHERE NOT ( NULL ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT - MAX( ALL - + 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-5073
SELECT - MAX ( ALL - + 31 ) FROM tab1
----
31

query II rowsort
SELECT ALL col2, col2 * + 67 FROM tab0
----
10
670
47
3149
99
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - SUM( ALL + col2 ) col1 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5075
SELECT - SUM ( ALL + col2 ) col1 FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 74 AS col2 FROM tab1 cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - + COUNT( DISTINCT + 1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5078
SELECT - + COUNT ( DISTINCT + 1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 - + + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 26 * - - 21 - col2 + - ( 89 ) FROM tab0 AS cor0
----
358
410
447

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 48 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT col0 * ( + + col1 ) + + col2 * col0 + 21 AS col2 FROM tab2 AS cor0
----
3425
7509
9396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 35 * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - ( - col1 ) col2 FROM tab0 AS cor0 WHERE 39 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - 85 + + ( - MIN( + + ( 72 ) ) ) + COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
-163

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 85 + + ( - MIN ( + + ( 72 ) ) ) + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
-163

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col1 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 94 + + col2 AS col2 FROM tab0
----
104
141
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 - - 41 col2 FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab1 WHERE - - col0 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5094
SELECT DISTINCT COUNT( * ) - - CAST( + - 5 AS SIGNED ) AS col0, - COUNT( * ) FROM tab1
----
-2
-3

skipif mysql # not compatible
query II rowsort label-5094
SELECT DISTINCT COUNT ( * ) - - CAST ( + - 5 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1
----
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col0 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 13 col1 FROM tab1
----
18
27
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL + col2 + + + col0 + + - col1 * - col0 * + 78 DIV ( - 1 ) - - 46 + col1 FROM tab0 cor0
----
-142342
-7323
-94581

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + col2 + + + col0 + + - col1 * - col0 * + 78 / ( - 1 ) - - 46 + col1 FROM tab0 cor0
----
-142342
-7323
-94581

query I rowsort
SELECT DISTINCT - col1 * 14 * - ( 22 ) FROM tab1 AS cor0
----
14476
1540
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL + + SUM( col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + + SUM ( col1 ) FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5101
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 14 col2 FROM tab2 AS cor0
----
322
560
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + AVG ( DISTINCT - + col2 ) col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 65 * + - col2 / col1
----
NULL

query I rowsort
SELECT ALL 47 * - 0 * + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5105
SELECT DISTINCT CAST( + - col0 AS SIGNED ), - 10 AS col1 FROM tab1 cor0
----
-51
-10
-85
-10
-91
-10

skipif mysql # not compatible
query II rowsort label-5105
SELECT DISTINCT CAST ( + - col0 AS INTEGER ), - 10 AS col1 FROM tab1 cor0
----
-51
-10
-85
-10
-91
-10

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + - 90 ) * - - col1 AS col1 FROM tab0
----
1890
7290
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT DISTINCT 99 DIV + col2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT 99 / + col2 AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col0 * - 16 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL + COUNT( + + 99 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT ALL + COUNT ( + + 99 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + 66 * - COUNT( * ) AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-5111
SELECT + 66 * - COUNT ( * ) AS col1 FROM tab2
----
-198

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 92 + + col2 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + col1 * + ( - 44 ) AS col0 FROM tab1 AS cor0
----
-161
-2000
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 5 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) + - - 0 AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) + - - 0 AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NULL < - 83
----

query I rowsort
SELECT ALL - 60 + - col1 + + - col2 * + 73 AS col0 FROM tab0 AS cor0
----
-3572
-7288
-811

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( + col2 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - ( - - col0 ) FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + + 1 * + col1 + + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col0 * - - col1 + + + col1 AS col2 FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT - col0 + + - 82 FROM tab0
----
-169
-179
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT DISTINCT 92 - + - COUNT( - 40 ) AS col0, COUNT( * ) AS col2 FROM tab2
----
95
3

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT 92 - + - COUNT ( - 40 ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
95
3

query II rowsort
SELECT ALL - 24 + - col1, + col2 AS col0 FROM tab2
----
-101
40
-75
23
-91
58

query I rowsort
SELECT ALL 77 - + - ( + + ( + col1 ) ) FROM tab1
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT - + MIN( + 58 ) AS col2 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - + MIN ( + 58 ) AS col2 FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - 61 * 91 + - MIN( - 80 ) FROM tab1 AS cor0
----
-5471

skipif mysql # not compatible
query I rowsort label-5129
SELECT - 61 * 91 + - MIN ( - 80 ) FROM tab1 AS cor0
----
-5471

query II rowsort
SELECT ALL - 42 AS col1, + col2 AS col0 FROM tab1
----
-42
59
-42
68
-42
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT COUNT( * ) * - 48 AS col2 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT COUNT ( * ) * - 48 AS col2 FROM tab1 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT + SUM( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5132
SELECT + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT ( - 39 ) AS col2 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL + MAX( DISTINCT - 6 ) * COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + MAX ( DISTINCT - 6 ) * COUNT ( * ) FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT - CAST( + 22 AS SIGNED ) FROM tab2 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5135
SELECT - CAST ( + 22 AS INTEGER ) FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 10 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT COUNT( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT COUNT ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( - 91 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT MIN( - + col2 ) * + + 61 * + 7 - - - COUNT( * ) FROM tab1
----
-40995

skipif mysql # not compatible
query I rowsort label-5139
SELECT MIN ( - + col2 ) * + + 61 * + 7 - - - COUNT ( * ) FROM tab1
----
-40995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5140
SELECT ALL * FROM tab2 WHERE NOT - col0 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5140
SELECT ALL * FROM tab2 WHERE NOT - col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - + 8 FROM tab2
----
-408
-536
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT 84 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT 84 / + - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + 61 * col1 + col1 * 51 AND + 17 * ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - SUM( - col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT - SUM ( - col2 ) col1 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 28 * + col1 * + + col0 - + + col1 + + 34 + + 17 / - + col2 - + ( - ( + col1 ) ) * 78 AS col1, - col2 col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 / - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5146
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + 83 * + - 39 * + - 0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT 66 + + SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT 66 + + SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
251

query I rowsort
SELECT DISTINCT ( - col1 ) + + 5 AS col2 FROM tab2 AS cor0
----
-46
-62
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * col1 + 26 col1 FROM tab0 AS cor0
----
-21
-3781
-961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL - CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + col1 + + ( + 32 ) + - 26 + + col1 * + - col1 AS col1 FROM tab0 cor0 WHERE - CAST( - col2 AS SIGNED ) IS NOT NULL
----
-414
-6474
6

skipif mysql # not compatible
query I rowsort label-5152
SELECT + col1 + + ( + 32 ) + - 26 + + col1 * + - col1 AS col1 FROM tab0 cor0 WHERE - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-414
-6474
6

query I rowsort
SELECT 60 - + + col0 FROM tab1
----
-25
-31
9

query I rowsort
SELECT DISTINCT - 85 + + 3 + - - col1 - - col2 + + col0 AS col1 FROM tab2
----
118
38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT MAX( + col1 ) + + COUNT( * ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT MAX ( + col1 ) + + COUNT ( * ) AS col0 FROM tab2
----
80

query I rowsort
SELECT DISTINCT col0 * col0 - - col2 FROM tab1
----
2697
7284
8349

onlyif mysql # DIV for integer division: 
query II rowsort label-5157
SELECT ALL col0 + - col2 + + 6 DIV - - col0 AS col2, col1 FROM tab1
----
-45
14
23
47
26
5

skipif mysql # not compatible
query II rowsort label-5157
SELECT ALL col0 + - col2 + + 6 / - - col0 AS col2, col1 FROM tab1
----
-45
14
23
47
26
5

query I rowsort
SELECT + ( + col1 ) - + 11 + col1 FROM tab2
----
123
143
91

query I rowsort
SELECT + 53 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT ( - + 43 ) AS col1 FROM tab0
----
-43

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT 54 > + col2 + - col1
----

query II rowsort
SELECT + col1 AS col0, + col2 * 57 AS col0 FROM tab1
----
14
5472
47
3876
5
3363

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL + 75 * + MIN( DISTINCT - - 8 ) FROM tab2
----
600

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + 75 * + MIN ( DISTINCT - - 8 ) FROM tab2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT MAX( + 69 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5164
SELECT MAX ( + 69 ) AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT COUNT( - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT COUNT ( - col0 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 58 * 72 DIV - 74 AS col2 FROM tab2 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-5166
SELECT 58 * 72 / - 74 AS col2 FROM tab2 AS cor0
----
-56
-56
-56

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT - - col1 * + + col1 + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 35 * + col1 AND + col1
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE col2 + + - col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL - + 37 * - COUNT( * ) FROM tab2 cor0
----
111

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - + 37 * - COUNT ( * ) FROM tab2 cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + 5 + - 87 * - 36 col2 FROM tab2 AS cor0
----
-1791
-1888
791

query I rowsort
SELECT DISTINCT - 29 * col1 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT - COUNT( col0 ) AS col0, 93 AS col2 FROM tab1 cor0
----
-3
93

skipif mysql # not compatible
query II rowsort label-5173
SELECT - COUNT ( col0 ) AS col0, 93 AS col2 FROM tab1 cor0
----
-3
93

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0 + + 88 AS col0, col0 FROM tab2 AS cor0
----
134
46
152
64
163
75

query I rowsort
SELECT DISTINCT + 18 * + col2 FROM tab0
----
1782
180
846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 69 col1 FROM tab0
----
116
168
79

query I rowsort
SELECT + col2 FROM tab1 WHERE 25 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL col0 * + 1 * - + 12 + col2 FROM tab1 AS cor0
----
-1024
-516
-961

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 BETWEEN + 2 AND col1 / 41 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT col1 + + - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5182
SELECT col1 + + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - + COUNT( + 1 ) col1 FROM tab1 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-5183
SELECT - + COUNT ( + 1 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT + MIN( col2 ) DIV - 66 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + MIN ( col2 ) / - 66 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + + COUNT( * ) + - COUNT( + + ( col1 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT + + COUNT ( * ) + - COUNT ( + + ( col1 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * + 62 + - 54 + - col2 FROM tab0 AS cor0
----
5330
5861
829

query I rowsort
SELECT DISTINCT - ( - + 77 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL col0 + 50 FROM tab2 AS cor0
----
114
125
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5189
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 52 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5189
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 52 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL - - 57, col1 FROM tab1 cor0 WHERE NULL >= - col1 * - - col1
----

query I rowsort
SELECT - ( col0 ) * + 63 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT MAX( DISTINCT + 63 ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT MAX ( DISTINCT + 63 ) AS col1 FROM tab1
----
63

query I rowsort
SELECT col0 - ( + col0 ) / - - col2 - ( + - ( - col0 ) ) AS col0 FROM tab0 WHERE NOT NULL > 0
----

query I rowsort
SELECT + col1 * 65 * + col0 * + + col1 AS col0 FROM tab0
----
2493855
6305
6396975

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN - col0 AND col0
----
51
14
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - col0 * - 45
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 21 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5198
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST( NULL AS DECIMAL ) * - 34 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5198
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST ( NULL AS REAL ) * - 34 IS NULL
----

query I rowsort
SELECT ALL + 74 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT - - col0 * - col0 + 27 DIV + + col1 AS col0 FROM tab1 AS cor0
----
-2600
-7220
-8281

skipif mysql # not compatible
query I rowsort label-5200
SELECT - - col0 * - col0 + 27 / + + col1 AS col0 FROM tab1 AS cor0
----
-2600
-7220
-8281

query I rowsort
SELECT DISTINCT - - 5 AS col2 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + COUNT( + + 76 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5202
SELECT + COUNT ( + + 76 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 - + - 84 * - col2 * + - 22 FROM tab2 AS cor0 WHERE + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT + COUNT( * ) * + - 16 - + SUM( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-247

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT + COUNT ( * ) * + - 16 - + SUM ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL 90 + - COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL 90 + - COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT col2 * - - 69 AS col2 FROM tab1
----
4071
4692
6624

query II rowsort
SELECT + col0 * - 73 * - - 79, - 29 AS col1 FROM tab2
----
-265282
-29
-369088
-29
-432525
-29

query I rowsort
SELECT ALL col0 + + 41 AS col1 FROM tab1
----
126
132
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - - SUM( ALL - col2 ) FROM tab0 WHERE NOT col0 * ( - 70 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - - SUM ( ALL - col2 ) FROM tab0 WHERE NOT col0 * ( - 70 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT COUNT( + + 95 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT COUNT ( + + 95 ) col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - 96 + + col2 AS col2, - col1 * col2 + - - col2 AS col1 FROM tab0
----
-49
-3760
-86
-200
3
0

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT ALL + col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 FROM tab1 WHERE - - 79 - col0 < - 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - SUM( DISTINCT - - 89 ) FROM tab1 AS cor0 WHERE NOT CAST( + 25 AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - SUM ( DISTINCT - - 89 ) FROM tab1 AS cor0 WHERE NOT CAST ( + 25 AS INTEGER ) < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL - - CAST( - col1 AS SIGNED ) * - + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
196
297
3822

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - - CAST ( - col1 AS INTEGER ) * - + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * + - col2 > NULL
----

query II rowsort
SELECT - col0, 3 - + + 51 FROM tab0 WHERE NOT NULL < + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + 93 * col2 AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL - 7 DIV + col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5220
SELECT ALL - 7 / + col1 col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT - 94 DIV col2 * + - 76 AS col2 FROM tab0
----
0
152
684

skipif mysql # not compatible
query I rowsort label-5221
SELECT - 94 / col2 * + - 76 AS col2 FROM tab0
----
0
152
684

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT ALL + 62 DIV + col1 col1 FROM tab2 AS cor0 WHERE ( + + col1 ) * ( + - 5 ) + + col2 + + 54 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5222
SELECT ALL + 62 / + col1 col1 FROM tab2 AS cor0 WHERE ( + + col1 ) * ( + - 5 ) + + col2 + + 54 IS NOT NULL
----
0
0
1

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 AS cor0 WHERE col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT ALL + col0 DIV + 64 + - - col1 - - 63 * + col0 col0 FROM tab0 AS cor0
----
1026
5503
6113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5224
SELECT ALL + col0 / + 64 + - - col1 - - 63 * + col0 col0 FROM tab0 AS cor0
----
1026
5503
6113

query I rowsort
SELECT DISTINCT 8 + - + col1 * - col1 + - 66 AS col2 FROM tab0 AS cor0
----
-57
383
6503

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 < NULL )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT ALL CAST( col2 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL CAST ( col2 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL - 60 + - ( + + col1 ) * + col1 AS col0 FROM tab0 cor0
----
-501
-61
-6621

query I rowsort
SELECT DISTINCT + 58 * + - col0 + - col1 FROM tab2 AS cor0
----
-2719
-3789
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT - + col1 + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT - + col1 + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - COUNT( * ) + - MAX( ALL + col0 ) col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT - COUNT ( * ) + - MAX ( ALL + col0 ) col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + col1 + + - ( ( + - 39 ) ) * + col0 AS col1 FROM tab0
----
3414
3784
666

query I rowsort
SELECT 49 + - + col0 FROM tab1
----
-2
-36
-42

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col0 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT + col1 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + col1 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT - col1 DIV + + 58 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT - col1 / + + 58 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 17 FROM tab0 WHERE col2 + + col1 + - + col0 NOT BETWEEN col2 AND + col1 / + col1
----
-17
-17
-17

query I rowsort
SELECT ALL - col2 * - col0 - - col1 AS col1 FROM tab1
----
4910
5020
6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col1, + col0 col0 FROM tab1
----
21
91
54
85
82
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5242
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query II rowsort
SELECT ALL - ( - 42 ) AS col2, 57 FROM tab1
----
42
57
42
57
42
57

query I rowsort
SELECT DISTINCT - + 32 AS col2 FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 * - col1 - + col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5247
SELECT + COUNT( * ) * - 57 AS col2, 7 DIV + 51 AS col2 FROM tab1 AS cor0
----
-171
0

skipif mysql # not compatible
query II rowsort label-5247
SELECT + COUNT ( * ) * - 57 AS col2, 7 / + 51 AS col2 FROM tab1 AS cor0
----
-171
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - + ( + COUNT( * ) ) * - MAX( DISTINCT - col0 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT - + ( + COUNT ( * ) ) * - MAX ( DISTINCT - col0 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) * col0 + + 39 + + col0 <> NULL
----

query I rowsort
SELECT ( + + 32 ) FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - ( - - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5251
SELECT - ( - - COUNT ( * ) ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT - MIN( - 12 ) * + + COUNT( * ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - MIN ( - 12 ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT - col1 DIV + - 75 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5254
SELECT - col1 / + - 75 AS col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT COUNT( + 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5255
SELECT COUNT ( + 23 ) FROM tab1
----
3

query II rowsort
SELECT ALL - 2, - col0 FROM tab2 AS cor0 WHERE NOT NULL > + 72
----

query II rowsort
SELECT 11, col2 FROM tab0 cor0
----
11
10
11
47
11
99

query I rowsort
SELECT - 42 AS col1 FROM tab2 cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT 95 + SUM( col0 ) AS col1 FROM tab2
----
280

skipif mysql # not compatible
query I rowsort label-5260
SELECT 95 + SUM ( col0 ) AS col1 FROM tab2
----
280

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( + 73 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5262
SELECT * FROM tab1 WHERE NOT col1 * - CAST( col2 * - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5262
SELECT * FROM tab1 WHERE NOT col1 * - CAST ( col2 * - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - col0 - col1 AS col0 FROM tab0
----
-786
-891
-9604

query I rowsort
SELECT + 95 * + col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - 95 * COUNT( * ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 95 * COUNT ( * ) AS col1 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + col1 = NULL
----
0

query I rowsort
SELECT + col0 * - 31 AS col1 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT DISTINCT 98 * col1 AS col0 FROM tab1
----
1372
4606
490

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT - col2 DIV col1 - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5269
SELECT - col2 / col1 - col2 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 65 / + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( 3 ) >= col2 + - col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT - 1 DIV + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 1 / + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT - CAST( 49 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-3
15
26

skipif mysql # not compatible
query I rowsort label-5274
SELECT - CAST ( 49 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + MIN( DISTINCT 95 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + MIN ( DISTINCT 95 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = ( - col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 63 + + 30 * + col1 AS col0 FROM tab2 cor0
----
1593
2073
2373

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5278
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5278
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - MIN( ALL + 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5279
SELECT - MIN ( ALL + 85 ) FROM tab2
----
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 + 86 BETWEEN NULL AND 78 + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT DISTINCT - 99 * MAX( DISTINCT 91 + + col1 DIV + 61 ) AS col2 FROM tab1 cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT - 99 * MAX ( DISTINCT 91 + + col1 / + 61 ) AS col2 FROM tab1 cor0
----
-9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT col1 * - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + 91 NOT IN ( + 34 + ( 47 ) )
----

skipif mysql # not compatible
query I rowsort label-5282
SELECT col1 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + 91 NOT IN ( + 34 + ( 47 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 30 AND 48 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( col0 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ALL + 40 DIV ( - col2 + - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + 40 / ( - col2 + - col0 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) NOT IN ( + 75 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 NOT IN ( col1 )
----

query I rowsort
SELECT + col2 + col2 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 10 + - ( + 95 )
----

query I rowsort
SELECT DISTINCT - + col2 * 2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * + ( col1 ) - - col0 ) IS NOT NULL OR 28 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col0 + 35 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 * - 62 + + col2 AS col0 FROM tab2 AS cor0
----
3185
4212
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT col1 + - ( - col0 ) DIV 77 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5297
SELECT col1 + - ( - col0 ) / 77 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT ALL + 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL - 14 FROM tab1 AS cor0 WHERE NOT 97 <> - 66
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > col2 - 43
----

query I rowsort
SELECT + + 70 + + + 52 FROM tab0 AS cor0
----
122
122
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 / - col2 ) NOT BETWEEN NULL AND 4 + col2
----

query I rowsort
SELECT - col0 / col1 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + - 81 + + - COUNT( DISTINCT 42 ) - 66 FROM tab0 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-5305
SELECT + - 81 + + - COUNT ( DISTINCT 42 ) - 66 FROM tab0 AS cor0
----
-148

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 20 * - - 35 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL - col2 DIV + 29 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - col2 / + 29 AS col0 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + 12 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + 12 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT DISTINCT + COUNT( * ) * + - CAST( + - COUNT( * ) AS SIGNED ) + + 80 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + COUNT ( * ) * + - CAST ( + - COUNT ( * ) AS INTEGER ) + + 80 FROM tab1 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( + + col2 )
----

query I rowsort
SELECT 21 * col1 AS col0 FROM tab1 WHERE 73 + - col0 IS NULL
----

query I rowsort
SELECT col1 * + col2 + - + col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + 89 * 94 + + - COUNT( * ) col2 FROM tab2
----
8363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5315
SELECT ALL + 89 * 94 + + - COUNT ( * ) col2 FROM tab2
----
8363

query I rowsort
SELECT ALL + col1 - 14 + + col0 + - + 30 AS col0 FROM tab1
----
21
46
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + - 79 + - col0 + 55 IS NULL
----

query I rowsort
SELECT ALL col1 - col2 + - 84 * - 44 AS col0 FROM tab1
----
3614
3642
3675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL CAST( - col0 AS SIGNED ) + col2 * - + 85 AS col1 FROM tab1
----
-5100
-5871
-8211

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL CAST ( - col0 AS INTEGER ) + col2 * - + 85 AS col1 FROM tab1
----
-5100
-5871
-8211

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 51 * - 48 * + 18 FROM tab2
----
-44064
-44064
-44064

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + ( - COUNT( * ) ) FROM tab0 WHERE + - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT + ( - COUNT ( * ) ) FROM tab0 WHERE + - col1 < NULL
----
0

query II rowsort
SELECT DISTINCT - ( col2 ) AS col1, - 31 AS col1 FROM tab2 AS cor0
----
-23
-31
-40
-31
-58
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 - - col0 col0 FROM tab0 AS cor0
----
-52
20
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL + + CAST( + - col0 AS SIGNED ) - - + col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + + CAST ( + - col0 AS INTEGER ) - - + col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + - col1 * 66 FROM tab1 AS cor0
----
-3102
-330
-924

query II rowsort
SELECT ALL - ( - col1 ), col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5328
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( - 74 * 34 - CAST( + col1 + col1 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5328
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( - 74 * 34 - CAST ( + col1 + col1 AS REAL ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5329
SELECT DISTINCT + CAST( - col1 AS DECIMAL ) * + col1 - 41 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 87 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + CAST ( - col1 AS REAL ) * + col1 - 41 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 87 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT MIN( - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5330
SELECT MIN ( - col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - + 49 * + 59 * + + col0 + + col2 - col1 AS col0 FROM tab0 AS cor0
----
-251528
-280329
-43399

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5332
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5333
SELECT + - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - MIN( ALL + 80 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - 26 + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT - MIN ( ALL + 80 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - 26 + - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + MAX( ALL - - 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5338
SELECT + MAX ( ALL - - 79 ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT + col2 * 58 AS col0 FROM tab1 WHERE NOT + 5 NOT IN ( + + col1 )
----
3422

query I rowsort
SELECT ALL ( 70 ) FROM tab1 WHERE NOT col2 >= + - col0
----

query II rowsort
SELECT ALL col1, + col1 * + col0 * col2 AS col1 FROM tab0
----
1
9603
21
18270
81
57105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 + ( 45 ) * - col1 col2 FROM tab0 WHERE NOT ( - 47 + col0 + 57 * col1 * + 98 ) <> - 38 * ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5343
SELECT ALL - 57 * MIN( 8 ) AS col2 FROM tab2 WHERE NOT ( NOT - CAST( NULL AS DECIMAL ) * col1 + - 27 IN ( + 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - 57 * MIN ( 8 ) AS col2 FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS REAL ) * col1 + - 27 IN ( + 52 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT ALL - COUNT( * ) AS col2, 89 FROM tab2
----
-3
89

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL - COUNT ( * ) AS col2, 89 FROM tab2
----
-3
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5345
SELECT CAST( + col2 AS SIGNED ), 45 * - CAST( col2 AS SIGNED ) col1 FROM tab0
----
10
-450
47
-2115
99
-4455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5345
SELECT CAST ( + col2 AS INTEGER ), 45 * - CAST ( col2 AS INTEGER ) col1 FROM tab0
----
10
-450
47
-2115
99
-4455

query I rowsort
SELECT ALL + 29 + col2 - 37 * col2 AS col1 FROM tab0
----
-1663
-331
-3535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL col2 * CAST( 13 AS SIGNED ) AS col1 FROM tab1
----
1248
767
884

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL col2 * CAST ( 13 AS INTEGER ) AS col1 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT 3 * - SUM( ALL - 75 ) FROM tab0 cor0
----
675

skipif mysql # not compatible
query I rowsort label-5348
SELECT 3 * - SUM ( ALL - 75 ) FROM tab0 cor0
----
675

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( - ( + 23 ) ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - 11 + + col2 - - col1 * + col2 * + + 3 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT - 72 DIV + col0 + + 71 + - col1 FROM tab2 AS cor0
----
-7
19
4

skipif mysql # not compatible
query I rowsort label-5351
SELECT - 72 / + col0 + + 71 + - col1 FROM tab2 AS cor0
----
-7
19
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT ALL col1 DIV - col0 + + - 46 + - 99 AS col0 FROM tab1 AS cor0
----
-145
-145
-145

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL col1 / - col0 + + - 46 + - 99 AS col0 FROM tab1 AS cor0
----
-145
-145
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT SUM( - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT SUM ( - col0 ) FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) * + + col0 * + - col2 + + - 76 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) NOT BETWEEN ( CAST ( NULL AS REAL ) * + + col0 * + - col2 + + - 76 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + - 7 + 61 col1 FROM tab1 AS cor0
----
105
139
145

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT ALL - COUNT( * ), + 15 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
-3
15

skipif mysql # not compatible
query II rowsort label-5356
SELECT ALL - COUNT ( * ), + 15 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
-3
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT 41 - - + col0 DIV - col1 FROM tab0
----
-56
37
41

skipif mysql # not compatible
query I rowsort label-5357
SELECT 41 - - + col0 / - col1 FROM tab0
----
-56
37
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT COUNT( * ) - - ( COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5358
SELECT COUNT ( * ) - - ( COUNT ( * ) ) AS col1 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - col2 * + col0 * + 79 col0, col1 col1 FROM tab0
----
-55776
81
-68751
21
-758638
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT COUNT( * ) + + MIN( DISTINCT + col1 ) - + ( + COUNT( * ) ) + ( COUNT( * ) ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5360
SELECT COUNT ( * ) + + MIN ( DISTINCT + col1 ) - + ( + COUNT ( * ) ) + ( COUNT ( * ) ) FROM tab2
----
54

query I rowsort
SELECT ALL + 24 + + 49 + col2 + + + col0 FROM tab2
----
142
177
206

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col0 * 28 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT ALL 17 DIV + col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL 17 / + col1 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT col0 + + CAST( NULL AS SIGNED ) + - + 60 AS col0, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-5364
SELECT col0 + + CAST ( NULL AS INTEGER ) + - + 60 AS col0, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

query II rowsort
SELECT col1 + + ( + col2 ), ( 13 ) * col1 AS col2 FROM tab1
----
110
182
115
611
64
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT MIN( + + 64 ) + + + COUNT( * ) - + MAX( DISTINCT - - 66 ) * + COUNT( DISTINCT - col1 ) FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-5366
SELECT MIN ( + + 64 ) + + + COUNT ( * ) - + MAX ( DISTINCT - - 66 ) * + COUNT ( DISTINCT - col1 ) FROM tab2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT + - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT + + col1 * + 54 * - + 93 + - 81 FROM tab1 AS cor0
----
-236115
-25191
-70389

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 32 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 58 * + + col1 IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL - COUNT( * ) + + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE - col0 + col1 * - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - COUNT ( * ) + + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE - col0 + col1 * - + col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT MAX( + col1 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5374
SELECT MAX ( + col1 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 col1 FROM tab2 AS cor0
----
-66
-66
-66

query II rowsort
SELECT + col0, - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL + col1 * + 57 AS col0 FROM tab2
----
2907
3819
4389

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + col2 / - col1 IS NULL
----

query I rowsort
SELECT col2 + - + 51 AS col2 FROM tab1
----
17
45
8

query II rowsort
SELECT DISTINCT + col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - - col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col0 ) col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT + + MIN( DISTINCT + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5384
SELECT + + MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5385
SELECT DISTINCT - col1, col1 DIV + 31 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5385
SELECT DISTINCT - col1, col1 / + 31 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
2

query I rowsort
SELECT ALL + + 96 + - col2 AS col2 FROM tab0 AS cor0
----
-3
49
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT 70 DIV + 75 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5387
SELECT 70 / + 75 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 93 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-93

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) > - 44
----

query I rowsort
SELECT DISTINCT - + 77 FROM tab0 WHERE NULL IS NULL
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT ALL CAST( NULL AS SIGNED ) FROM ( tab1 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL CAST ( NULL AS INTEGER ) FROM ( tab1 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE - 7 + - col2 * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 13
----

query I rowsort
SELECT ALL + col0 * 20 * col1 AS col2 FROM tab1
----
14280
8500
85540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 col2 FROM tab0 AS cor0
----
-56

query II rowsort
SELECT DISTINCT + 55 AS col0, col0 + 18 FROM tab2 AS cor0
----
55
64
55
82
55
93

query I rowsort
SELECT + 95 - - col0 FROM tab0 AS cor0 WHERE ( + col2 * col2 ) IS NULL
----

query I rowsort
SELECT - + 42 + + + ( - 64 ) AS col0 FROM tab1 AS cor0
----
-106
-106
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + COUNT( * ) + 41 col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5399
SELECT + COUNT ( * ) + 41 col0 FROM tab0 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-5400
SELECT DISTINCT + col1, - col0 DIV col1 FROM tab2 AS cor0
----
51
0
67
-1
77
0

skipif mysql # not compatible
query II rowsort label-5400
SELECT DISTINCT + col1, - col0 / col1 FROM tab2 AS cor0
----
51
0
67
-1
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5401
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5401
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + + col2 + + ( + - col0 ) FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT ( - 57 ) + col2 FROM tab1 AS cor0
----
11
2
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT + 59 DIV ( - - COUNT( * ) ) + + + COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5404
SELECT + 59 / ( - - COUNT ( * ) ) + + + COUNT ( * ) FROM tab2 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 32 / + col0 + col0 + 59 * - 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5407
SELECT * FROM tab1 WHERE NOT 60 NOT IN ( + 21, col2 + + + 8 * + col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5407
SELECT * FROM tab1 WHERE NOT 60 NOT IN ( + 21, col2 + + + 8 * + col1, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * - - 0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ( - MIN( ALL 97 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5410
SELECT ( - MIN ( ALL 97 ) ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 24 IN ( - col1 * - ( + + 35 ) + 92, 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 + + 83 AS col1 FROM tab0 AS cor0 WHERE NOT 54 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT - COUNT( * ) DIV - - 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - COUNT ( * ) / - - 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL - + col1 DIV 61 * + + col2 * 62 FROM tab0 cor0
----
-2914
0
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - + col1 / 61 * + + col2 * 62 FROM tab0 cor0
----
-2914
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 22 * - 59 IS NOT NULL
----

query I rowsort
SELECT ALL 53 * - - 92 + - col1 AS col0 FROM tab1 AS cor0
----
4829
4862
4871

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT COUNT( ALL 27 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT COUNT ( ALL 27 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 * ( + col2 ) <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 48 / + ( col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5421
SELECT ALL col0, + col0 DIV col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL col0, + col0 / col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

query III rowsort
SELECT * FROM tab2 WHERE + + 21 + - col1 * - col2 IN ( 89 + - + col0, + col0 * - 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col1 * - + col2 col1 FROM tab2
----
-123200
-225388
-26979

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 37 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - CAST( NULL AS SIGNED ) + ( - - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT - CAST ( NULL AS INTEGER ) + ( - - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + 87 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5426
SELECT + 87 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT DISTINCT - COUNT( * ) + + 86 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
83
-3

skipif mysql # not compatible
query II rowsort label-5427
SELECT DISTINCT - COUNT ( * ) + + 86 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
83
-3

query I rowsort
SELECT ALL - col2 + + + col2 AS col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + 99 col0 FROM tab2
----
1272
3179
3985

query II rowsort
SELECT + 17 AS col2, - 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to df08cddaf3a1e863324f7a911e98209a

query I rowsort
SELECT DISTINCT ( + 36 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT - 50 * - 88 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - 4 * + - ( COUNT( ALL - - 54 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5434
SELECT - 4 * + - ( COUNT ( ALL - - 54 ) ) FROM tab2
----
12

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= + col1 + - 29
----

query II rowsort
SELECT + col1 AS col2, + col1 FROM tab0 AS cor0 WHERE col1 + + col0 <> + - col2
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5437
SELECT DISTINCT 41 AS col2, - CAST( NULL AS SIGNED ) + + + col0 FROM tab0 AS cor0 WHERE - 66 IN ( - + col2, + 0 )
----

skipif mysql # not compatible
query II rowsort label-5437
SELECT DISTINCT 41 AS col2, - CAST ( NULL AS INTEGER ) + + + col0 FROM tab0 AS cor0 WHERE - 66 IN ( - + col2, + 0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= - col2 * col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 19 * + col0 + col1 * - col1 + + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 5 * - 50 IS NULL
----

query I rowsort
SELECT DISTINCT 24 * + col0 AS col2 FROM tab0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT + COUNT( * ) AS col2, ( COUNT( * ) ) + COUNT( * ) * - + COUNT( * ) * + 56 AS col1 FROM tab1
----
3
-501

skipif mysql # not compatible
query II rowsort label-5442
SELECT + COUNT ( * ) AS col2, ( COUNT ( * ) ) + COUNT ( * ) * - + COUNT ( * ) * + 56 AS col1 FROM tab1
----
3
-501

query II rowsort
SELECT - 19 AS col1, + 90 FROM tab2
----
-19
90
-19
90
-19
90

query I rowsort
SELECT + ( 90 ) FROM tab2
----
90
90
90

query I rowsort
SELECT ALL + 99 * + + col1 FROM tab2
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5446
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + + col2 * - 28 + - col1 FROM tab1 AS cor0
----
-1657
-1951
-2702

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - - MAX( ALL col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT - - MAX ( ALL col2 ) col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT col1, col2 * + 49 * + col1 * - col0 * + col1 AS col0 FROM tab2 AS cor0
----
51
-134841042
67
-956830350
77
-743733760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5450
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) * + - 52, + col1 )
----

skipif mysql # not compatible
query III rowsort label-5450
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) * + - 52, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5451
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) * + CAST( NULL AS SIGNED ) <> + col1
----

skipif mysql # not compatible
query III rowsort label-5451
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) * + CAST ( NULL AS INTEGER ) <> + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5452
SELECT col1 * + CAST( NULL AS DECIMAL ) * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT col1 * + CAST ( NULL AS REAL ) * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 85 * - col2 * 34 FROM tab2 AS cor0
----
-115600
-167620
-66470

query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL COUNT( * ) * SUM( + - 44 ) AS col2 FROM tab1
----
-396

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL COUNT ( * ) * SUM ( + - 44 ) AS col2 FROM tab1
----
-396

query II rowsort
SELECT + col2 * - - col0 AS col0, - ( col2 ) FROM tab1 AS cor0
----
4896
-96
5015
-59
6188
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT - 31 * - 29 col0 FROM tab0 AS cor0 WHERE - col0 * + col1 + - 22 + - CAST( NULL AS SIGNED ) IS NULL
----
899
899
899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT - 31 * - 29 col0 FROM tab0 AS cor0 WHERE - col0 * + col1 + - 22 + - CAST ( NULL AS INTEGER ) IS NULL
----
899
899
899

query II rowsort
SELECT col2 + + col1, col0 FROM tab2 AS cor0
----
117
64
125
75
74
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + SUM( col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + SUM ( col2 ) FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT DISTINCT 15 + - 71 + - ( - col1 ) + col0 + - - ( col0 ) DIV + 3 AS col2 FROM tab2
----
106
111
56

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT 15 + - 71 + - ( - col1 ) + col0 + - - ( col0 ) / + 3 AS col2 FROM tab2
----
106
111
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT - MIN( - 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - MIN ( - 22 ) FROM tab1
----
22

query I rowsort
SELECT 92 * - - col2 + - - col0 * + - col0 + + - col1 FROM tab2
----
-356
-493
-51

query I rowsort
SELECT ALL col1 * + - 11 + + + col0 AS col2 FROM tab1
----
-103
-426
30

query I rowsort
SELECT ALL + 36 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2, 25 AS col1 FROM tab0
----
10
25
47
25
99
25

query I rowsort
SELECT DISTINCT + 41 * + 31 * + col0 AS col2 FROM tab1 AS cor0
----
108035
115661
64821

query II rowsort
SELECT ALL - col2 AS col0, 52 AS col0 FROM tab1 AS cor0
----
-59
52
-68
52
-96
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT - COUNT( * ) * + COUNT( * ) DIV 64 + + MIN( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5468
SELECT - COUNT ( * ) * + COUNT ( * ) / 64 + + MIN ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab0 cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 > ( - col2 + + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5471
SELECT ALL + 97 AS col2, - CAST( + 45 AS SIGNED ) AS col1 FROM tab2 cor0
----
97
-45
97
-45
97
-45

skipif mysql # not compatible
query II rowsort label-5471
SELECT ALL + 97 AS col2, - CAST ( + 45 AS INTEGER ) AS col1 FROM tab2 cor0
----
97
-45
97
-45
97
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT SUM( - ( 43 ) ) * - - MIN( ALL 57 ) - + COUNT( * ) AS col0 FROM tab2
----
-7356

skipif mysql # not compatible
query I rowsort label-5472
SELECT SUM ( - ( 43 ) ) * - - MIN ( ALL 57 ) - + COUNT ( * ) AS col0 FROM tab2
----
-7356

query II rowsort
SELECT col2 + + col2 - + 80 + - 65, col2 FROM tab0
----
-125
10
-51
47
53
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 + - + col2 AS col1, + col2 col0 FROM tab1 AS cor0
----
-37
59
-46
68
-74
96

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 + + col0 FROM tab1 AS cor0
----
-255
-4095
-612

query I rowsort
SELECT DISTINCT col0 * 16 * + col0 FROM tab1 AS cor0
----
115600
132496
41616

query I rowsort
SELECT - - 73 * col2 AS col1 FROM tab0 cor0
----
3431
7227
730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 > NULL
----

query II rowsort
SELECT - + 3 * - 17 AS col0, col2 AS col2 FROM tab1 AS cor0
----
51
59
51
68
51
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5480
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 33 * CAST( NULL AS SIGNED ) / - + col0 / - 62 > + - col1
----

skipif mysql # not compatible
query III rowsort label-5480
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 33 * CAST ( NULL AS INTEGER ) / - + col0 / - 62 > + - col1
----

query I rowsort
SELECT + + col1 * + col2 - + - col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - COUNT( * ) + - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT - COUNT ( * ) + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 26 * + - 73 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + col0 * + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL - MIN( ALL - - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - MIN ( ALL - - col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT MIN( DISTINCT - 81 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT MIN ( DISTINCT - 81 ) AS col0 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT DISTINCT col0 + - CAST( - col2 AS SIGNED ) + + 85 * - + 84 * - col1 AS col2 FROM tab1 cor0 WHERE col1 * col2 + - - 81 - + col2 NOT BETWEEN + col0 AND + col1 - + + 25
----
100107
335739
35844

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT col0 + - CAST ( - col2 AS INTEGER ) + + 85 * - + 84 * - col1 AS col2 FROM tab1 cor0 WHERE col1 * col2 + - - 81 - + col2 NOT BETWEEN + col0 AND + col1 - + + 25
----
100107
335739
35844

query I rowsort
SELECT - col0 + - 88 AS col0 FROM tab1 AS cor0
----
-139
-173
-179

query II rowsort
SELECT - 92 AS col0, 14 AS col2 FROM tab0 AS cor0
----
-92
14
-92
14
-92
14

query I rowsort
SELECT ALL 6 * + col1 + col2 + col0 AS col1 FROM tab0 AS cor0
----
202
223
548

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT ALL - col0 DIV + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - col0 / + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + + + col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT MAX( 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5493
SELECT MAX ( 30 ) FROM tab2
----
30

query II rowsort
SELECT col2 - col2 AS col1, + col0 AS col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT + 21 * - 44 + - col0 FROM tab1
----
-1009
-1015
-975

query I rowsort
SELECT DISTINCT - 14 + - + col2 * + + col1 AS col1 FROM tab0
----
-113
-224
-3821

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 83 AND NULL
----

query II rowsort
SELECT + col2, + col2 AS col2 FROM tab0 cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 97 * + + 35 - 16 + col2 * - col0 col2 FROM tab0 AS cor0
----
-13014
-275716
-72181

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - col0 = NULL
----

query II rowsort
SELECT ALL - + col2 AS col1, 19 AS col0 FROM tab2 AS cor0
----
-23
19
-40
19
-58
19

onlyif mysql # DIV for integer division: 
query II rowsort label-5502
SELECT - + col2 * - - col0 - + col2 DIV col2 * 27 * - col1 col0, - col0 AS col1 FROM tab1 AS cor0
----
-4518
-51
-4880
-85
-4919
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5502
SELECT - + col2 * - - col0 - + col2 / col2 * 27 * - col1 col0, - col0 AS col1 FROM tab1 AS cor0
----
-4518
-51
-4880
-85
-4919
-91

query I rowsort
SELECT + 92 * col0 + col1 FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - MIN( ALL col0 ) * - + SUM( DISTINCT + - 45 ) FROM tab2 AS cor0
----
-2070

skipif mysql # not compatible
query I rowsort label-5504
SELECT - MIN ( ALL col0 ) * - + SUM ( DISTINCT + - 45 ) FROM tab2 AS cor0
----
-2070

query II rowsort
SELECT DISTINCT - - col0 AS col2, col2 * + - col0 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - + MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5506
SELECT - + MIN ( - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT col1 * - - 90 AS col0, col0 AS col2 FROM tab2
----
4590
46
6030
75
6930
64

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT - 1 * - col1 * col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + 46 * + 57 AS col2 FROM tab2 cor0
----
2622
2622
2622

query I rowsort
SELECT 83 + col0 + - col2 - 62 * + ( - + 82 ) FROM tab2 AS cor0
----
5184
5190
5191

query I rowsort
SELECT DISTINCT 75 * + ( col2 ) * + 67 + - 11 FROM tab1 AS cor0
----
296464
341689
482389

query I rowsort
SELECT + col0 + - 1 FROM tab0 cor0
----
14
86
96

query I rowsort
SELECT - 60 + + 88 + + col0 FROM tab0 AS cor0
----
115
125
43

query I rowsort
SELECT - col0 + - - col2 * col1 AS col2 FROM tab1 AS cor0
----
1293
210
3105

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT IN ( - + col2 + - + col1 / + - 79 * + 95 * + col2 - - col2, - col1, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 71 + + - 9 - + col0 AS col1 FROM tab1
----
-23
-29
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + SUM( + - col1 ) * COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + SUM ( + - col1 ) * COUNT ( * ) FROM tab0
----
-309

query I rowsort
SELECT ( col1 ) + + col0 + + + col1 FROM tab0
----
129
177
99

query I rowsort
SELECT DISTINCT col1 * - 76 * + col1 + + ( - col0 ) AS col0 FROM tab1
----
-14947
-167975
-1985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT + col0 + CAST( - col2 AS SIGNED ) - + col2 AS col1 FROM tab2
----
-16
-41
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + col0 + CAST ( - col2 AS INTEGER ) - + col2 AS col1 FROM tab2
----
-16
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5523
SELECT ALL * FROM tab2 WHERE - col0 * + col1 + CAST( - - 75 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5523
SELECT ALL * FROM tab2 WHERE - col0 * + col1 + CAST ( - - 75 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT + col2 - + col0 DIV + - col0 AS col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + col2 - + col0 / + - col0 AS col2 FROM tab1
----
60
69
97

query I rowsort
SELECT + col1 * - - 11 + 37 - - 91 AS col2 FROM tab0 AS cor0
----
1019
139
359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 16 col2 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT col0 - - col1 DIV + - col0 col1 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT col0 - - col1 / + - col0 col1 FROM tab2 AS cor0
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT + col0 - + CAST( NULL AS SIGNED ) * + 41 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5528
SELECT + col0 - + CAST ( NULL AS INTEGER ) * + 41 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 3 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col0 * - + 60 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) - + 32 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) - + 32 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + - SUM( - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5532
SELECT + - SUM ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - 79 * 55 - - col0 AS col0 FROM tab0 AS cor0
----
-4248
-4258
-4330

query II rowsort
SELECT + col2 * ( - - 77 ) AS col2, 99 + - - col1 AS col0 FROM tab0 AS cor0
----
3619
180
7623
100
770
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + col2 / + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 60 FROM tab1 WHERE NOT NULL >= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - - col0 * + col0 + - - 33 FROM tab2 WHERE NOT ( + - col1 ) * + ( CAST( NULL AS SIGNED ) ) = + - col0
----

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - - col0 * + col0 + - - 33 FROM tab2 WHERE NOT ( + - col1 ) * + ( CAST ( NULL AS INTEGER ) ) = + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col0 BETWEEN + col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + col0 + + - 15 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + ( - col0 ) * 11, col1 FROM tab0 AS cor0
----
1067
1
165
81
957
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - + MIN( ALL - - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5542
SELECT - + MIN ( ALL - - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + col0 > + col2
----
-3

skipif mysql # not compatible
query I rowsort label-5543
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + col0 > + col2
----
-3

query I rowsort
SELECT - 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT - - col2 + - + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - 38 - - + col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5545
SELECT - - col2 + - + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - 38 - - + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5546
SELECT * FROM tab1 WHERE + + CAST( + + 40 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5546
SELECT * FROM tab1 WHERE + + CAST ( + + 40 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - 44 ) * + col1 + - + col1 FROM tab0
----
3483
43
903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT - CAST( NULL AS SIGNED ) * - - col0 + - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT - CAST ( NULL AS INTEGER ) * - - col0 + - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT DISTINCT + + CAST( + 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT + + CAST ( + 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT - MIN( + + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - MIN ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL - col1 + - col2, 21 AS col2 FROM tab1 AS cor0
----
-110
21
-115
21
-64
21

query I rowsort
SELECT ALL - + 44 FROM tab2 cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab2 cor0 WHERE 17 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT ALL + col1 + 97 - - - col1 + - col0 * 6 DIV + col1 FROM tab2
----
91
92
93

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + col1 + 97 - - - col1 + - col0 * 6 / + col1 FROM tab2
----
91
92
93

query I rowsort
SELECT col2 - + ( + 53 ) FROM tab1
----
15
43
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 23 - col1 * - ( - + col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 23 - col1 * - ( - + col0 ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + - col0 * col1 * col1 col2 FROM tab1
----
-10710
-205296
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL - MAX( + 98 ) AS col1 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - MAX ( + 98 ) AS col1 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT - 62 * - COUNT( * ) + SUM( col0 ) FROM tab2
----
371

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 62 * - COUNT ( * ) + SUM ( col0 ) FROM tab2
----
371

query I rowsort
SELECT DISTINCT - 88 * - col2 * + 19 AS col0 FROM tab1
----
113696
160512
98648

query I rowsort
SELECT 87 * - col2 AS col0 FROM tab0
----
-4089
-8613
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77, 54 col1 FROM tab0 AS cor0
----
77
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 63, col2 FROM tab1 AS cor0
----
63
59
63
68
63
96

query I rowsort
SELECT - 48 * - col1 FROM tab1 cor0
----
2256
240
672

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * + 14 / + - col1 >= + col2 + + 3 * + ( - 49 )
----
85
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5567
SELECT DISTINCT + - 30 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + - 30 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - col2 + 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5569
SELECT ALL + col0 / CAST( NULL AS SIGNED ) AS col1, 34 + col2 FROM tab1
----
NULL
102
NULL
130
NULL
93

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) AS col1, 34 + col2 FROM tab1
----
NULL
102
NULL
130
NULL
93

query I rowsort
SELECT ( - 40 ) AS col2 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT + col1 * + col0 * + col2 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT + 90 + col2 AS col1 FROM tab1
----
149
158
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL + MAX( ALL 64 ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + MAX ( ALL 64 ) AS col1 FROM tab2
----
64

query I rowsort
SELECT - col2 * - col1 * ( col2 ) + + + col1 AS col2 FROM tab1
----
129038
17410
217375

query I rowsort
SELECT col0 * - + 54 * - - col2 AS col2 FROM tab0 AS cor0
----
-38070
-46980
-518562

query I rowsort
SELECT + ( + + col2 ) FROM tab0 cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <= - + col0
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT ( - - 13 ) + - - CAST( COUNT( * ) AS SIGNED ) - + 87 * + 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7895

skipif mysql # not compatible
query I rowsort label-5578
SELECT ( - - 13 ) + - - CAST ( COUNT ( * ) AS INTEGER ) - + 87 * + 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7895

query I rowsort
SELECT ALL 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + ( AVG ( DISTINCT + ( - - col2 ) ) ) FROM tab0 WHERE NOT ( col1 ) * - ( + - ( + ( + + col0 ) ) ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE + 89 <= NULL
----

query I rowsort
SELECT + 22 * - col1 + - col0 + + + col1 * - col1 FROM tab0 AS cor0
----
-120
-8358
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL + SUM( + 23 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + SUM ( + 23 ) FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT + 10 + - ( ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT + 10 + - ( ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT + col1 + 43 DIV + - col1 FROM tab1 AS cor0
----
-3
11
47

skipif mysql # not compatible
query I rowsort label-5589
SELECT + col1 + 43 / + - col1 FROM tab1 AS cor0
----
-3
11
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5590
SELECT col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5590
SELECT col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT - MIN( + col0 ) FROM tab1 WHERE col2 IN ( col2 )
----
-51

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - MIN ( + col0 ) FROM tab1 WHERE col2 IN ( col2 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT COUNT( ALL - + ( 70 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5592
SELECT COUNT ( ALL - + ( 70 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + 82 + + ( col1 ) FROM tab0
----
103
163
83

query I rowsort
SELECT ALL + col1 * 3 - 27 AS col0 FROM tab1
----
-12
114
15

query I rowsort
SELECT ALL 93 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - 75 * + 58 * - + 84 FROM tab1 cor0
----
365400
365400
365400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT - + SUM( + - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - + SUM ( + - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT - ( - - 91 ) * ( ( col1 ) ) FROM tab0 AS cor0
----
-1911
-7371
-91

query I rowsort
SELECT - - ( - - ( - 86 ) ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - ( - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + SUM( DISTINCT - 2 ) AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5603
SELECT + SUM ( DISTINCT - 2 ) AS col2 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - COUNT( col0 ) * - + 87 * + - ( + 78 ) - - + 16 + + 50 AS col2 FROM tab0
----
-20292

skipif mysql # not compatible
query I rowsort label-5604
SELECT - COUNT ( col0 ) * - + 87 * + - ( + 78 ) - - + 16 + + 50 AS col2 FROM tab0
----
-20292

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT + col1 * - col0 * col1 < 65
----
0

skipif mysql # not compatible
query