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 I rowsort label-5605
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT + col1 * - col0 * col1 < 65
----
0

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5607
SELECT ALL COUNT( * ) AS col2, + 93, - MIN( 61 ) AS col1 FROM tab0
----
3
93
-61

skipif mysql # not compatible
query III rowsort label-5607
SELECT ALL COUNT ( * ) AS col2, + 93, - MIN ( 61 ) AS col1 FROM tab0
----
3
93
-61

query I rowsort
SELECT ALL + col1 + col2 * + + col1 AS col0 FROM tab1
----
1358
300
3243

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT - 76 DIV + 24 AS col0 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5611
SELECT - 76 / + 24 AS col0 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + col2 + 28 FROM tab0 AS cor0
----
127
38
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col0 - - col0, col2 AS col0 FROM tab2 AS cor0 WHERE 61 IS NOT NULL OR NULL IS NULL
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5613
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col0 - - col0, col2 AS col0 FROM tab2 AS cor0 WHERE 61 IS NOT NULL OR NULL IS NULL
----
NULL
23
NULL
40
NULL
58

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL = + 65 * - 89 * - + col2 + - 67
----

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

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

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

query I rowsort
SELECT ALL ( 83 ) AS col1 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE col1 IN ( col2, 64 )
----

query II rowsort
SELECT DISTINCT col1 + 9 AS col1, + ( + 69 ) FROM tab0 cor0
----
10
69
30
69
90
69

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

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

query I rowsort
SELECT - - col0 - - + 25 AS col1 FROM tab1 AS cor0
----
110
116
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT ALL 78 + - col2 DIV - col1 AS col0 FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL 78 + - col2 / - col1 AS col0 FROM tab2
----
78
78
78

query I rowsort
SELECT + 44 * + - col2 - - - col1 FROM tab2
----
-1063
-1837
-2619

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT 21 DIV - col1 + - col2 FROM tab1
----
-63
-68
-97

skipif mysql # not compatible
query I rowsort label-5626
SELECT 21 / - col1 + - col2 FROM tab1
----
-63
-68
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5627
SELECT DISTINCT col2 * - - CAST( - col0 AS SIGNED ) + + - 90 DIV col1 FROM tab1
----
-4902
-5033
-6189

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT col2 * - - CAST ( - col0 AS INTEGER ) + + - 90 / col1 FROM tab1
----
-4902
-5033
-6189

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN col0 AND - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 82 col1, - col0 * + + col2 AS col2 FROM tab1
----
-82
-4896
-82
-5015
-82
-6188

query II rowsort
SELECT - col0 AS col0, - col0 + col1 AS col2 FROM tab1
----
-51
-37
-85
-80
-91
-44

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

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

skipif mysql # not compatible
query I rowsort label-5632
SELECT CAST ( + 52 AS INTEGER ) FROM tab0
----
52
52
52

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

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

query I rowsort
SELECT - - col2 * - col1 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + 4 * - MAX( - 33 ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + 4 * - MAX ( - 33 ) AS col2 FROM tab0
----
132

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT DISTINCT + 94 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 / + + 54 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + 94 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 / + + 54 IS NULL
----

query I rowsort
SELECT 87 * - col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-4089
-8613
-870

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + COUNT( DISTINCT col1 ) FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( DISTINCT col1 ) FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT - col1 * + col0 + col2 FROM tab1
----
-366
-4209
-618

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

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

query I rowsort
SELECT 94 * - col1 + col0 FROM tab2
----
-4748
-6223
-7174

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL COUNT( * ) * + - ( + 36 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL COUNT ( * ) * + - ( + 36 ) FROM tab0
----
-108

query I rowsort
SELECT ALL col1 + + 32 FROM tab0
----
113
33
53

query I rowsort
SELECT - 16 + - col1 FROM tab2
----
-67
-83
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT MAX( + col1 ) * - COUNT( * ) AS col1 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT MAX ( + col1 ) * - COUNT ( * ) AS col1 FROM tab1
----
-141

query I rowsort
SELECT DISTINCT col2 * + 95 + + col2 FROM tab0 AS cor0
----
4512
9504
960

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 * 94 + + col0 AS col0, col1 col2 FROM tab2 AS cor0
----
-6129
67
-6140
77
-6158
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL + MAX( - col1 ) + - - 7 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL + MAX ( - col1 ) + - - 7 FROM tab0
----
6

query I rowsort
SELECT 34 + col1 FROM tab2 cor0
----
101
111
85

query I rowsort
SELECT ALL - col2 * - col0 + col0 - + + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT col0 * - + col0 - 1 + - + 8 FROM tab0 AS cor0
----
-234
-7578
-9418

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT - + COUNT( * ) AS col1, SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3
185

skipif mysql # not compatible
query II rowsort label-5659
SELECT - + COUNT ( * ) AS col1, SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3
185

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

query II rowsort
SELECT - 15 AS col0, col1 AS col0 FROM tab0 WHERE NOT ( ( - col0 ) NOT BETWEEN NULL AND + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + - 67
----

query I rowsort
SELECT DISTINCT ( ( col0 ) ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + ( + col1 ) + - col2 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL SUM( ALL - + 19 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL SUM ( ALL - + 19 ) FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

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

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

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT COUNT ( * ) + - CAST ( - COUNT ( DISTINCT 99 ) AS INTEGER ) FROM tab1 AS cor0
----
4

query II rowsort
SELECT + col0 AS col2, - col2 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
51
68544
85
25075
91
290836

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

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

query I rowsort
SELECT ALL + 49 * + col0 + + 9 + - + ( + col0 ) FROM tab0 AS cor0
----
4185
4665
729

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

query I rowsort
SELECT ALL + 47 + - 74 FROM tab2
----
-27
-27
-27

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

query I rowsort
SELECT + 0 - 62 FROM tab2
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT col2 DIV + col1 * + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT col2 / + col1 * + col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - + 37 * + COUNT( * ) * ( + COUNT( * ) ) + + 91 AS col2 FROM tab1 cor0
----
-242

skipif mysql # not compatible
query I rowsort label-5679
SELECT - + 37 * + COUNT ( * ) * ( + COUNT ( * ) ) + + 91 AS col2 FROM tab1 cor0
----
-242

query I rowsort
SELECT DISTINCT 8 + - col0 AS col2 FROM tab1 AS cor0
----
-43
-77
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT ALL + 29 * + 81 * + + col1 DIV + col1 + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
2268
2328
2348

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + 29 * + 81 * + + col1 / + col1 + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
2268
2328
2348

query I rowsort
SELECT + 54 * + 81 FROM tab1 AS cor0
----
4374
4374
4374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT - + 16 - + 44 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT col1 DIV + 78 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT col1 / + 78 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 71 * + col2 AS col1 FROM tab1
----
4189
4828
6816

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT ALL + 65 DIV - - ( - 40 ) col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5687
SELECT ALL + 65 / - - ( - 40 ) col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 98 * - 61 FROM tab0
----
-5978

query I rowsort
SELECT 16 * - col1 AS col2 FROM tab2
----
-1072
-1232
-816

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5691
SELECT - col2 AS col1, col0 * + CAST( NULL AS SIGNED ) * - ( 80 ) + + ( ( + col0 ) ) + + col0, + 22 * 95 - 82 * 62 + + col1 AS col1 FROM tab1
----
9 values hashing to 545d9f728c50bfcf751a08d933b045b1

skipif mysql # not compatible
query III rowsort label-5691
SELECT - col2 AS col1, col0 * + CAST ( NULL AS INTEGER ) * - ( 80 ) + + ( ( + col0 ) ) + + col0, + 22 * 95 - 82 * 62 + + col1 AS col1 FROM tab1
----
9 values hashing to 545d9f728c50bfcf751a08d933b045b1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT - 33 AS col1, COUNT( * ) FROM tab1 cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-5694
SELECT - 33 AS col1, COUNT ( * ) FROM tab1 cor0
----
-33
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL CAST( + + 72 AS SIGNED ) AS col1 FROM tab2 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL CAST ( + + 72 AS INTEGER ) AS col1 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab0 AS cor0 WHERE + col1 * - col1 NOT BETWEEN NULL AND - ( + 93 )
----
6

query I rowsort
SELECT + 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - - 85 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT + - ( - + AVG ( 22 ) ) * + MIN( + col1 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 15 * + col0 / + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + - ( - + AVG ( 22 ) ) * + MIN ( + col1 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 15 * + col0 / + col1 AND NULL
----
NULL

query I rowsort
SELECT ALL + 83 + - col0 FROM tab2 AS cor0
----
19
37
8

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

query I rowsort
SELECT - 27 * col1 + - col2 + + + col1 AS col1 FROM tab2 AS cor0
----
-1349
-1800
-2042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT - col2 + - CAST( - - col1 AS SIGNED ) FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5705
SELECT - col2 + - CAST ( - - col1 AS INTEGER ) FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT SUM( - col2 ) + - - 81 + - ( + 46 ) * 86 AS col0 FROM tab2
----
-3996

skipif mysql # not compatible
query I rowsort label-5706
SELECT SUM ( - col2 ) + - - 81 + - ( + 46 ) * 86 AS col0 FROM tab2
----
-3996

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

query II rowsort
SELECT DISTINCT + col1, + 16 FROM tab0
----
1
16
21
16
81
16

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col0 FROM tab0 AS cor0 WHERE 24 + col1 <= - col2 * col1
----

query I rowsort
SELECT - + col0 - - + 41 FROM tab2 AS cor0
----
-23
-34
-5

query I rowsort
SELECT + col2 - - 61 / - 68 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT ( COUNT( * ) ) * - 74 AS col2 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT ( COUNT ( * ) ) * - 74 AS col2 FROM tab1
----
-222

query I rowsort
SELECT - 68 AS col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( + col2 ) AND ( ( + 31 ) - 13 )
----
-68
-68
-68

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

query I rowsort
SELECT ALL 92 + 5 FROM tab1
----
97
97
97

query I rowsort
SELECT 42 + + AVG ( - ( 77 ) ) AS col2 FROM tab1 WHERE NOT col1 <> col1 * + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT - COUNT( ALL 79 ) FROM tab2 WHERE ( col2 * col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT - COUNT ( ALL 79 ) FROM tab2 WHERE ( col2 * col1 ) <= NULL
----
0

query I rowsort
SELECT ALL ( + col0 ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT 26 + - 6 FROM tab0 WHERE - col0 > NULL
----

query I rowsort
SELECT ALL - 42 * + 74 FROM tab2
----
-3108
-3108
-3108

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

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab2 WHERE ( - col2 ) NOT IN ( col2 )
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL col1 + - col0 col2 FROM tab0 WHERE NOT - col0 - 7 / + col1 BETWEEN CAST( + col0 AS SIGNED ) * - 97 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5728
SELECT ALL col1 + - col0 col2 FROM tab0 WHERE NOT - col0 - 7 / + col1 BETWEEN CAST ( + col0 AS INTEGER ) * - 97 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN ( col2 ) AND col2 * - col1 + - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT SUM( - 35 ) AS col0 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT SUM ( - 35 ) AS col0 FROM tab2
----
-105

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

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

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 75 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL MIN( 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL MIN ( 88 ) FROM tab0
----
88

query I rowsort
SELECT + 20 AS col2 FROM tab0 WHERE NULL IS NULL
----
20
20
20

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

query I rowsort
SELECT 13 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 70 FROM tab1 WHERE ( + ( - col0 ) ) NOT IN ( - col2 / 89 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL + 54 DIV col2 - 81 * - 40 AS col0 FROM tab1
----
3240
3240
3240

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + 54 / col2 - 81 * - 40 AS col0 FROM tab1
----
3240
3240
3240

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 98 / col1 + + 28 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) + 13 * col0 FROM tab0
----
1141
1360
242

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - MAX( DISTINCT + 90 ) + ( 2 ) * - 44 AS col2 FROM tab2
----
-178

skipif mysql # not compatible
query I rowsort label-5743
SELECT - MAX ( DISTINCT + 90 ) + ( 2 ) * - 44 AS col2 FROM tab2
----
-178

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN ( 84 + - col1 ) AND NULL
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - SUM( ALL col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - SUM ( ALL col1 ) AS col0 FROM tab1
----
-66

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

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

query I rowsort
SELECT DISTINCT - 70 * col1 FROM tab0 AS cor0
----
-1470
-5670
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) > col1
----

query I rowsort
SELECT ALL - 76 * + 25 FROM tab0 AS cor0
----
-1900
-1900
-1900

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

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

query I rowsort
SELECT DISTINCT 47 * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-150
-2118
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL SUM( ALL - ( - 70 ) ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL SUM ( ALL - ( - 70 ) ) AS col0 FROM tab0
----
210

query I rowsort
SELECT ALL - col2 + + 38 FROM tab1
----
-21
-30
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + COUNT( * ) + 84 FROM tab1 WHERE NOT NULL <= NULL
----
84

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + COUNT ( * ) + 84 FROM tab1 WHERE NOT NULL <= NULL
----
84

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

query I rowsort
SELECT - 27 * + 16 FROM tab1 AS cor0
----
-432
-432
-432

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

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

query I rowsort
SELECT - col1 * - ( col2 ) - col0 FROM tab0 cor0 WHERE NULL < ( 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) + col1 col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - 87 FROM tab1 AS cor0 WHERE NOT + col2 + + col2 NOT IN ( - col0 + + ( - col2 ) )
----

query I rowsort
SELECT ALL col2 * - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE 32 * + 70 + - 43 IS NOT NULL
----
-690
-783
-9506

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 AS cor0 WHERE 1 + col0 * + col0 NOT IN ( - col2 * col0 )
----
36
36
36

query I rowsort
SELECT DISTINCT - col0 + - 24 * 47 FROM tab0 AS cor0
----
-1143
-1215
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - COUNT( * ) * + 20 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN ( + col0 + col2 ) AND 14
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - COUNT ( * ) * + 20 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN ( + col0 + col2 ) AND 14
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT 20 + COUNT( * ) AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT 20 + COUNT ( * ) AS col1 FROM tab1
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / - col2 - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT col1 DIV col1 - - 77 AS col2 FROM tab1
----
78
78
78

skipif mysql # not compatible
query I rowsort label-5768
SELECT col1 / col1 - - 77 AS col2 FROM tab1
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * 86 + col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col0 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - col2 * - + col0 - + 83 AS col0 FROM tab2
----
2477
4267
975

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 77 ) * - col2 NOT BETWEEN NULL AND + 6 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT + + col1 + col1 + 23 DIV col2 FROM tab0 AS cor0
----
162
2
44

skipif mysql # not compatible
query I rowsort label-5773
SELECT + + col1 + col1 + 23 / col2 FROM tab0 AS cor0
----
162
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - - COUNT( ALL + col0 ) + + 87 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5774
SELECT - - COUNT ( ALL + col0 ) + + 87 FROM tab2 AS cor0
----
90

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5777
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + MAX( - CAST( NULL AS DECIMAL ) ) * 10 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + MAX ( - CAST ( NULL AS REAL ) ) * 10 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 44 * - col2 AS col0 FROM tab1
----
-2596
-2992
-4224

query I rowsort
SELECT 34 FROM tab0 WHERE NOT ( col0 BETWEEN ( 65 ) AND - ( + 72 ) )
----
34
34
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT - - MIN( DISTINCT 88 ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-5781
SELECT - - MIN ( DISTINCT 88 ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT SUM( ALL - 46 ) FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT SUM ( ALL - 46 ) FROM tab1 AS cor0
----
-138

query I rowsort
SELECT DISTINCT + 72 * - col1 * + 16 AS col0 FROM tab0 AS cor0
----
-1152
-24192
-93312

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - ( + 77 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( col2 * + 19 ) IS NOT NULL
----
-231

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - ( + 77 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( col2 * + 19 ) IS NOT NULL
----
-231

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= ( + 24 )
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 69 - + col0 / + 48 <= ( - col0 )
----
15
81
47

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

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

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

query I rowsort
SELECT DISTINCT + 79 * + - col0 + + + 7 FROM tab1 AS cor0
----
-4022
-6708
-7182

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

query I rowsort
SELECT + 26 * col1 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT + col1 * - + col1 AS col1, + col0 AS col0 FROM tab1
----
-196
51
-2209
91
-25
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + 36 + COUNT( * ) FROM tab1 WHERE NOT ( + col2 ) IN ( + col0 )
----
39

skipif mysql # not compatible
query I rowsort label-5793
SELECT + 36 + COUNT ( * ) FROM tab1 WHERE NOT ( + col2 ) IN ( + col0 )
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5794
SELECT + 59 DIV + - 23, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-2
NULL
-2
NULL
-2
NULL

skipif mysql # not compatible
query II rowsort label-5794
SELECT + 59 / + - 23, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-2
NULL
-2
NULL
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT - ( 56 ) * + ( - - MIN( CAST( NULL AS SIGNED ) ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5795
SELECT - ( 56 ) * + ( - - MIN ( CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT ALL 77 DIV + col1 AS col0 FROM tab0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL 77 / + col1 AS col0 FROM tab0
----
0
3
77

query I rowsort
SELECT + col2 + 20 AS col1 FROM tab0 WHERE NOT - + 25 IS NULL
----
119
30
67

query I rowsort
SELECT - col1 * 89 FROM tab0
----
-1869
-7209
-89

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - - 62 - - 59 * col1 - col1 * col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5801
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5801
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + + 96 AS col1 FROM tab0
----
106
143
195

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT DISTINCT COUNT( * ), 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
46

skipif mysql # not compatible
query II rowsort label-5803
SELECT DISTINCT COUNT ( * ), 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
46

query II rowsort
SELECT ALL col1 AS col2, 20 AS col2 FROM tab0
----
1
20
21
20
81
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - + MIN( ALL + 97 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - + MIN ( ALL + 97 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 + + col1 AND NULL
----

query I rowsort
SELECT + col1 + + 17 FROM tab1 AS cor0
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - MIN( - col2 ) + + - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5809
SELECT - MIN ( - col2 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT 39 FROM tab0 AS cor0 WHERE 83 - - col0 + + + col0 + col2 * col0 IS NOT NULL
----
39
39
39

query I rowsort
SELECT - ( + col1 ) + - - col2 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT ALL 86 + + + ( col2 ) FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT + col0 * - col2 + - 18 * + col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-11385
-4650
-69231

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

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

query I rowsort
SELECT ALL + col1 + - 32 AS col2 FROM tab2
----
19
35
45

query I rowsort
SELECT DISTINCT - 70 * - col0 + - + col1 AS col1 FROM tab2
----
3169
4403
5183

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

query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab1 WHERE + 43 IS NOT NULL
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT DISTINCT + 97 + + COUNT( * ) FROM tab0 WHERE + + 14 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT + 97 + + COUNT ( * ) FROM tab0 WHERE + + 14 IS NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT ALL col0 / - col1 + col1 AS col2 FROM tab2 WHERE NOT - - 99 / col0 / - 61 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE ( - 26 ) <= ( col2 )
----
10
47
99

query I rowsort
SELECT + - ( ( col1 ) ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 81 / 94
----

query I rowsort
SELECT + - 99 - + 36 AS col2 FROM tab2 AS cor0
----
-135
-135
-135

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

query I rowsort
SELECT ALL + ( + 3 ) AS col1 FROM tab2 AS cor0
----
3
3
3

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

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

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

query I rowsort
SELECT DISTINCT + 9 * col1 + + col2 FROM tab1 WHERE ( col1 + + - col0 ) IS NULL
----

query I rowsort
SELECT ALL 56 * - col0 AS col0 FROM tab0
----
-4872
-5432
-840

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

query I rowsort
SELECT ALL 36 AS col2 FROM tab2 cor0 WHERE ( + col0 IN ( - col0, + ( + col2 ) * + col0 ) )
----

query I rowsort
SELECT ALL + - col2 * + - ( - + col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT + - MAX( ALL - col2 ) col1, + 50 AS col0 FROM tab2 AS cor0
----
23
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5835
SELECT + - MAX ( ALL - col2 ) col1, + 50 AS col0 FROM tab2 AS cor0
----
23
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 - - 74 col1 FROM tab1 WHERE NOT + 91 IS NULL
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT - col2 DIV 35 DIV + - ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5837
SELECT - col2 / 35 / + - ( - col2 ) FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 3 AS col0, - col2 AS col1 FROM tab2
----
3
-23
3
-40
3
-58

query I rowsort
SELECT - col0 / - 72 FROM tab2 WHERE NOT + ( 22 ) * - + col2 * - - 15 + + + col0 / - ( - col0 ) * ( col2 ) NOT BETWEEN ( NULL ) AND - 48 * - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5840
SELECT + COUNT ( DISTINCT col0 ) col0 FROM tab2
----
3

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - ( - col2 ) * 27 / + col1 BETWEEN NULL AND col0 - col0 + - col2
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5842
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + 48 - + CAST( + 24 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5842
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + 48 - + CAST ( + 24 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT COUNT( * ) * - + 80 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT COUNT ( * ) * - + 80 FROM tab1
----
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * col2 col0 FROM tab2 AS cor0 WHERE - 53 IN ( col1, 51 )
----

query I rowsort
SELECT DISTINCT 27 + - col1 FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT - 3 + + 8 FROM tab0 AS cor0
----
5
5
5

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT + COUNT ( * ) / + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 41 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-41

query II rowsort
SELECT DISTINCT 93 * 15 AS col0, col1 AS col2 FROM tab1
----
1395
14
1395
47
1395
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL ( + COUNT( * ) ) FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL ( + COUNT ( * ) ) FROM tab1, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT + - COUNT( * ) + - MAX( DISTINCT 64 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + - COUNT ( * ) + - MAX ( DISTINCT 64 ) FROM tab0 AS cor0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 62 * col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - col2 / + 87 FROM tab0 cor0
----
0
0
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5855
SELECT DISTINCT + col0 DIV + col2 col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
0
NULL
8
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5855
SELECT DISTINCT + col0 / + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
0
NULL
8
NULL

query I rowsort
SELECT ALL + + col1 + + - col0 * col0 * + col0 AS col2 FROM tab0 cor0
----
-3294
-658482
-912672

query I rowsort
SELECT ALL + 33 * + + col0 + + + 92 + + + 52 * + 59 FROM tab2 AS cor0
----
4678
5272
5635

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT ALL + ( - col1 ), 99 DIV + + 28 AS col0 FROM tab2 AS cor0
----
-51
3
-67
3
-77
3

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL + ( - col1 ), 99 / + + 28 AS col0 FROM tab2 AS cor0
----
-51
3
-67
3
-77
3

query I rowsort
SELECT - 81 - + col1 AS col0 FROM tab1
----
-128
-86
-95

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

query I rowsort
SELECT 50 - - col0 * + col0 FROM tab0
----
275
7619
9459

query I rowsort
SELECT - ( - + col2 ) + + col2 + - - col1 AS col0 FROM tab2
----
157
183
97

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

query I rowsort
SELECT + 79 AS col1 FROM tab0 cor0 WHERE NOT ( ( ( ( NOT 58 * 54 * - col2 <> ( - col2 ) ) ) ) )
----
79
79
79

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

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

query I rowsort
SELECT 59 * 42 * + 31 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 col2, col1 * - col1 AS col2 FROM tab2
----
62
-2601
62
-4489
62
-5929

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

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - ( + - ( COUNT ( * ) ) ) FROM tab0
----
3

query II rowsort
SELECT ALL + col1, 32 * col0 FROM tab0
----
1
3104
21
2784
81
480

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT 59 AS col1, COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
59
6

skipif mysql # not compatible
query II rowsort label-5870
SELECT 59 AS col1, COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
59
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, - 98 * + col1 FROM tab2 AS cor0
----
-23
-4998
-40
-7546
-58
-6566

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5874
SELECT + col1 AS col0, col0 AS col0, CAST( 89 AS SIGNED ) FROM tab1 AS cor0
----
9 values hashing to 0fb3307777b7e27bb3561bd3a5d3d4ab

skipif mysql # not compatible
query III rowsort label-5874
SELECT + col1 AS col0, col0 AS col0, CAST ( 89 AS INTEGER ) FROM tab1 AS cor0
----
9 values hashing to 0fb3307777b7e27bb3561bd3a5d3d4ab

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

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

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

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

query II rowsort
SELECT + col1 + + col2, - 74 * - 17 AS col0 FROM tab2
----
117
1258
125
1258
74
1258

query II rowsort
SELECT ALL col0 * - - col2 + - + col2 AS col1, + col0 * - ( - - 66 ) FROM tab2
----
1035
-3036
2520
-4224
4292
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT col0 + + CAST( + col0 AS SIGNED ) - col0 * 25 FROM tab2
----
-1058
-1472
-1725

skipif mysql # not compatible
query I rowsort label-5880
SELECT col0 + + CAST ( + col0 AS INTEGER ) - col0 * 25 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT ALL ( 57 ) + + 67 AS col2 FROM tab2
----
124
124
124

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

skipif mysql # not compatible
query I rowsort label-5882
SELECT + COUNT ( col0 ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT + ( + + 2 ) * - - 94 * + + col2 + - - 31 FROM tab2
----
10935
4355
7551

query I rowsort
SELECT DISTINCT - col0 + + + 29 + - - col2 + + + col1 AS col0 FROM tab1 AS cor0
----
53
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT - 46 * + MIN( - col0 ) - - 6 AS col1 FROM tab2
----
3456

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - 46 * + MIN ( - col0 ) - - 6 AS col1 FROM tab2
----
3456

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

query III rowsort
SELECT * FROM tab1 WHERE col1 * + + col1 NOT BETWEEN + col0 AND NULL
----
85
5
59

query I rowsort
SELECT DISTINCT 57 - - + col2 AS col2 FROM tab0 AS cor0
----
104
156
67

query I rowsort
SELECT - + col0 + 2 * + 43 AS col1 FROM tab1 AS cor0
----
-5
1
35

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + ( 70 ) + 0 IN ( 62 + - col1 ) )
----

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

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

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

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

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

query I rowsort
SELECT ALL - 65 + - + col1 AS col0 FROM tab2
----
-116
-132
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + SUM( + 54 ) * + 6 FROM tab0
----
972

skipif mysql # not compatible
query I rowsort label-5896
SELECT + SUM ( + 54 ) * + 6 FROM tab0
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT COUNT( * ) * + 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT COUNT ( * ) * + 85 FROM tab1
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 col1 FROM tab1 WHERE NOT - col2 IN ( + + col1, + 66 / - 48 * - col1 )
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - COUNT( * ) * SUM( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
555

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT - 96 * + - 96 FROM tab0
----
9216
9216
9216

query II rowsort
SELECT ALL - col0, - col1 AS col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT col2 * + col2 + - + col2 DIV 84 AS col1 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5904
SELECT col2 * + col2 + - + col2 / 84 AS col1 FROM tab2
----
1600
3364
529

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5908
SELECT ALL + - CAST( - col0 AS SIGNED ) + - 69 AS col0, 99 FROM tab2 AS cor0
----
-23
99
-5
99
6
99

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL + - CAST ( - col0 AS INTEGER ) + - 69 AS col0, 99 FROM tab2 AS cor0
----
-23
99
-5
99
6
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + ( COUNT( * ) ) * - COUNT( * ) + + + 65 AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( * ) + + + 65 AS col1 FROM tab1 AS cor0
----
56

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

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

query I rowsort
SELECT DISTINCT + col2 + + 36 AS col2 FROM tab1
----
104
132
95

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

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT 98 * + CAST( - 12 AS SIGNED ) * ( - 5 ) + col1 FROM tab2
----
5931
5947
5957

skipif mysql # not compatible
query I rowsort label-5913
SELECT 98 * + CAST ( - 12 AS INTEGER ) * ( - 5 ) + col1 FROM tab2
----
5931
5947
5957

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 82 / + col2 * - + col2
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - - COUNT( * ) - + 61 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5918
SELECT - - COUNT ( * ) - + 61 FROM tab2 cor0
----
-58

query I rowsort
SELECT + + ( - - col1 ) * 91 * - + col2 - - - 6 FROM tab1 AS cor0
----
-122310
-26851
-290842

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

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

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

query I rowsort
SELECT ALL 94 * + col0 - col1 * 36 FROM tab1 cor0
----
4290
6862
7810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT - COUNT( * ) * - SUM( + CAST( + col2 AS SIGNED ) ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - COUNT ( * ) * - SUM ( + CAST ( + col2 AS INTEGER ) ) FROM tab2
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT CAST( NULL AS SIGNED ) + 62 - + col1 * - - 89 + + - col2 col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5924
SELECT CAST ( NULL AS INTEGER ) + 62 - + col1 * - - 89 + + - col2 col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT - COUNT( ( + 38 ) ) * + - COUNT( * ) - - 63 + + - ( + ( - COUNT( * ) ) ) + - CAST( 82 AS SIGNED ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COUNT ( ( + 38 ) ) * + - COUNT ( * ) - - 63 + + - ( + ( - COUNT ( * ) ) ) + - CAST ( 82 AS INTEGER ) FROM tab1
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE ( ( NULL >= NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE ( ( NULL >= NULL ) )
----
NULL

query I rowsort
SELECT - col0 + + ( col1 ) + - 38 FROM tab0 AS cor0
----
-104
-134
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL 92 + + COUNT( * ) * + 59 AS col2 FROM tab2
----
269

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 92 + + COUNT ( * ) * + 59 AS col2 FROM tab2
----
269

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

query I rowsort
SELECT 76 * - - col1 * - ( - col2 ) + + ( - + 51 ) + - col0 AS col2 FROM tab1
----
102042
22284
242754

query I rowsort
SELECT - 38 * + col1 AS col2 FROM tab2
----
-1938
-2546
-2926

query I rowsort
SELECT ALL ( - 84 ) + 85 + - - col2 AS col1 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + COUNT( * ) + + COUNT( * ) * AVG ( DISTINCT - + 80 ) AS col1 FROM tab2 AS cor0 WHERE NULL = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT + COUNT ( * ) + + COUNT ( * ) * AVG ( DISTINCT - + 80 ) AS col1 FROM tab2 AS cor0 WHERE NULL = + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT + CAST( + + 43 AS SIGNED ) + + col0 + col0 AS col0 FROM tab1 AS cor0
----
145
213
225

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + CAST ( + + 43 AS INTEGER ) + + col0 + col0 AS col0 FROM tab1 AS cor0
----
145
213
225

query I rowsort
SELECT ALL + 75 + + col1 FROM tab1 AS cor0
----
122
80
89

query I rowsort
SELECT - - col0 - col0 + + col2 + 4 + - 92 + + + col1 * - 65 + + col1 FROM tab1 AS cor0
----
-3028
-349
-888

query I rowsort
SELECT DISTINCT + 69 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
69

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

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

query I rowsort
SELECT + 66 FROM tab2 WHERE + col1 >= - col2 / - col1
----
66
66
66

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-67
-77

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

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

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

query I rowsort
SELECT - col1 * + - 64 FROM tab0 AS cor0
----
1344
5184
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + 20 col0 FROM tab2 AS cor0
----
1280
1500
920

query II rowsort
SELECT ALL + + ( - col1 ), + col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT col0 * - col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 / 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 45 col1 FROM tab2
----
2295
3015
3465

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - 23 ) IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 * - 42 ) NOT BETWEEN + 99 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5957
SELECT ALL 52 DIV + + col0 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
NULL
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL 52 / + + col0 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
NULL
0
NULL
1
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - 39 * col2 ) IS NULL
----
14
47
5

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

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 * - 41 AND + - 23 OR NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 76 + - col0 FROM tab0 AS cor0
----
-11
-21
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 9 col2 FROM tab2 AS cor0
----
37
55
66

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

query II rowsort
SELECT 6 AS col0, + ( + 21 ) FROM tab1 AS cor0
----
6
21
6
21
6
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT ALL + + col0 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + + col0 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL - ( + col2 ) + - 79 * 98 FROM tab1 AS cor0
----
-7801
-7810
-7838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + col1 ) ) + + 49 col2 FROM tab0 AS cor0
----
-32
28
48

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

query I rowsort
SELECT ALL + col2 + + + 51 FROM tab1 cor0
----
110
119
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT DISTINCT + col0 DIV + 80 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + col0 / + 80 + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col2 + + col1 + col0 AS col0 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT col2 - + 53 AS col2 FROM tab1
----
15
43
6

query II rowsort
SELECT col2 + col2, + col2 AS col0 FROM tab1
----
118
59
136
68
192
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 col0 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND col0 * - col1 / + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * 51 * + + 95 > NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-5979
SELECT + COUNT ( - 14 ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT 4 DIV MIN( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5981
SELECT 4 / MIN ( DISTINCT + col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5982
SELECT 41, CAST( NULL AS SIGNED ) + + ( 74 ) - col1 * + col0 + + - 70 AS col0 FROM tab1
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
query II rowsort label-5982
SELECT 41, CAST ( NULL AS INTEGER ) + + ( 74 ) - col1 * + col0 + + - 70 AS col0 FROM tab1
----
41
NULL
41
NULL
41
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( col0 * + col0 / + + col1, - 53 * + col0 * + col2 * + col1, + - ( ( ( - col2 ) ) ) * 22, + ( - + col2 ) * + - col2 + + + col1 )
----

query I rowsort
SELECT - + 4 * - - col2 AS col2 FROM tab0 AS cor0
----
-188
-396
-40

query I rowsort
SELECT ALL - 26 * + col2 FROM tab0 WHERE NULL IS NULL
----
-1222
-2574
-260

query I rowsort
SELECT ALL + ( - 84 ) FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT - CAST( - 96 AS SIGNED ) FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5989
SELECT - CAST ( - 96 AS INTEGER ) FROM tab0
----
96
96
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT SUM( DISTINCT + + ( + + col2 ) ) * 61 FROM tab1
----
13603

skipif mysql # not compatible
query I rowsort label-5991
SELECT SUM ( DISTINCT + + ( + + col2 ) ) * 61 FROM tab1
----
13603

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

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - 61 * + COUNT ( * ) FROM tab1
----
-183

query II rowsort
SELECT ALL + col0 AS col1, - col2 - col2 FROM tab0 AS cor0
----
15
-94
87
-20
97
-198

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

skipif mysql # not compatible
query I rowsort label-5995
SELECT - COUNT ( * ) + COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT MIN( col0 ) * + AVG ( + 43 ) + 98 - 21 AS col0 FROM tab0 AS cor0 WHERE col1 * + 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT MIN ( col0 ) * + AVG ( + 43 ) + 98 - 21 AS col0 FROM tab0 AS cor0 WHERE col1 * + 11 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + CAST( + 4 AS SIGNED ) DIV - + 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + CAST ( + 4 AS INTEGER ) / - + 77 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT DISTINCT + col0 + col2 DIV + 55 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + col0 + col2 / + 55 FROM tab1
----
52
86
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - col2 IS NULL
----

query I rowsort
SELECT 88 * + - col2 + - - col0 + - col2 * - 68 AS col1 FROM tab0
----
-113
-1883
-925

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT col2 + col1 * col1 * 6 DIV + col2 AS col0 FROM tab1
----
108
262
61

skipif mysql # not compatible
query I rowsort label-6003
SELECT col2 + col1 * col1 * 6 / + col2 AS col0 FROM tab1
----
108
262
61

onlyif mysql # DIV for integer division: 
query II rowsort label-6004
SELECT ALL 20 DIV + col0 + col1 AS col0, col2 FROM tab0
----
1
99
21
10
82
47

skipif mysql # not compatible
query II rowsort label-6004
SELECT ALL 20 / + col0 + col1 AS col0, col2 FROM tab0
----
1
99
21
10
82
47

query II rowsort
SELECT - ( - + col0 ) + col2 AS col2, + col1 * + col1 AS col0 FROM tab2
----
104
5929
133
4489
69
2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL + col0 + - CAST( + col0 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + col0 + - CAST ( + col0 AS INTEGER ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 33 * - col2 FROM tab0
----
1
-3267
21
-330
81
-1551

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

query I rowsort
SELECT - 1 - - - 70 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT - col1 * + 9 + - + col1 AS col1 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT DISTINCT 18 * + CAST( 87 AS SIGNED ) AS col0 FROM tab1
----
1566

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT 18 * + CAST ( 87 AS INTEGER ) AS col0 FROM tab1
----
1566

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT + + SUM( CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
103

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 42 - - + 49 * col0 BETWEEN NULL AND + col1 * 56
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * - col1
----

query II rowsort
SELECT DISTINCT 0, 90 FROM tab0, tab1 AS cor0 WHERE NOT NULL < - 69
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL + - SUM( col0 ) + 61 + + - 30 FROM tab1 WHERE NOT + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + - SUM ( col0 ) + 61 + + - 30 FROM tab1 WHERE NOT + col2 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 * - col0 AS col0 FROM tab1
----
-255
-425
-455

query I rowsort
SELECT ALL - col0 * + 73 FROM tab0
----
-1095
-6351
-7081

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 27 col1 FROM tab1 AS cor0
----
-1269
-135
-378

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

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

query I rowsort
SELECT DISTINCT + 34 + + + col1 AS col1 FROM tab2 WHERE NOT 67 IS NULL
----
101
111
85

query I rowsort
SELECT ALL 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + 95 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( + col1 ), + 8, + - 31, + col1 )
----

query II rowsort
SELECT + + col1 AS col1, + ( + 31 ) * + col0 * + col0 + + 88 AS col0 FROM tab1 cor0
----
14
80719
47
256799
5
224063

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

query II rowsort
SELECT DISTINCT 23 + 50 + - col0 * 27, col1 AS col2 FROM tab0 AS cor0
----
-2276
21
-2546
1
-332
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 * + col0 < - + col0 * + ( 33 )
----

query I rowsort
SELECT ALL - ( col1 ) + ( - col1 ) FROM tab2
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - 73 + - col2 AS col1 FROM tab1
----
-132
-141
-169

query I rowsort
SELECT ALL ( col0 ) + + col2 + 53 AS col1 FROM tab0
----
115
150
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL + - MIN( ALL + col0 ) FROM tab2 WHERE NOT + - 96 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + - MIN ( ALL + col0 ) FROM tab2 WHERE NOT + - 96 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT DISTINCT + col1 DIV - col2 - col2 + + col2 * + - col2 * + col1 * - + col1 + + col0 FROM tab0
----
14493216
44175
9799

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + col1 / - col2 - col2 + + col2 * + - col2 * + col1 * - + col1 + + col0 FROM tab0
----
14493216
44175
9799

query I rowsort
SELECT col0 * col2 + - + col0 + col1 * 54 AS col0 FROM tab1
----
5200
5601
8635

query II rowsort
SELECT ALL + 99 - - col0, 4 + - col1 AS col0 FROM tab1
----
150
-10
184
-1
190
-43

query II rowsort
SELECT col2 * - - 3 + - 92 + - 95 * col0, col0 FROM tab2 AS cor0
----
-4393
46
-6052
64
-7043
75

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

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

query I rowsort
SELECT + col0 + - col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT + + 44 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT + + 44 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT DISTINCT + col1 DIV col1 * col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT + col1 / col1 * col1 AS col2 FROM tab1
----
14
47
5

query II rowsort
SELECT col0 AS col0, col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT - COUNT( * ), + MAX( ALL + + col2 ) AS col1 FROM tab1
----
-3
96

skipif mysql # not compatible
query II rowsort label-6046
SELECT - COUNT ( * ), + MAX ( ALL + + col2 ) AS col1 FROM tab1
----
-3
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col0 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-46
-40
-64
-58
-75

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 19 * + 22
----

query I rowsort
SELECT DISTINCT col0 * 3 FROM tab2 cor0
----
138
192
225

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT - ( col0 ) DIV - 34 + col1 AS col0 FROM tab1 AS cor0
----
15
49
7

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - ( col0 ) / - 34 + col1 AS col0 FROM tab1 AS cor0
----
15
49
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT CAST( - + col0 AS SIGNED ) * - + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-6053
SELECT CAST ( - + col0 AS INTEGER ) * - + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + COUNT( * ) * 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6054
SELECT + COUNT ( * ) * 16 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT - 73 + + ( MAX( - col2 ) ) AS col1 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - 73 + + ( MAX ( - col2 ) ) AS col1 FROM tab1
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col0 col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT 62 + COUNT( + 62 ) col2 FROM tab2
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6057
SELECT 62 + COUNT ( + 62 ) col2 FROM tab2
----
65

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6058
SELECT COUNT ( * ) + + - 73 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + COUNT( ALL - - col0 ) + - MAX( - - col1 ) + + - 71 + - ( - 88 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + COUNT ( ALL - - col0 ) + - MAX ( - - col1 ) + + - 71 + - ( - 88 ) FROM tab0 AS cor0
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-6061
SELECT + col2 DIV + - col0 col1, + col2 AS col0 FROM tab1 AS cor0
----
-1
96
0
59
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6061
SELECT + col2 / + - col0 col1, + col2 AS col0 FROM tab1 AS cor0
----
-1
96
0
59
0
68

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 28 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 7 * - col2 * - + col0 * - + 63 / + 53 * + + 53 - - ( 25 ) + - + col1 + + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + 1 + - col0 IS NOT NULL
----

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

query II rowsort
SELECT - col2 AS col1, + col1 FROM tab0 AS cor0 WHERE col1 NOT IN ( + + col1, col2 )
----

query I rowsort
SELECT DISTINCT - col0 + + - 18 + + col0 FROM tab0
----
-18

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

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL 6 + + CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 94 - - col2 AS col2 FROM tab2
----
117
134
152

query I rowsort
SELECT ALL 92 - - col2 * - - 10 FROM tab0
----
1082
192
562

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab0 WHERE + 16 IS NULL
----

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

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

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

query I rowsort
SELECT ALL + - col2 + - 91 FROM tab1 AS cor0 WHERE - col1 > - 17
----
-150
-187

query I rowsort
SELECT DISTINCT + col2 * + + col2 * - + 99 FROM tab0 AS cor0
----
-218691
-970299
-9900

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

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

query II rowsort
SELECT - 38 * + col2 * - col1 - - 83 AS col1, col0 * 63 AS col0 FROM tab1 AS cor0
----
11293
5355
121531
5733
51155
3213

query I rowsort
SELECT DISTINCT - + 21 * + - ( 16 ) * + + col0 * col0 FROM tab1 AS cor0
----
2427600
2782416
873936

query I rowsort
SELECT ALL + 17 * - + col0 AS col2 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT - 19 AS col0 FROM tab1 cor0
----
-19
-19
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL - MAX( ALL + + 52 ) * - COUNT( * ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - MAX ( ALL + + 52 ) * - COUNT ( * ) FROM tab1 AS cor0
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT MAX( DISTINCT - - 8 ) * 34 AS col1 FROM tab0
----
272

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT MAX ( DISTINCT - - 8 ) * 34 AS col1 FROM tab0
----
272

query II rowsort
SELECT - col1, + col2 * 82 + - col1 AS col2 FROM tab2
----
-51
1835
-67
4689
-77
3203

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT - COUNT( * ) DIV + 77 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( * ) / + 77 FROM tab2
----
0

query II rowsort
SELECT 18 AS col1, - 87 FROM tab1
----
18
-87
18
-87
18
-87

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

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

query I rowsort
SELECT + 44 + + 23 AS col1 FROM tab1 AS cor0
----
67
67
67

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

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

query I rowsort
SELECT + + ( - 67 ) FROM tab0 AS cor0 WHERE - col0 + + + 12 <= + ( + col0 ) - - 18
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL + - MIN( ALL + col0 ) * 12 AS col1 FROM tab2 cor0
----
-552

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + - MIN ( ALL + col0 ) * 12 AS col1 FROM tab2 cor0
----
-552

query II rowsort
SELECT - 69 + 97, - col1 + - col1 AS col2 FROM tab0
----
28
-162
28
-2
28
-42

query I rowsort
SELECT - - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL col0 + - col1 * - 96 + - ( + col1 ) - - - col0 * - - col2 FROM tab0
----
-9411
1212
7005

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT - 82 * col1 DIV - col2 + col0 * - + 17 AS col2 FROM tab0
----
-114
-1307
-1649

skipif mysql # not compatible
query I rowsort label-6100
SELECT - 82 * col1 / - col2 + col0 * - + 17 AS col2 FROM tab0
----
-114
-1307
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT 39 * + MAX( 83 ) FROM tab2
----
3237

skipif mysql # not compatible
query I rowsort label-6101
SELECT 39 * + MAX ( 83 ) FROM tab2
----
3237

query II rowsort
SELECT ALL 15 - col0 AS col1, - col2 FROM tab1
----
-36
-96
-70
-59
-76
-68

query I rowsort
SELECT DISTINCT - 58 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-58

query I rowsort
SELECT DISTINCT - 68 * - col0 - + 96 FROM tab1
----
3372
5684
6092

query I rowsort
SELECT + - col1 * - 4 FROM tab0 AS cor0
----
324
4
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT DISTINCT - col2 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT - col2 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 = + col1 + - 22
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6110
SELECT 41 DIV + - 99 * + col0, col2 FROM tab0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-6110
SELECT 41 / + - 99 * + col0, col2 FROM tab0
----
0
10
0
47
0
99

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

query I rowsort
SELECT - 22 - + ( 72 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6116
SELECT + CAST( NULL AS SIGNED ), - 56 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 2 )
----

skipif mysql # not compatible
query II rowsort label-6116
SELECT + CAST ( NULL AS INTEGER ), - 56 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6117
SELECT ALL MAX( - CAST( col2 AS SIGNED ) ), + 99 AS col1 FROM tab1 AS cor0
----
-59
99

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL MAX ( - CAST ( col2 AS INTEGER ) ), + 99 AS col1 FROM tab1 AS cor0
----
-59
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6118
SELECT ALL - COUNT ( * ) AS col1, + ( 18 ) col2 FROM tab2
----
-3
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT col1 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-6119
SELECT col1 / + + col0 col1 FROM tab1
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ALL - col0 * + col0 - col0 + + col1 DIV + col2 FROM tab0 cor0
----
-239
-7654
-9506

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - col0 * + col0 - col0 + + col1 / + col2 FROM tab0 cor0
----
-239
-7654
-9506

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 48 < - - col2 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6124
SELECT - 57 + 96 + ( CAST( NULL AS SIGNED ) ) * - col1 / - + col0 col2, + 26 AS col1 FROM tab2 cor0
----
NULL
26
NULL
26
NULL
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6124
SELECT - 57 + 96 + ( CAST ( NULL AS INTEGER ) ) * - col1 / - + col0 col2, + 26 AS col1 FROM tab2 cor0
----
NULL
26
NULL
26
NULL
26

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

query I rowsort
SELECT + col2 + - 11 * - 59 FROM tab0 AS cor0
----
659
696
748

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + SUM( ALL - + col1 ) + + 28 AS col2 FROM tab2
----
-167

skipif mysql # not compatible
query I rowsort label-6127
SELECT + SUM ( ALL - + col1 ) + + 28 AS col2 FROM tab2
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT COUNT( * ) * 44 + 28 AS col2 FROM tab1
----
160

skipif mysql # not compatible
query I rowsort label-6128
SELECT COUNT ( * ) * 44 + 28 AS col2 FROM tab1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + 66 * COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT + 66 * COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT - col2 DIV + + 52 + col0 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-6130
SELECT - col2 / + + 52 + col0 FROM tab1
----
50
84
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT MAX( ALL + col0 ) + + COUNT( + 72 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-6132
SELECT MAX ( ALL + col0 ) + + COUNT ( + 72 ) FROM tab0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 - - 82 > 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6135
SELECT - + ( + + 24 ) DIV + col2, col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-6135
SELECT - + ( + + 24 ) / + col2, col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6138
SELECT - - 72 * + MAX( - col0 ) AS col2, CAST( NULL AS SIGNED ) + 49 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-3312
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6138
SELECT - - 72 * + MAX ( - col0 ) AS col2, CAST ( NULL AS INTEGER ) + 49 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-3312
NULL

query I rowsort
SELECT ALL - + 8 * 31 FROM tab1 AS cor0
----
-248
-248
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT + col1 DIV + 11 AS col1 FROM tab1 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6140
SELECT + col1 / + 11 AS col1 FROM tab1 cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT + - COUNT( * ) * - + 40 FROM tab2 cor0
----
120

skipif mysql # not compatible
query I rowsort label-6141
SELECT + - COUNT ( * ) * - + 40 FROM tab2 cor0
----
120

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 + + col0 <= 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * + - 74 IS NOT NULL
----

query I rowsort
SELECT 76 * - 35 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b70cf20b91d2fa1516f1d09ca168f9f

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

skipif mysql # not compatible
query I rowsort label-6149
SELECT + COUNT ( * ) * + + 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
522

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 47 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col1 col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( NULL ) = - col2
----

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

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

query I rowsort
SELECT ALL 38 + - col2 AS col2 FROM tab1 AS cor0
----
-21
-30
-58

query I rowsort
SELECT ALL col2 * + 48 FROM tab2 AS cor0
----
1104
1920
2784

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

query I rowsort
SELECT ALL 29 + 91 FROM tab0 cor0
----
120
120
120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 64 = NULL
----

query I rowsort
SELECT ( - 4 ) - - 44 FROM tab1
----
40
40
40

query I rowsort
SELECT + ( + 78 ) + + 40 AS col2 FROM tab2
----
118
118
118

query I rowsort
SELECT DISTINCT col0 - + - ( - - col1 ) AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT 24 + - col2 FROM tab2
----
-16
-34
1

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + - - 20 + + + ( - col1 ) FROM tab0 cor0
----
-46
116
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT ALL + col0 DIV + + col0 - - 0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + col0 / + + col0 - - 0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT CAST( col0 AS SIGNED ) + 15 + 12 FROM tab0
----
114
124
42

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT CAST ( col0 AS INTEGER ) + 15 + 12 FROM tab0
----
114
124
42

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

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

query I rowsort
SELECT 53 AS col2 FROM tab1 cor0
----
53
53
53

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

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

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

query I rowsort
SELECT col1 * + - 17 AS col2 FROM tab1
----
-238
-799
-85

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

query I rowsort
SELECT - col0 * 43 * - col2 FROM tab0
----
30315
37410
412929

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT COUNT( DISTINCT + 58 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT COUNT ( DISTINCT + 58 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6177
SELECT DISTINCT 68, SUM( + 10 ) AS col1 FROM tab1
----
68
30

skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT 68, SUM ( + 10 ) AS col1 FROM tab1
----
68
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT DISTINCT - 27 DIV - - 92 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - 27 / - - 92 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT COUNT( + - 33 ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6181
SELECT COUNT ( + - 33 ) AS col1 FROM tab1, tab1 AS cor0
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT ALL - 70 AS col0, COUNT( col2 ) FROM tab1 AS cor0
----
-70
3

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL - 70 AS col0, COUNT ( col2 ) FROM tab1 AS cor0
----
-70
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT + COUNT( * ) AS col2, MAX( - col0 ) col2 FROM tab1 AS cor0
----
3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6186
SELECT + COUNT ( * ) AS col2, MAX ( - col0 ) col2 FROM tab1 AS cor0
----
3
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT + 48 * + 47 - + CAST( - col1 AS SIGNED ) FROM tab0
----
2257
2277
2337

skipif mysql # not compatible
query I rowsort label-6187
SELECT + 48 * + 47 - + CAST ( - col1 AS INTEGER ) FROM tab0
----
2257
2277
2337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT + ( 54 ) DIV - 45 + + ( COUNT( * ) ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6188
SELECT + ( 54 ) / - 45 + + ( COUNT ( * ) ) AS col1 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT DISTINCT - col1 + CAST( + 10 + - col2 AS SIGNED ) FROM tab1
----
-100
-105
-54

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT - col1 + CAST ( + 10 + - col2 AS INTEGER ) FROM tab1
----
-100
-105
-54

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col0 > NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT 76 DIV - col0 + - col0 DIV - 32 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT 76 / - col0 + - col0 / - 32 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT ( + 45 ) FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6196
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * CAST( col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6196
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * CAST ( col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT 46 AS col1 FROM tab1 WHERE NOT - 1 * col2 = col2
----
46
46
46

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

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

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 WHERE + 79 IS NOT NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + COUNT( * ) - 60 * 1 AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6200
SELECT + COUNT ( * ) - 60 * 1 AS col0 FROM tab2
----
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT col1 * - ( - CAST( col1 AS SIGNED ) ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6202
SELECT col1 * - ( - CAST ( col1 AS INTEGER ) ) FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + col0 + 25 FROM tab2 WHERE 76 + - 86 BETWEEN - col2 * 72 AND ( NULL )
----

query I rowsort
SELECT + col1 * 24 FROM tab1
----
1128
120
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 65 col2 FROM tab0
----
-3055
-6435
-650

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

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

query I rowsort
SELECT ALL - 55 * col0 AS col1 FROM tab1
----
-2805
-4675
-5005

query I rowsort
SELECT 26 + 77 AS col2 FROM tab2 WHERE NOT ( NULL ) <= ( col0 )
----

query I rowsort
SELECT 1 * col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col2 * col0 + 33 FROM tab0
----
738
903
9636

query I rowsort
SELECT ALL col1 + 44 FROM tab0
----
125
45
65

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 * col2 ) = - col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT ( - 58 ) * CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-2726
-290
-812

skipif mysql # not compatible
query I rowsort label-6214
SELECT ( - 58 ) * CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-2726
-290
-812

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

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL + COUNT ( * ) * + 14 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - 96 * + COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 96 * + COUNT ( * ) FROM tab1
----
-288

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

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 NOT IN ( - 74 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( 98 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL + 72 + ( - 39 + 33 * COUNT( * ) ) AS col2 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + 72 + ( - 39 + 33 * COUNT ( * ) ) AS col2 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT 15 - + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT 15 - + COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT DISTINCT + 39 + + col1 FROM tab0
----
120
40
60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL 99 DIV - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL 99 / - col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 CROSS JOIN tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - col2 ) / 50 col1 FROM tab0 WHERE NOT NULL < ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - col2 ) / 50 col1 FROM tab0 WHERE NOT NULL < ( col1 )
----

query I rowsort
SELECT DISTINCT - + col2 * 19 AS col2 FROM tab0 AS cor0
----
-1881
-190
-893

query I rowsort
SELECT - 38 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * 43 + + ( col0 + - col1 ) * ( - col2 ) <> col2
----

query I rowsort
SELECT + 84 * - 3 AS col2 FROM tab1 AS cor0
----
-252
-252
-252

query I rowsort
SELECT 47 * col1 FROM tab1 cor0 WHERE NOT + col1 <= 58
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6233
SELECT 69 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT + col2 DIV - 88 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT + col2 / - 88 AS col1 FROM tab1
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT 9 * + ( + COUNT( * ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-6236
SELECT 9 * + ( + COUNT ( * ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
27

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 79 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 92 IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( 96 + - col0 ) NOT IN ( col1 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT - ( + ( 5 ) ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6240
SELECT - ( + ( 5 ) ) / - COUNT ( * ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col1 NOT BETWEEN + 17 / 82 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT DISTINCT - 67 DIV + col1 FROM tab0
----
-3
-67
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - 67 / + col1 FROM tab0
----
-3
-67
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT + CAST( + COUNT( ALL col2 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT + CAST ( + COUNT ( ALL col2 ) AS INTEGER ) FROM tab1
----
3

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

query I rowsort
SELECT DISTINCT 25 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 59 )
----

query I rowsort
SELECT ALL 50 FROM tab1 AS cor0 WHERE col0 > col0
----

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

query I rowsort
SELECT ALL 68 * ( col2 ) + col1 FROM tab1 AS cor0
----
4017
4671
6542

query I rowsort
SELECT col1 + 75 AS col2 FROM tab2
----
126
142
152

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0 cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN NULL AND NULL
----
68

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

query II rowsort
SELECT DISTINCT col2, - 58 FROM tab1
----
59
-58
68
-58
96
-58

query I rowsort
SELECT col2 * - - col2 * + - ( + col0 ) + col0 AS col0 FROM tab0
----
-33120
-8613
-950600

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

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

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

query I rowsort
SELECT - 53 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + 58 * - col1 FROM tab2
----
-2958
-3886
-4466

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

skipif mysql # not compatible
query I rowsort label-6259
SELECT - SUM ( col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT 62 * - - 86 FROM tab0 AS cor0
----
5332
5332
5332

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col0 ) NOT IN ( + 14 + - 8 / - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6262
SELECT - - CAST ( + + ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT - col1 DIV col0 * + col0 AS col1 FROM tab0 AS cor0
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT - col1 / col0 * + col0 AS col1 FROM tab0 AS cor0
----
-75
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT DISTINCT - COUNT( * ), + 36 AS col1 FROM tab0 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT - COUNT ( * ), + 36 AS col1 FROM tab0 AS cor0
----
-3
36

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

query I rowsort
SELECT DISTINCT ( col2 ) + 74 FROM tab2 AS cor0 WHERE NOT ( + col0 / - col2 ) NOT IN ( col2 * - col0 )
----

query I rowsort
SELECT DISTINCT + 15 + + 80 - - 22 FROM tab1 AS cor0
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> + 96
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > + col1 AND NOT 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL SUM( + col1 ) + + 91 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL SUM ( + col1 ) + + 91 FROM tab1
----
157

query I rowsort
SELECT 89 * ( - - col2 ) - + col1 FROM tab0
----
4102
869
8810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT SUM( - + 93 ) DIV - 33 + - 94 * COUNT( ALL - col0 ) FROM tab1
----
-274

skipif mysql # not compatible
query I rowsort label-6274
SELECT SUM ( - + 93 ) / - 33 + - 94 * COUNT ( ALL - col0 ) FROM tab1
----
-274

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

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

query I rowsort
SELECT ( + ( - col0 ) ) + - + col2 AS col2 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * + 60 - - - 64 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * + 60 - - - 64 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6278
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + 4 + + + col2 IS NULL AND NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + 4 + + + col2 IS NULL AND NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 55 * + col2 + + col2 FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT + - MAX( ALL - 54 ) + - MIN( ALL - ( col1 ) ) + SUM( + 54 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + - MAX ( ALL - 54 ) + - MIN ( ALL - ( col1 ) ) + SUM ( + 54 ) FROM tab0 AS cor0
----
297

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - - 16 AS col2 FROM tab1
----
1088
1536
944

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6287
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 18 + + CAST( NULL AS SIGNED ) * col0 NOT IN ( - 55 )
----

skipif mysql # not compatible
query III rowsort label-6287
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 18 + + CAST ( NULL AS INTEGER ) * col0 NOT IN ( - 55 )
----

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - col1 / - 56 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 95 IN ( 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT + CAST( - - 82 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + CAST ( - - 82 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
0
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( ( + 26 ) * col1 / 53 + col1 NOT BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( ( + 26 ) * col1 / 53 + col1 NOT BETWEEN NULL AND NULL )
----
0

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + 18 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT 94 DIV + col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT 94 / + col2 AS col2 FROM tab1
----
0
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL MIN( 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL MIN ( 87 ) FROM tab2
----
87

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

query I rowsort
SELECT ALL - 25 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL + + 45 + 30 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL AND ( NULL ) > - col0
----

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + + 45 + 30 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL AND ( NULL ) > - col0
----

query I rowsort
SELECT ALL col0 * + 47 + - col1 AS col2 FROM tab0 AS cor0
----
4068
4558
624

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - + MAX( 69 ) + + 79 + - SUM( col0 ) col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6306
SELECT - + MAX ( 69 ) + + 79 + - SUM ( col0 ) col2 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT - 93 AS col1 FROM tab0 AS cor0 WHERE NULL > col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT - COUNT( * ) * - MIN( - + col0 ) + - 32 FROM tab0 AS cor0
----
-323

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT - COUNT ( * ) * - MIN ( - + col0 ) + - 32 FROM tab0 AS cor0
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( * ) * 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( * ) * 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL + CAST( + 76 AS SIGNED ) + + + col1 FROM tab0 AS cor0
----
157
77
97

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + CAST ( + 76 AS INTEGER ) + + + col1 FROM tab0 AS cor0
----
157
77
97

query I rowsort
SELECT 52 - + + col0 AS col1 FROM tab1
----
-33
-39
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT ALL 13 - + 26 + - ( - + COUNT( * ) ) DIV 82 AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL 13 - + 26 + - ( - + COUNT ( * ) ) / 82 AS col0 FROM tab1 AS cor0
----
-13

query II rowsort
SELECT - 84, col2 * + + col2 AS col0 FROM tab1 AS cor0
----
-84
3481
-84
4624
-84
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT + 52 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 44 ) BETWEEN NULL AND ( + col1 * - col0 - - CAST( NULL AS SIGNED ) * + 34 + col2 + 64 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-6315
SELECT + 52 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 44 ) BETWEEN NULL AND ( + col1 * - col0 - - CAST ( NULL AS INTEGER ) * + 34 + col2 + 64 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT + col0 DIV + col1 col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6316
SELECT + col0 / + col1 col0 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT + 41 * - col0 * - col2 AS col0 FROM tab1
----
200736
205615
253708

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) >= ( - col1 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 * + col1, + col2 col2 FROM tab1 AS cor0
----
2115
68
225
59
630
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL - CAST( - AVG ( - 29 ) AS SIGNED ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - CAST ( - AVG ( - 29 ) AS INTEGER ) FROM tab1 AS cor0
----
-29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT 43 * col2 DIV + ( + col0 ) FROM tab1
----
29
32
80

skipif mysql # not compatible
query I rowsort label-6324
SELECT 43 * col2 / + ( + col0 ) FROM tab1
----
29
32
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT col2 DIV 82 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6325
SELECT col2 / 82 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT DISTINCT + COUNT( DISTINCT + 53 ) * - 42 AS col2, COUNT( * ) FROM tab1
----
-42
3

skipif mysql # not compatible
query II rowsort label-6326
SELECT DISTINCT + COUNT ( DISTINCT + 53 ) * - 42 AS col2, COUNT ( * ) FROM tab1
----
-42
3

query I rowsort
SELECT DISTINCT + col1 + - + col1 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL MIN( + - 78 ) * - 73 FROM tab0 AS cor0
----
5694

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL MIN ( + - 78 ) * - 73 FROM tab0 AS cor0
----
5694

query I rowsort
SELECT 95 AS col0 FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( + col2, - col1, + col1 * + col2 - + col2 * - col0 )
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT DISTINCT - col1 * 29 + + + col0 DIV + + col1 + - 12 AS col0 FROM tab0 AS cor0
----
-2361
-617
56

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - col1 * 29 + + + col0 / + + col1 + - 12 AS col0 FROM tab0 AS cor0
----
-2361
-617
56

query II rowsort
SELECT DISTINCT - col2 + col0 AS col0, 12 AS col1 FROM tab2
----
17
12
23
12
24
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT SUM( 22 ) FROM tab0 WHERE + - col1 * + col0 + - col2 / 71 * + - col2 * - 8 = ( - + ( + 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT SUM ( 22 ) FROM tab0 WHERE + - col1 * + col0 + - col2 / 71 * + - col2 * - 8 = ( - + ( + 88 ) )
----
NULL

query I rowsort
SELECT col2 * - 52 FROM tab2
----
-1196
-2080
-3016

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col1 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT + + col2 DIV - col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6336
SELECT + + col2 / - col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + CAST ( - ( MIN ( - 18 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col0 + 36 AS col1 FROM tab2 AS cor0
----
-10
-28
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-6339
SELECT ALL 85 - + + col0 AS col1, + col0 DIV - + 4 FROM tab1
----
-6
-22
0
-21
34
-12

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL 85 - + + col0 AS col1, + col0 / - + 4 FROM tab1
----
-6
-22
0
-21
34
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 WHERE ( + col2 ) = NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT + MIN( 25 ) col0, - 43 AS col0 FROM tab0, tab0 AS cor0
----
25
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6341
SELECT + MIN ( 25 ) col0, - 43 AS col0 FROM tab0, tab0 AS cor0
----
25
-43

query II rowsort
SELECT ALL + ( 89 ) AS col0, + col2 * + - col0 AS col1 FROM tab0
----
89
-705
89
-870
89
-9603

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE 50 - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col1 ) AS col2, col2 col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT - 20 * - 49 AS col2 FROM tab0 AS cor0 WHERE NOT + 22 IS NULL
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 56 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6349
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) IN ( - 88, + col0 )
----

skipif mysql # not compatible
query III rowsort label-6349
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) IN ( - 88, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL - COUNT( * ) * - 18 AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - COUNT ( * ) * - 18 AS col0 FROM tab0 AS cor0
----
54

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

query I rowsort
SELECT + 89 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 + - + col1, - col1 * col0, + col1, - - 37 + + + col1 )
----

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

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

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

query I rowsort
SELECT ALL - 41 + + col0 FROM tab0 AS cor0
----
-26
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT 22 + + MAX( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT 22 + + MAX ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
119

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

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

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

query I rowsort
SELECT DISTINCT - 95 * col1 + + 42 * - ( + col0 ) FROM tab2 cor0
----
-10003
-6777
-9515

query I rowsort
SELECT - col1 * - - col1 + - 18 FROM tab2
----
-2619
-4507
-5947

query I rowsort
SELECT + 57 + - col2 FROM tab2
----
-1
17
34

query I rowsort
SELECT ALL 2 * + 66 + + + 66 * + - col0 AS col1 FROM tab2
----
-2904
-4092
-4818

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT DISTINCT - + 18 * + COUNT( * ) col0, - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6363
SELECT DISTINCT - + 18 * + COUNT ( * ) col0, - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - 21 + + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6365
SELECT - 21 + + COUNT ( * ) FROM tab1
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6367
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 89 * - col1 * - - col2 AS col2, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6367
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 89 * - col1 * - - col2 AS col2, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + + col0 * 31 FROM tab1 AS cor0
----
1567
2630
2774

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= + 26
----
64
77
40
75
67
58

query II rowsort
SELECT DISTINCT + col1 * - ( + - col2 ) + + col1 AS col1, + col2 FROM tab1 AS cor0
----
1358
96
300
59
3243
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col2 FROM tab2
----
104
133
69

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 44 < NULL
----

query I rowsort
SELECT - 26 * - 17 + - + col1 FROM tab2 AS cor0
----
365
375
391

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT COUNT( ALL + 1 ) + + + ( + - MIN( + col0 ) ) col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT COUNT ( ALL + 1 ) + + + ( + - MIN ( + col0 ) ) col0 FROM tab0 AS cor0
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab1 cor0 WHERE NOT + col2 <= - col2
----
-223

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab1 cor0 WHERE NOT + col2 <= - col2
----
-223

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

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 8 + COUNT ( * ) + + MAX ( DISTINCT - col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-142

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

query I rowsort
SELECT + 13 * + 67 FROM tab0 cor0
----
871
871
871

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

skipif mysql # not compatible
query I rowsort label-6382
SELECT col1 / 79 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 + + 11 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6384
SELECT DISTINCT + COUNT( * ) + COUNT( col0 ) DIV - + 39 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + COUNT ( * ) + COUNT ( col0 ) / - + 39 AS col0 FROM tab2 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL COUNT( col0 ) * + + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL COUNT ( col0 ) * + + COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT COUNT( ALL + - 0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6387
SELECT COUNT ( ALL + - 0 ) FROM tab0
----
3

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

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

query II rowsort
SELECT + + col1 AS col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

query II rowsort
SELECT + - col1 AS col2, + col1 - col1 * - ( + 28 ) AS col2 FROM tab0 AS cor0
----
-1
29
-21
609
-81
2349

query I rowsort
SELECT + col0 * + + col1 - 88 AS col2 FROM tab1 AS cor0
----
337
4189
626

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

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

query I rowsort
SELECT DISTINCT + col2 + + col0 - + 10 FROM tab2 AS cor0
----
123
59
94

query I rowsort
SELECT DISTINCT - col1 * - 36 + - - col1 AS col2 FROM tab2 AS cor0
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - - 60 + + COUNT( * ) * + ( MIN( + 96 ) ) AS col1 FROM tab1 AS cor0
----
348

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - - 60 + + COUNT ( * ) * + ( MIN ( + 96 ) ) AS col1 FROM tab1 AS cor0
----
348

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

query I rowsort
SELECT DISTINCT + 3 + - col2 AS col2 FROM tab0
----
-44
-7
-96

query I rowsort
SELECT DISTINCT + col2 * - 5 FROM tab1
----
-295
-340
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 86 ) * col1 * + 67 col2 FROM tab1
----
-270814
-28810
-80668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + - col2 - + col1 col0 FROM tab1
----
-24
-70
-75

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

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

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

query I rowsort
SELECT + 50 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1123
-3030
-3836

query I rowsort
SELECT - 54 * - 29 + - 73 AS col0 FROM tab0 cor0
----
1493
1493
1493

query I rowsort
SELECT ALL 41 + - 74 FROM tab1 AS cor0
----
-33
-33
-33

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

query I rowsort
SELECT + + 93 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - - 84 - col0 FROM tab2 AS cor0
----
20
38
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - 78 NOT BETWEEN - - 44 - - - col2 - 20 AND + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 5 = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 < ( - col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 49 AS col0 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + + COUNT( * ) * - ( + 92 ) col0 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6415
SELECT ALL + + COUNT ( * ) * - ( + 92 ) col0 FROM tab0 AS cor0
----
-276

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

query I rowsort
SELECT + 45 * - - 17 AS col2 FROM tab0
----
765
765
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT DISTINCT + 70 DIV COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + 70 / COUNT ( * ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL - + MAX( col0 ) AS col1 FROM tab1 WHERE NOT - col2 BETWEEN ( - col1 ) AND NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL - + MAX ( col0 ) AS col1 FROM tab1 WHERE NOT - col2 BETWEEN ( - col1 ) AND NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL - ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE col2 NOT IN ( + col1, - col0 + + + col0 - + + col0, - col1, 8 )
----
3

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE col2 NOT IN ( + col1, - col0 + + + col0 - + + col0, - col1, 8 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT - SUM( - 93 ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - SUM ( - 93 ) FROM tab1 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6422
SELECT + + CAST( + - 5 AS SIGNED ) AS col1, + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b6f9fbd7394c6f68254dcdd8d66dc8a9

skipif mysql # not compatible
query II rowsort label-6422
SELECT + + CAST ( + - 5 AS INTEGER ) AS col1, + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b6f9fbd7394c6f68254dcdd8d66dc8a9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - 40 * + 83 * - MIN( DISTINCT col1 ) + + - 38 FROM tab2 AS cor0
----
169282

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - 40 * + 83 * - MIN ( DISTINCT col1 ) + + - 38 FROM tab2 AS cor0
----
169282

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE CAST( 34 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE CAST ( 34 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT 63 + col0 * + col2 * + col0 FROM tab2 AS cor0
----
163903
326313
48731

query I rowsort
SELECT DISTINCT 54 * + - col2 + ( - + col0 ) + + + 57 * col2 FROM tab0
----
-57
126
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT COUNT( ALL 62 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT COUNT ( ALL 62 ) AS col2 FROM tab0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT - 66 DIV + - 23 + + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - 66 / + - 23 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1

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

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

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

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

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

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

query I rowsort
SELECT ALL 74 * 1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT 74 * - col2 AS col0 FROM tab1 AS cor0
----
-4366
-5032
-7104

query I rowsort
SELECT ( + 35 ) AS col2 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + 34 * col0 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT - + 84 * + 66 * + 13 FROM tab0 cor0
----
-72072
-72072
-72072

query I rowsort
SELECT ALL - col0 * + 94 + + - ( ( + col1 ) ) AS col0 FROM tab1 cor0
----
-4808
-7995
-8601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col0 col0, + col1 AS col1 FROM tab1
----
4896
14
5015
5
6188
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6443
SELECT ALL col0 * - col0 + CAST( + 17 AS DECIMAL ) FROM tab1 WHERE - 0 - - 57 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL col0 * - col0 + CAST ( + 17 AS REAL ) FROM tab1 WHERE - 0 - - 57 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL 42 * - + 26 AS col0 FROM tab0 AS cor0
----
-1092
-1092
-1092

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 49 <> NULL
----

query I rowsort
SELECT ALL + 64 + 75 FROM tab2
----
139
139
139

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6448
SELECT ALL + + 4 + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT + - COUNT( * ) * + 97 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-873

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + - COUNT ( * ) * + 97 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 AS col2, 26 * + 70 + + col0 col1 FROM tab1 AS cor0
----
59
1871
59
1905
59
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT 16 * - + col2 DIV ( + col2 ) * col0 * - col2 AS col0 FROM tab1 cor0
----
78336
80240
99008

skipif mysql # not compatible
query I rowsort label-6451
SELECT 16 * - + col2 / ( + col2 ) * col0 * - col2 AS col0 FROM tab1 cor0
----
78336
80240
99008

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT 83 DIV - col1 - + 23 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-6452
SELECT 83 / - col1 - + 23 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL + COUNT( col1 ) + ( - 87 ) * + COUNT( * ) * - + COUNT( + + 3 ) - - 80 * + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
1026

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL + COUNT ( col1 ) + ( - 87 ) * + COUNT ( * ) * - + COUNT ( + + 3 ) - - 80 * + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
1026

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( - col2 ) + ( + ( + ( ( col0 ) ) ) ) + + ( + 52 ) + + 9 FROM tab1 AS cor0
----
205
208
220

query I rowsort
SELECT DISTINCT col0 / + col0 + - 82 FROM tab0 cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + ( - + 96 ) FROM tab0 AS cor0
----
-15
-75
-95

query I rowsort
SELECT ALL - col0 + + col1 * - 93 AS col2 FROM tab0
----
-190
-2040
-7548

query I rowsort
SELECT - 66 FROM tab1 WHERE NULL IS NULL
----
-66
-66
-66

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

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

query I rowsort
SELECT col0 + col0 * 52 * + 55 FROM tab0
----
248907
277517
42915

query I rowsort
SELECT ALL 66 + - 14 AS col0 FROM tab0
----
52
52
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL MIN( + - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL MIN ( + - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT CAST( col1 AS SIGNED ) + - + ( - + col2 ) * - col0 + - col0 col2 FROM tab0
----
-639
-936
-9699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6467
SELECT CAST ( col1 AS INTEGER ) + - + ( - + col2 ) * - col0 + - col0 col2 FROM tab0
----
-639
-936
-9699

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT - ( - 33 ) + + COUNT( * ) col2 FROM tab2 WHERE NOT + - 50 IS NOT NULL
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6468
SELECT DISTINCT - ( - 33 ) + + COUNT ( * ) col2 FROM tab2 WHERE NOT + - 50 IS NOT NULL
----
33

query I rowsort
SELECT + 43 * + 38 + + ( 83 ) AS col1 FROM tab0 cor0
----
1717
1717
1717

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

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

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

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

query I rowsort
SELECT ALL 25 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query II rowsort
SELECT DISTINCT ( 72 ), + 24 AS col0 FROM tab2 AS cor0
----
72
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 89 ) * + 54 BETWEEN - ( - + 81 ) AND col2 + + - col1 * col1 * - + 71
----
85
5
59

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - 24 * + - col0 <= col2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT 92 + + - col2 - - + CAST( NULL AS SIGNED ) + + + col0 / + - 64 * + col1 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6480
SELECT 92 + + - col2 - - + CAST ( NULL AS INTEGER ) + + + col0 / + - 64 * + col1 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 21 ) col0 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT + 38 * - - col1 FROM tab1
----
1786
190
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6483
SELECT - COUNT( * ) AS col1, - COUNT( * ) + ( + 17 ) DIV 95 AS col2 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6483
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) + ( + 17 ) / 95 AS col2 FROM tab2
----
-3
-3

query I rowsort
SELECT 80 * - 25 AS col0 FROM tab0
----
-2000
-2000
-2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT + - col1 ) * - - 14 * + + CAST( NULL AS SIGNED ) - + MIN( DISTINCT + - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + - col1 ) * - - 14 * + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - col0 ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL 91 * - col1 FROM tab2
----
-4641
-6097
-7007

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col1 * + 0 IS NULL
----

query I rowsort
SELECT - 23 + + 37 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
14
14
14

query I rowsort
SELECT ( + - col0 ) + - col2 + + 52 + 96 AS col2 FROM tab1 AS cor0
----
-11
1
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT ALL ( CAST( + MAX( col0 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL ( CAST ( + MAX ( col0 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 * 71 IS NULL
----

query I rowsort
SELECT ALL 47 * + col1 - + - col2 FROM tab0 AS cor0
----
146
3854
997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT + + col0 * 78 * 15 * + col1 + + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
113587
1421565
2137677

skipif mysql # not compatible
query I rowsort label-6496
SELECT + + col0 * 78 * 15 * + col1 + + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
113587
1421565
2137677

query I rowsort
SELECT + + ( + col0 ) * + col1 + col0 AS col2 FROM tab2 cor0
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6498
SELECT DISTINCT 91 DIV CAST( - - ( + AVG ( col1 ) ) AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT 91 / CAST ( - - ( + AVG ( col1 ) ) AS INTEGER ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 AND - - col1
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( + 74 - col0 + 62 IS NULL )
----
1
21
81

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

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

query I rowsort
SELECT - 68 - - - col0 * + - col2 AS col2 FROM tab2 AS cor0
----
2492
4282
990

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT 13 AS col1, - SUM( ALL ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
13
-66

skipif mysql # not compatible
query II rowsort label-6504
SELECT 13 AS col1, - SUM ( ALL ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
13
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6505
SELECT col1 / + 42 * - + ( - CAST( + + col0 AS SIGNED ) ), - 92 AS col2 FROM tab0 WHERE NOT ( CAST( 97 AS SIGNED ) + + 62 ) NOT IN ( + 8 )
----

skipif mysql # not compatible
query II rowsort label-6505
SELECT col1 / + 42 * - + ( - CAST ( + + col0 AS INTEGER ) ), - 92 AS col2 FROM tab0 WHERE NOT ( CAST ( 97 AS INTEGER ) + + 62 ) NOT IN ( + 8 )
----

query II rowsort
SELECT col2 AS col1, - 59 * - ( col2 ) AS col0 FROM tab1
----
59
3481
68
4012
96
5664

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT - SUM( DISTINCT + col0 ) AS col0, 81 * + - MIN( ALL col0 ) FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - + col2 * - 43 + - 8 * - col0 AND + 27
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6508
SELECT - SUM ( DISTINCT + col0 ) AS col0, 81 * + - MIN ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - + col2 * - 43 + - 8 * - col0 AND + 27
----
NULL
NULL

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

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

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

query I rowsort
SELECT ALL + ( + - 54 ) * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-3101
-3581
-5133

query II rowsort
SELECT + col1, + 4 + - col1 AS col2 FROM tab2 AS cor0
----
51
-47
67
-63
77
-73

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

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

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

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - MAX ( DISTINCT - + 20 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6516
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab1 WHERE NOT - col1 < - - 89
----

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

query I rowsort
SELECT DISTINCT + 76 * 16 + - 3 - + + col0 FROM tab1 AS cor0
----
1122
1128
1162

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT col1 * col1 DIV - ( - + col1 ) + - - 34 AS col1 FROM tab1 AS cor0
----
39
48
81

skipif mysql # not compatible
query I rowsort label-6520
SELECT col1 * col1 / - ( - + col1 ) + - - 34 AS col1 FROM tab1 AS cor0
----
39
48
81

query II rowsort
SELECT + + col1 * + 11 + - ( + col1 ) * - - col0 AS col1, col2 FROM tab2 AS cor0
----
-1785
23
-4081
40
-4288
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( - 85 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL 30 + COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 30 + COUNT ( * ) FROM tab2 AS cor0
----
33

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT - COUNT( * ), SUM( - + col1 ) AS col0 FROM tab1 cor0
----
-3
-66

skipif mysql # not compatible
query II rowsort label-6529
SELECT - COUNT ( * ), SUM ( - + col1 ) AS col0 FROM tab1 cor0
----
-3
-66

query I rowsort
SELECT DISTINCT - 71 + - 71 + + 12 AS col0 FROM tab0 AS cor0
----
-130

query I rowsort
SELECT DISTINCT 47 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4089
-4559
-705

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 + ( + + 30 ) + col0 + + col2 AND - + col1 / + + 3 * col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT COUNT( ALL - + 18 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT COUNT ( ALL - + 18 ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT col2 + - - col1 * + 83 AS col0 FROM tab1
----
1258
3969
474

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

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

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

query I rowsort
SELECT ALL + 93 - - 29 + - col2 FROM tab0
----
112
23
75

query I rowsort
SELECT - col2 + + ( + 4 ) + - 51 FROM tab1
----
-106
-115
-143

query I rowsort
SELECT + 54 + + 61 FROM tab0
----
115
115
115

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 47 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT DISTINCT 21 DIV + 71 * + + col0 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT 21 / + 71 * + + col0 + + col0 FROM tab2
----
46
64
75

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * - 2 * - - 84 col1 FROM tab0
----
336
336
336

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col1 FROM tab2
----
2346
4928
5025

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * - col1 col2 FROM tab1
----
-4368
-510
-765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6550
SELECT * FROM tab0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6550
SELECT * FROM tab0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + 20 AS col1 FROM tab2
----
71
87
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT DISTINCT + COUNT( * ) AS col2, + 26 FROM tab1
----
3
26

skipif mysql # not compatible
query II rowsort label-6553
SELECT DISTINCT + COUNT ( * ) AS col2, + 26 FROM tab1
----
3
26

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE - col1 + - - 50 * - col2 * - + col0 <= - ( - + col1 ) / col2 * + col0
----

query I rowsort
SELECT DISTINCT + - 42 - + - col1 AS col0 FROM tab1 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
-28
-37
5

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = NULL AND col0 * + 19 IS NOT NULL
----

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

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

query I rowsort
SELECT 44 + 35 AS col1 FROM tab0 AS cor0
----
79
79
79

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

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

query I rowsort
SELECT - ( ( + col1 ) ) * - 1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL col2 * col0, + col0 * col0 AS col0 FROM tab1 AS cor0
----
4896
2601
5015
7225
6188
8281

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - SUM( col0 ) * - + 70 + MAX( DISTINCT - 7 ) FROM tab1
----
15883

skipif mysql # not compatible
query I rowsort label-6564
SELECT - SUM ( col0 ) * - + 70 + MAX ( DISTINCT - 7 ) FROM tab1
----
15883

query I rowsort
SELECT ALL + 65 + 22 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - COUNT( * ) FROM tab2 WHERE ( NULL ) > - col1 * - col2 / - col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT - COUNT ( * ) FROM tab2 WHERE ( NULL ) > - col1 * - col2 / - col0 * + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT DISTINCT CAST( col1 AS SIGNED ) - - + 92 col2 FROM tab1
----
106
139
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6567
SELECT DISTINCT CAST ( col1 AS INTEGER ) - - + 92 col2 FROM tab1
----
106
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col2 + - ( + col1 ) col0 FROM tab2
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL 83 - + COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL 83 - + COUNT ( * ) FROM tab1
----
80

query I rowsort
SELECT + 62 - ( - col0 ) + + col1 FROM tab1
----
127
152
200

query I rowsort
SELECT DISTINCT - 97 * - - col1 AS col0 FROM tab1
----
-1358
-4559
-485

query I rowsort
SELECT + + col2 * - 87 * + ( + 46 ) AS col0 FROM tab2 cor0
----
-160080
-232116
-92046

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT - - 1 AS col2, ( + MIN( DISTINCT 27 ) ) FROM tab2 AS cor0
----
1
27

skipif mysql # not compatible
query II rowsort label-6574
SELECT - - 1 AS col2, ( + MIN ( DISTINCT 27 ) ) FROM tab2 AS cor0
----
1
27

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
-14
-47
-5

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

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

query I rowsort
SELECT DISTINCT col2 * + 57 FROM tab1 AS cor0
----
3363
3876
5472

query II rowsort
SELECT DISTINCT - - 64 AS col0, 61 / 65 * col1 * - 59 FROM tab2 WHERE - - col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL col0 DIV - + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL col0 / - + col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col1 * - 49 FROM tab1
----
2303
245
686

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

query II rowsort
SELECT DISTINCT - col2 * + col1, + col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-1173
46
-3080
64
-3886
75

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 74 <= NULL
----

query I rowsort
SELECT 0 * - - 20 + + - 38 FROM tab2 cor0
----
-38
-38
-38

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( + col2 + - + 3 + + + 56 + + - 83 - + col2 / + col2 ) BETWEEN NULL AND 74 ) )
----

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

query II rowsort
SELECT + 44 * - 3 AS col2, col2 * col2 AS col1 FROM tab0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT ALL 86 + + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 134b082897bbb58dcd98eea3d3593194

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

query I rowsort
SELECT DISTINCT - ( - col1 ) + 61 FROM tab1
----
108
66
75

query I rowsort
SELECT ALL - + 79 FROM tab2 WHERE NOT 1 * + col2 * col1 * - col0 / + 1 + - + 99 IS NULL
----
-79
-79
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - + 25 - SUM( + 82 ) FROM tab2 AS cor0
----
-271

skipif mysql # not compatible
query I rowsort label-6598
SELECT - + 25 - SUM ( + 82 ) FROM tab2 AS cor0
----
-271

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6600
SELECT + - col1 - + + CAST( NULL AS SIGNED ), + col0 + col0 + - + 74 AS col1 FROM tab0 cor0
----
NULL
-44
NULL
100
NULL
120

skipif mysql # not compatible
query II rowsort label-6600
SELECT + - col1 - + + CAST ( NULL AS INTEGER ), + col0 + col0 + - + 74 AS col1 FROM tab0 cor0
----
NULL
-44
NULL
100
NULL
120

query I rowsort
SELECT - 53 * + + col0 + + 44 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 88
----

query II rowsort
SELECT ALL + col1 * col2 AS col1, 1 + - col1 * - 50 FROM tab0 AS cor0
----
210
1051
3807
4051
99
51

query I rowsort
SELECT DISTINCT + + col1 + + - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT - - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE - 55 * + 45 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE - 55 * + 45 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL + 46 * COUNT( * ) - + COUNT( * ) * 58 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + 46 * COUNT ( * ) - + COUNT ( * ) * 58 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 51 <> col2 * - 34 * 17 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - 20 * COUNT( DISTINCT + col0 ) + + - 47 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-6607
SELECT - 20 * COUNT ( DISTINCT + col0 ) + + - 47 FROM tab2 AS cor0
----
-107

query I rowsort
SELECT 85 * col1 FROM tab2
----
4335
5695
6545

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

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

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 WHERE NOT + col0 + - 95 NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( ALL - 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( ALL - 97 ) FROM tab2
----
3

query I rowsort
SELECT ( + 58 ) AS col2 FROM tab0
----
58
58
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT 62 * + MAX( DISTINCT + col0 ) * - ( 16 ) * + 30 AS col1 FROM tab1 cor0
----
-2708160

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT 62 * + MAX ( DISTINCT + col0 ) * - ( 16 ) * + 30 AS col1 FROM tab1 cor0
----
-2708160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT + COUNT( * ) DIV 38 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT + COUNT ( * ) / 38 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 77 + - col0
----

query II rowsort
SELECT + 52 + col0 - + 10 + + + col1 + col0 * + - col1, col1 AS col1 FROM tab1 AS cor0
----
-293
5
-4097
47
-607
14

query II rowsort
SELECT + col2 + + - 23, - col1 * + col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT col1 DIV + col2 + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6620
SELECT col1 / + col2 + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6621
SELECT ALL * FROM tab0 WHERE - - col0 > + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6621
SELECT ALL * FROM tab0 WHERE - - col0 > + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 66 + col0 FROM tab2
----
112
130
141

query I rowsort
SELECT ALL + 3 + col2 AS col0 FROM tab0
----
102
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + + 58 * + col0 col2 FROM tab1
----
-105560
-59160
-98600

query I rowsort
SELECT - 42 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - - COUNT( * ) - + 68 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6627
SELECT - - COUNT ( * ) - + 68 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT - MAX( DISTINCT - 13 ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT DISTINCT - MAX ( DISTINCT - 13 ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
13

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT - 97 - + COUNT( - col1 ) AS col0 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - 97 - + COUNT ( - col1 ) AS col0 FROM tab1
----
-100

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

query I rowsort
SELECT ALL - - 66 * col1 FROM tab1 cor0
----
3102
330
924

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6635
SELECT MIN ( + - col0 ) col0 FROM tab1 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * ( + - 1 ) * + + ( + + 61 ), - col0 col0 FROM tab0 AS cor0
----
-2867
-15
-6039
-97
-610
-87

query I rowsort
SELECT col1 * - 3 * + col0 * - 4 FROM tab1
----
5100
51324
8568

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - col2 * + 43
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT 1 DIV ( - - ( - - col2 ) ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT 1 / ( - - ( - - col2 ) ) FROM tab1
----
0
0
0

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - + col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6645
SELECT MIN ( ALL 55 ) AS col0 FROM tab0 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + - + col1 col2 FROM tab2 AS cor0
----
1523
3297
478

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

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

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

query I rowsort
SELECT 68 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 23 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL + COUNT( 16 ) * 26 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + COUNT ( 16 ) * 26 FROM tab0 AS cor0
----
78

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 50 + + 88 + - 76 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + + + col2 + + 72 FROM tab0
----
-5
104
74

query I rowsort
SELECT ALL + col2 - + - col2 AS col0 FROM tab2
----
116
46
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 28 + + - col2 - + col0 col2 FROM tab1 AS cor0
----
1281
2236
2389

onlyif mysql # DIV for integer division: 
query II rowsort label-6662
SELECT ALL + - col2 * + + col2 * + + col2 + + col2 + col2 DIV col2, 83 DIV - 59 AS col2 FROM tab0 AS cor0
----
-103775
-1
-970199
-1
-989
-1

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL + - col2 * + + col2 * + + col2 + + col2 + col2 / col2, 83 / - 59 AS col2 FROM tab0 AS cor0
----
-103775
-1
-970199
-1
-989
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT 54 + - col1 DIV col1 col0 FROM tab2
----
53
53
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT 54 + - col1 / col1 col0 FROM tab2
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL MIN( - 6 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN + 65 AND + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL MIN ( - 6 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN + 65 AND + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT DISTINCT - 86 DIV col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT - 86 / col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + MAX( col0 ) + COUNT( * ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6667
SELECT + MAX ( col0 ) + COUNT ( * ) AS col1 FROM tab1
----
94

query I rowsort
SELECT ALL - col2 * 28 AS col0 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT COUNT( * ) DIV - 74 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT COUNT ( * ) / - 74 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL - col2 DIV 49 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - col2 / 49 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL + col1 * - 55 + 71 AS col2 FROM tab2
----
-2734
-3614
-4164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - 40 * + 24 col2 FROM tab2
----
-885
-896
-914

query I rowsort
SELECT 52 - col1 AS col0 FROM tab1
----
38
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6674
SELECT DISTINCT * FROM tab2 WHERE CAST( + 13 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6674
SELECT DISTINCT * FROM tab2 WHERE CAST ( + 13 AS INTEGER ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT col0 + + col1 DIV col2 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-6675
SELECT col0 + + col1 / col2 FROM tab0
----
16
89
97

query I rowsort
SELECT ALL - col1 + - 71 AS col0 FROM tab1
----
-118
-76
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 70 col1 FROM tab1
----
117
75
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT DISTINCT 27 DIV + col1 + - col0 AS col1 FROM tab0
----
-15
-70
-86

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT 27 / + col1 + - col0 AS col1 FROM tab0
----
-15
-70
-86

query I rowsort
SELECT DISTINCT 14 + + col1 AS col2 FROM tab0
----
15
35
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT - col2 * col1 + + 41 DIV - col2 col0 FROM tab2
----
-1174
-3081
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT - col2 * col1 + + 41 / - col2 col0 FROM tab2
----
-1174
-3081
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT CAST( NULL AS SIGNED ) - + 55 AS col0 FROM tab2 WHERE ( col0 * 49 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6683
SELECT CAST ( NULL AS INTEGER ) - + 55 AS col0 FROM tab2 WHERE ( col0 * 49 ) IS NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 97 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL 77 * col1 col0 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) - col1 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6685
SELECT ALL 77 * col1 col0 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT MIN( ALL + 1 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT MIN ( ALL + 1 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL MAX( ALL col2 ) AS col0 FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL MAX ( ALL col2 ) AS col0 FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
96

query III rowsort
SELECT * FROM tab1 WHERE col2 > - 12 * + 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + 29 FROM tab1
----
114
120
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT DISTINCT - 78 DIV + col2 + col1 FROM tab2 AS cor0
----
48
66
76

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - 78 / + col2 + col1 FROM tab2 AS cor0
----
48
66
76

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
55

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

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 61 - + col1 IS NULL
----
1
21
81

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE + col0 * - ( col1 ) IN ( - 92 )
----

query I rowsort
SELECT ( + col1 ) + + 70 AS col2 FROM tab0 AS cor0
----
151
71
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL + 45 + + SUM( - col1 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + 45 + + SUM ( - col1 ) FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + col0 - 76 FROM tab2 AS cor0
----
-1
-12
-30

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col1 BETWEEN ( - 83 ) AND 82 * + col1
----
-1
-21
-81

query I rowsort
SELECT - col2 + + 16 AS col1 FROM tab0
----
-31
-83
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT CAST( - 49 AS SIGNED ) * col0 AS col2 FROM tab1
----
-2499
-4165
-4459

skipif mysql # not compatible
query I rowsort label-6705
SELECT CAST ( - 49 AS INTEGER ) * col0 AS col2 FROM tab1
----
-2499
-4165
-4459

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

query I rowsort
SELECT DISTINCT - col1 * + 85 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT ALL + 25 - + col1 FROM tab0
----
-56
24
4

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 46 ) BETWEEN + 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT COUNT( * ) - COUNT( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NOT 20 <= col1
----
0

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT COUNT ( * ) - COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NOT 20 <= col1
----
0

query I rowsort
SELECT - 59 - - col2 FROM tab1 AS cor0
----
0
37
9

query I rowsort
SELECT + col2 + + - col0 + 16 * col0 AS col0 FROM tab0 AS cor0
----
1315
1554
272

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - MAX( ALL 47 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-47

skipif mysql # not compatible
query I rowsort label-6714
SELECT - MAX ( ALL 47 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-47

query I rowsort
SELECT ( - 12 ) FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + col2 IS NOT NULL
----
51
85
91

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

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

query I rowsort
SELECT DISTINCT - col0 * - + 66 AS col0 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT 15 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-1091
-719
-930

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

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL CAST ( MAX ( + - 75 ) AS INTEGER ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT col2 * ( col1 ) + col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT 85 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) < 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + - 70 * - MIN( DISTINCT col2 ) * 54 AS col0 FROM tab2 AS cor0
----
86940

skipif mysql # not compatible
query I rowsort label-6723
SELECT + - 70 * - MIN ( DISTINCT col2 ) * 54 AS col0 FROM tab2 AS cor0
----
86940

query I rowsort
SELECT DISTINCT 85 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-4335
-5695
-6545

query II rowsort
SELECT ALL - + col0 AS col2, + 34 AS col2 FROM tab0 AS cor0
----
-15
34
-87
34
-97
34

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 / + col0 + 43 AND NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT ALL + 92 DIV COUNT( + - col1 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + 92 / COUNT ( + - col1 ) FROM tab2
----
30

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

skipif mysql # not compatible
query I rowsort label-6730
SELECT + COUNT ( * ) / - - 9 FROM tab2
----
0

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( - + 56 + + + col1 + - 65 ) IS NULL
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab0 WHERE + col0 + - - 93 IS NULL
----

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

query I rowsort
SELECT DISTINCT + + 25 + + col2 AS col0 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT ALL col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

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

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

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

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

query I rowsort
SELECT 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( + + col0 ) IN ( - ( + 28 ) + col0 * + col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 63 - + 60 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - COUNT( DISTINCT - + col1 ) * - - COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6742
SELECT - COUNT ( DISTINCT - + col1 ) * - - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-9

query II rowsort
SELECT 1, + ( - col0 ) AS col1 FROM tab2 AS cor0
----
1
-46
1
-64
1
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT + col0 DIV + - col2 + - 33 FROM tab1 cor0
----
-33
-34
-34

skipif mysql # not compatible
query I rowsort label-6745
SELECT + col0 / + - col2 + - 33 FROM tab1 cor0
----
-33
-34
-34

query I rowsort
SELECT 92 * - - col1 AS col1 FROM tab2 AS cor0
----
4692
6164
7084

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - 37 FROM tab2
----
-14
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + 54 + + 19 * + 14 * COUNT( * ) AS col2 FROM tab0
----
852

skipif mysql # not compatible
query I rowsort label-6751
SELECT + 54 + + 19 * + 14 * COUNT ( * ) AS col2 FROM tab0
----
852

query I rowsort
SELECT DISTINCT - 55 * + ( + - col2 ) + + - 26 FROM tab2
----
1239
2174
3164

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

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 AS col2 FROM tab0 WHERE NOT NULL >= + - ( - - col2 )
----

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE + 90 * - + col1 * + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6756
SELECT + - CAST( NULL AS SIGNED ) + - col1 AS col0, - col2 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

skipif mysql # not compatible
query II rowsort label-6756
SELECT + - CAST ( NULL AS INTEGER ) + - col1 AS col0, - col2 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab2 AS cor0 WHERE + ( - ( + col1 ) ) BETWEEN NULL AND + col2 * 78
----

query I rowsort
SELECT - 77 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 > + 47 / + col1
----
-77
-77
-77

query I rowsort
SELECT - - 25 + + ( + + col0 ) + + 54 * ( + col1 + - 83 ) FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT DISTINCT - col0 * - 99 AS col1 FROM tab2 cor0
----
4554
6336
7425

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL 21 DIV - 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL 21 / - 86 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6763
SELECT DISTINCT 88 DIV - col2 AS col0, ( + 85 ) * - + col2 AS col2 FROM tab0
----
-1
-3995
-8
-850
0
-8415

skipif mysql # not compatible
query II rowsort label-6763
SELECT DISTINCT 88 / - col2 AS col0, ( + 85 ) * - + col2 AS col2 FROM tab0
----
-1
-3995
-8
-850
0
-8415

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

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

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

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

query I rowsort
SELECT ALL - col2 * + col2 * - 13 AS col2 FROM tab2 AS cor0
----
20800
43732
6877

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ), - 50 AS col1 FROM tab2 AS cor0
----
9
-50

skipif mysql # not compatible
query II rowsort label-6768
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ), - 50 AS col1 FROM tab2 AS cor0
----
9
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 37 / 56 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL MAX( DISTINCT - col1 ) * COUNT( DISTINCT 49 ) * + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL MAX ( DISTINCT - col1 ) * COUNT ( DISTINCT 49 ) * + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT + col1 * - - 4 AS col2 FROM tab1
----
188
20
56

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

query I rowsort
SELECT col2 + 19 AS col1 FROM tab0
----
118
29
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT - col2 DIV + 39 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT - col2 / + 39 FROM tab2
----
-1
-1
0

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col2 NOT BETWEEN 88 AND NULL
----
46
64
75

query II rowsort
SELECT ALL + 96 AS col2, + 31 AS col0 FROM tab2
----
96
31
96
31
96
31

query I rowsort
SELECT DISTINCT - 59 + + + col0 FROM tab2 cor0
----
-13
16
5

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

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - col1 + - + 47 AS col2 FROM tab1 AS cor0
----
-52
-61
-94

query I rowsort
SELECT + - 60 + + 51 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT COUNT( DISTINCT - - CAST( + + col0 AS SIGNED ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6785
SELECT COUNT ( DISTINCT - - CAST ( + + col0 AS INTEGER ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 AS col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6787
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2, col2, col0 + + CAST( NULL AS DECIMAL ), + + 54 * 14 * - 19 )
----

skipif mysql # not compatible
query III rowsort label-6787
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2, col2, col0 + + CAST ( NULL AS REAL ), + + 54 * 14 * - 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT SUM( + 17 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6788
SELECT SUM ( + 17 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT COUNT( 0 ) FROM tab2 WHERE NOT col0 / + 52 * 37 + - 42 IS NULL AND 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT COUNT ( 0 ) FROM tab2 WHERE NOT col0 / + 52 * 37 + - 42 IS NULL AND 89 IS NULL
----
0

query I rowsort
SELECT DISTINCT 97 - - col0 AS col1 FROM tab1
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT ( COUNT( * ) ) * - - MAX( - col2 ) AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT ( COUNT ( * ) ) * - - MAX ( - col2 ) AS col0 FROM tab0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - ( - col0 )
----

query II rowsort
SELECT + + 29, + col0 AS col1 FROM tab2 AS cor0
----
29
46
29
64
29
75

query I rowsort
SELECT DISTINCT + col2 * 71 AS col0 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT + - col0 DIV col1 * col1 AS col0 FROM tab0 AS cor0
----
-84
-97
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + - col0 / col1 * col1 AS col0 FROM tab0 AS cor0
----
-84
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40, + 15 col1 FROM tab2 cor0
----
40
15
40
15
40
15

query I rowsort
SELECT DISTINCT - - col2 * + 31 AS col0 FROM tab2 AS cor0
----
1240
1798
713

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 61, col1 + - - col2 + 26 col2 FROM tab1 AS cor0
----
-61
136
-61
141
-61
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT CAST( NULL AS SIGNED ) * + 61 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6800
SELECT CAST ( NULL AS INTEGER ) * + 61 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - 23 / col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 1 BETWEEN - - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - COUNT( DISTINCT 36 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6804
SELECT - COUNT ( DISTINCT 36 ) FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * - + col0 col0 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT + + col1 + CAST( col2 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-189
-3726
-98

skipif mysql # not compatible
query I rowsort label-6806
SELECT + + col1 + CAST ( col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT col0 + - - 7 * col0 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) * - 46 * 63 FROM tab2 AS cor0
----
-115880
-168026
-66631

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

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

query I rowsort
SELECT DISTINCT ( - - col1 ) + col0 AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> - + col1 * + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - + col0 * + col2 - - col0 + - - col1 - + col0 / 80 * + 30 * - col0 + + 54
----

query II rowsort
SELECT 77 * - 49 * - col0 AS col2, col1 - + col1 AS col2 FROM tab0
----
328251
0
365981
0
56595
0

query II rowsort
SELECT col0 * - + col1 * + + ( - col0 ), - ( - - 22 ) AS col0 FROM tab2 cor0
----
107916
-22
315392
-22
376875
-22

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

query I rowsort
SELECT - - col2 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 85 AND + col1
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * 86 + - 16 + + + 53 * - - 56 * - col2 AS col1 FROM tab2 AS cor0
----
-125358
-177922
-72666

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

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

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

query I rowsort
SELECT - col1 - - 44 + + + col1 FROM tab1 AS cor0
----
44
44
44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT ALL - 38 DIV + col2 AS col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - 38 / + col2 AS col2 FROM tab2 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT DISTINCT 22 DIV + 60 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6824
SELECT DISTINCT 22 / + 60 col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT ALL - COUNT( * ) AS col2, 46 AS col1 FROM tab2 WHERE col1 = NULL
----
0
46

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL - COUNT ( * ) AS col2, 46 AS col1 FROM tab2 WHERE col1 = NULL
----
0
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT ALL col0 + + col2 DIV + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL col0 + + col2 / + col0 AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6827
SELECT - CAST( + col1 AS SIGNED ) AS col0, col0 - - + col1 col1 FROM tab2
----
-51
97
-67
142
-77
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6827
SELECT - CAST ( + col1 AS INTEGER ) AS col0, col0 - - + col1 col1 FROM tab2
----
-51
97
-67
142
-77
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL col2 DIV - 11 FROM tab2
----
-2
-3
-5

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL col2 / - 11 FROM tab2
----
-2
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - MIN( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT - MIN ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 * ( - 60 ) AS col1 FROM tab0 cor0
----
5220
5820
900

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

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

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

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

query I rowsort
SELECT ALL - 88 * + col0 * + col1 FROM tab2 AS cor0
----
-206448
-433664
-442200

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

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

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

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

query I rowsort
SELECT + - ( - + col1 ) FROM tab0 cor0
----
1
21
81

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT ALL col1 DIV - - 41 + col2 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-11
-33
98

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL col1 / - - 41 + col2 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-11
-33
98

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab2 WHERE col1 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6846
SELECT + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL col2 + + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL col2 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT ( + col2 ) * 85 * col0 FROM tab1
----
416160
426275
525980

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6849
SELECT 3 + 33 - CAST( NULL AS DECIMAL ) + + 39 / + + 64 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT 3 + 33 - CAST ( NULL AS REAL ) + + 39 / + + 64 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 * col0 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT 21 + + + SUM( ALL + 32 ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6851
SELECT 21 + + + SUM ( ALL + 32 ) FROM tab2
----
117

query I rowsort
SELECT + + 95 FROM tab2 WHERE NULL NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT 44 DIV 1 FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6853
SELECT 44 / 1 FROM tab1
----
44
44
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - + COUNT( * ) FROM tab1 WHERE - col0 NOT IN ( ( col0 ), - 26, + 15 * col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6855
SELECT - + COUNT ( * ) FROM tab1 WHERE - col0 NOT IN ( ( col0 ), - 26, + 15 * col1 )
----
-3

query I rowsort
SELECT ALL + col2 * + + 37 AS col1 FROM tab0 AS cor0
----
1739
3663
370

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT 60 BETWEEN - 23 + - 88 AND - + 98
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT ALL - COUNT( * ) * - MAX( + 13 ) DIV 56 * + + 97 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - COUNT ( * ) * - MAX ( + 13 ) / 56 * + + 97 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT col2 + + + 97 + 65 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
1103
3220
481

skipif mysql # not compatible
query I rowsort label-6860
SELECT col2 + + + 97 + 65 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
1103
3220
481

query I rowsort
SELECT 13 FROM tab2 WHERE - - 12 BETWEEN - 40 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL col0 - + col2 + - col0 DIV + col1 AS col2 FROM tab2 cor0
----
16
23
24

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL col0 - + col2 + - col0 / + col1 AS col2 FROM tab2 cor0
----
16
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT - 89 * + 50 * COUNT( * ) + + 87 FROM tab1 AS cor0
----
-13263

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - 89 * + 50 * COUNT ( * ) + + 87 FROM tab1 AS cor0
----
-13263

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6867
SELECT - ( - - col0 ) * + + col1 + + col0 FROM tab2 AS cor0 WHERE CAST( col2 AS DECIMAL ) < + 68
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-6867
SELECT - ( - - col0 ) * + + col1 + + col0 FROM tab2 AS cor0 WHERE CAST ( col2 AS REAL ) < + 68
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT + + col1 DIV - - col1 + - - ( - 38 ) * - + 20 * 82 FROM tab1 AS cor0
----
62321
62321
62321

skipif mysql # not compatible
query I rowsort label-6868
SELECT + + col1 / - - col1 + - - ( - 38 ) * - + 20 * 82 FROM tab1 AS cor0
----
62321
62321
62321

query I rowsort
SELECT ALL + 1 + + col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # DIV for integer division: 
query II rowsort label-6870
SELECT - col0 DIV - ( 85 ) AS col0, col2 + - - col0 col0 FROM tab1 AS cor0
----
0
147
1
144
1
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6870
SELECT - col0 / - ( 85 ) AS col0, col2 + - - col0 col0 FROM tab1 AS cor0
----
0
147
1
144
1
159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT + MAX( ALL - 0 ) * + ( - 77 ) * - ( - ( + - COUNT( ALL + ( col2 ) ) ) ) * + ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT + MAX ( ALL - 0 ) * + ( - 77 ) * - ( - ( + - COUNT ( ALL + ( col2 ) ) ) ) * + ( - COUNT ( * ) ) FROM tab0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL < + 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT + + COUNT( * ) + + + 6 AS col0 FROM tab1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT + + COUNT ( * ) + + + 6 AS col0 FROM tab1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT ALL 1 + - 71 + + 84 FROM tab0 WHERE ( NULL IS NULL )
----
14
14
14

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + + 19 FROM tab2 AS cor0
----
-27
-45
-56

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) / - col2 - - col1 NOT BETWEEN - 40 AND + + 58
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT + col2 DIV + col1 + + + col0 * 26 FROM tab2 AS cor0
----
1196
1664
1950

skipif mysql # not compatible
query I rowsort label-6884
SELECT + col2 / + col1 + + + col0 * 26 FROM tab2 AS cor0
----
1196
1664
1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * - col2 + col0 col1 FROM tab0 cor0
----
18357
57120
9700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6886
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + col1 + - + 27 + - CAST( - col0 AS SIGNED ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6886
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + col1 + - + 27 + - CAST ( - col0 AS INTEGER ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 91 - - COUNT( - col1 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 91 - - COUNT ( - col1 ) FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT - col1 - CAST( 52 AS SIGNED ) FROM tab1 AS cor0 WHERE col0 + - col0 * + 56 IS NOT NULL
----
-57
-66
-99

skipif mysql # not compatible
query I rowsort label-6889
SELECT - col1 - CAST ( 52 AS INTEGER ) FROM tab1 AS cor0 WHERE col0 + - col0 * + 56 IS NOT NULL
----
-57
-66
-99

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

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

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

query I rowsort
SELECT 44 * - - col2 - col0 AS col1 FROM tab1 cor0
----
2511
2901
4173

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL + COUNT( * ) * + 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + COUNT ( * ) * + 34 FROM tab1
----
102

query II rowsort
SELECT ( - + 21 ) * + + col2, 19 + - col1 + - col2 * 8 AS col2 FROM tab1
----
-1239
-458
-1428
-572
-2016
-763

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT DISTINCT 70 DIV + + ( + ( col0 ) ) FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT 70 / + + ( + ( col0 ) ) FROM tab0
----
0
4

query I rowsort
SELECT 22 * 82 * + col2 * - col0 FROM tab2
----
-1908632
-4618240
-7847400

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

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

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

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

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

query I rowsort
SELECT 92 + + - col0 FROM tab1 AS cor0
----
1
41
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - + 95 ) * + col2 AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT ALL + MIN( DISTINCT + 60 ) * - + CAST( - + ( + ( - - 97 ) ) AS SIGNED ) FROM tab1 AS cor0
----
5820

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + MIN ( DISTINCT + 60 ) * - + CAST ( - + ( + ( - - 97 ) ) AS INTEGER ) FROM tab1 AS cor0
----
5820

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

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

query II rowsort
SELECT DISTINCT col2 + - 67 AS col2, 78 AS col2 FROM tab1
----
-8
78
1
78
29
78

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

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

query I rowsort
SELECT - col1 * - 20 * - col2 AS col0 FROM tab2
----
-23460
-61600
-77720

query II rowsort
SELECT ALL - col0, - col0 / col1 AS col1 FROM tab0 WHERE NOT 10 = NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 89 * + col1 * + col2 <= NULL
----

query I rowsort
SELECT 31 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-2085
-4065
-5594

query I rowsort
SELECT DISTINCT col2 * - - 77 + col1 * - - 8 AS col1 FROM tab1
----
4583
5612
7504

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6916
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 97 + - - col2 - - - col0 + col2 AND + col1 * + 59 + - + col1 * + + 91
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + COUNT( * ) * MAX( col0 ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6920
SELECT + COUNT ( * ) * MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL - COUNT( * ) * 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL - COUNT ( * ) * 25 FROM tab2 AS cor0
----
-75

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

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

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

query I rowsort
SELECT - col2 * + - ( + + 90 ) * - col2 + - 74 AS col1 FROM tab0
----
-198884
-882164
-9074

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

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

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

query I rowsort
SELECT ALL - 96 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND - - col0 + + + col0
----

query II rowsort
SELECT DISTINCT - 33, col2 FROM tab0
----
-33
10
-33
47
-33
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT - 99 DIV + col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6929
SELECT - 99 / + col2 FROM tab2
----
-1
-2
-4

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

query I rowsort
SELECT DISTINCT col1 * - 21 + + col1 + 74 FROM tab0 AS cor0
----
-1546
-346
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT 63 AS col0, - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
63
-121

skipif mysql # not compatible
query II rowsort label-6932
SELECT 63 AS col0, - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
63
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + 66 + + COUNT( * ) * - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-420

skipif mysql # not compatible
query I rowsort label-6934
SELECT + 66 + + COUNT ( * ) * - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-420

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

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

query I rowsort
SELECT ALL - ( - col1 ) * + col2 + col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

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

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

query I rowsort
SELECT DISTINCT - + 24 * + col2 FROM tab1 cor0
----
-1416
-1632
-2304

query I rowsort
SELECT ALL col1 + + 31 FROM tab2 AS cor0
----
108
82
98

query I rowsort
SELECT DISTINCT + + 57 * + ( + 10 ) + + col1 + - col0 + + - 34 AS col0 FROM tab2 cor0
----
528
541
549

query I rowsort
SELECT ALL - col0 + 38 + + 68 + - 41 * col0 * + col0 AS col2 FROM tab2
----
-167894
-230594
-86696

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT MIN( ALL 52 ) AS col0 FROM tab0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT MIN ( ALL 52 ) AS col0 FROM tab0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT DISTINCT CAST( + 55 AS SIGNED ) - - col0 FROM tab0
----
142
152
70

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT CAST ( + 55 AS INTEGER ) - - col0 FROM tab0
----
142
152
70

query I rowsort
SELECT + col1 + + 65 - 89 + - col1 AS col1 FROM tab2
----
-24
-24
-24

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6950
SELECT + CAST ( col1 AS INTEGER ) FROM tab1 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) = NULL
----
0

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

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

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

query I rowsort
SELECT - 99 * + col2 AS col2 FROM tab0 cor0
----
-4653
-9801
-990

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

query I rowsort
SELECT 63 * + - col1 FROM tab0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + COUNT( * ) * 89 * + MAX( + + col2 ) FROM tab1
----
25632

skipif mysql # not compatible
query I rowsort label-6957
SELECT + COUNT ( * ) * 89 * + MAX ( + + col2 ) FROM tab1
----
25632

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

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

query II rowsort
SELECT ALL + col0, 27 AS col1 FROM tab2
----
46
27
64
27
75
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT 42 col0, ( COUNT( * ) ) col1 FROM tab1
----
42
3

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

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

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

query I rowsort
SELECT + ( - 34 ) FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - col2 / col0 AS col1 FROM tab1 AS cor0 WHERE - col2 BETWEEN + col1 AND NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL col2 + - col2 DIV + col2 col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6966
SELECT ALL col2 + - col2 / + col2 col0 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT ALL - 54 + + + COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
-51
-3

skipif mysql # not compatible
query II rowsort label-6967
SELECT ALL - 54 + + + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
-51
-3

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

query I rowsort
SELECT + - col2 + - - 11 AS col2 FROM tab0 AS cor0
----
-36
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - MAX( ALL col2 ) + + ( + + COUNT( ALL 39 ) ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6970
SELECT - MAX ( ALL col2 ) + + ( + + COUNT ( ALL 39 ) ) AS col2 FROM tab1 AS cor0
----
-93

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

query II rowsort
SELECT ALL 52 * + col2 + - + col0 * + 81 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
-2709
99
-6527
10
1229
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT SUM( 28 ) * 29 AS col0 FROM tab0
----
2436

skipif mysql # not compatible
query I rowsort label-6973
SELECT SUM ( 28 ) * 29 AS col0 FROM tab0
----
2436

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT MAX( ALL + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6975
SELECT MAX ( ALL + + col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6976
SELECT * FROM tab1 WHERE + CAST( - + col0 AS SIGNED ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-6976
SELECT * FROM tab1 WHERE + CAST ( - + col0 AS INTEGER ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL 46 * + - 57 - - 75 * + + COUNT( * ) * + 30 AS col0 FROM tab0
----
4128

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL 46 * + - 57 - - 75 * + + COUNT ( * ) * + 30 AS col0 FROM tab0
----
4128

query I rowsort
SELECT + col2 * - col2 + - col0 - + - col2 FROM tab1 AS cor0
----
-3507
-4647
-9171

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT - 86 AS col0, MIN( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-81

skipif mysql # not compatible
query II rowsort label-6979
SELECT - 86 AS col0, MIN ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-81

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

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT MAX ( ALL 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT - COUNT( * ) DIV COUNT( * ) * + 77 AS col1 FROM tab0, tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6981
SELECT - COUNT ( * ) / COUNT ( * ) * + 77 AS col1 FROM tab0, tab0 AS cor0
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 88 BETWEEN 47 AND - + 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT DISTINCT + col0 * - - ( 2 ) + + col0 - 52 + + + 2 * + - CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 65 + + col0 IS NULL
----
188
294
307

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + col0 * - - ( 2 ) + + col0 - 52 + + + 2 * + - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 65 + + col0 IS NULL
----
188
294
307

onlyif mysql # DIV for integer division: 
query II rowsort label-6985
SELECT ALL - - col2, 18 DIV - col1 col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6985
SELECT ALL - - col2, 18 / - col1 col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 31 BETWEEN NULL AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT + - 53 DIV + - 34 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - 53 / + - 34 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6989
SELECT - COUNT( * ) col1, + 85 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) = - col0
----
0
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6989
SELECT - COUNT ( * ) col1, + 85 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) = - col0
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - MAX( - 23 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6990
SELECT ALL - MAX ( - 23 ) col1 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT ( col0 ) DIV - col1 + - col0 * + 27 FROM tab2
----
-1242
-1728
-2026

skipif mysql # not compatible
query I rowsort label-6991
SELECT ( col0 ) / - col1 + - col0 * + 27 FROM tab2
----
-1242
-1728
-2026

query I rowsort
SELECT ALL + + col2 * + - col2 + + - 89 FROM tab0 AS cor0
----
-189
-2298
-9890

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

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

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

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

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

query I rowsort
SELECT ALL - ( - col2 ) * - + col1 * col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

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

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

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

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

query I rowsort
SELECT col2 * col1 * + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
123240
225446
27002

query I rowsort
SELECT DISTINCT - 56 + - 17 AS col0 FROM tab1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - - col0
----

query I rowsort
SELECT - - col1 FROM tab2 WHERE NULL <> + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT + 82 - - COUNT( DISTINCT col1 ) * - - COUNT( DISTINCT - - col2 ) * - COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT + 82 - - COUNT ( DISTINCT col1 ) * - - COUNT ( DISTINCT - - col2 ) * - COUNT ( * ) FROM tab2
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7005
SELECT ALL * FROM tab1 WHERE NULL < + + CAST( NULL AS DECIMAL ) * col2 - ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7005
SELECT ALL * FROM tab1 WHERE NULL < + + CAST ( NULL AS REAL ) * col2 - ( + col2 )
----

query I rowsort
SELECT DISTINCT col2 - 34 + - - col1 FROM tab2
----
40
83
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT ALL - col2 DIV + 78 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - col2 / + 78 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT - 5 * CAST( + + 61 AS SIGNED ) - col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3786
-4929
-9521

skipif mysql # not compatible
query I rowsort label-7009
SELECT - 5 * CAST ( + + 61 AS INTEGER ) - col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3786
-4929
-9521

query II rowsort
SELECT DISTINCT + + 52, col2 * - + col1 AS col0 FROM tab0 AS cor0
----
52
-210
52
-3807
52
-99

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

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT + 93 * + 12 * - + col0 / - col1 * - col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT + col1 * col0 * - + 57 FROM tab1
----
-24225
-243789
-40698

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7016
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, 66 AS col0 FROM tab0 AS cor0
----
NULL
66
NULL
66
NULL
66

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col1, 66 AS col0 FROM tab0 AS cor0
----
NULL
66
NULL
66
NULL
66

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7017
SELECT DISTINCT - MAX ( ALL - CAST ( - col1 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-47

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 23 BETWEEN 67 AND NULL )
----

query I rowsort
SELECT DISTINCT + 81 * + 38 FROM tab0
----
3078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + 63 + + MIN( ALL - + ( + + 81 ) ) * - + COUNT( * ) - - - MAX( + 42 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 63 + + MIN ( ALL - + ( + + 81 ) ) * - + COUNT ( * ) - - - MAX ( + 42 ) FROM tab0
----
264

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN + - col2 / - + col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + + ( col2 ) * col2 col0 FROM tab0
----
194
2303
9895

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

query II rowsort
SELECT + col2 AS col1, + 55 FROM tab2
----
23
55
40
55
58
55

query I rowsort
SELECT col0 * + col1 + + ( + 56 ) FROM tab2 WHERE ( col0 * - col1 / + col0 ) IS NOT NULL OR - 24 + col0 IS NOT NULL
----
2402
4984
5081

query I rowsort
SELECT DISTINCT + 28 * - - col0 FROM tab0
----
2436
2716
420

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

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

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

query I rowsort
SELECT ALL - 23 * - col0 + - 21 FROM tab1 AS cor0
----
1152
1934
2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL + 54 * + 62 / - CAST( + - col0 AS SIGNED ) * col2 / col1 FROM tab2 AS cor0 WHERE 79 + - 94 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + 54 * + 62 / - CAST ( + - col0 AS INTEGER ) * col2 / col1 FROM tab2 AS cor0 WHERE 79 + - 94 IS NULL
----

query I rowsort
SELECT DISTINCT 22 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
22

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT + + 59 FROM tab0 cor0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT DISTINCT + - MAX( DISTINCT + CAST( col0 AS SIGNED ) ) + + 32 AS col2 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT + - MAX ( DISTINCT + CAST ( col0 AS INTEGER ) ) + + 32 AS col2 FROM tab0 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) * + 11 - - col0 + - - ( - col2 ) * 18 * + 93 + col2 col2 FROM tab1
----
-113156
-160403
-98567

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

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

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

query I rowsort
SELECT ALL - - 25 FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + 68 ) IN ( - col1 + 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL + MIN( col0 ) * MIN( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-3542

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + MIN ( col0 ) * MIN ( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-3542

query I rowsort
SELECT DISTINCT col1 * + - 4 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT ALL col0 AS col2, - CAST( col0 AS SIGNED ) FROM tab0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL col0 AS col2, - CAST ( col0 AS INTEGER ) FROM tab0
----
15
-15
87
-87
97
-97

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7049
SELECT ALL col0, + col1 DIV - - ( + + col0 ) FROM tab2 AS cor0
----
46
1
64
1
75
0

skipif mysql # not compatible
query II rowsort label-7049
SELECT ALL col0, + col1 / - - ( + + col0 ) FROM tab2 AS cor0
----
46
1
64
1
75
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7051
SELECT - ( - + MAX ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT - MIN( - + CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7052
SELECT - MIN ( - + CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - ( - col1 ) col2 FROM tab2 AS cor0
----
2550
3350
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT ALL + - col0 DIV col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + - col0 / col2 FROM tab2 cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 WHERE - + col2 = + 8
----

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

skipif mysql # not compatible
query I rowsort label-7056
SELECT - COUNT ( * ) * - COUNT ( ALL + col0 ) + - CAST ( + + 86 AS INTEGER ) * + - 23 FROM tab0
----
1987

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

query II rowsort
SELECT DISTINCT - col2 * - - col2, + col2 AS col2 FROM tab0 AS cor0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT DISTINCT ( ( - 92 ) ) FROM tab0 AS cor0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + + SUM( DISTINCT + - col0 ) + - + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-7061
SELECT + + SUM ( DISTINCT + - col0 ) + - + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-202

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL COUNT( DISTINCT - 86 ) - 48 AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL COUNT ( DISTINCT - 86 ) - 48 AS col1 FROM tab1
----
-47

query I rowsort
SELECT 93 * + - 29 FROM tab2
----
-2697
-2697
-2697

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - SUM( ALL + col0 ) * - + COUNT( * ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-7068
SELECT - SUM ( ALL + col0 ) * - + COUNT ( * ) AS col2 FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + MAX( DISTINCT ( + - 57 ) ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7069
SELECT + MAX ( DISTINCT ( + - 57 ) ) AS col1 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col1 FROM tab0
----
225
7569
9409

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

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + ( SUM ( - ( + - col1 ) ) ) FROM tab0
----
103

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 86 <= - 53 * - - ( - col0 )
----

query I rowsort
SELECT ALL + 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + 54 * + + col1 AS col1 FROM tab1 cor0
----
2538
270
756

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + 74 * - col0 / + col0 / + - col2 - + col1 IN ( + + ( - col2 ) + - 72, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL ( 90 ) * + CAST( col2 AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
2047
3560
5162

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL ( 90 ) * + CAST ( col2 AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7078
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col0 + + - CAST( + - 13 AS SIGNED ) * 20, - ( + - 70 ), 74 )
----

skipif mysql # not compatible
query III rowsort label-7078
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col0 + + - CAST ( + - 13 AS INTEGER ) * 20, - ( + - 70 ), 74 )
----

query I rowsort
SELECT DISTINCT + 31 + + 57 FROM tab2 cor0
----
88

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7081
SELECT ALL - CAST( + + 0 AS SIGNED ) + - - 28 DIV - 77 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - CAST ( + + 0 AS INTEGER ) + - - 28 / - 77 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT + ( + col1 ) * - col1 + + col1 FROM tab0 AS cor0
----
-420
-6480
0

query I rowsort
SELECT ALL - 61 + - - col1 AS col0 FROM tab0
----
-40
-60
20

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

query I rowsort
SELECT + col2 * + + col1 + + 47 AS col2 FROM tab2
----
1220
3127
3933

query I rowsort
SELECT - col0 * 3 * - 56 FROM tab1
----
14280
15288
8568

query I rowsort
SELECT + ( + - 41 ) AS col2 FROM tab2
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7089
SELECT CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * ( + + 38 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * ( + + 38 ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7091
SELECT CAST( NULL AS SIGNED ), MAX( ALL - - ( + - ( + col0 ) ) ) AS col2 FROM tab0
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-7091
SELECT CAST ( NULL AS INTEGER ), MAX ( ALL - - ( + - ( + col0 ) ) ) AS col2 FROM tab0
----
NULL
-15

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL - CAST( MIN( 81 ) AS SIGNED ) * - 1 + + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - CAST ( MIN ( 81 ) AS INTEGER ) * - 1 + + COUNT ( * ) AS col2 FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT DISTINCT + + 30 + + + 66 + - + 54 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + + 30 + + + 66 + - + 54 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7097
SELECT ALL + - col1 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NULL <= col1 + + 5 * + - col0 + + 19
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7097
SELECT ALL + - col1 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NULL <= col1 + + 5 * + - col0 + + 19
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT DISTINCT + - col0 + - ( CAST( - 92 AS SIGNED ) ) AS col2 FROM tab2 WHERE + col1 / + - 26 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + - col0 + - ( CAST ( - 92 AS INTEGER ) ) AS col2 FROM tab2 WHERE + col1 / + - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT DISTINCT col2 - - - col2 DIV + - col2 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT col2 - - - col2 / + - col2 AS col1 FROM tab1
----
60
69
97

query I rowsort
SELECT + 66 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT DISTINCT - - 27 - - col1 DIV + - col1 + col1 * col2 * + - col1 FROM tab0 AS cor0
----
-308341
-4384
-73

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - - 27 - - col1 / + - col1 + col1 * col2 * + - col1 FROM tab0 AS cor0
----
-308341
-4384
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT MIN( ALL - col1 ) + 65 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT MIN ( ALL - col1 ) + 65 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT + 16 * col1 + - col0 + + col2 FROM tab1 cor0
----
269
54
729

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT + col1 DIV + + 5 FROM tab1
----
1
2
9

skipif mysql # not compatible
query I rowsort label-7106
SELECT + col1 / + + 5 FROM tab1
----
1
2
9

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

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

query I rowsort
SELECT ALL + ( + 72 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT SUM( + col2 ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7109
SELECT SUM ( + col2 ) col2 FROM tab2
----
121

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab0 AS cor0
----
-210
-3807
-99

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

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 19 * + COUNT ( * ) AS col0 FROM tab0
----
-57

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 * col2 + ( - 80 ) AS col0 FROM tab2
----
1520
3284
449

query I rowsort
SELECT + 8 * col2 AS col1 FROM tab2
----
184
320
464

query I rowsort
SELECT ALL col1 + 59 FROM tab2
----
110
126
136

query I rowsort
SELECT - 9 + - col0 * col1 FROM tab0
----
-106
-1224
-1836

query I rowsort
SELECT DISTINCT col1 + 27 FROM tab1
----
32
41
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT col0 * - col2 AS col1 FROM tab2 WHERE NOT ( col2 ) <= 82 * + col0 + 43 * CAST( + CAST( col1 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7118
SELECT col0 * - col2 AS col1 FROM tab2 WHERE NOT ( col2 ) <= 82 * + col0 + 43 * CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 37 + + 94 ) BETWEEN 95 * col2 AND ( + col2 - - 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 47 col0 FROM tab2 WHERE 57 * col0 + 11 / col0 IN ( 8 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 44 + 25 * - COUNT( 30 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7121
SELECT 44 + 25 * - COUNT ( 30 ) FROM tab0
----
-31

query I rowsort
SELECT + 33 AS col0 FROM tab0 WHERE NOT + 52 < + col0 * + col2 + col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7123
SELECT COUNT ( * ) * - 67 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col1 ) AND col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 27 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 30 / - 63 + + col0 FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT ( col1 / col1 + col1 ) < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT DISTINCT - 17 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - 17 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * 70 FROM tab0 WHERE col2 IS NOT NULL
----
-1050
-6090
-6790

query III rowsort
SELECT * FROM tab1 WHERE - 40 BETWEEN col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL + COUNT( * ) * + 14 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + COUNT ( * ) * + 14 FROM tab1
----
42

query I rowsort
SELECT ALL - 58 + col0 FROM tab0
----
-43
29
39

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( col1 ) * col1 + col2 NOT BETWEEN col1 * col0 AND ( 31 )
----
51
85
91

query I rowsort
SELECT ( + 71 ) * 4 FROM tab0
----
284
284
284

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - COUNT( * ) * - 13 AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7134
SELECT - COUNT ( * ) * - 13 AS col0 FROM tab1
----
39

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

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

query I rowsort
SELECT + 97 + + col2 FROM tab1 WHERE + col2 IS NOT NULL
----
156
165
193

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT DISTINCT 73 DIV + 81 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT 73 / + 81 AS col1 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT 45 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL 91 + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL 91 + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT 1 * + 70 AS col1 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT ALL + 88 DIV MIN( ALL ( + col2 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + 88 / MIN ( ALL ( + col2 ) ) FROM tab1
----
1

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / - 8 NOT BETWEEN 93 AND ( NULL )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 60 / 46 ) >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT - + MIN( + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - + MIN ( + col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL - MAX( ALL col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - MAX ( ALL col1 ) FROM tab0 AS cor0
----
-81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT - 77 DIV - + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7153
SELECT - 77 / - + col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT COUNT( * ) * + ( 86 ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN - col2 AND - 14
----
258

skipif mysql # not compatible
query I rowsort label-7154
SELECT COUNT ( * ) * + ( 86 ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN - col2 AND - 14
----
258

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT ( MAX ( DISTINCT + 25 ) ) AS col1 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT SUM( col1 ) * 61 FROM tab1
----
4026

skipif mysql # not compatible
query I rowsort label-7158
SELECT SUM ( col1 ) * 61 FROM tab1
----
4026

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT - col2 DIV - - 91 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT - col2 / - - 91 FROM tab1
----
-1
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT ALL col0 + + + CAST( + ( col0 ) AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL col0 + + + CAST ( + ( col0 ) AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7164
SELECT ALL + CAST( NULL AS DECIMAL ) col2 FROM tab2 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-7164
SELECT ALL + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT col2 * - 63 AS col0 FROM tab2
----
-1449
-2520
-3654

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 35 * col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 39 NOT BETWEEN ( NULL ) AND + col2 ) OR NOT 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 19 )
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 / - - 28 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - - ( + col1 ) + - 2 - - col2 FROM tab1 AS cor0
----
108
113
62

query I rowsort
SELECT DISTINCT + col2 - - col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - - col0 AND NULL
----

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

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

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

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL BETWEEN col1 * + - col0 + col2 * - col1 AND 5
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7179
SELECT ALL - col2 DIV + 6 AS col0, + 51 * + 70 * 20 AS col1 FROM tab2
----
-3
71400
-6
71400
-9
71400

skipif mysql # not compatible
query II rowsort label-7179
SELECT ALL - col2 / + 6 AS col0, + 51 * + 70 * 20 AS col1 FROM tab2
----
-3
71400
-6
71400
-9
71400

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

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

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

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

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

query I rowsort
SELECT 89 + + col1 * + + col1 AS col0 FROM tab1 cor0
----
114
2298
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7184
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - - 96 * - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7184
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - - 96 * - CAST ( + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) * col1 AS col1 FROM tab2
----
-119646
-336675
-379456

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

query I rowsort
SELECT - 49 + + 24 FROM tab2 WHERE NOT ( 53 ) IS NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT ALL + 77 DIV + - COUNT( * ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + 77 / + - COUNT ( * ) AS col0 FROM tab2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7189
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT IN ( + col1 * col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-7189
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT IN ( + col1 * col1 * - col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - - 70 FROM tab1 cor0
----
70

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

skipif mysql # not compatible
query I rowsort label-7193
SELECT - COUNT ( 1 ) FROM tab2 AS cor0
----
-3

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT COUNT( * ) * - 91 AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT COUNT ( * ) * - 91 AS col0 FROM tab1
----
-273

query I rowsort
SELECT - col1 + 89 AS col0 FROM tab0 WHERE NOT ( NOT col1 > - col0 * + col2 * - col1 + + col0 )
----

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

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

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

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

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

query I rowsort
SELECT 49 * - ( - col2 ) AS col0 FROM tab2
----
1127
1960
2842

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7205
SELECT + CAST( NULL AS SIGNED ), - col1 * + + col0 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
-125375
NULL
-13669292
NULL
-959616

skipif mysql # not compatible
query II rowsort label-7205
SELECT + CAST ( NULL AS INTEGER ), - col1 * + + col0 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
-125375
NULL
-13669292
NULL
-959616

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT - + COUNT( * ) + MAX( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7207
SELECT - + COUNT ( * ) + MAX ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + 97 + + COUNT( * ) AS col0 FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-7208
SELECT + 97 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + COUNT( * ) + - + COUNT( * ) * 36 col2 FROM tab0 AS cor0
----
-105

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 LEFT OUTER JOIN tab1 cor1 ON - ( + CAST( - 17 AS SIGNED ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7211
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 LEFT OUTER JOIN tab1 cor1 ON - ( + CAST ( - 17 AS INTEGER ) ) IS NULL
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 62 / - col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + 66 * col2 * + col1 FROM tab1 AS cor0
----
19470
210936
88704

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT - COUNT( * ) * - + 9, + 80 AS col1 FROM tab0 AS cor0
----
27
80

skipif mysql # not compatible
query II rowsort label-7216
SELECT - COUNT ( * ) * - + 9, + 80 AS col1 FROM tab0 AS cor0
----
27
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7217
SELECT - - col1 DIV - 30 + - col2 - + CAST( + - 33 AS SIGNED ) FROM tab0 AS cor0
----
-16
-66
23

skipif mysql # not compatible
query I rowsort label-7217
SELECT - - col1 / - 30 + - col2 - + CAST ( + - 33 AS INTEGER ) FROM tab0 AS cor0
----
-16
-66
23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 30 col1 FROM tab0 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT + - 79 * + COUNT( * ) + + 62 + + + ( 7 ) + - ( - MAX( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-173

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT + - 79 * + COUNT ( * ) + + 62 + + + ( 7 ) + - ( - MAX ( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab0 WHERE col1 IS NULL
----

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

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

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

query I rowsort
SELECT + 35 * - col0 + + ( - - col1 ) AS col2 FROM tab2
----
-1559
-2163
-2558

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT 30 + + col0 DIV - - col1 col2 FROM tab2
----
30
30
31

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

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

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

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + SUM ( + - col1 ) FROM tab2
----
-195

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <> col0 * - col1
----

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

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

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

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab0
----
2726
5742
580

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7234
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 / col1 BETWEEN ( - col0 * - - CAST( - + 60 AS DECIMAL ) / col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7234
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 / col1 BETWEEN ( - col0 * - - CAST ( - + 60 AS REAL ) / col0 ) AND NULL
----

query I rowsort
SELECT - + 4 * - + col0 AS col1 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL - + col0 * + 93 AS col2 FROM tab1 AS cor0
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT NULL <= ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL <= ( 88 )
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 63 * 53 * + + col0 * ( - - ( + col1 ) ) ) NOT BETWEEN ( NULL ) AND - 69
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 + - 38 BETWEEN - + col2 AND col1 * ( + + 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT 98 + - + col0 DIV + 84 FROM tab0
----
97
97
98

skipif mysql # not compatible
query I rowsort label-7240
SELECT 98 + - + col0 / + 84 FROM tab0
----
97
97
98

query I rowsort
SELECT DISTINCT ( 21 ) FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT DISTINCT col2 DIV - 1 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT col2 / - 1 AS col2 FROM tab1
----
-59
-68
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + COUNT( DISTINCT 64 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7244
SELECT + COUNT ( DISTINCT 64 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * ( - + col1 ) * + + col0 col0 FROM tab2
----
227562
478016
487425

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT DISTINCT SUM( ALL 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT SUM ( ALL 91 ) FROM tab0
----
273

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

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

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

query I rowsort
SELECT ALL - 32 * col2 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7250
SELECT ALL * FROM tab2 WHERE NOT - + CAST( 54 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7250
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( 54 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 87 * + - col2 FROM tab1
----
-5133
-5916
-8352

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 69 * + 55
----

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

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

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

query II rowsort
SELECT ALL - col0 * - - col0 + - - col0 AS col0, - col0 + col0 FROM tab0 AS cor0
----
-210
0
-7482
0
-9312
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7256
SELECT * FROM tab1 WHERE - 15 * + col0 * - - ( + + 5 ) + + - col2 IN ( col1, + ( - CAST( NULL AS SIGNED ) ) - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7256
SELECT * FROM tab1 WHERE - 15 * + col0 * - - ( + + 5 ) + + - col2 IN ( col1, + ( - CAST ( NULL AS INTEGER ) ) - - col2 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7258
SELECT DISTINCT - col2 + - 13 * - col2 + + + 20 AS col2, col2 DIV - + col0 FROM tab0 AS cor0
----
1208
-1
140
0
584
-3

skipif mysql # not compatible
query II rowsort label-7258
SELECT DISTINCT - col2 + - 13 * - col2 + + + 20 AS col2, col2 / - + col0 FROM tab0 AS cor0
----
1208
-1
140
0
584
-3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL > + 75
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT + MAX( ALL col0 ) AS col2, - COUNT( * ) * + - COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
75
9

skipif mysql # not compatible
query II rowsort label-7261
SELECT + MAX ( ALL col0 ) AS col2, - COUNT ( * ) * + - COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
75
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT ALL + ( col0 ) + - CAST( + col1 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + ( col0 ) + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-13
-5
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7264
SELECT ALL * FROM tab0 WHERE NOT - col1 + col1 + + col0 + col1 + col2 / + col2 * + CAST( + col1 AS SIGNED ) < + - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7264
SELECT ALL * FROM tab0 WHERE NOT - col1 + col1 + + col0 + col1 + col2 / + col2 * + CAST ( + col1 AS INTEGER ) < + - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7265
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7265
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - col1 AS REAL ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT + 74 * col2 - - 17 FROM tab2 AS cor0
----
1719
2977
4309

query II rowsort
SELECT ALL col0, - 85 FROM tab0
----
15
-85
87
-85
97
-85

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

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

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

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

skipif mysql # not compatible
query III rowsort label-7272
SELECT ALL * FROM tab0 AS cor0 WHERE ( + CAST ( + col0 AS REAL ) * + - col2 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + 3 * + col0 FROM tab0 AS cor0
----
261
291
45

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

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

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

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

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

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

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

query I rowsort
SELECT + 15 * + col2 AS col2 FROM tab1
----
1020
1440
885

query I rowsort
SELECT ALL - 6 / + col0 * col2 / - col2 - - col2 AS col2 FROM tab0 WHERE NOT 16 * - - col0 BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 * col2 + 93 AS col2 FROM tab2 AS cor0
----
1151
2653
4443

query II rowsort
SELECT - + 61 AS col0, + col1 FROM tab1 AS cor0 WHERE + 7 BETWEEN + ( col1 ) + ( - ( + col2 ) ) + + + col1 AND + - 29
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7284
SELECT COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT SUM( ALL col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT SUM ( ALL col1 ) AS col1 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query II rowsort label-7287
SELECT DISTINCT + col2 + - 49 DIV 97 col1, col1 col1 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7287
SELECT DISTINCT + col2 + - 49 / 97 col1, col1 col1 FROM tab0
----
10
21
47
81
99
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7289
SELECT ALL MIN( DISTINCT col2 ) DIV - 43 AS col0, 22 AS col2 FROM tab2 AS cor0
----
0
22

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL MIN ( DISTINCT col2 ) / - 43 AS col0, 22 AS col2 FROM tab2 AS cor0
----
0
22

query I rowsort
SELECT - 11 - - col0 FROM tab0 AS cor0
----
4
76
86

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

query I rowsort
SELECT col2 * + ( col1 ) * - - 26 FROM tab0
----
2574
5460
98982

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT 62, + SUM( DISTINCT - + col2 ) AS col0 FROM tab2
----
62
-121

skipif mysql # not compatible
query II rowsort label-7294
SELECT 62, + SUM ( DISTINCT - + col2 ) AS col0 FROM tab2
----
62
-121

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

skipif mysql # not compatible
query I rowsort label-7295
SELECT ( + MAX ( - + col0 ) ) FROM tab0
----
-15

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7297
SELECT ALL MIN( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL MIN ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL - + MAX( ALL - 2 ) * + SUM( + col1 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
390

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - + MAX ( ALL - 2 ) * + SUM ( + col1 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
390

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 * + 12 AS col1 FROM tab1 AS cor0
----
110592
41772
55488

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

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 + col0 FROM tab1 cor0
----
-4831
-4925
-6050

query I rowsort
SELECT - + 87 + col2 AS col2 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT ALL - - col2 * - + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 WHERE NOT - 97 NOT IN ( 84 + - + col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT ALL + col2 + - 72 DIV + ( col2 ) FROM tab2 AS cor0
----
20
39
57

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + col2 + - 72 / + ( col2 ) FROM tab2 AS cor0
----
20
39
57

query I rowsort
SELECT col1 + + col2 + + col2 * col0 FROM tab0
----
833
901
9703

query I rowsort
SELECT - col0 * + - 76 AS col0 FROM tab0
----
1140
6612
7372

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

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

query I rowsort
SELECT ALL - col1 * + - 65 FROM tab1
----
3055
325
910

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - COUNT( * ) * 45 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-7312
SELECT - COUNT ( * ) * 45 FROM tab1
----
-135

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 4 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7316
SELECT - COUNT ( * ) * + + 93 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT - 15 - - col2 - - col2 + - + col1 + 87 * - col0 + + col0 - + + ( - col1 ) + 17 * - col2 * + - col1 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3897
-6377
63555

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 15 - - col2 - - col2 + - + col1 + 87 * - col0 + + col0 - + + ( - col1 ) + 17 * - col2 * + - col1 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3897
-6377
63555

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT - col2 * ( - - col2 ) + + 15 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-3478
-4624
-9215

skipif mysql # not compatible
query I rowsort label-7318
SELECT - col2 * ( - - col2 ) + + 15 / - - col1 AS col1 FROM tab1 AS cor0
----
-3478
-4624
-9215

query I rowsort
SELECT + 90 * - 39 AS col1 FROM tab0 AS cor0
----
-3510
-3510
-3510

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 84 IS NOT NULL
----

query II rowsort
SELECT + col0 * + col1, col2 * - + col0 AS col2 FROM tab1 cor0
----
425
-5015
4277
-6188
714
-4896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL + SUM( - - 18 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + SUM ( - - 18 ) FROM tab0
----
54

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

query II rowsort
SELECT + 41, col1 / col1 * + + 19 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT ALL + CAST( + - col1 AS SIGNED ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7326
SELECT ALL + CAST ( + - col1 AS INTEGER ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7327
SELECT - 39 AS col2, COUNT( DISTINCT - ( + CAST( + 99 AS SIGNED ) ) ) - - - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-39
-4

skipif mysql # not compatible
query II rowsort label-7327
SELECT - 39 AS col2, COUNT ( DISTINCT - ( + CAST ( + 99 AS INTEGER ) ) ) - - - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-39
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7328
SELECT * FROM tab0 cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7328
SELECT * FROM tab0 cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 15 * - 50 * - col2 AS col0 FROM tab2 AS cor0
----
-17250
-30000
-43500

query I rowsort
SELECT ALL ( + 59 ) AS col0 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 * 88 AS col0 FROM tab2
----
4488
5896
6776

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col2 - - ( + col0 ) / + 78
----

query I rowsort
SELECT ALL - + col2 + ( + + col0 ) + col1 FROM tab2 AS cor0
----
101
74
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 > NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - + col2 + 46 FROM tab1 AS cor0
----
-13
-22
-50

query II rowsort
SELECT + 98, - col1 AS col0 FROM tab1 cor0
----
98
-14
98
-47
98
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL + col0 + - col0 DIV col2 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + col0 + - col0 / col2 FROM tab1 AS cor0
----
51
84
90

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7340
SELECT DISTINCT - + MIN ( DISTINCT - - col0 ) col1 FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT ALL col2 + col2 + - + col2 + - 43 FROM tab2
----
-20
-3
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7344
SELECT - - 60 + - 91 DIV - - COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7344
SELECT - - 60 + - 91 / - - COUNT ( * ) FROM tab2 AS cor0
----
30

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7347
SELECT ALL col2 DIV + + col0 + - col2 AS col0, ( - col2 ) FROM tab0
----
-10
-10
-44
-47
-98
-99

skipif mysql # not compatible
query II rowsort label-7347
SELECT ALL col2 / + + col0 + - col2 AS col0, ( - col2 ) FROM tab0
----
-10
-10
-44
-47
-98
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 5 + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7348
SELECT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 5 + - CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT ALL col2 AS col1, - 11 + - col1 AS col0 FROM tab1 AS cor0
----
59
-16
68
-58
96
-25

query I rowsort
SELECT - - col2 * col1 * - col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - - col0 NOT IN ( + col0, - 74 / + col1 ) AND NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( 49 ) * col1 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 26 * + 32, - col0 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 26 * + 32, - col0 * - col1 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7354
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 59 / + - ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - col1 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT 79 DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 79 / col0 FROM tab0
----
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND col0 )
----

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

query I rowsort
SELECT ALL - ( 53 ) AS col0 FROM tab0 cor0
----
-53
-53
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + SUM( ALL - + 84 ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + SUM ( ALL - + 84 ) FROM tab0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - 95
----

query I rowsort
SELECT + 50 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2296
-4878
-4975

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

skipif mysql # not compatible
query I rowsort label-7366
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE - ( - + ( CAST ( NULL AS INTEGER ) ) ) * + col2 * col0 + + col2 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 - - 57 AS col2 FROM tab2
----
103
121
132

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

query II rowsort
SELECT DISTINCT + 54, 12 AS col0 FROM tab2 AS cor0
----
54
12

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7370
SELECT + CAST ( NULL AS INTEGER ) + - ( + COUNT ( + + ( - col0 ) ) ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) + + + 56 * 21 AS col1 FROM tab2 AS cor0
----
2234
3736
5526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + 73 - COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + 73 - COUNT ( * ) AS col1 FROM tab0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT ALL CAST( + ( + + CAST( + col1 AS SIGNED ) ) AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL CAST ( + ( + + CAST ( + col1 AS INTEGER ) ) AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - ( + + 69 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL CAST( 50 AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
2350
250
700

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL CAST ( 50 AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 36 + col2 < + - col1
----
-51
-85
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT - + col2 * CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-7381
SELECT - + col2 * CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT 35 * + 49 * col2 FROM tab2
----
39445
68600
99470

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

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

query II rowsort
SELECT + - col1, - col0 + - 41 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL + 64 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + 64 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT - CAST( NULL AS SIGNED ) + MAX( - + ( 69 ) ) FROM tab0 AS cor0 WHERE NOT 93 * col2 / col2 > col0 * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT - CAST ( NULL AS INTEGER ) + MAX ( - + ( 69 ) ) FROM tab0 AS cor0 WHERE NOT 93 * col2 / col2 > col0 * + - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7388
SELECT DISTINCT + - CAST( - 56 AS SIGNED ) + + + col1 DIV - col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + - CAST ( - 56 AS INTEGER ) + + + col1 / - col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT + - 63 * - + 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3e346aa29d556095dabf65e689757fc7

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE - col2 + 57 NOT IN ( - - col2, + col2 )
----
59
68
96

query I rowsort
SELECT + 0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7392
SELECT + MAX( ALL + col1 ) DIV - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7392
SELECT + MAX ( ALL + col1 ) / - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col1 * ( - ( col0 ) ) * 19 + + col0 AS col2 FROM tab1 AS cor0
----
-13515
-7990
-81172

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

query I rowsort
SELECT + col0 * + 9 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7397
SELECT DISTINCT - + COUNT( CAST( NULL AS DECIMAL ) ) + + 16 AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - + COUNT ( CAST ( NULL AS REAL ) ) + + 16 AS col1 FROM tab0 AS cor0
----
16

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

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT 9 * - + ( - + col1 ) + - CAST ( NULL AS REAL ) * 23 + col0 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col2 * - col1 * - ( + ( col1 ) ) AS col1, + 37 AS col2 FROM tab0 WHERE NULL NOT IN ( - 28 )
----

query I rowsort
SELECT ALL - 46 AS col2 FROM tab2 WHERE NOT + col1 + col2 IS NULL
----
-46
-46
-46

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

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 87 AS col1, - 67 AS col1 FROM tab0 AS cor0
----
87
-67
87
-67
87
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7404
SELECT * FROM tab2 cor0 WHERE NULL IN ( 30 * col1 * + 83 * + CAST( col1 AS SIGNED ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-7404
SELECT * FROM tab2 cor0 WHERE NULL IN ( 30 * col1 * + 83 * + CAST ( col1 AS INTEGER ) - + col1 )
----

query I rowsort
SELECT DISTINCT + col2 * - - 68 AS col1 FROM tab1 cor0
----
4012
4624
6528

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col0 * - col0 * - 47 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col2, - col0 * - col0 FROM tab2
----
83
2116
83
4096
83
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT + COUNT( * ), 80 AS col1 FROM tab0
----
3
80

skipif mysql # not compatible
query II rowsort label-7410
SELECT + COUNT ( * ), 80 AS col1 FROM tab0
----
3
80

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN col0 AND NULL
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7412
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * 92 + col2 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7412
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * 92 + col2 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + 74 + 41 AS col2 FROM tab2 cor0
----
-3733
-4917
-5657

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

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

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

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

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 AS cor0 WHERE NOT col0 = + ( - col2 )
----
34

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, - ( 28 ) * col1 AS col2 FROM tab0 cor0
----
-15
-2268
-87
-588
-97
-28

query I rowsort
SELECT - 0 * col0 * 37 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT MAX( DISTINCT + + col2 ) * + 35 FROM tab2
----
2030

skipif mysql # not compatible
query I rowsort label-7421
SELECT MAX ( DISTINCT + + col2 ) * + 35 FROM tab2
----
2030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT - MAX( col0 ) + - 60 FROM tab2 WHERE NOT col0 <= + - col2
----
-135

skipif mysql # not compatible
query I rowsort label-7423
SELECT - MAX ( col0 ) + - 60 FROM tab2 WHERE NOT col0 <= + - col2
----
-135

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

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - MIN ( ALL - ( col2 ) ) * + 71 FROM tab2 AS cor0
----
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT DISTINCT + 37 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
118
38
58

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + 37 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - COUNT( - 67 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7426
SELECT - COUNT ( - 67 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 52 * col1 AS col2 FROM tab0
----
-1092
-4212
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT COUNT( - col2 ) * 79 AS col2 FROM tab1 cor0
----
237

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT COUNT ( - col2 ) * 79 AS col2 FROM tab1 cor0
----
237

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

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

query I rowsort
SELECT + col0 * 77 * + + 96 + - + col1 + - col0 FROM tab1 AS cor0
----
376927
628230
672534

query I rowsort
SELECT DISTINCT + - ( + - 93 ) + - col1 FROM tab0 AS cor0
----
12
72
92

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

query I rowsort
SELECT + + 59 * + - 21 FROM tab1 AS cor0
----
-1239
-1239
-1239

query II rowsort
SELECT DISTINCT - - col0 + + ( + - col2 ), col0 AS col0 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

query I rowsort
SELECT ALL - col0 - 97 FROM tab2
----
-143
-161
-172

query III rowsort
SELECT * FROM tab2 WHERE - - col1 = + - 52 + - 41 + - - ( - - 95 ) + + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 98 < - + 13
----

query I rowsort
SELECT + col1 - - col0 + - - 27 AS col1 FROM tab0
----
123
125
135

query I rowsort
SELECT ALL - col0 - - - ( - col0 ) FROM tab0
----
0
0
0

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

query I rowsort
SELECT + - col2 - col1 - + 40 FROM tab0 AS cor0
----
-140
-168
-71

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

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7445
SELECT col2 DIV col2 * CAST( NULL AS DECIMAL ) AS col0, col2 DIV col0 AS col1 FROM tab1
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-7445
SELECT col2 / col2 * CAST ( NULL AS REAL ) AS col0, col2 / col0 AS col1 FROM tab1
----
NULL
0
NULL
0
NULL
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 98 / + 56 NOT BETWEEN col1 AND ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT + MAX( col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + MAX ( col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT + 86 * 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 / ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT + + 53, + col2 AS col0 FROM tab1 AS cor0
----
53
59
53
68
53
96

query I rowsort
SELECT - ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT - ( - CAST( + col1 AS SIGNED ) ) * - col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-7453
SELECT - ( - CAST ( + col1 AS INTEGER ) ) * - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL ( + - ( + ( - col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 66 * + + col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT + + col2 + - col2 * col0 + - 58 AS col2 FROM tab2 AS cor0
----
-1093
-2578
-4350

query I rowsort
SELECT col1 * + ( - - col1 ) AS col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT AVG ( col1 ) * + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT AVG ( col1 ) * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + - ( - - col0 ) FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 59 FROM tab0 cor0 WHERE + 58 IS NULL OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT ALL + col0 * + + ( + + ( - - col1 ) ) + + ( - CAST( NULL AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + col0 * + + ( + + ( - - col1 ) ) + + ( - CAST ( NULL AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 + + col1 FROM tab1 AS cor0
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - COUNT( * ) + 19 * COUNT( ALL col1 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - COUNT ( * ) + 19 * COUNT ( ALL col1 ) FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT - 93 DIV - col0 + - + ( + ( + - 15 ) ) + - + col0 FROM tab0 AS cor0
----
-71
-82
6

skipif mysql # not compatible
query I rowsort label-7465
SELECT - 93 / - col0 + - + ( + ( + - 15 ) ) + - + col0 FROM tab0 AS cor0
----
-71
-82
6

query I rowsort
SELECT - col0 FROM tab0 WHERE col2 IS NULL
----

query II rowsort
SELECT col2 * - + col0 AS col2, col0 * + col0 FROM tab0 WHERE - + 71 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + MIN( + ( - 98 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-7469
SELECT + MIN ( + ( - 98 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 66 col2 FROM tab0
----
1386
5346
66

query I rowsort
SELECT ( - - 26 ) FROM tab0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL - - ( - 64 ) + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - - ( - 64 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-7473
SELECT + - ( col0 ) * + 50 + - + col0 DIV - col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-2550
14
-4249
5
-4549
47

skipif mysql # not compatible
query II rowsort label-7473
SELECT + - ( col0 ) * + 50 + - + col0 / - col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-2550
14
-4249
5
-4549
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7475
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) + - 82 * + col0 + - col0 = NULL )
----

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NOT ( CAST ( NULL AS REAL ) + - 82 * + col0 + - col0 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT col1 * + col1 - + - 53 DIV 42 FROM tab2 AS cor0
----
2602
4490
5930

skipif mysql # not compatible
query I rowsort label-7476
SELECT col1 * + col1 - + - 53 / 42 FROM tab2 AS cor0
----
2602
4490
5930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT 33 - - col0 * + - CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT 33 - - col0 * + - CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 - 95 + - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-122
-124
-134

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col1 <> + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT DISTINCT - + col0 + ( + CAST( NULL AS SIGNED ) ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7480
SELECT DISTINCT - + col0 + ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT - col0 * + + col1 + + CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab1
----
-420
-4230
-700

skipif mysql # not compatible
query I rowsort label-7481
SELECT - col0 * + + col1 + + CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT ALL - 46 + - col1 FROM tab0
----
-127
-47
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL - 40 - - - COUNT( * ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - 40 - - - COUNT ( * ) AS col1 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT + 7 - + col1 AS col2 FROM tab1
----
-40
-7
2

query I rowsort
SELECT col0 + - col1 + - col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + 26 * + + 4 - + - col0 FROM tab2
----
150
168
179

query II rowsort
SELECT DISTINCT - col1 - col1 * - + col1, col2 AS col0 FROM tab1
----
182
96
20
59
2162
68

query I rowsort
SELECT - col1 * + + col2 * - ( + col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
12615680
21858750
2482068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7489
SELECT COUNT( * ) DIV - ( MIN( col1 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT COUNT ( * ) / - ( MIN ( col1 ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 22 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT DISTINCT col0 DIV + ( + 3 ) FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT col0 / + ( + 3 ) FROM tab2
----
15
21
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE 12 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - SUM( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT - SUM ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT 78 + + - 66 AS col2 FROM tab1 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + 11 col0 FROM tab1
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab2
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT ( - + col2 ) FROM tab1 WHERE + + col2 < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7499
SELECT ( - + col2 ) FROM tab1 WHERE + + col2 < + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 11 * - col2 AS col2 FROM tab2
----
-253
-440
-638

query I rowsort
SELECT DISTINCT + 86 * - col0 FROM tab1
----
-4386
-7310
-7826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 42 + - + 2 col1 FROM tab2
----
51
-44
67
-44
77
-44

query II rowsort
SELECT DISTINCT + col0 * + col2, col0 + + + col2 * - col2 + + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT 0 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7504
SELECT 0 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN + col2 * - col1 + + 98 + + col0 + + 83 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL - col1 * - 9 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + + 72 AND - + col0
----
482
661
733

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT + + 89 DIV - col2 FROM tab2 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7509
SELECT + + 89 / - col2 FROM tab2 cor0
----
-1
-2
-3

query II rowsort
SELECT - 18 AS col1, 91 + + ( + 96 ) AS col0 FROM tab2 AS cor0
----
-18
187
-18
187
-18
187

query I rowsort
SELECT ALL - col1 + - - 67 FROM tab2 AS cor0
----
-10
0
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT col1 + - 8 AS col2 FROM tab0 AS cor0
----
-7
13
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT - + AVG ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT - + AVG ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT + 46 - col0 AS col2 FROM tab0
----
-41
-51
31

query I rowsort
SELECT DISTINCT - 80 * col2 * col1 AS col0 FROM tab1
----
-107520
-23600
-255680

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL + - COUNT( * ) FROM tab1 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT - 12 DIV - col0 * + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 12 / - col0 * + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 3 * + col2 AS col0 FROM tab2 WHERE NOT - col2 + - col2 IS NULL
----
120
174
69

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + 36 IS NOT NULL
----
15
87
97

query II rowsort
SELECT + ( + col0 ), + col0 AS col2 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 67 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col1 * + col1 AS col1, - col2 FROM tab0 AS cor0
----
1
-99
441
-10
6561
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT 71 * + COUNT( * ) AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-7525
SELECT 71 * + COUNT ( * ) AS col2 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + 33 * COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 33 * COUNT ( * ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT + - 1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7528
SELECT ALL - SUM( + - col0 ) + + 13 + - - MAX( - ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - SUM ( + - col0 ) + + 13 + - - MAX ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 11 * - col0 * - 84 AS col2 FROM tab0 AS cor0
----
-13860
-80388
-89628

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 >= + col0
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - + 86 + col1 - + col1 + + + col2 + col2 AS col2 FROM tab1 cor0
----
106
32
50

query I rowsort
SELECT + 50 * 44 AS col2 FROM tab1
----
2200
2200
2200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + + col1 + - col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7537
SELECT DISTINCT * FROM tab0 WHERE + col0 * + col0 + + - 51 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7537
SELECT DISTINCT * FROM tab0 WHERE + col0 * + col0 + + - 51 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 57 + + - ( ( - col2 ) ) FROM tab1
----
11
2
39

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT - 37 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + 70 * col0 + + - col1 * - col2 * - - ( + 78 ) AS col1 FROM tab0
----
14512
22470
297996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7541
SELECT - COUNT( * ) DIV ( COUNT( * ) ) * + 92 + - SUM( ALL - col0 ) * + MAX( col2 ) FROM tab0
----
19609

skipif mysql # not compatible
query I rowsort label-7541
SELECT - COUNT ( * ) / ( COUNT ( * ) ) * + 92 + - SUM ( ALL - col0 ) * + MAX ( col2 ) FROM tab0
----
19609

query I rowsort
SELECT - + 5 + - - 81 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT + + 51 + - col0 AS col0 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT + col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 - - - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 61 * - ( - col1 ) FROM tab0 AS cor0
----
-1281
-4941
-61

query II rowsort
SELECT DISTINCT + col0 + + + 66 + - - col1, col1 AS col2 FROM tab1 AS cor0
----
131
14
156
5
204
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL + 58 * MIN( - col2 ) FROM tab1 AS cor0
----
-5568

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + 58 * MIN ( - col2 ) FROM tab1 AS cor0
----
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7550
SELECT - CAST( NULL AS SIGNED ) col1, - SUM( 37 ) AS col0 FROM tab1
----
NULL
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7550
SELECT - CAST ( NULL AS INTEGER ) col1, - SUM ( 37 ) AS col0 FROM tab1
----
NULL
-111

onlyif mysql # aggregate syntax: 
query III rowsort label-7551
SELECT ALL - 12 AS col1, - COUNT( * ) AS col2, COUNT( * ) * 3 AS col0 FROM tab2
----
-12
-3
9

skipif mysql # not compatible
query III rowsort label-7551
SELECT ALL - 12 AS col1, - COUNT ( * ) AS col2, COUNT ( * ) * 3 AS col0 FROM tab2
----
-12
-3
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT - col2 DIV + + col0 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT - col2 / + + col0 AS col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col1 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT - 61, 13 * - col1 AS col2 FROM tab1
----
-61
-182
-61
-611
-61
-65

query II rowsort
SELECT col1, - 2 AS col1 FROM tab0
----
1
-2
21
-2
81
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * - 26 col2 FROM tab2 AS cor0 WHERE col1 * - - col2 IS NOT NULL
----
1014

query II rowsort
SELECT col2 AS col1, 63 AS col0 FROM tab2 AS cor0
----
23
63
40
63
58
63

query II rowsort
SELECT ALL + col2 * + - col1 AS col2, - col1 - + col2 AS col0 FROM tab1
----
-1344
-110
-295
-64
-3196
-115

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col1 * + 17 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT - + col1 >= - 35
----
47

query I rowsort
SELECT ALL 95 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col2 FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 col2 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - col0 / + ( + 59 ) * col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 + - col1 + - col1 * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - col1 + + 69 AS col2 FROM tab0 AS cor0
----
-12
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + COUNT( * ) + - + 93 AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + COUNT ( * ) + - + 93 AS col0 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT COUNT( - ( + - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7568
SELECT COUNT ( - ( + - col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT - 39 AS col2, MIN( DISTINCT ( - 1 ) ) AS col1 FROM tab0
----
-39
-1

skipif mysql # not compatible
query II rowsort label-7569
SELECT - 39 AS col2, MIN ( DISTINCT ( - 1 ) ) AS col1 FROM tab0
----
-39
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + SUM( DISTINCT - 6 ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7570
SELECT + SUM ( DISTINCT - 6 ) AS col2 FROM tab1
----
-6

query I rowsort
SELECT ALL - col2 + - - 84 FROM tab2
----
26
44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT - SUM( 99 ) - - 89 FROM tab0
----
-208

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - SUM ( 99 ) - - 89 FROM tab0
----
-208

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT - COUNT( * ) + - 78 * + - ( + 99 ) AS col0 FROM tab1 AS cor0
----
7719

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - COUNT ( * ) + - 78 * + - ( + 99 ) AS col0 FROM tab1 AS cor0
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + 53 * + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
159

skipif mysql # not compatible
query I rowsort label-7575
SELECT + 53 * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
159

query I rowsort
SELECT col2 + - + col1 + - ( col2 ) * col1 + + 63 AS col0 FROM tab2 AS cor0
----
-1138
-3054
-3832

query I rowsort
SELECT DISTINCT ( + - col2 ) * - + 71 + col1 AS col0 FROM tab0 AS cor0
----
3418
7030
731

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) <> ( NULL )
----

query I rowsort
SELECT ALL col0 * 76 + col0 FROM tab0
----
1155
6699
7469

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - 94 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * 81 col1 FROM tab0
----
7695
7695
7695

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL BETWEEN col1 + col1 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT ALL + ( 30 ) DIV 50 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + ( 30 ) / 50 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 70 * 60 + 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT ALL - col0 DIV 6 FROM tab1
----
-14
-15
-8

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - col0 / 6 FROM tab1
----
-14
-15
-8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL + 54 DIV + col0 col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT ALL + 54 / + col0 col0 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT + col2 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 + col1 * 23 ) AND ( 47 ) + - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-7588
SELECT + col2 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 + col1 * 23 ) AND ( 47 ) + - CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7589
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - ( + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7589
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - ( + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - MIN( col0 ) FROM tab1 WHERE NOT + ( - col2 ) + - ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT - MIN ( col0 ) FROM tab1 WHERE NOT + ( - col2 ) + - ( col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN - 61 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - CAST( NULL AS SIGNED ) * 81 AS col0 FROM tab0 WHERE col1 * 36 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7593
SELECT - CAST ( NULL AS INTEGER ) * 81 AS col0 FROM tab0 WHERE col1 * 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT 14 - + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-7594
SELECT 14 - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + COUNT( 71 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7595
SELECT + COUNT ( 71 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 85 FROM tab1 WHERE col1 IS NOT NULL
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + col2 = + col0
----

query I rowsort
SELECT ALL 23 - col2 AS col0 FROM tab0
----
-24
-76
13

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL + COUNT( * ) + 44 * - 5 AS col1 FROM tab1
----
-217

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + COUNT ( * ) + 44 * - 5 AS col1 FROM tab1
----
-217

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( - 9 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 36 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 36 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE + 44 = + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 * + 15 )
----

query I rowsort
SELECT ALL col0 + col2 * 44 AS col1 FROM tab1 AS cor0
----
2681
3083
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT DISTINCT col2 + + ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT col2 + + ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ( 91 ) * ( + col2 * col0 ) FROM tab0 WHERE NOT ( - 63 * + col1 ) IS NULL
----
64155
79170
873873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + - col0 AS col2 FROM tab1 WHERE NOT ( 2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + - col0 AS col2 FROM tab1 WHERE NOT ( 2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col0 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT - col2 DIV 54 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT - col2 / 54 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT - MIN( ALL + 87 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-87

skipif mysql # not compatible
query I rowsort label-7611
SELECT - MIN ( ALL + 87 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - SUM( col2 ) AS col1 FROM tab0 AS cor0 WHERE - col0 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - SUM ( col2 ) AS col1 FROM tab0 AS cor0 WHERE - col0 >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT COUNT( - col2 ) col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7613
SELECT COUNT ( - col2 ) col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND col1
----
0

query I rowsort
SELECT ALL 69 AS col2 FROM tab1 cor0 WHERE NOT col1 > + 16
----
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT COUNT( ALL 43 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7615
SELECT COUNT ( ALL 43 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 84 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
84
84
84

query I rowsort
SELECT DISTINCT - col2 + - ( 23 ) AS col2 FROM tab0 AS cor0
----
-122
-33
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 21 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + 56 + COUNT( DISTINCT ( + col1 ) ) col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT ALL + 56 + COUNT ( DISTINCT ( + col1 ) ) col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 22 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL - col2 * + col2 + 84 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - col2 * + col2 + 84 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <= 57
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + 32 * + 75 + COUNT( * ) AS col2 FROM tab1
----
2403

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 32 * + 75 + COUNT ( * ) AS col2 FROM tab1
----
2403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT + 45 FROM tab0 WHERE CAST( NULL AS SIGNED ) - 78 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + 45 FROM tab0 WHERE CAST ( NULL AS INTEGER ) - 78 < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 + + 58 * col2 = - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT 24 + - MAX( col1 ) AS col1 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-7626
SELECT 24 + - MAX ( col1 ) AS col1 FROM tab1
----
-23

query I rowsort
SELECT DISTINCT + 69 * + 30 * + 55 AS col1 FROM tab1
----
113850

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - col0 >= + 35 / + 43
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT + 77 + + col0 DIV + col2 AS col1 FROM tab0
----
77
77
85

skipif mysql # not compatible
query I rowsort label-7629
SELECT + 77 + + col0 / + col2 AS col1 FROM tab0
----
77
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + COUNT( DISTINCT - col0 ) * - 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + COUNT ( DISTINCT - col0 ) * - 90 FROM tab0
----
-270

query I rowsort
SELECT + 24 FROM tab2 WHERE + 68 IN ( 64 + + col1 )
----

query I rowsort
SELECT + 43 + + 44 AS col1 FROM tab0
----
87
87
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN ( - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 / col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT + - 84 / - + ( col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + - 84 / - + ( col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * ( 23 ) + + ( - 35 ) AS col2 FROM tab2 cor0
----
1299
494
885

query I rowsort
SELECT 55 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT ALL col2, - col1 * - col0 AS col1 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT ALL + + COUNT( * ), - COUNT( * ) col1 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7641
SELECT ALL + + COUNT ( * ), - COUNT ( * ) col1 FROM tab1 cor0
----
3
-3

query I rowsort
SELECT ALL + - 8 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 26 >= col2 + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT ( + col2 ) DIV + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7644
SELECT ( + col2 ) / + col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT COUNT( DISTINCT - 30 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( DISTINCT - 30 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT - col2 * - + col0 * + col0 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + MAX( 28 ) + 0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + MAX ( 28 ) + 0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT MAX( ALL - 56 ) AS col1 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-7648
SELECT MAX ( ALL - 56 ) AS col1 FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7649
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - - col0 * + + col1 + 62 >= ( 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT - 56 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
168

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - 56 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
168

query I rowsort
SELECT - ( + col2 ) * - col0 + 17 AS col1 FROM tab0 AS cor0
----
722
887
9620

query I rowsort
SELECT DISTINCT - col2 + - 16 + 11 FROM tab0 AS cor0
----
-104
-15
-52

query I rowsort
SELECT ALL - 69 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT + COUNT( * ) + - - 69 AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + COUNT ( * ) + - - 69 AS col1 FROM tab1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7656
SELECT DISTINCT 93 - - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT 93 - - + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + - col1 * + - 28 * - col2 FROM tab0
----
-106515
-2771
-5859

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL 20 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL 20 / col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 20 ) col1 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab2 WHERE - 21 * + - 17 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE - 21 * + - 17 <> NULL
----
0

query I rowsort
SELECT ALL + 18 * - ( - col0 ) - + + col2 FROM tab1
----
1471
1570
822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT - CAST( NULL AS SIGNED ) * 56 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7662
SELECT - CAST ( NULL AS INTEGER ) * 56 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + - col0, col1 FROM tab1 AS cor0 WHERE NOT col0 * + 44 IS NULL
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT - - col1 DIV + col1 + - + 54 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-7664
SELECT - - col1 / + col1 + - + 54 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - col1 * + - ( + + col0 ) * + 94 + + - col2 + col1 AS col1 FROM tab1 AS cor0
----
39896
402017
67034

query I rowsort
SELECT col1 * - ( 16 ) FROM tab1
----
-224
-752
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 25 - col1 ) NOT BETWEEN - 30 + + col0 AND + ( + col2 ) + ( 39 )
----

query I rowsort
SELECT 61 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( + col1 / + col2 - + col2 ) <= + 36 )
----

query I rowsort
SELECT DISTINCT - - 62 * - col1 AS col2 FROM tab2 AS cor0
----
-3162
-4154
-4774

query I rowsort
SELECT 9 * col2 + col1 AS col1 FROM tab2 AS cor0
----
258
437
589

query I rowsort
SELECT ALL + - col1 + + 97 AS col2 FROM tab1 cor0 WHERE NOT - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL + COUNT( DISTINCT 86 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + COUNT ( DISTINCT 86 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT ALL - COUNT( * ) * - 90, - 9 AS col1 FROM tab1 AS cor0
----
270
-9

skipif mysql # not compatible
query II rowsort label-7675
SELECT ALL - COUNT ( * ) * - 90, - 9 AS col1 FROM tab1 AS cor0
----
270
-9

query I rowsort
SELECT + col0 * 40 + 7 * 3 FROM tab0 AS cor0
----
3501
3901
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + col1 / + ( - CAST( NULL AS SIGNED ) ) + - col0 * 22 IS NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + col1 / + ( - CAST ( NULL AS INTEGER ) ) + - col0 * 22 IS NULL )
----
0

query II rowsort
SELECT + 62 AS col0, col0 FROM tab0
----
62
15
62
87
62
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND - - col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT SUM( DISTINCT + - col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7680
SELECT DISTINCT SUM ( DISTINCT + - col0 ) col2 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 41 BETWEEN col1 * - ( - col2 ) AND ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL + MIN( + - 73 ) AS col1 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + MIN ( + - 73 ) AS col1 FROM tab0
----
-73

query I rowsort
SELECT col1 * - col2 + - + 90 + col2 AS col2 FROM tab2 AS cor0
----
-1240
-3130
-3918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT + 51 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 59 * - CAST( + - 49 AS SIGNED ) * + + 47 * - col0 AND - 76 / - + 20 - 86 + 90
----

skipif mysql # not compatible
query I rowsort label-7684
SELECT + 51 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 59 * - CAST ( + - 49 AS INTEGER ) * + + 47 * - col0 AND - 76 / - + 20 - 86 + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - COUNT( * ) + - 7 AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7685
SELECT - COUNT ( * ) + - 7 AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + COUNT( DISTINCT - - 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7686
SELECT + COUNT ( DISTINCT - - 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7687
SELECT * FROM tab1 WHERE ( col2 * + - 27 * col2 / + 72 ) NOT BETWEEN - 59 AND - col0 * + 80 + + CAST( + 28 AS DECIMAL ) * 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7687
SELECT * FROM tab1 WHERE ( col2 * + - 27 * col2 / + 72 ) NOT BETWEEN - 59 AND - col0 * + 80 + + CAST ( + 28 AS REAL ) * 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col2 FROM tab1
----
-19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 < ( - 28 ) )
----

query I rowsort
SELECT - 48 AS col0 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT + + col2 * + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT col2 - - 79 * + col0 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT + 72 DIV + + col2 - - col2 FROM tab0 AS cor0
----
17
48
99

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 72 / + + col2 - - col2 FROM tab0 AS cor0
----
17
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - COUNT( * ) + - 24 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - COUNT ( * ) + - 24 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT + - 48 + - + col2 AS col0 FROM tab0 cor0
----
-147
-58
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT - COUNT( * ) + MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - COUNT ( * ) + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT COUNT( * ) + + - MIN( + - col1 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT COUNT ( * ) + + - MIN ( + - col1 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + 20 + 14 - 1 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN col0 + - col0 AND ( - 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7700
SELECT * FROM tab2 WHERE + col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7700
SELECT * FROM tab2 WHERE + col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 81 FROM tab0 WHERE col1 * + col2 * - + 29 + - - ( - 12 ) BETWEEN + + col0 + - 52 AND ( - col0 )
----

query I rowsort
SELECT ALL 3 + - col0 * + 54 + col1 FROM tab1
----
-2737
-4582
-4864

query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7704
SELECT + MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + CAST( col0 AS SIGNED ) - + 38 + 18 FROM tab2
----
-1078
-2580
-4370

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + CAST ( col0 AS INTEGER ) - + 38 + 18 FROM tab2
----
-1078
-2580
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + + MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7706
SELECT + + MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL - + col0 AS col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - - COUNT( * ) * - 73 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - - COUNT ( * ) * - 73 FROM tab2 AS cor0
----
-219

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / + + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7710
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7710
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT + 9 AS col0, + ( col1 ) + + 91 AS col0 FROM tab2 AS cor0
----
9
142
9
158
9
168

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7712
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7712
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT IN ( + col2 )
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, - 0 AS col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT DISTINCT + + 91 * + 53 * - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-101283
-390663
-4823

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 88 / + 63 IS NOT NULL
----

query I rowsort
SELECT - + col1 + - 17 * + + col2 + col2 + + + col2 FROM tab0 AS cor0
----
-1486
-171
-786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT + COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT + COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + col0 * 58, + 41 AS col2 FROM tab1
----
2958
41
4930
41
5278
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT COUNT( * ) * + 96 * + 35 AS col1 FROM tab0
----
10080

skipif mysql # not compatible
query I rowsort label-7719
SELECT COUNT ( * ) * + 96 * + 35 AS col1 FROM tab0
----
10080

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) + + col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + col0 + 72 FROM tab0
----
159
169
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT - SUM( DISTINCT + 24 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - SUM ( DISTINCT + 24 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - COUNT( * ) + - 40 * - - 13 AS col0 FROM tab2 cor0
----
-523

skipif mysql # not compatible
query I rowsort label-7723
SELECT - COUNT ( * ) + - 40 * - - 13 AS col0 FROM tab2 cor0
----
-523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - - col1 / - - ( - 69 ) FROM tab1 AS cor0 WHERE NOT + col1 * - CAST( NULL AS SIGNED ) NOT IN ( + + 73 + + col2, - col2, 77 * + 1 )
----

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - - col1 / - - ( - 69 ) FROM tab1 AS cor0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) NOT IN ( + + 73 + + col2, - col2, 77 * + 1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 98 + col0 < col0 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col1, 84 * + + col2 AS col2 FROM tab2 cor0
----
23
1932
40
3360
58
4872

query I rowsort
SELECT ALL AVG ( + ( + - 27 ) ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL + 4 + - CAST( col0 AS SIGNED ) + 74 AS col1 FROM tab0
----
-19
-9
63

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 4 + - CAST ( col0 AS INTEGER ) + 74 AS col1 FROM tab0
----
-19
-9
63

query I rowsort
SELECT + 70 * + - 10 - col2 FROM tab1
----
-759
-768
-796

query I rowsort
SELECT col2 * - ( - 59 ) * - col2 - + + ( + col0 ) AS col1 FROM tab2
----
-198551
-31257
-94464

query I rowsort
SELECT ALL 51 * - - col2 AS col2 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + - COUNT( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7733
SELECT + - COUNT ( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT AVG ( ( + col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 <= 6 * - col2 * + - 63 + - col2 + col2 + - - 37 * col1
----
NULL

query I rowsort
SELECT DISTINCT - 26 + col1 + - 69 FROM tab2 cor0
----
-18
-28
-44

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - 2 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <> + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 WHERE NOT ( 57 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT ( + COUNT( * ) ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT col1 * 54 + - col0 + + 93 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + 84 ) AS col0 FROM tab1
----
-84

query II rowsort
SELECT col1 * + + 32 AS col2, 73 AS col2 FROM tab0
----
2592
73
32
73
672
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT + ( + MAX( ALL 14 ) ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + ( + MAX ( ALL 14 ) ) FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL SUM( ALL + + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7746
SELECT ALL SUM ( ALL + + col2 ) col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT COUNT( * ) + - MIN( DISTINCT - - col2 ) col2 FROM tab0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT COUNT ( * ) + - MIN ( DISTINCT - - col2 ) col2 FROM tab0
----
-7

query I rowsort
SELECT 7 + ( - - 79 ) AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT + col2 + - 49 * - + 84 AS col1 FROM tab1 AS cor0
----
4175
4184
4212

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT COUNT( * ) + - + ( + - ( + 1 ) ) col1, COUNT( * ) + ( - - 78 ) FROM tab1 AS cor0
----
4
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7750
SELECT COUNT ( * ) + - + ( + - ( + 1 ) ) col1, COUNT ( * ) + ( - - 78 ) FROM tab1 AS cor0
----
4
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( + + col2 / - 8 IS NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT + COUNT( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7752
SELECT + COUNT ( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - ( + COUNT( * ) ) * + + COUNT( * ) * 80 col1 FROM tab0
----
-720

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7753
SELECT - ( + COUNT ( * ) ) * + + COUNT ( * ) * 80 col1 FROM tab0
----
-720

query I rowsort
SELECT - + col2 + + 64 FROM tab2 AS cor0 WHERE col1 <= - + col2
----

query I rowsort
SELECT + col0 + 1 + 97 AS col1 FROM tab2 AS cor0
----
144
162
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT + - CAST( 1 AS SIGNED ) + - ( - col0 ) FROM tab0 cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7756
SELECT + - CAST ( 1 AS INTEGER ) + - ( - col0 ) FROM tab0 cor0
----
14
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT 90 + CAST( NULL AS SIGNED ) + + - 90 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT 90 + CAST ( NULL AS INTEGER ) + + - 90 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 48, col0 AS col1 FROM tab2
----
48
46
48
64
48
75

query I rowsort
SELECT DISTINCT - ( + 99 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7760
SELECT DISTINCT col0, CAST( - 38 AS SIGNED ) + - 67 FROM tab1
----
51
-105
85
-105
91
-105

skipif mysql # not compatible
query II rowsort label-7760
SELECT DISTINCT col0, CAST ( - 38 AS INTEGER ) + - 67 FROM tab1
----
51
-105
85
-105
91
-105

query II rowsort
SELECT ALL col2 * col1 * + 53 AS col1, 43 * + col2 * + col0 FROM tab1
----
15635
215645
169388
266084
71232
210528

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7762
SELECT DISTINCT col0 AS col0, - CAST( NULL AS DECIMAL ) * - ( - 64 ) * + 48 + - col1 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7762
SELECT DISTINCT col0 AS col0, - CAST ( NULL AS REAL ) * - ( - 64 ) * + 48 + - col1 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT + SUM( ALL col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT - + MAX( + - col0 ) * - COUNT( * ) + - COUNT( * ) col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-48
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7766
SELECT - + MAX ( + - col0 ) * - COUNT ( * ) + - COUNT ( * ) col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-48
-3

query I rowsort
SELECT ALL - 18 AS col1 FROM tab0 AS cor0 WHERE ( ( col0 <= ( + col1 * + - col2 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 / - + col1 * - + col1 NOT IN ( + 8, - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - + col2 + + + col2 AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT + col1 * CAST( + col1 AS SIGNED ) + - 13 * - 77 AS col0 FROM tab1 AS cor0
----
1026
1197
3210

skipif mysql # not compatible
query I rowsort label-7770
SELECT + col1 * CAST ( + col1 AS INTEGER ) + - 13 * - 77 AS col0 FROM tab1 AS cor0
----
1026
1197
3210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + 20 * 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 1 + - - col2 AS col1 FROM tab2
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL - MIN( DISTINCT - 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - MIN ( DISTINCT - 71 ) FROM tab0
----
71

query I rowsort
SELECT ALL + col0 * 3 AS col1 FROM tab2
----
138
192
225

query II rowsort
SELECT ALL 82 + + col2 * - 60, col1 FROM tab2
----
-1298
51
-2318
77
-3398
67

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT NULL >= - + col2
----

query I rowsort
SELECT ALL col0 * + col0 * - 49 FROM tab1
----
-127449
-354025
-405769

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7779
SELECT ALL - CAST( NULL AS DECIMAL ) / + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT COUNT( * ) DIV 68 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT COUNT ( * ) / 68 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 9 * + col2 FROM tab1
----
531
612
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 31 col1 FROM tab2
----
1581
2077
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL - 76 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL - 76 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7784
SELECT * FROM tab1 WHERE NULL >= CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7784
SELECT * FROM tab1 WHERE NULL >= CAST ( col1 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 52 ) * + + 58 col1 FROM tab2 AS cor0
----
3016

query I rowsort
SELECT DISTINCT + 4 * - 39 FROM tab2 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT col0 * col0 - + ( + - col2 ) * - - CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-6615
3657
3744

skipif mysql # not compatible
query I rowsort label-7787
SELECT col0 * col0 - + ( + - col2 ) * - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-6615
3657
3744

query II rowsort
SELECT DISTINCT col0, 27 FROM tab0 AS cor0
----
15
27
87
27
97
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT DISTINCT + COUNT( * ) + - MIN( DISTINCT - col0 ) AS col1, MAX( ALL + col2 ) FROM tab2 AS cor0
----
78
58

skipif mysql # not compatible
query II rowsort label-7789
SELECT DISTINCT + COUNT ( * ) + - MIN ( DISTINCT - col0 ) AS col1, MAX ( ALL + col2 ) FROM tab2 AS cor0
----
78
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT DISTINCT - ( - - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT - CAST( + CAST( - 94 AS SIGNED ) AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT - CAST ( + CAST ( - 94 AS INTEGER ) AS INTEGER ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + 33 FROM tab2
----
1518
2112
2475

query II rowsort
SELECT ALL - + col1 + - + 66 + col1 + 98 AS col0, col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 + + 1 IS NULL
----
32
51
32
67
32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-7793
SELECT DISTINCT 72 + col1 AS col0, 29 DIV - col1 FROM tab2 AS cor0
----
123
0
139
0
149
0

skipif mysql # not compatible
query II rowsort label-7793
SELECT DISTINCT 72 + col1 AS col0, 29 / - col1 FROM tab2 AS cor0
----
123
0
139
0
149
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 - - col0 * col0 + + col0 BETWEEN + col0 AND 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + ( + 60 ) * COUNT( * ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7796
SELECT + ( + 60 ) * COUNT ( * ) FROM tab2 AS cor0
----
180

query II rowsort
SELECT - + 82 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-82
59
-82
68
-82
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT - - 32 / + + ( - - 79 ) / CAST( NULL AS SIGNED ) - - col2 - - + col1 + - col0 + col1 * - col1 - + 9 * ( - 80 ) + col1 * - 62 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT - - 32 / + + ( - - 79 ) / CAST ( NULL AS INTEGER ) - - col2 - - + col1 + - col0 + col1 * - col1 - + 9 * ( - 80 ) + col1 * - 62 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + col0 ) * col0 AS col1 FROM tab1
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, 0 col1 FROM tab1 WHERE NULL <> col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL MIN( ALL - 59 ) AS col2 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL MIN ( ALL - 59 ) AS col2 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL + MIN( DISTINCT + - 94 ) * - 83 FROM tab0
----
7802

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + MIN ( DISTINCT + - 94 ) * - 83 FROM tab0
----
7802

query II rowsort
SELECT ALL 63 * - col0 * + + col2, - col0 AS col2 FROM tab0 AS cor0
----
-44415
-15
-54810
-87
-604989
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 1 IS NULL
----

query I rowsort
SELECT + - 62 AS col2 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + COUNT( DISTINCT - + 4 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7808
SELECT + COUNT ( DISTINCT - + 4 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 8 + col1 + + 59 FROM tab0 AS cor0
----
132
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT MIN( - - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7810
SELECT MIN ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col0 + + + col2 AS col0 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL + col1 + - ( CAST( + ( - + col0 ) AS SIGNED ) ) - - + col1 FROM tab1
----
185
79
95

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + col1 + - ( CAST ( + ( - + col0 ) AS INTEGER ) ) - - + col1 FROM tab1
----
185
79
95

query I rowsort
SELECT col2 * + - 6 FROM tab1 WHERE ( NOT NULL > col2 )
----

query I rowsort
SELECT + 46 + 49 + - - ( + col1 ) * + col1 FROM tab0
----
536
6656
96

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NOT ( + 38 IS NULL )
----
48

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 48 + - col2 BETWEEN + - col2 AND + 69 + - col0
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7819
SELECT ALL + + col0 + + col1 DIV - 15 AS col2 FROM tab0 AS cor0
----
10
86
97

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + + col0 + + col1 / - 15 AS col2 FROM tab0 AS cor0
----
10
86
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT - - 89 FROM tab2 WHERE - - CAST( + col1 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7820
SELECT - - 89 FROM tab2 WHERE - - CAST ( + col1 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL - 70 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - 70 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7822
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-7822
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 < NULL
----

query I rowsort
SELECT ALL - ( - + 24 ) AS col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + + COUNT( ALL + - 37 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + + COUNT ( ALL + - 37 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 42 * - ( - - col2 ) AS col2 FROM tab1
----
-2478
-2856
-4032

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ( + + ( - - COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7827
SELECT ( + + ( - - COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7828
SELECT ALL COUNT( * ) AS col0, CAST( + + MIN( DISTINCT + col0 ) AS SIGNED ) AS col1 FROM tab2
----
3
46

skipif mysql # not compatible
query II rowsort label-7828
SELECT ALL COUNT ( * ) AS col0, CAST ( + + MIN ( DISTINCT + col0 ) AS INTEGER ) AS col1 FROM tab2
----
3
46

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( ( - col1 ) + - + col0 / col1, - col2 )
----

query I rowsort
SELECT ALL + col1 * ( - 79 ) * + + col2 * + + col1 AS col0 FROM tab2
----
-18735640
-20568598
-4726017

query I rowsort
SELECT + - 52 FROM tab0 WHERE NOT 43 + col2 IS NULL
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL - COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT col2 AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT - - col0 FROM tab0 cor0 WHERE ( col0 ) <> - + col0 * col0 - + col2 + - - ( + CAST( NULL AS SIGNED ) ) * - col1
----

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - - col0 FROM tab0 cor0 WHERE ( col0 ) <> - + col0 * col0 - + col2 + - - ( + CAST ( NULL AS INTEGER ) ) * - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7835
SELECT + + col2 AS col1, 70 DIV - - 29 FROM tab0 AS cor0
----
10
2
47
2
99
2

skipif mysql # not compatible
query II rowsort label-7835
SELECT + + col2 AS col1, 70 / - - 29 FROM tab0 AS cor0
----
10
2
47
2
99
2

query I rowsort
SELECT ALL 43 AS col2 FROM tab0 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7837
SELECT ALL - ( - + CAST( - col2 AS SIGNED ) ) + + + 39 * + + col2, + col2 FROM tab2
----
1520
40
2204
58
874
23

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL - ( - + CAST ( - col2 AS INTEGER ) ) + + + 39 * + + col2, + col2 FROM tab2
----
1520
40
2204
58
874
23

query II rowsort
SELECT col2 * col2 AS col1, + 16 AS col0 FROM tab2
----
1600
16
3364
16
529
16

query I rowsort
SELECT + col2 * + col0 + + ( col2 ) * 57 AS col0 FROM tab2
----
2369
4840
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL COUNT( * ) col0 FROM tab1 cor0 WHERE + 59 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7840
SELECT ALL COUNT ( * ) col0 FROM tab1 cor0 WHERE + 59 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE ( - - 29 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 9 * 19 <= - col2
----

query I rowsort
SELECT DISTINCT - 60 + 19 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + ( - + 54 ) AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( - + col1 ) * - - col1 - - col0 + 57 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + COUNT( ALL + 87 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7845
SELECT + COUNT ( ALL + 87 ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL + col0 - + - 28 AS col0 FROM tab1
----
113
119
79

onlyif mysql # DIV for integer division: 
query II rowsort label-7847
SELECT DISTINCT + col0 - col2 DIV - col0 col1, + col2 * - col1 AS col2 FROM tab0
----
18
-3807
87
-210
98
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7847
SELECT DISTINCT + col0 - col2 / - col0 col1, + col2 * - col1 AS col2 FROM tab0
----
18
-3807
87
-210
98
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 67 FROM tab1 AS cor0 WHERE NOT NULL > 41
----

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 67 FROM tab1 AS cor0 WHERE NOT NULL > 41
----

query I rowsort
SELECT - + 27 * - ( - 35 ) + - 31 * - - col0 AS col2 FROM tab2 AS cor0
----
-2371
-2929
-3270

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL - ( - MAX( + col1 ) ) * + + 35 AS col0 FROM tab0 AS cor0
----
2835

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - ( - MAX ( + col1 ) ) * + + 35 AS col0 FROM tab0 AS cor0
----
2835

query I rowsort
SELECT + col1 * col2 + - - col1 + - - col0 FROM tab1 AS cor0
----
1409
3334
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT CAST( - 83 AS SIGNED ) FROM tab1 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7852
SELECT CAST ( - 83 AS INTEGER ) FROM tab1 WHERE NOT col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 32 * 34 FROM tab1 AS cor0
----
-1088
-1088
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT + 17 * + COUNT( * ) col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7855
SELECT DISTINCT + 17 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7856
SELECT CAST( NULL AS DECIMAL ) / MAX( DISTINCT + 45 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT CAST ( NULL AS REAL ) / MAX ( DISTINCT + 45 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7858
SELECT ALL COUNT( + col1 ) DIV - + ( + 2 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL COUNT ( + col1 ) / - + ( + 2 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT - COUNT( * ) * + 71 FROM tab1 WHERE - - col0 IS NOT NULL
----
-213

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - COUNT ( * ) * + 71 FROM tab1 WHERE - - col0 IS NOT NULL
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 83 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 WHERE + - col2 NOT IN ( + col1 )
----
26

query I rowsort
SELECT + 58 + col0 AS col0 FROM tab0 AS cor0
----
145
155
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 71 col1 FROM tab0 AS cor0
----
152
72
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT ALL 43 DIV + - col1 + - 32 + - + ( - 13 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-32
-35
-42

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 43 / + - col1 + - 32 + - + ( - 13 ) / - col1 AS col2 FROM tab1 AS cor0
----
-32
-35
-42

query I rowsort
SELECT 53 * - - col0 AS col1 FROM tab0
----
4611
5141
795

query I rowsort
SELECT ALL - - col1 * - - 98 * - col2 AS col0 FROM tab2 AS cor0
----
-114954
-301840
-380828

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT - col0 DIV col0 * - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7867
SELECT - col0 / col0 * - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + SUM( col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7869
SELECT + SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + COUNT( * ) / - AVG ( ALL + + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT + COUNT ( * ) / - AVG ( ALL + + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT col0 - - 10 AS col1 FROM tab2 cor0
----
56
74
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( 98 ) AS col0 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + 93 + - 65 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT ALL col2 * + + col2 + - col1 DIV + 81 AS col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL col2 * + + col2 + - col1 / + 81 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + + 58 + col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT DISTINCT 53 DIV - col2 + + 2 * col0 FROM tab0
----
169
194
29

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 53 / - col2 + + 2 * col0 FROM tab0
----
169
194
29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( 7 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 6 AS col0 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT DISTINCT col0 DIV + - 72 + + 13 + 28 * - - ( + ( col0 ) ) * col1 FROM tab1 AS cor0
----
11912
119768
20005

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT col0 / + - 72 + + 13 + 28 * - - ( + ( col0 ) ) * col1 FROM tab1 AS cor0
----
11912
119768
20005

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7882
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( col0 AS SIGNED ), 57, - 36 + + 59 )
----

skipif mysql # not compatible
query III rowsort label-7882
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( col0 AS INTEGER ), 57, - 36 + + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL SUM( 8 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL SUM ( 8 ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT + MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT + MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT col1, 76 * + 12 FROM tab2 AS cor0
----
51
912
67
912
77
912

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL + SUM( ALL + - 79 ) FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + SUM ( ALL + - 79 ) FROM tab1 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT SUM( DISTINCT 32 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT SUM ( DISTINCT 32 ) FROM tab0 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT + - col2 * 49 AS col0 FROM tab0 AS cor0
----
-2303
-4851
-490

query I rowsort
SELECT DISTINCT col2 * + - col1 * col0 AS col0 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 55 * - col2 col2 FROM tab2
----
140800
239250
58190

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ( + + COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT ( + + COUNT ( * ) ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * + + 30 FROM tab1 cor0
----
1770
2040
2880

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL CAST( - + col2 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL CAST ( - + col2 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 23 + col0 AS col0 FROM tab1
----
108
114
74

query I rowsort
SELECT ALL - col1 + - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 + + col2 + + 72 AS col1 FROM tab1 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
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-7900
SELECT MAX ( col1 ) col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7901
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < - - col0 + 86
----

skipif mysql # not compatible
query III rowsort label-7901
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - - col0 + 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7902
SELECT ALL + 36 + - col0 + - - col1 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-44
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL + 36 + - col0 + - - col1 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-44
NULL
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ( + MAX( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( + MAX ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + col1 * col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 * - + 63 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 63 ) * - col1 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT - MIN( - 76 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7906
SELECT - MIN ( - 76 ) AS col0 FROM tab0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT ALL col0 + - col1 DIV + ( - col2 ) AS col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL col0 + - col1 / + ( - col2 ) AS col2 FROM tab2
----
48
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 col2, 61 FROM tab1
----
39
61
39
61
39
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <= - - col2
----
51
14
96

query I rowsort
SELECT + col1 * + col0 - + - col1 AS col0 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT DISTINCT ( + col1 ) * 4 - + col1 * + col0 FROM tab0
----
-1743
-891
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT ALL col0 DIV - 2 - - col1 FROM tab0
----
-22
-47
74

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL col0 / - 2 - - col1 FROM tab0
----
-22
-47
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT DISTINCT + - COUNT( * ) DIV + 54 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + - COUNT ( * ) / + 54 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT 30 * + 77 - col1 AS col0 FROM tab1 AS cor0
----
2263
2296
2305

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT - + col2 DIV ( ( + col0 ) ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT - + col2 / ( ( + col0 ) ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - MIN( - 17 ) * + + MIN( ALL + + col1 ) FROM tab2 AS cor0
----
867

skipif mysql # not compatible
query I rowsort label-7917
SELECT - MIN ( - 17 ) * + + MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT MAX( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7918
SELECT MAX ( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
-38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - ( - col1 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - 67 + - - 53 * - col2 NOT IN ( - col1 * - + col0 + - 98 * + 92 * 55 + 50, - 95, - 74 )
----

query I rowsort
SELECT DISTINCT - ( 41 ) + ( - + 85 ) * + - col2 * - - col2 + - + 30 AS col0 FROM tab2 AS cor0 WHERE 71 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 col2 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT col1 * + 47 * - col0 FROM tab1 AS cor0
----
-19975
-201019
-33558

query II rowsort
SELECT ALL + ( + - col1 ), 74 * - col0 AS col2 FROM tab0 AS cor0
----
-1
-7178
-21
-6438
-81
-1110

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + col1 + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 8 + col1, - ( - + col2 ) AS col0 FROM tab2 AS cor0
----
59
23
75
58
85
40

query I rowsort
SELECT ALL - 55 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT DISTINCT + 66 DIV col2 + + col1 AS col2 FROM tab1
----
14
47
6

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + 66 / col2 + + col1 AS col2 FROM tab1
----
14
47
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT + CAST( 90 AS SIGNED ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT + CAST ( 90 AS INTEGER ) AS col2 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col1 * - + col1 col1 FROM tab1
----
51
-196
85
-25
91
-2209

query I rowsort
SELECT DISTINCT col1 / ( col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 * - + col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + col1 - - 12 AS col0 FROM tab2 AS cor0
----
63
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + col0 - 97 - col2 col1, 87 col0 FROM tab0 AS cor0
----
-114
87
-2
87
67
87

query I rowsort
SELECT + col0 * + col0 + + - col2 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT - - 99 + ( + + 63 ) FROM tab2 AS cor0
----
162
162
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab0 AS cor0 WHERE 87 * - + ( col1 ) = NULL
----

query I rowsort
SELECT 29 + - + 86 FROM tab1 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT + COUNT( * ) - - 5 AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + COUNT ( * ) - - 5 AS col2 FROM tab2
----
8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( - - col2 / - - col0 * 55 )
----

query I rowsort
SELECT ALL col2 * + col1 * + ( - 4 ) AS col2 FROM tab0
----
-15228
-396
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ( col2 ) * - ( CAST( - col0 AS SIGNED ) ) + ( - - col0 ) AS col2 FROM tab0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-7944
SELECT ( col2 ) * - ( CAST ( - col0 AS INTEGER ) ) + ( - - col0 ) AS col2 FROM tab0
----
720
957
9700

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT DISTINCT + col0 DIV col1 DIV col1 * 1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + col0 / col1 / col1 * 1 FROM tab2
----
0

query I rowsort
SELECT + 15 * + col0 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 * + - 29 AS col1 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7949
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 <> + col2 + + - CAST( - + 60 AS SIGNED ) + + 86 + + col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7949
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 <> + col2 + + - CAST ( - + 60 AS INTEGER ) + + 86 + + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7951
SELECT COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7952
SELECT COUNT( * ) col0, + 42 FROM tab2
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7952
SELECT COUNT ( * ) col0, + 42 FROM tab2
----
3
42

query I rowsort
SELECT DISTINCT ( 4 ) AS col2 FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7954
SELECT CAST( NULL AS SIGNED ), - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7954
SELECT CAST ( NULL AS INTEGER ), - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN + 18 AND NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + ( + + col2 ) + + col1 AS col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( - 13 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( - 13 AS INTEGER ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT ALL + + 33 + - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + + 33 + - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT AVG ( DISTINCT - + 50 ) * - CAST( NULL AS SIGNED ) + - 20 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT AVG ( DISTINCT - + 50 ) * - CAST ( NULL AS INTEGER ) + - 20 FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE - ( 25 ) + + col0 < + ( + + 29 ) * 8
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * - col0 * - - col2 col0 FROM tab1
----
-14688
-15045
-18564

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT - MAX( DISTINCT + 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - MAX ( DISTINCT + 95 ) FROM tab0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) + + col2 col1 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT - col0 + - 62 AS col0 FROM tab2 AS cor0
----
-108
-126
-137

query I rowsort
SELECT + col2 - - 35 AS col1 FROM tab1 AS cor0
----
103
131
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT + 42 + - MIN( + + col0 ) FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + 42 + - MIN ( + + col0 ) FROM tab2 cor0
----
-4

query I rowsort
SELECT ALL + 85 + col0 + col2 FROM tab2 WHERE NULL IS NULL
----
154
189
218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + SUM( DISTINCT + col0 ) + + MAX( - + 75 ) AS col1 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-7971
SELECT + SUM ( DISTINCT + col0 ) + + MAX ( - + 75 ) AS col1 FROM tab2
----
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col2 col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT col1 AS col0, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT + - COUNT( * ) DIV ( 51 ) * + 83 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + - COUNT ( * ) / ( 51 ) * + 83 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7976
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + - MAX( DISTINCT 6 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7977
SELECT + - MAX ( DISTINCT 6 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - ( - + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query II rowsort
SELECT + - 2 AS col0, col0 FROM tab1 AS cor0
----
-2
51
-2
85
-2
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - - col0 - - - col0 AS col0, ( - col1 ) col1 FROM tab2 AS cor0
----
2070
-51
4032
-77
5550
-67

query II rowsort
SELECT ALL + 88 * - + col0 * + - 33 - - col0, col1 AS col2 FROM tab2 AS cor0
----
133630
51
185920
77
217875
67

query I rowsort
SELECT DISTINCT - 78 * - 74 FROM tab1 AS cor0
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - COUNT( * ) * MIN( DISTINCT col2 ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-7984
SELECT - COUNT ( * ) * MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
-177

query I rowsort
SELECT ALL + 36 * + col2 * + 21 * - col1 * - col0 FROM tab0
----
13812120
43171380
7259868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL col1 * - col1 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL col1 * - col1 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL 7 * - + ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL 7 * - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2
----
21

query I rowsort
SELECT ALL + 42 * - col1 * + - col2 AS col2 FROM tab2
----
129360
163212
49266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7989
SELECT - - col2 * col0 * + + col2 AS col0, - 6 FROM tab1 AS cor0 WHERE NOT + 80 * - 3 * - + 53 * + CAST( NULL AS SIGNED ) > - - col0
----

skipif mysql # not compatible
query II rowsort label-7989
SELECT - - col2 * col0 * + + col2 AS col0, - 6 FROM tab1 AS cor0 WHERE NOT + 80 * - 3 * - + 53 * + CAST ( NULL AS INTEGER ) > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( ( NOT + col0 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( ( NOT + col0 IS NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - COUNT( * ) * + ( + - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - COUNT ( * ) * + ( + - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
405

query I rowsort
SELECT + + ( - + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - + 33 AS col2 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE CAST( - + 16 AS SIGNED ) > - + 60
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE CAST ( - + 16 AS INTEGER ) > - + 60
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + col2 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL - + MAX( DISTINCT 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - + MAX ( DISTINCT 35 ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT 31 * 42 * col0 * - 28 * + col1 AS col0 FROM tab2
----
-179655168
-183191400
-85525776

query I rowsort
SELECT 15 * + - 11 + - col2 AS col1 FROM tab1
----
-224
-233
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT col2 DIV 93 + + - col1 AS col2 FROM tab0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT col2 / 93 + + - col1 AS col2 FROM tab0
----
-21
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8001
SELECT ALL col0 / - 4 AS col1, + CAST( - - 27 AS SIGNED ) + + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8001
SELECT ALL col0 / - 4 AS col1, + CAST ( - - 27 AS INTEGER ) + + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 33 * - - col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 + - col2 + + - col2 + ( - col2 ) AS col2 FROM tab0 cor0
----
-219
-63
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT - ( COUNT( * ) ) DIV - 82 + + 83 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8004
SELECT - ( COUNT ( * ) ) / - 82 + + 83 FROM tab2 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 / + 20 * + 45 * col2 * - + 0 col0 FROM tab2 cor0 WHERE ( NOT + + col2 <> + 87 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT + - COUNT( DISTINCT 35 ) AS col2 FROM tab2 AS cor0 WHERE col1 / + 67 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT + - COUNT ( DISTINCT 35 ) AS col2 FROM tab2 AS cor0 WHERE col1 / + 67 IS NOT NULL
----
-1

query I rowsort
SELECT ALL - col1 * + col2 + - col2 - 46 * - col2 FROM tab2 AS cor0
----
-1276
-1280
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - col0 * 93 col2 FROM tab1
----
-12740
-5457
-8330

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - + 62 IS NULL
----

query II rowsort
SELECT DISTINCT col0 - + + 65 AS col0, + ( - col1 ) * + 90 + - - col0 AS col1 FROM tab1 AS cor0
----
-14
-1209
20
-365
26
-4139

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT + + MIN( DISTINCT + - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + + MIN ( DISTINCT + - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - 4 + + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8012
SELECT - 4 + + COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col2 + - ( - col2 ) + - - col2 * - - 36 AS col2 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT ALL + + 40 * col0 FROM tab2 cor0 WHERE NOT NULL > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * 65 col1, 91 * + - 95 * + col2 * - 65 AS col0 FROM tab1 AS cor0
----
3055
38210900
325
33153575
910
53944800

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT - COUNT( * ) FROM tab2, tab1 AS cor0 WHERE 64 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE 64 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT 54 * - - SUM( col0 ) FROM tab2
----
9990

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT 54 * - - SUM ( col0 ) FROM tab2
----
9990

query II rowsort
SELECT 41 AS col1, + 93 AS col1 FROM tab2
----
41
93
41
93
41
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 AS col2, + col1 + + 73 * + 25 col1 FROM tab2
----
43
1876
43
1892
43
1902

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL ( - SUM( ALL - - col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL ( - SUM ( ALL - - col1 ) ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - MIN( + - 51 ) col0 FROM tab0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8021
SELECT - MIN ( + - 51 ) col0 FROM tab0
----
51

query II rowsort
SELECT + col0 AS col0, ( col2 ) + + + 76 + + 36 FROM tab2
----
46
135
64
152
75
170

query I rowsort
SELECT ALL - col1 * + 10 + 87 AS col0 FROM tab0 AS cor0
----
-123
-723
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT DISTINCT + 30 DIV col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + 30 / col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT - 91 * CAST( col2 AS SIGNED ) - col0 * col2 AS col2 FROM tab1
----
-10384
-12376
-13632

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 91 * CAST ( col2 AS INTEGER ) - col0 * col2 AS col2 FROM tab1
----
-10384
-12376
-13632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT - col0 * col1 - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT - col0 * col1 - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - col1 + col1 = 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT + 97 = + col1
----
10
47
99

query I rowsort
SELECT col0 * + 29 AS col0 FROM tab2
----
1334
1856
2175

query I rowsort
SELECT DISTINCT col0 - - 96 AS col0 FROM tab0
----
111
183
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * 62 AS col2 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT DISTINCT + col0 + 3 FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT MIN( ALL - col1 ) - 1 AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8036
SELECT MIN ( ALL - col1 ) - 1 AS col2 FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL col1 DIV col1 + - 65 FROM tab0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL col1 / col1 + - 65 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + col2 + - col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE + 18 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT - CAST( NULL AS SIGNED ) * - COUNT( + col2 * + col0 ) FROM tab2 WHERE 87 NOT IN ( col0 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( + col2 * + col0 ) FROM tab2 WHERE 87 NOT IN ( col0 + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab0 WHERE 26 <= NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 NOT BETWEEN ( - 83 / 69 ) AND ( - 97 )
----
23
40
58

query I rowsort
SELECT ( col1 ) - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 21 * col1 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - ( col1 ) * 63 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - ( col1 ) * 63 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + col2 / + col1
----

query I rowsort
SELECT ALL - 44 * 78 AS col1 FROM tab1
----
-3432
-3432
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT SUM( DISTINCT 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8048
SELECT SUM ( DISTINCT 39 ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE 85 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE 85 IN ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8050
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * col0 IN ( col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-8050
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * col0 IN ( col1 * + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8051
SELECT + col0 FROM tab0 WHERE ( CAST( col2 AS DECIMAL ) * ( - col1 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8051
SELECT + col0 FROM tab0 WHERE ( CAST ( col2 AS REAL ) * ( - col1 ) ) IS NULL
----

query I rowsort
SELECT ALL - 98 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND ( 59 + - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL - 97 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - 97 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ( + ( 94 ) ) + - col2 FROM tab1 AS cor0
----
-2
26
35

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 cor0 WHERE ( col0 ) NOT IN ( 82 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT ( col1 ) + 14 * col0 AS col1 FROM tab2
----
1117
695
973

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 69 * col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 87 * 26 ) BETWEEN + 74 / 56 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) / - col0 >= - col1 - - col1
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 86 < ( + col1 / 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN + ( + col1 ) AND ( 33 - col1 )
----

query I rowsort
SELECT col0 * 75 AS col1 FROM tab1 AS cor0
----
3825
6375
6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 58 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8066
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 58 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL ( COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL ( COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 2 ) IN ( col1 + - col1 )
----
-46
-64
-75

query I rowsort
SELECT - 12 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-12
-12
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST( + col0 AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST ( + col0 AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 * + col1 col0 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL AVG ( ALL + col1 ) + - COUNT( * ) FROM tab0 WHERE NOT NULL < ( 70 * + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL AVG ( ALL + col1 ) + - COUNT ( * ) FROM tab0 WHERE NOT NULL < ( 70 * + 58 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT - COUNT( * ) DIV + 25 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT - COUNT ( * ) / + 25 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8076
SELECT ALL + CAST( - col1 AS SIGNED ) DIV 2 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + CAST ( - col1 AS INTEGER ) / 2 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-2
-23
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + ( - MIN( - col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + ( - MIN ( - col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT COUNT( * ) FROM tab1 WHERE NOT + col1 NOT BETWEEN col2 - 32 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col1 NOT BETWEEN col2 - 32 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE + col1 * col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8079
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + col1 * col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 62 * AVG ( - 94 ) + - 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT + 64 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 * + col0 col0 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + - ( + COUNT( * ) ) * - 80 AS col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + - ( + COUNT ( * ) ) * - 80 AS col2 FROM tab0 AS cor0
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT + col1 DIV + 29 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8085
SELECT + col1 / + 29 AS col0 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT ALL + - col2 * col0 - - 31 AS col2 FROM tab0 AS cor0
----
-674
-839
-9572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL + CAST( NULL AS SIGNED ) + - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL + CAST ( NULL AS INTEGER ) + - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8088
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( 28 AS SIGNED ) NOT BETWEEN CAST( - 58 AS SIGNED ) AND ( + col2 + col2 )
----

skipif mysql # not compatible
query III rowsort label-8088
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( 28 AS INTEGER ) NOT BETWEEN CAST ( - 58 AS INTEGER ) AND ( + col2 + col2 )
----

query II rowsort
SELECT DISTINCT + col1, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT + - 93 + - COUNT( ALL + - 47 ) * - 48 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT + - 93 + - COUNT ( ALL + - 47 ) * - 48 AS col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT + - 86 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-86
23
-86
40
-86
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT + - ( CAST( NULL AS SIGNED ) ) + - 99 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT + - ( CAST ( NULL AS INTEGER ) ) + - 99 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - ( - COUNT( DISTINCT + col0 ) ) FROM tab1 AS cor0 WHERE col2 - - col1 BETWEEN - col1 AND 74
----
1

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - ( - COUNT ( DISTINCT + col0 ) ) FROM tab1 AS cor0 WHERE col2 - - col1 BETWEEN - col1 AND 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + + ( - 19 ) + - ( COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8094
SELECT + + ( - 19 ) + - ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT - col0 * + - 90 + - ( + ( - col1 ) ) + col1 FROM tab2 AS cor0
----
4242
5914
6884

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + 89 * + + COUNT( * ) * + 96 + + COUNT( * ) FROM tab0
----
25635

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + 89 * + + COUNT ( * ) * + 96 + + COUNT ( * ) FROM tab0
----
25635

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL - COUNT( * ) * + ( COUNT( * ) ) * + 24 AS col1 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - COUNT ( * ) * + ( COUNT ( * ) ) * + 24 AS col1 FROM tab1
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( ALL - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( ALL - col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - COUNT( ALL 55 ) + - 57 AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8099
SELECT - COUNT ( ALL 55 ) + - 57 AS col0 FROM tab2
----
-60

query II rowsort
SELECT ALL 87 + + col1, ( + col2 ) FROM tab1
----
101
96
134
68
92
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT col1 AS col1 FROM tab2 WHERE NULL < + CAST( col0 AS SIGNED ) + + 62 * col1
----

skipif mysql # not compatible
query I rowsort label-8101
SELECT col1 AS col1 FROM tab2 WHERE NULL < + CAST ( col0 AS INTEGER ) + + 62 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT + COUNT( * ) + + COUNT( * ) + + - COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8102
SELECT + COUNT ( * ) + + COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - CAST( + - col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - CAST ( + - col1 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8104
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col1 - col1 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8104
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col1 - col1 - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 20 + - 96 AS col0, col2 * + 69 AS col2 FROM tab2
----
-76
1587
-76
2760
-76
4002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL 45 * 56 + - 67 + + COUNT( * ) DIV + 14 FROM tab0 AS cor0
----
2453

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL 45 * 56 + - 67 + + COUNT ( * ) / + 14 FROM tab0 AS cor0
----
2453

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT 7 DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT 7 / col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8108
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) col2 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 13 col2 FROM tab1 cor0
----
46
55
83

query I rowsort
SELECT DISTINCT - col1 + + - 69 AS col2 FROM tab2 WHERE + + col0 IS NULL
----

query I rowsort
SELECT + 60 * - col1 FROM tab1 WHERE NULL IS NULL OR NOT col1 * + ( + 29 ) NOT BETWEEN ( - 11 - 1 ) AND 45
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - - SUM( 96 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8112
SELECT - - SUM ( 96 ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT + - col1 * + ( 10 ) + - col2 FROM tab0 AS cor0
----
-109
-220
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT MAX( + - 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8114
SELECT MAX ( + - 41 ) FROM tab2 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 57 * + col0 >= ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT - COUNT( - col2 ) DIV COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8117
SELECT - COUNT ( - col2 ) / COUNT ( * ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT col2 * 79 AS col1 FROM tab1
----
4661
5372
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT 5 * - COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT 5 * - COUNT ( * ) FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8121
SELECT ALL * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-8121
SELECT ALL * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 * 85 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 42 * + 94 + + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT + col1 * - - CAST( NULL AS SIGNED ) * - - 55 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT + col1 * - - CAST ( NULL AS INTEGER ) * - - 55 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT + + ( + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + col2 + - col0 + - + col1 AS col2 FROM tab0
----
-49
-98
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 / + 78 * col1 + + col2 + + 10 NOT IN ( + col1 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT ALL 33 * - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 33 * - col0 / col0 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + col0 * + col1 + col0 AS col2 FROM tab1 cor0
----
4368
510
765

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 * + 98 < - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL + SUM( ALL + ( + - col2 ) ) + + COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + SUM ( ALL + ( + - col2 ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + + col2 + - - 2 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - - 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-8135
SELECT - - COUNT ( * ) * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 26 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 78 * 81 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE 52 * - ( - col2 ) + + + col2 BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + MAX( + 19 ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8139
SELECT + MAX ( + 19 ) AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8140
SELECT + MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 + col0 col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-8142
SELECT ALL col0 DIV + - ( - col0 ) AS col0, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-8142
SELECT ALL col0 / + - ( - col0 ) AS col0, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 18 + + col0
----

query I rowsort
SELECT 25 - - + col2 FROM tab1
----
121
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ( - - COUNT( * ) ) - + + 55 col2 FROM tab0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8145
SELECT ( - - COUNT ( * ) ) - + + 55 col2 FROM tab0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT CAST( NULL AS SIGNED ) - + - COUNT( * ) * + 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT CAST ( NULL AS INTEGER ) - + - COUNT ( * ) * + 11 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 - - col2 - 1 * - col2 col1 FROM tab2
----
113
149
79

query I rowsort
SELECT DISTINCT - col0 * - 52 - col2 FROM tab1
----
2556
4361
4664

query I rowsort
SELECT + 96 * + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8150
SELECT + CAST( NULL AS SIGNED ) AS col2, - 23 FROM tab0 AS cor0
----
NULL
-23
NULL
-23
NULL
-23

skipif mysql # not compatible
query II rowsort label-8150
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 23 FROM tab0 AS cor0
----
NULL
-23
NULL
-23
NULL
-23

query I rowsort
SELECT + col0 * - - 70 AS col0 FROM tab2 AS cor0
----
3220
4480
5250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + CAST( + + 31 AS SIGNED ) * - + 56 )
----

skipif mysql # not compatible
query I rowsort label-8153
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + CAST ( + + 31 AS INTEGER ) * - + 56 )
----

query I rowsort
SELECT + - 37 AS col1 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - + MAX( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8155
SELECT - + MAX ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - + COUNT( * ) * - COUNT( * ) col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8156
SELECT - + COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 68 ) col0 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT DISTINCT + CAST( 40 AS SIGNED ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT + CAST ( 40 AS INTEGER ) AS col2 FROM tab0
----
40

query II rowsort
SELECT ALL - col2, 92 AS col2 FROM tab2
----
-23
92
-40
92
-58
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 WHERE NOT - - col1 >= + - col2
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 WHERE NOT - - col1 >= + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT COUNT( * ) + - + 54 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8162
SELECT COUNT ( * ) + - + 54 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT * FROM tab0 WHERE NOT - 35 * + - 91 IN ( - + col0, + CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8163
SELECT * FROM tab0 WHERE NOT - 35 * + - 91 IN ( - + col0, + CAST ( NULL AS INTEGER ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - + SUM( ALL ( ( col0 ) ) ) + + 23 AS col0 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8164
SELECT - + SUM ( ALL ( ( col0 ) ) ) + + 23 AS col0 FROM tab2 AS cor0
----
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 + + 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 41 + col1 col0 FROM tab2 AS cor0
----
10
26
36

query I rowsort
SELECT DISTINCT - 38 * - 80 + - col1 + + - col0 FROM tab1
----
2902
2950
2975

query I rowsort
SELECT 14 * + col1 + col2 AS col0 FROM tab2 WHERE - col1 * + - col1 NOT BETWEEN 73 AND + col1 + - + 47 / + 8
----
1118
737
996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE NOT 1 * + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ( + SUM( ALL col0 ) ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT ( + SUM ( ALL col0 ) ) col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT - - COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8171
SELECT - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8173
SELECT DISTINCT - CAST( + + MAX( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - CAST ( + + MAX ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT ALL col0 * + col1 FROM tab2 cor0 WHERE + 78 - + CAST( NULL AS SIGNED ) NOT IN ( - 8 ) AND - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL col0 * + col1 FROM tab2 cor0 WHERE + 78 - + CAST ( NULL AS INTEGER ) NOT IN ( - 8 ) AND - col1 IS NULL
----

query I rowsort
SELECT + 69 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT 23 * - col2 * + 53 AS col2 FROM tab2
----
-28037
-48760
-70702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8177
SELECT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8177
SELECT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT 6 - - COUNT( * ) + - CAST( + SUM( DISTINCT - + col1 ) AS SIGNED ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT 6 - - COUNT ( * ) + - CAST ( + SUM ( DISTINCT - + col1 ) AS INTEGER ) FROM tab2
----
204

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - MIN( - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT ALL - MIN ( - col0 ) col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - - ( - MAX( - 47 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8181
SELECT - - ( - MAX ( - 47 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8182
SELECT - ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT CAST( NULL AS SIGNED ) / + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT CAST ( NULL AS INTEGER ) / + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 18 FROM tab0 WHERE NOT + col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8185
SELECT ALL + MIN( - + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + MIN ( - + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT ALL + col2 DIV - 23 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + col2 / - 23 FROM tab1
----
-2
-2
-4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * + 74 + col1 <> col1 * + + col2 + - col2 * - + 48 - + ( 48 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) BETWEEN + col1 * - 1 * 32 / 64 * col0 / col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( col0 ) AND ( NULL )
----

query II rowsort
SELECT DISTINCT + 95 + + 87, col0 - 46 AS col0 FROM tab2
----
182
0
182
18
182
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - 98 * - MAX( ALL - 51 ) FROM tab0
----
-4998

skipif mysql # not compatible
query I rowsort label-8191
SELECT - 98 * - MAX ( ALL - 51 ) FROM tab0
----
-4998

query I rowsort
SELECT - col0 * col2 * + col0 AS col1 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT - CAST( 7 AS SIGNED ) FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-8193
SELECT - CAST ( 7 AS INTEGER ) FROM tab0
----
-7
-7
-7

query I rowsort
SELECT - col2 + - - col0 AS col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT DISTINCT - col2 DIV col1 + 71 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT - col2 / col1 + 71 FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL ( ( - col1 ) ) * - + col0 * col0 - + col1 AS col2 FROM tab1
----
36120
36400
389160

query II rowsort
SELECT ALL - + 32 AS col2, col2 FROM tab1 cor0
----
-32
59
-32
68
-32
96

query I rowsort
SELECT DISTINCT + 62 + - - col1 AS col2 FROM tab0 cor0
----
143
63
83

query I rowsort
SELECT col2 * + - 12 * 64 * + 33 FROM tab1 AS cor0
----
-1495296
-1723392
-2433024

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT + 33 + - COUNT( * ) + - ( + 96 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + 33 + - COUNT ( * ) + - ( + 96 ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - col0 - - 99 AS col0 FROM tab1
----
14
48
8

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE - 68 BETWEEN NULL AND ( + - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) - + 22 col2 FROM tab0
----
-1
-21
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8204
SELECT * FROM tab2 WHERE NOT - col0 + - CAST( 97 AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8204
SELECT * FROM tab2 WHERE NOT - col0 + - CAST ( 97 AS INTEGER ) + - col0 IS NOT NULL
----

query II rowsort
SELECT + 62 AS col2, - col2 FROM tab1
----
62
-59
62
-68
62
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8206
SELECT DISTINCT - 82 AS col0, - COUNT( * ) DIV + + 74 - - COUNT( * ) FROM tab1
----
-82
3

skipif mysql # not compatible
query II rowsort label-8206
SELECT DISTINCT - 82 AS col0, - COUNT ( * ) / + + 74 - - COUNT ( * ) FROM tab1
----
-82
3

query II rowsort
SELECT ALL col2, - 90 FROM tab0
----
10
-90
47
-90
99
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-8208
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ALL + COUNT( * ) AS col2, 97 AS col0 FROM tab0 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL + COUNT ( * ) AS col2, 97 AS col0 FROM tab0 AS cor0
----
3
97

query II rowsort
SELECT - col0 AS col2, - 92 AS col1 FROM tab2 AS cor0
----
-46
-92
-64
-92
-75
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col1 * - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * col0 * + - 89 AS col2 FROM tab1 AS cor0
----
-435744
-446335
-550732

query I rowsort
SELECT ALL - col2 * - + 76 * 83 FROM tab0 AS cor0
----
296476
624492
63080

query I rowsort
SELECT DISTINCT - - col2 * 58 AS col0 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT COUNT( DISTINCT 52 ) * - COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8215
SELECT COUNT ( DISTINCT 52 ) * - COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col2 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col2 NOT BETWEEN - col1 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8218
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8218
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - ( + + col1 ) AS col0, + col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + col1 + + + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT + SUM( DISTINCT col0 ) * - MIN( + ( - - col1 ) ) FROM tab2 AS cor0
----
-9435

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT + SUM ( DISTINCT col0 ) * - MIN ( + ( - - col1 ) ) FROM tab2 AS cor0
----
-9435

query II rowsort
SELECT DISTINCT + + 79 + col2 - col2 * - col0 + - 75, col2 AS col1 FROM tab1 AS cor0
----
4996
96
5078
59
6260
68

query I rowsort
SELECT ALL col2 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - ( - 71 ) FROM tab1 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8225
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - + 98 / CAST( NULL AS SIGNED ) + + col1 AND - - col1
----

skipif mysql # not compatible
query III rowsort label-8225
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - + 98 / CAST ( NULL AS INTEGER ) + + col1 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT COUNT( ALL col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT COUNT ( ALL col0 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT col2, + col0 * - 32 * + ( - + col0 ) FROM tab0
----
10
242208
47
7200
99
301088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT ALL + 48 * 37 AS col1, - 11 * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL < col0
----
1776
0

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL + 48 * 37 AS col1, - 11 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < col0
----
1776
0

query I rowsort
SELECT + - 99 + ( - 28 ) - - col0 FROM tab2 AS cor0
----
-52
-63
-81

query I rowsort
SELECT ALL - col1 + + - 3 FROM tab2 AS cor0
----
-54
-70
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - - col2 * col0 * - ( + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8233
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 + + 90 FROM tab1 cor0
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-8235
SELECT ALL 12 * + 13 + - ( - col1 ), 58 DIV col1 AS col0 FROM tab2
----
207
1
223
0
233
0

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL 12 * + 13 + - ( - col1 ), 58 / col1 AS col0 FROM tab2
----
207
1
223
0
233
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + COUNT( - - 79 ) - + 32 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + COUNT ( - - 79 ) - + 32 FROM tab1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - 34 col2, col1 AS col0 FROM tab1
----
-119
5
-125
47
-85
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT + ( COUNT( ALL - - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT + ( COUNT ( ALL - - col1 ) ) FROM tab0
----
3

query I rowsort
SELECT 20 - col0 AS col0 FROM tab0 AS cor0
----
-67
-77
5

query I rowsort
SELECT - - col2 + + + col1 - + col1 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT DISTINCT + MIN( ALL CAST( - - 87 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + MIN ( ALL CAST ( - - 87 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + 34 col1 FROM tab0 AS cor0
----
115
35
55

query I rowsort
SELECT ALL 51 * col1 + + col2 * + col0 + col0 + 48 AS col2 FROM tab0 AS cor0
----
2076
4899
9799

query I rowsort
SELECT - 88 * ( 33 ) FROM tab1
----
-2904
-2904
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - MIN( + 63 ) AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8245
SELECT - MIN ( + 63 ) AS col1 FROM tab2
----
-63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - 36 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT - + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 74 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - 70 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT + - MAX( - - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + - MAX ( - - col2 ) FROM tab2 cor0
----
-58

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( - 95 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, - 72 col0 FROM tab1
----
-51
-72
-85
-72
-91
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT CAST( 92 AS SIGNED ) * col1 AS col1 FROM tab0
----
1932
7452
92

skipif mysql # not compatible
query I rowsort label-8254
SELECT CAST ( 92 AS INTEGER ) * col1 AS col1 FROM tab0
----
1932
7452
92

query I rowsort
SELECT 78 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + 67 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

query II rowsort
SELECT DISTINCT col0 + 0 * col2 AS col1, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + 83 + + + 75 AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 * 49 AS col1 FROM tab1 AS cor0
----
2891
3332
4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT + ( - 72 ) DIV COUNT( * ) + - 48 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + ( - 72 ) / COUNT ( * ) + - 48 FROM tab0 cor0
----
-72

query II rowsort
SELECT DISTINCT + + col0, col2 * col1 AS col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

query I rowsort
SELECT - ( col2 ) * + col2 + - 86 * + col0 FROM tab0 AS cor0
----
-18143
-3499
-7582

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 16 ) AS col1 FROM tab1
----
-16
-16
-16

query II rowsort
SELECT DISTINCT - 61 * + + 94 AS col2, - 10 AS col0 FROM tab2
----
-5734
-10

query I rowsort
SELECT 37 * - 87 FROM tab1
----
-3219
-3219
-3219

query I rowsort
SELECT ALL - col0 * + 15 FROM tab1
----
-1275
-1365
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT + 59 DIV + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8267
SELECT + 59 / + col1 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - - col1 FROM tab0 WHERE NULL > + 66
----

query I rowsort
SELECT 85 * col0 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + COUNT( * ) * MAX( DISTINCT col0 ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8270
SELECT + COUNT ( * ) * MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 94 + - 23 + - col1 * + + col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-2617
-519
-6321

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL 62 - + SUM( - col2 ) - + - ( + + ( + MIN( DISTINCT - col2 ) ) ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 62 - + SUM ( - col2 ) - + - ( + + ( + MIN ( DISTINCT - col2 ) ) ) FROM tab1 AS cor0
----
189

query I rowsort
SELECT 51 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
51
51
51

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE col1 - - col1 / + col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8277
SELECT ALL col1, - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-8277
SELECT ALL col1, - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-8278
SELECT ALL + col0 col0, ( - - 1 ) DIV + 9 + + 86 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
46
109
64
126
75
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8278
SELECT ALL + col0 col0, ( - - 1 ) / + 9 + + 86 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
46
109
64
126
75
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT + + 63 * MAX( + + 95 ) AS col0 FROM tab0 AS cor0
----
5985

skipif mysql # not compatible
query I rowsort label-8279
SELECT + + 63 * MAX ( + + 95 ) AS col0 FROM tab0 AS cor0
----
5985

query I rowsort
SELECT + - 94 * col1 + - - col1 FROM tab0 AS cor0
----
-1953
-7533
-93

query II rowsort
SELECT - col1, - 91 AS col1 FROM tab2 AS cor0
----
-51
-91
-67
-91
-77
-91

query II rowsort
SELECT col0, 10 FROM tab0 AS cor0
----
15
10
87
10
97
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL + col1 DIV 30 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + col1 / 30 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - 22 BETWEEN + col1 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 8 BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT COUNT( * ) * 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8286
SELECT COUNT ( * ) * 79 FROM tab1 AS cor0
----
237

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + 75 * - col0 * - 48 AND col0
----

query I rowsort
SELECT 97 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT COUNT( * ) * - 94 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT COUNT ( * ) * - 94 FROM tab0
----
-282

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col1 NOT IN ( + 94, col2, - col0, + 97 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ( + MIN( + 69 ) ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8291
SELECT ( + MIN ( + 69 ) ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + col1, + col1 * + 0, + CAST( NULL AS SIGNED ), - 98 ) )
----

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + col1, + col1 * + 0, + CAST ( NULL AS INTEGER ), - 98 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT ALL CAST( 79 AS SIGNED ) col2 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8293
SELECT ALL CAST ( 79 AS INTEGER ) col2 FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 51 + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87 col0, col0 AS col2 FROM tab1 AS cor0
----
-87
51
-87
85
-87
91

query II rowsort
SELECT + col2 * + 17 + - 47 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
344
-23
633
-40
939
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT + 31 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT + 31 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
34

query I rowsort
SELECT DISTINCT - 7 + - col2 FROM tab1
----
-103
-66
-75

query I rowsort
SELECT DISTINCT + col0 + 53 AS col2 FROM tab0
----
140
150
68

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 WHERE 7 * - + col1 IN ( - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col1 + - 84 col1 FROM tab1 AS cor0
----
-109
-2293
-280

query II rowsort
SELECT + 62 AS col0, col2 AS col2 FROM tab1 AS cor0
----
62
59
62
68
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + + COUNT( DISTINCT - - ( col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT + + COUNT ( DISTINCT - - ( col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - 1 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - + 11 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT - + 11 / + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - 34 / + - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( DISTINCT - - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( DISTINCT - - col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT MAX( - + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-8310
SELECT MAX ( - + 73 ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT MAX( ALL 68 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-8311
SELECT MAX ( ALL 68 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
68

query I rowsort
SELECT ALL + - 27 * - 47 * + col2 + - col0 FROM tab2 AS cor0
----
29141
50696
73527

query I rowsort
SELECT - col2 * - - 28 FROM tab2 AS cor0
----
-1120
-1624
-644

query I rowsort
SELECT + 15 * col1 AS col0 FROM tab0 cor0
----
1215
15
315

query II rowsort
SELECT DISTINCT + 71, + 79 * col0 + ( + 99 ) AS col2 FROM tab0
----
71
1284
71
6972
71
7762

query II rowsort
SELECT col1 AS col2, 81 AS col1 FROM tab0
----
1
81
21
81
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT MIN( - ( + 31 ) ), COUNT( + - col1 ) AS col2 FROM tab2
----
-31
3

skipif mysql # not compatible
query II rowsort label-8317
SELECT MIN ( - ( + 31 ) ), COUNT ( + - col1 ) AS col2 FROM tab2
----
-31
3

query I rowsort
SELECT DISTINCT + col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - ( + 87 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL - col1 DIV 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - col1 / 32 FROM tab2
----
-1
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col2 col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 col1, + col0 FROM tab1
----
84
51
84
85
84
91

query II rowsort
SELECT + 55 AS col2, - col1 AS col2 FROM tab0
----
55
-1
55
-21
55
-81

query II rowsort
SELECT - + col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT - - 66 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - col0 * + 8 AS col2 FROM tab2 AS cor0
----
-368
-512
-600

query I rowsort
SELECT ALL + 38 AS col0 FROM tab2 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 WHERE 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - 85 AS col2 FROM tab2
----
-10
-21
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * - - col1 * 48 * - col2 + - col2 col1 FROM tab2 cor0
----
-11378266
-3434567
-9018280

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL - + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 + col1 col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query II rowsort
SELECT ALL + col2 * + - 2 * 14 + - col2, 42 AS col2 FROM tab0 AS cor0
----
-1363
42
-2871
42
-290
42

query I rowsort
SELECT DISTINCT - ( + + 23 ) + + 93 AS col0 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT + - COUNT( ALL - + col2 ) DIV - + 27 AS col2 FROM tab0 WHERE - col2 * + + 91 NOT BETWEEN NULL AND + 31 * - col1 + + 41 * - col2 + - + 40
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT + - COUNT ( ALL - + col2 ) / - + 27 AS col2 FROM tab0 WHERE - col2 * + + 91 NOT BETWEEN NULL AND + 31 * - col1 + + 41 * - col2 + - + 40
----
0

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col0 FROM tab2
----
141
142
97

query II rowsort
SELECT 52, + 76 * col1 AS col1 FROM tab0
----
52
1596
52
6156
52
76

query I rowsort
SELECT col1 * - 39 AS col1 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT ( - - col1 ) - col0 + col1 FROM tab0
----
-45
-95
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT 24 - ( + col0 ) DIV + - 6 FROM tab1
----
32
38
39

skipif mysql # not compatible
query I rowsort label-8341
SELECT 24 - ( + col0 ) / + - 6 FROM tab1
----
32
38
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col1 / - col0 NOT BETWEEN - 4 / - 57 AND - col0
----
3

skipif mysql # not compatible
query I rowsort label-8342
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 / - col0 NOT BETWEEN - 4 / - 57 AND - col0
----
3

query I rowsort
SELECT ( + col0 ) * - col1 * 34 AS col0 FROM tab2
----
-167552
-170850
-79764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT ALL col0 * col2 AS col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL col0 * col2 AS col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8345
SELECT ALL - 79, 48 + + CAST( ( - + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1
----
-79
45

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL - 79, 48 + + CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1
----
-79
45

query I rowsort
SELECT col1 * 25 * - col2 AS col0 FROM tab0 AS cor0
----
-2475
-5250
-95175

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 <> - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 40 * - CAST( - CAST( ( - - ( + col0 ) ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
-2040
NULL
-3400
NULL
-3640

skipif mysql # not compatible
query II rowsort label-8348
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 40 * - CAST ( - CAST ( ( - - ( + col0 ) ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
-2040
NULL
-3400
NULL
-3640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8350
SELECT + COUNT( * ) AS col2, - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8350
SELECT + COUNT ( * ) AS col2, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT ALL - ( + col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ALL - col1 * + col0 AS col0, - col2 * + col2 FROM tab2
----
-2346
-529
-4928
-1600
-5025
-3364

query I rowsort
SELECT DISTINCT col1 * 6 FROM tab1
----
282
30
84

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT + col0 DIV col1 * col2 FROM tab0 WHERE NOT col0 IS NULL
----
0
40
9603

skipif mysql # not compatible
query I rowsort label-8355
SELECT + col0 / col1 * col2 FROM tab0 WHERE NOT col0 IS NULL
----
0
40
9603

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 WHERE NOT col1 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 49 ) col2 FROM tab0 WHERE NOT + 91 + - 93 + - - col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * 13 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-182
-611
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * col1 col0 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT ALL 39 + + 9 AS col0 FROM tab2 AS cor0
----
48
48
48

query II rowsort
SELECT - 24, - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 879460c735a81e2ba642a75b73baff61

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 47 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 50 * - + col2 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-12484800
-21313750
-28155400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + col1 col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + + col1 + + - 34 FROM tab2 AS cor0 WHERE NULL <= 23
----

query I rowsort
SELECT + col1 + + - 59 + ( col1 ) FROM tab1 AS cor0
----
-31
-49
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8368
SELECT ( ( - CAST( NULL AS DECIMAL ) ) ) + - col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ( ( - CAST ( NULL AS REAL ) ) ) + - col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 37 + + 41 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT ALL + col1 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + col1 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ( + + MAX( DISTINCT - - col1 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-8371
SELECT ( + + MAX ( DISTINCT - - col1 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT + col1 + - 98 + - CAST( - 29 AS SIGNED ) AS col1 FROM tab0
----
-48
-68
12

skipif mysql # not compatible
query I rowsort label-8372
SELECT + col1 + - 98 + - CAST ( - 29 AS INTEGER ) AS col1 FROM tab0
----
-48
-68
12

query II rowsort
SELECT ALL + 8 * + + 39 - + 67 * col2, + col2 AS col1 FROM tab1
----
-3641
59
-4244
68
-6120
96

query I rowsort
SELECT ALL + 29 - + 48 FROM tab1
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8375
SELECT ALL * FROM tab0 WHERE NOT + col1 + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8375
SELECT ALL * FROM tab0 WHERE NOT + col1 + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8376
SELECT + col0 * - + col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT + col0 * - + col2 / CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + - MAX( ALL - col2 ) * + 79 FROM tab2 AS cor0
----
1817

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - MAX ( ALL - col2 ) * + 79 FROM tab2 AS cor0
----
1817

query I rowsort
SELECT - - 25 * - col0 AS col1 FROM tab0 AS cor0
----
-2175
-2425
-375

query I rowsort
SELECT ALL + 1 * col1 * - col0 * + - col0 AS col2 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT - 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT + COUNT( + CAST( + 73 AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8382
SELECT + COUNT ( + CAST ( + 73 AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 81 * + col0 * + - col1 AS col1 FROM tab0 AS cor0
----
-147987
-7857
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT + COUNT( - 79 ) * + 18 * + + 56 col1 FROM tab2 AS cor0
----
3024

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8384
SELECT DISTINCT + COUNT ( - 79 ) * + 18 * + + 56 col1 FROM tab2 AS cor0
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL col1 / - 48 * - - col1 + + col2 + col0 * 54 * - 85 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( - 28 ) NOT BETWEEN - col0 - + + col0 + + col2 * + + 74 * - 40 * - col1 * + - 68 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL col1 / - 48 * - - col1 + + col2 + col0 * 54 * - 85 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( - 28 ) NOT BETWEEN - col0 - + + col0 + + col2 * + + 74 * - 40 * - col1 * + - 68 AND NULL
----

query I rowsort
SELECT ALL - - col2 * 41 FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT ALL - 41 * - + col2 AS col2 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - ( - 37 ) * - COUNT( * ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8388
SELECT - ( - 37 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT DISTINCT col2 * + 75 FROM tab2 AS cor0
----
1725
3000
4350

query II rowsort
SELECT DISTINCT col0 * - col1 * col2 AS col1, col0 FROM tab1 AS cor0
----
-25075
85
-290836
91
-68544
51

query II rowsort
SELECT + 37, - col1 + 20 AS col2 FROM tab0
----
37
-1
37
-61
37
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT ALL 98, - MAX( ALL - col2 ) AS col1 FROM tab1
----
98
59

skipif mysql # not compatible
query II rowsort label-8392
SELECT ALL 98, - MAX ( ALL - col2 ) AS col1 FROM tab1
----
98
59

query II rowsort
SELECT DISTINCT + col0, - col2 + + col0 FROM tab2
----
46
23
64
24
75
17

query I rowsort
SELECT ALL - col0 * + + col1 * - 60 FROM tab0
----
109620
5820
72900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 88 col1, 94 AS col1 FROM tab0
----
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( ( - 62 ) ) FROM tab2
----
-62
-62
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8398
SELECT DISTINCT + col2, + 27 AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
9 values hashing to 2c1a13daa9d5293e546c9269b84c0492

skipif mysql # not compatible
query III rowsort label-8398
SELECT DISTINCT + col2, + 27 AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
9 values hashing to 2c1a13daa9d5293e546c9269b84c0492

query I rowsort
SELECT DISTINCT - 27 + - col1 FROM tab0 cor0
----
-108
-28
-48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 * - - 15 IS NULL
----

query II rowsort
SELECT ALL col0 + col0 * - ( + ( col1 ) ) * col1, + col0 FROM tab2 AS cor0
----
-119600
46
-336600
75
-379392
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT + ( + CAST( NULL AS SIGNED ) ) * 26 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 26 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT 73 + COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-8403
SELECT 73 + COUNT ( * ) FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query III rowsort label-8404
SELECT ALL COUNT( * ) col2, ( + COUNT( * ) ), - MAX( - ( - + 28 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8404
SELECT ALL COUNT ( * ) col2, ( + COUNT ( * ) ), - MAX ( - ( - + 28 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9
-28

query I rowsort
SELECT col2 * - - col0 + + col1 * - col2 AS col1 FROM tab1
----
2992
3552
4720

query I rowsort
SELECT 97 FROM tab1 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT 44 + - + 96 FROM tab1 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT - - col1 DIV 77 + + col0 AS col2 FROM tab0 cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-8408
SELECT - - col1 / 77 + + col0 AS col2 FROM tab0 cor0
----
16
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT DISTINCT + + ( 94 ) DIV col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + + ( 94 ) / col2 FROM tab1 cor0
----
0
1

query II rowsort
SELECT - 54, col2 FROM tab1
----
-54
59
-54
68
-54
96

query I rowsort
SELECT DISTINCT - 89 - col2 FROM tab1
----
-148
-157
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8413
SELECT ALL CAST( - col0 AS SIGNED ) + + col2 AS col1, - 28 AS col2 FROM tab1
----
-23
-28
-26
-28
45
-28

skipif mysql # not compatible
query II rowsort label-8413
SELECT ALL CAST ( - col0 AS INTEGER ) + + col2 AS col1, - 28 AS col2 FROM tab1
----
-23
-28
-26
-28
45
-28

query I rowsort
SELECT DISTINCT 7 + + + col1 AS col1 FROM tab1
----
12
21
54

onlyif mysql # DIV for integer division: 
query II rowsort label-8415
SELECT ALL - col2 - 9 + 24 AS col0, - 3 + - col1 - 5 * col0 + + - 96 DIV + ( + 92 ) + col0 FROM tab0
----
-32
-145
-84
-393
5
-373

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL - col2 - 9 + 24 AS col0, - 3 + - col1 - 5 * col0 + + - 96 / + ( + 92 ) + col0 FROM tab0
----
-32
-145
-84
-393
5
-373

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL col2 / - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8417
SELECT ALL col2 / - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 63 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT MIN( DISTINCT + - 48 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-8419
SELECT MIN ( DISTINCT + - 48 ) FROM tab0
----
-48

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col2 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 6 + + - 59 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL 10, 24 AS col0 FROM tab2 AS cor0
----
10
24
10
24
10
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + SUM ( + col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - - col2 + + - 31
----

query I rowsort
SELECT DISTINCT + 70 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8427
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-8427
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 68 FROM tab1 AS cor0 WHERE NOT - - col2 / + - col1 IS NULL OR NULL NOT BETWEEN NULL AND + ( + col0 )
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT MAX( DISTINCT ( + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8429
SELECT MAX ( DISTINCT ( + col1 ) ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 43 col2 FROM tab1 cor0
----
-43

query II rowsort
SELECT ALL + col1, - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - ( + - 8 ) AS col0, 28 FROM tab1 AS cor0
----
-8
28

query I rowsort
SELECT - ( 30 ) AS col0 FROM tab2
----
-30
-30
-30

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + 20
----

query I rowsort
SELECT DISTINCT - 61 * - col0 AS col0 FROM tab0
----
5307
5917
915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL - CAST( NULL AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * + col0 + - 28 + 71 col1 FROM tab1 AS cor0
----
-3731
-6247
-6691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) + - + col1 + + col1 + 17 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) + - + col1 + + col1 + 17 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + + - ( - 20 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + + - ( - 20 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT col1 * CAST( NULL AS SIGNED ) / - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT col1 * CAST ( NULL AS INTEGER ) / - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 27 * + col1 FROM tab2
----
104922
31671
83160

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT + 64 - + 16 + - COUNT( + col1 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8442
SELECT + 64 - + 16 + - COUNT ( + col1 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - COUNT( * ) - + 91 AS col1 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8443
SELECT - COUNT ( * ) - + 91 AS col1 FROM tab2 cor0
----
-94

query I rowsort
SELECT + 44 + + col1 FROM tab2 AS cor0
----
111
121
95

query II rowsort
SELECT DISTINCT col1 AS col0, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT DISTINCT 54 DIV + 44 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT 54 / + 44 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT 21 + + - 81 AS col0 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT + + 21 / - 93 + - CAST( NULL AS SIGNED ) + col0 * + - 82 * + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT + + 21 / - 93 + - CAST ( NULL AS INTEGER ) + col0 * + - 82 * + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - + 20 ) FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - 37 + + 48 AS col0 FROM tab0 cor0
----
11
11
11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 78 NOT BETWEEN - + col2 - + col2 AND - - col1 + + col0 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 + - col2 AS col0, + col2 FROM tab1 AS cor0
----
-118
59
-136
68
-192
96

query I rowsort
SELECT DISTINCT + ( - + 29 ) AS col0 FROM tab2
----
-29

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL > + + ( + + 7 )
----

query I rowsort
SELECT DISTINCT 0 * 20 - + 72 FROM tab1, tab1 AS cor0
----
-72

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - 0 > col1
----

query II rowsort
SELECT DISTINCT - 34 * 97 * - col2, col2 FROM tab0
----
155006
47
326502
99
32980
10

onlyif mysql # DIV for integer division: 
query II rowsort label-8458
SELECT ALL col0 DIV - 32, col0 AS col0 FROM tab2
----
-1
46
-2
64
-2
75

skipif mysql # not compatible
query II rowsort label-8458
SELECT ALL col0 / - 32, col0 AS col0 FROM tab2
----
-1
46
-2
64
-2
75

query I rowsort
SELECT + ( + - 51 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + MIN( ALL + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + MIN ( ALL + - col1 ) FROM tab0
----
-81

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 27 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col0 + - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-2
-21
77
-81
-32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) + + - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL - ( - COUNT( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - ( - COUNT ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 46 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 >= - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT DISTINCT - col1 + - - col2 DIV + - 8 col2 FROM tab2
----
-53
-74
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8468
SELECT DISTINCT - col1 + - - col2 / + - 8 col2 FROM tab2
----
-53
-74
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89 * - col0 col2, - 37 AS col0 FROM tab1
----
-4539
-37
-7565
-37
-8099
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8470
SELECT * FROM tab0 WHERE + col2 < - CAST( + + 97 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8470
SELECT * FROM tab0 WHERE + col2 < - CAST ( + + 97 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT ( + + 20 ), + SUM( DISTINCT + 10 ) AS col2 FROM tab1
----
20
10

skipif mysql # not compatible
query II rowsort label-8471
SELECT ( + + 20 ), + SUM ( DISTINCT + 10 ) AS col2 FROM tab1
----
20
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT 58 DIV - - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8472
SELECT 58 / - - col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT - SUM( 25 ) * COUNT( * ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - SUM ( 25 ) * COUNT ( * ) FROM tab1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL + COUNT( ALL col0 ) * - - 4 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + COUNT ( ALL col0 ) * - - 4 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + 77 + - 7 AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 WHERE ( NOT NULL NOT BETWEEN - col1 AND col0 * - col0 * col1 - col0 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( - - 55 IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query II rowsort label-8478
SELECT - COUNT( * ) * - + ( COUNT( * ) ), + 80 - - MIN( ALL ( - + col1 ) ) col0 FROM tab0
----
9
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8478
SELECT - COUNT ( * ) * - + ( COUNT ( * ) ), + 80 - - MIN ( ALL ( - + col1 ) ) col0 FROM tab0
----
9
-1

query I rowsort
SELECT + + 19 * - + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-266
-893
-95

query I rowsort
SELECT ALL + col2 * + col1 * + 98 + + - 11 AS col0 FROM tab2 AS cor0
----
114943
301829
380817

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT ALL - col0 DIV - + col1 + col2 + col0 - + col1 + - - 69 DIV - - 99 FROM tab1 cor0
----
113
136
156

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - col0 / - + col1 + col2 + col0 - + col1 + - - 69 / - - 99 FROM tab1 cor0
----
113
136
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( col1 ) + + ( - 94 ) * + col2 + + col2 FROM tab2 AS cor0
----
-2190
-3797
-5461

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT - - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8484
SELECT - - col0 / + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > + col1
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 94 * - + 57 FROM tab0
----
5358
5358
5358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT + 85 AS col1, - col1 AS col1 FROM tab1
----
85
-14
85
-47
85
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT DISTINCT - col0 * - col0 DIV - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - col0 * - col0 / - col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) / col0 >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT - col2 * col2 + - + 25 FROM tab1 AS cor0 WHERE NOT 51 IS NULL
----
-3506
-4649
-9241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1, + col0 * - col2 * + col2 col0 FROM tab2 AS cor0
----
-51
-24334
-67
-252300
-77
-102400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8496
SELECT + CAST( NULL AS SIGNED ) AS col1, col2 * + - col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
query II rowsort label-8496
SELECT + CAST ( NULL AS INTEGER ) AS col1, col2 * + - col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 63 ) col0 FROM tab2 AS cor0
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 92 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT - 48 DIV - - ( - 44 ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8499
SELECT - 48 / - - ( - 44 ) AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT ALL CAST( NULL AS SIGNED ) * - - col1 + + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL CAST ( NULL AS INTEGER ) * - - col1 + + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - ( 39 ) ) FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 95 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 95 IS NOT NULL
----
-3

query I rowsort
SELECT - col0 * + - 1 * + ( + col1 ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - - 42 * + col2 AS col1 FROM tab0 cor0
----
1974
4158
420

query I rowsort
SELECT ALL - 67 + - ( - col0 ) AS col1 FROM tab0
----
-52
20
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT + + col0 DIV + - 40 FROM tab1 WHERE NOT - - col2 + col0 = - col1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + + col0 / + - 40 FROM tab1 WHERE NOT - - col2 + col0 = - col1
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 39 * + ( + + col0 ) * - + col0 FROM tab2
----
23
82524
40
159744
58
219375

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 62 NOT BETWEEN + 31 AND + - 9 * + col1 + + 80
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE - + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL MAX( DISTINCT + col1 ) col1 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8511
SELECT ALL MAX ( DISTINCT + col1 ) col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT ALL + COUNT( * ) DIV 26 + + COUNT( * ) col0 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT ALL + COUNT ( * ) / 26 + + COUNT ( * ) col0 FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT + 51 + - + col0 + + col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
18234
57141
9557

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL 36 + MIN( + col0 ) col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8514
SELECT ALL 36 + MIN ( + col0 ) col2 FROM tab2 AS cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8515
SELECT CAST( NULL AS DECIMAL ) + + MAX( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT CAST ( NULL AS REAL ) + + MAX ( - col1 ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 88 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT + 18 FROM tab0 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * 28 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8520
SELECT - 3 DIV - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 3 / - COUNT ( * ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 19 BETWEEN NULL AND col1 * col1 + - col1 * + col0
----

query I rowsort
SELECT - 16 * - 18 + 50 AS col0 FROM tab2
----
338
338
338

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT + ( - 63 ) * col2 AS col2 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE NOT - 6 IN ( - 38 )
----
-2
-32
77

query I rowsort
SELECT col0 - + 13 FROM tab2
----
33
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL MIN( ALL col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT ALL MIN ( ALL col1 ) col2 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = 62
----

query I rowsort
SELECT ALL - 73 + - col2 AS col1 FROM tab2
----
-113
-131
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / ( + 92 ) BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 7 + col1 FROM tab1
----
-2
40
7

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT COUNT( * ) * + 24 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT COUNT ( * ) * + 24 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL = + col0
----

query I rowsort
SELECT 11 FROM tab2 WHERE ( 55 ) NOT BETWEEN + 4 AND - col1
----
11
11
11

query I rowsort
SELECT ALL + ( 8 ) + + col2 FROM tab2
----
31
48
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT CAST( 0 AS SIGNED ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT CAST ( 0 AS INTEGER ) AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col1 / col2 )
----

query I rowsort
SELECT ( + ( 70 ) ) FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT MIN( DISTINCT - col1 ) * + 86 AS col0 FROM tab1 AS cor0
----
-4042

skipif mysql # not compatible
query I rowsort label-8541
SELECT MIN ( DISTINCT - col1 ) * + 86 AS col0 FROM tab1 AS cor0
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + SUM( + col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT + SUM ( + col0 ) col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) < 61
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT 63 * col2 FROM tab1 cor0
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + col1 + + 68 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 88 < - col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 * col1 AND 54 + - 50
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - COUNT( ALL 33 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8551
SELECT - COUNT ( ALL 33 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL SUM( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = ( + col0 ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL SUM ( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = ( + col0 ) * 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT DISTINCT + 6 DIV ( - 55 ) + - SUM( - 55 ) * - 82 AS col0 FROM tab2 AS cor0
----
-13530

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + 6 / ( - 55 ) + - SUM ( - 55 ) * - 82 AS col0 FROM tab2 AS cor0
----
-13530

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 * - ( col2 * col0 ) ) > + col1 * + col2
----

query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) AS col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + MIN( DISTINCT col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT + MIN ( DISTINCT col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT - ( + + 64 ) FROM tab2
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT ALL - col0 DIV - + col1 + 9 * + 65 AS col0 FROM tab2 cor0
----
585
585
586

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - col0 / - + col1 + 9 * + 65 AS col0 FROM tab2 cor0
----
585
585
586

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 AND + col2 / col2 <= + 98
----

query I rowsort
SELECT + ( 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 67 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT MAX( DISTINCT 23 ) - - 40 + - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT MAX ( DISTINCT 23 ) - - 40 + - COUNT ( * ) FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8564
SELECT + CAST( NULL AS SIGNED ) AS col1, + 2 AS col2 FROM tab0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-8564
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 2 AS col2 FROM tab0
----
NULL
2
NULL
2
NULL
2

query I rowsort
SELECT ALL 44 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT + SUM( + - 16 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + SUM ( + - 16 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL - ( - + col1 ) * + + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( ( col2 ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col2 / - ( - 82 ) = NULL
----

query II rowsort
SELECT + col1, + 95 + - + 61 FROM tab0 AS cor0
----
1
34
21
34
81
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT COUNT( * ) DIV - ( + ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8571
SELECT COUNT ( * ) / - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8572
SELECT - + COUNT( * ) AS col2, - COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8572
SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 84 ) <= 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL + MIN( ALL + 83 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + MIN ( ALL + 83 ) AS col2 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT + COUNT( * ) * - - 91 AS col1 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + COUNT ( * ) * - - 91 AS col1 FROM tab0
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8578
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0, 37 FROM tab1 AS cor0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-8578
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0, 37 FROM tab1 AS cor0
----
NULL
37

query I rowsort
SELECT 25 + - 12 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8580
SELECT ALL - CAST( NULL AS DECIMAL ) / col0 FROM tab0 AS cor0 WHERE ( 73 * col1 - col2 BETWEEN + col0 * col0 AND 98 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - CAST ( NULL AS REAL ) / col0 FROM tab0 AS cor0 WHERE ( 73 * col1 - col2 BETWEEN + col0 * col0 AND 98 * col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + MAX( DISTINCT - - col2 ) + + 95 FROM tab1 cor0
----
191

skipif mysql # not compatible
query I rowsort label-8581
SELECT + MAX ( DISTINCT - - col2 ) + + 95 FROM tab1 cor0
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT DISTINCT - col2 DIV - - col2 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - col2 / - - col2 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> ( - col2 * - 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT 13 * ( COUNT( ALL col1 ) ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8585
SELECT 13 * ( COUNT ( ALL col1 ) ) FROM tab1 AS cor0
----
39

query I rowsort
SELECT col1 / + + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT 30 + CAST( NULL AS SIGNED ) * - - ( + + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT 30 + CAST ( NULL AS INTEGER ) * - - ( + + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - col0 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT DISTINCT - + 21 + - 17 FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL - + col0 * 23 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - + col0 * 23 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + 92 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-8591
SELECT + 92 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT + col2 - 72 DIV col1 * col0 + + + col0 - + + 29 * col2 AS col1 FROM tab1
----
-1904
-2757
-2892

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + col2 - 72 / col1 * col0 + + + col0 - + + 29 * col2 AS col1 FROM tab1
----
-1904
-2757
-2892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT ALL 64 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL 64 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT + COUNT( ALL + + col0 ) * + 44 - + 42 * + CAST( NULL AS SIGNED ) / - + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8594
SELECT + COUNT ( ALL + + col0 ) * + 44 - + 42 * + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE ( NOT + + 91 * - col0 + col1 + + col1 IS NULL )
----
23
40
58

query I rowsort
SELECT ( + 45 ) FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT 33 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - 84 + + + 82 * 98 + + ( 18 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8598
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0, 71 - - + col1 AS col1 FROM tab0 cor0
----
1
72
21
92
81
152

skipif mysql # not compatible
query II rowsort label-8598
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0, 71 - - + col1 AS col1 FROM tab0 cor0
----
1
72
21
92
81
152

query I rowsort
SELECT ALL col2 * - col2 * col1 FROM tab0 AS cor0 WHERE NOT ( - ( + + 51 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8600
SELECT DISTINCT CAST( - col0 AS SIGNED ) col2, col2 * + + col1 + + col1 FROM tab0 AS cor0
----
-15
3888
-87
231
-97
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8600
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col2, col2 * + + col1 + + col1 FROM tab0 AS cor0
----
-15
3888
-87
231
-97
100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 * + - 63 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT - col0 * 65 * + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8602
SELECT - col0 * 65 * + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT COUNT( DISTINCT + - 16 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT COUNT ( DISTINCT + - 16 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT - col0 * + col2 * + + 84 AS col0 FROM tab2
----
-215040
-365400
-88872

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT 67 AS col2, + COUNT( + + 50 ) AS col0 FROM tab1
----
67
3

skipif mysql # not compatible
query II rowsort label-8605
SELECT 67 AS col2, + COUNT ( + + 50 ) AS col0 FROM tab1
----
67
3

query II rowsort
SELECT 73, + 35 AS col1 FROM tab0
----
73
35
73
35
73
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL - ( + - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL - ( + - COUNT ( * ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8609
SELECT - - CAST( col2 AS SIGNED ) * col1, - col2 + - col0 col0 FROM tab1 AS cor0
----
1344
-147
295
-144
3196
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8609
SELECT - - CAST ( col2 AS INTEGER ) * col1, - col2 + - col0 col0 FROM tab1 AS cor0
----
1344
-147
295
-144
3196
-159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + - col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT 93 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 / ( col2 ) - col0 IN ( + 92 )
----
96

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT 93 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 / ( col2 ) - col0 IN ( + 92 )
----
96

query I rowsort
SELECT - col2 + - - 7 + + col0 AS col1 FROM tab2
----
24
30
31

query II rowsort
SELECT + ( - col1 ) + - + 98 * 77 + - col0 AS col2, + 29 FROM tab0
----
-7642
29
-7644
29
-7654
29

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE - 4 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 * + - 53 * + - 65 * - + 50 + + col0 FROM tab2 AS cor0
----
-11540675
-13263186
-8784704

query I rowsort
SELECT - 19 * - + col2 * - col2 FROM tab2 AS cor0
----
-10051
-30400
-63916

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL OR + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - col0 * - - col2 * + + col2 AS col2 FROM tab1 AS cor0
----
-295880
-420737
-470002

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * + 81 * - + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 * + col2 + + 46 AS col1 FROM tab2 AS cor0
----
1104
2606
4396

query I rowsort
SELECT ALL col0 - + 84 FROM tab2
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT 74 - - COUNT( * ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT 74 - - COUNT ( * ) AS col2 FROM tab2
----
77

query I rowsort
SELECT + 22 - - col2 AS col1 FROM tab2
----
45
62
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL COUNT( + - col0 ) - + MIN( col2 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL COUNT ( + - col0 ) - + MIN ( col2 ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT - SUM( ALL + col0 ) + + 87 col2 FROM tab2
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT DISTINCT - SUM ( ALL + col0 ) + + 87 col2 FROM tab2
----
-98

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE col1 * - + col2 < col2 + - col1 - - 18 * + - col0 - - col0 AND ( - ( + 90 ) ) BETWEEN 45 + 14 * col1 AND NULL
----

query I rowsort
SELECT - 2 - + - col2 FROM tab1
----
57
66
94

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT col2 - - col0 DIV + ( + - col2 ) FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT col2 - - col0 / + ( + - col2 ) FROM tab1
----
58
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT DISTINCT col1 * + 74 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT col1 * + 74 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1, 86 FROM tab2
----
51
86
67
86
77
86

query I rowsort
SELECT ALL ( - - 72 ) AS col0 FROM tab0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8633
SELECT * FROM tab2 WHERE NOT col2 * CAST( NULL AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-8633
SELECT * FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT ALL + + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE col1 + + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE col1 + + - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 15 col1 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8636
SELECT - + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE + 59 + 38 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col0 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - col1 AND - col1
----

query I rowsort
SELECT + 99 * - col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8641
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) * + 69 + 64 * - 49 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8641
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) * + 69 + 64 * - 49 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 AS col0, + ( 10 ) AS col0 FROM tab0 AS cor0
----
1
10
21
10
81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - - MAX( ALL - - 9 ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8643
SELECT - - MAX ( ALL - - 9 ) AS col2 FROM tab2 cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + - 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT 31 / - - 97 - - + COUNT( * ) + 94 + 93 - + - CAST( NULL AS SIGNED ) * + MIN( 92 ) * COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - 21 + + col1 + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT 31 / - - 97 - - + COUNT ( * ) + 94 + 93 - + - CAST ( NULL AS INTEGER ) * + MIN ( 92 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - 21 + + col1 + - col0 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN 76 AND col0
----
51
14
96

query III rowsort
SELECT * FROM tab0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT + - col1 * - + col2 - - 57 FROM tab0 WHERE NOT 44 IS NULL
----
156
267
3864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ( + col1 ) + + - 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-8649
SELECT ( + col1 ) + + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + - 89 NOT BETWEEN NULL AND ( + 17 )
----

query I rowsort
SELECT DISTINCT + col1 + - - 11 FROM tab2
----
62
78
88

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT + col2 * col1 - + col0 * - - col0 * - ( - col0 ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL + + col2 / col2 - - col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + + col2 / col2 - - col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 - col1 * col2 * + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-178835
-2080
-9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 * + - 32 + + col1 - - + 84 - - col2 + + + col0 * + col1 * - + col2 * + ( + col2 ) + col0 = ( 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col1 * + col2 IS NULL
----

query I rowsort
SELECT - 6 - - 35 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 73 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - 78 FROM tab2 AS cor0
----
-129
-145
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT ALL 59 DIV + col1 + - col2 + col0 * + 43 + col1 AS col0 FROM tab0 AS cor0
----
3754
4132
679

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL 59 / + col1 + - col2 + col0 * + 43 + col1 AS col0 FROM tab0 AS cor0
----
3754
4132
679

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + MAX( DISTINCT - col1 ) + - 97 FROM tab1 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8663
SELECT + MAX ( DISTINCT - col1 ) + - 97 FROM tab1 cor0
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 AS col2, col2 col0 FROM tab0 AS cor0 WHERE col2 <> + col2
----

query I rowsort
SELECT + col1 + - 31 FROM tab2 AS cor0
----
20
36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT COUNT( * ) * + COUNT( * ) + - + 37 AS col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8666
SELECT COUNT ( * ) * + COUNT ( * ) + - + 37 AS col1 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL 52 DIV - 55 FROM tab1 WHERE + + col1 * col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 52 / - 55 FROM tab1 WHERE + + col1 * col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL col2 + - col1 * - + col0 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - SUM( ALL + col2 ) * + - 70 AS col1 FROM tab0
----
10920

skipif mysql # not compatible
query I rowsort label-8669
SELECT - SUM ( ALL + col2 ) * + - 70 AS col1 FROM tab0
----
10920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8670
SELECT CAST( - + COUNT( DISTINCT - ( col1 ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8670
SELECT CAST ( - + COUNT ( DISTINCT - ( col1 ) ) AS INTEGER ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * - col0 col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT DISTINCT - + 7 + + 1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, - col1 - + 37 + - 44 * CAST( + + col1 AS SIGNED ) * col0, + - 50 )
----

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - + 7 + + 1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, - col1 - + 37 + - 44 * CAST ( + + col1 AS INTEGER ) * col0, + - 50 )
----

query I rowsort
SELECT DISTINCT + + 29 * - 90 + col2 FROM tab1 cor0
----
-2514
-2542
-2551

query I rowsort
SELECT ALL 71 * + 73 FROM tab0
----
5183
5183
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT MIN( - 76 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-8675
SELECT MIN ( - 76 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - + 17 * - - 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT col0 DIV - col2 col0 FROM tab0
----
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT DISTINCT col0 / - col2 col0 FROM tab0
----
-8
0

query I rowsort
SELECT + col1 * - col1 * - - col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL > 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) / - 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) / - 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + - 79 FROM tab2 cor0
----
-102
-119
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 89 + - col1 AS col0 FROM tab0 WHERE NOT ( + 62 * - 55 + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + COUNT( 5 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COUNT ( 5 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - 52 + + + COUNT( * ) AS col2 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - 52 + + + COUNT ( * ) AS col2 FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, col1 col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8687
SELECT DISTINCT - 51 col0, CAST( NULL AS SIGNED ) + - + col1 FROM tab2
----
-51
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8687
SELECT DISTINCT - 51 col0, CAST ( NULL AS INTEGER ) + - + col1 FROM tab2
----
-51
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 89 <= - - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT ALL + COUNT( * ), - 57 AS col0 FROM tab0
----
3
-57

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL + COUNT ( * ), - 57 AS col0 FROM tab0
----
3
-57

query I rowsort
SELECT - col1 + + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - col1 * - 78
----

query I rowsort
SELECT DISTINCT + col2 * - + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) + + SUM( + col1 ) + + 53 * ( - ( + 4 ) ) * + 11 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-2229

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) + + SUM ( + col1 ) + + 53 * ( - ( + 4 ) ) * + 11 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-2229

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT + col1 + - + col1 - + 61 + + 39 * - col0 FROM tab1
----
-2050
-3376
-3610

query I rowsort
SELECT ALL col2 - + col0 * + col1 AS col2 FROM tab0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + MAX( - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + MAX ( - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab0 cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT + + SUM( 5 ) + - COUNT( * ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + + SUM ( 5 ) + - COUNT ( * ) FROM tab1 cor0
----
12

query I rowsort
SELECT + col1 - col0 + - col1 + - + 15 AS col0 FROM tab2 AS cor0
----
-61
-79
-90

query I rowsort
SELECT ALL 96 - col2 AS col0 FROM tab2
----
38
56
73

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * - col0 + - col2 AS col1 FROM tab1
----
14
4800
47
6120
5
4956

onlyif mysql # DIV for integer division: 
query II rowsort label-8705
SELECT - col0 AS col1, - 40 + - 39 * col0 + - 25 DIV - - col2 AS col0 FROM tab2
----
-46
-1835
-64
-2536
-75
-2965

skipif mysql # not compatible
query II rowsort label-8705
SELECT - col0 AS col1, - 40 + - 39 * col0 + - 25 / - - col2 AS col0 FROM tab2
----
-46
-1835
-64
-2536
-75
-2965

query II rowsort
SELECT - 68, + col1 FROM tab0
----
-68
1
-68
21
-68
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT DISTINCT + 92 DIV - 11 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + 92 / - 11 FROM tab1
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL + col2, - col0 + + col0 FROM tab1
----
59
0
68
0
96
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 85 IN ( + col1, - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + - 95 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT CAST( MIN( - col0 ) AS SIGNED ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8712
SELECT CAST ( MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL + col1 * - col1 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + col1 * - col1 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL 98 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + col1 * ( ( - - col0 ) ) IN ( - 69 )
----

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 98 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + col1 * ( ( - - col0 ) ) IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL + MIN( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + MIN ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col1 + col1 + + 76 - + col2 * + col2 * + + col1 * - col1 FROM tab0 AS cor0
----
14493487
44218
9879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT + CAST( col2 AS SIGNED ) * - 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8717
SELECT + CAST ( col2 AS INTEGER ) * - 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + CAST( NULL AS SIGNED ) * col0, col2 * + col0, ( col0 ) * - col2 * col2 + - col2 + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + CAST ( NULL AS INTEGER ) * col0, col2 * + col0, ( col0 ) * - col2 * col2 + - col2 + 76 )
----
0

query I rowsort
SELECT DISTINCT + 37 + + col0 AS col1 FROM tab0 AS cor0
----
124
134
52

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 FROM tab0 AS cor0
----
-51
153
193

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT COUNT( * ) + + 83 AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT COUNT ( * ) + + 83 AS col0 FROM tab2
----
86

query I rowsort
SELECT ALL - ( - 73 ) * + col0 FROM tab1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL MIN( - 17 ) AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL MIN ( - 17 ) AS col0 FROM tab0
----
-17

query III rowsort
SELECT * FROM tab2 WHERE + ( - + col1 ) / + col0 + + col0 * + + col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - COUNT( * ) + - - ( 7 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-8725
SELECT - COUNT ( * ) + - - ( 7 ) FROM tab1
----
4

query I rowsort
SELECT ALL 87 * + 20 AS col0 FROM tab1
----
1740
1740
1740

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 > ( + 94 )
----

query I rowsort
SELECT ALL - 87 - - col2 * + 64 AS col1 FROM tab2 AS cor0
----
1385
2473
3625

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - COUNT( * ) + - + MAX( DISTINCT + 38 ) AS col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8731
SELECT - COUNT ( * ) + - + MAX ( DISTINCT + 38 ) AS col0 FROM tab2 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-8732
SELECT DISTINCT - - col0 AS col1, 97 DIV - 80 - - col1 col0 FROM tab1 AS cor0
----
51
13
85
4
91
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8732
SELECT DISTINCT - - col0 AS col1, 97 / - 80 - - col1 col0 FROM tab1 AS cor0
----
51
13
85
4
91
46

query I rowsort
SELECT DISTINCT - + col2 * - - col1 + col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT 1 + - 36 AS col0 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT + 42 + MIN( 24 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 42 + MIN ( 24 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT + 79 + CAST( col2 AS SIGNED ) + + + 68 * + col1 FROM tab0 cor0
----
1517
246
5634

skipif mysql # not compatible
query I rowsort label-8736
SELECT + 79 + CAST ( col2 AS INTEGER ) + + + 68 * + col1 FROM tab0 cor0
----
1517
246
5634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - CAST( + 68 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
-108
-126
-91

skipif mysql # not compatible
query I rowsort label-8737
SELECT - CAST ( + 68 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
-108
-126
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * - + col2 * col2 col0 FROM tab2 AS cor0
----
-25600
-53824
-8464

query I rowsort
SELECT DISTINCT ( + 64 ) * - - col0 * - + col2 FROM tab1
----
-313344
-320960
-396032

query I rowsort
SELECT ALL - col0 * + + 95 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT ALL - 53 * + 50 FROM tab1
----
-2650
-2650
-2650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT - 11 * + + CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE - 27 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - 11 * + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE - 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT - 37 + + + CAST( - 82 AS SIGNED ), col0 * + - 77 AS col0 FROM tab2 AS cor0
----
-119
-3542
-119
-4928
-119
-5775

skipif mysql # not compatible
query II rowsort label-8744
SELECT - 37 + + + CAST ( - 82 AS INTEGER ), col0 * + - 77 AS col0 FROM tab2 AS cor0
----
-119
-3542
-119
-4928
-119
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT 36 + - ( 31 ) FROM tab0 AS cor0 WHERE 5 / 41 * + CAST( col0 AS SIGNED ) + + col2 BETWEEN + col0 + - - col2 + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT 36 + - ( 31 ) FROM tab0 AS cor0 WHERE 5 / 41 * + CAST ( col0 AS INTEGER ) + + col2 BETWEEN + col0 + - - col2 + col1 AND NULL
----

query I rowsort
SELECT + 42 + - col2 AS col2 FROM tab2 cor0
----
-16
19
2

query I rowsort
SELECT DISTINCT + + 18 FROM tab0 AS cor0 WHERE col0 + 36 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - MAX( + col1 ) + + 23 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - MAX ( + col1 ) + + 23 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - ( + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 84 + - col1 AS col1, - 72 * + 67 FROM tab2
----
17
-4824
33
-4824
7
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL + 25 * + ( - COUNT( * ) ) - + - COUNT( * ) + COUNT( * ) + - + 17 FROM tab2 WHERE ( NULL ) > ( NULL )
----
-17

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + 25 * + ( - COUNT ( * ) ) - + - COUNT ( * ) + COUNT ( * ) + - + 17 FROM tab2 WHERE ( NULL ) > ( NULL )
----
-17

query II rowsort
SELECT + col1 * + - col1 AS col1, + 33 FROM tab2
----
-2601
33
-4489
33
-5929
33

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - + 13 IS NULL
----

query I rowsort
SELECT - 30 * + 81 FROM tab2
----
-2430
-2430
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT CAST( NULL AS SIGNED ) * + col1 / + 19 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT CAST ( NULL AS INTEGER ) * + col1 / + 19 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + COUNT( * ) * 21 FROM tab1 WHERE ( ( - col2 >= NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT + COUNT ( * ) * 21 FROM tab1 WHERE ( ( - col2 >= NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT DISTINCT + - COUNT( * ) * - 81 AS col0, 85 FROM tab2 AS cor0
----
243
85

skipif mysql # not compatible
query II rowsort label-8757
SELECT DISTINCT + - COUNT ( * ) * - 81 AS col0, 85 FROM tab2 AS cor0
----
243
85

query I rowsort
SELECT DISTINCT + col2 + + 91 FROM tab0 cor0
----
101
138
190

query I rowsort
SELECT DISTINCT + - 39 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT + + 43 * 61 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
2623
2623
2623

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col2 + + 92 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + + SUM( + col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8763
SELECT + + SUM ( + col2 ) col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT + + COUNT( * ) DIV 18 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT + + COUNT ( * ) / 18 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8765
SELECT - COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8765
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS REAL ) FROM tab1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8766
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL SUM( DISTINCT - + ( 31 ) ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL SUM ( DISTINCT - + ( 31 ) ) FROM tab0
----
-31

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8769
SELECT - 14 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - + CAST( + 51 AS DECIMAL ) ) AND - col2 - + 41 * + col0
----

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 14 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - + CAST ( + 51 AS REAL ) ) AND - col2 - + 41 * + col0
----

query I rowsort
SELECT - col2 * 66 + + - col1 FROM tab2 AS cor0
----
-1569
-2717
-3895

onlyif mysql # DIV for integer division: 
query II rowsort label-8771
SELECT ALL - 58 AS col0, col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-58
-1
-58
-1
-58
-1

skipif mysql # not compatible
query II rowsort label-8771
SELECT ALL - 58 AS col0, col1 / - col1 AS col2 FROM tab2 AS cor0
----
-58
-1
-58
-1
-58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( 64 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 43 + + - col2 * 26 FROM tab0 AS cor0
----
-1179
-217
-2531

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + MIN( DISTINCT 27 ) * ( + + 36 ) AS col1 FROM tab1 AS cor0
----
972

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + MIN ( DISTINCT 27 ) * ( + + 36 ) AS col1 FROM tab1 AS cor0
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - - COUNT( * ) * + 81 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8778
SELECT - - COUNT ( * ) * + 81 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL - col2 FROM tab1 WHERE NULL < + col2 AND col0 * - + CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - col2 FROM tab1 WHERE NULL < + col2 AND col0 * - + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 40 + + 73 FROM tab2
----
113
113
113

query I rowsort
SELECT DISTINCT 7 * + col1 AS col2 FROM tab2
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL SUM( - col0 ) * + ( - + ( - ( + - MIN( ALL col0 ) ) ) ) FROM tab1
----
11577

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL SUM ( - col0 ) * + ( - + ( - ( + - MIN ( ALL col0 ) ) ) ) FROM tab1
----
11577

query I rowsort
SELECT DISTINCT - col1 * + col1 - + 13 + + 60 AS col1 FROM tab2
----
-2554
-4442
-5882

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL + COUNT( * ) * SUM( DISTINCT + + 73 ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT + + 73 ) FROM tab1
----
219

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 93 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT + col2 DIV + 41 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + col2 / + 41 AS col2 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8787
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8787
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - col0 DIV - col2 - + + 40 FROM tab0
----
-32
-40
-40

skipif mysql # not compatible
query I rowsort label-8788
SELECT - col0 / - col2 - + + 40 FROM tab0
----
-32
-40
-40

query I rowsort
SELECT DISTINCT + 85 * col1 * + 60 AS col0 FROM tab2
----
260100
341700
392700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + - col0 col2, ( col1 ) AS col0 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT ALL - 58 DIV COUNT( ALL - 88 ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - 58 / COUNT ( ALL - 88 ) AS col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab0 cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT - col0, + 62 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT DISTINCT + COUNT( * ) AS col0, 99 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
99

skipif mysql # not compatible
query II rowsort label-8794
SELECT DISTINCT + COUNT ( * ) AS col0, 99 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * 77 + + - col0 - - - col2 * - 35 BETWEEN NULL AND + col1
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + - 98 FROM tab1 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT - ( + ( + 83 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - ( + ( + 83 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT ALL col0 * + - col0 AS col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - - col2 * - + 5 - - - col2 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT COUNT( * ) * + SUM( DISTINCT col1 ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8800
SELECT COUNT ( * ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
198

query II rowsort
SELECT col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT 93 * COUNT( * ) AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-8802
SELECT 93 * COUNT ( * ) AS col1 FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + MAX( ALL 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-8803
SELECT + MAX ( ALL 33 ) AS col0 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT SUM( ALL col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8804
SELECT SUM ( ALL col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT ( - 0 ) * - + col0 * - - ( + - col1 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + 9 AS col2 FROM tab1
----
105
68
77

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN - col0 + - col0 AND + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 39 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-39

query II rowsort
SELECT ALL 44 AS col1, + col2 FROM tab0 cor0
----
44
10
44
47
44
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8811
SELECT ALL - ( - col2 ) * - col0 + + - 21 + 79 + CAST( NULL AS DECIMAL ) AS col2, 38 FROM tab2 AS cor0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-8811
SELECT ALL - ( - col2 ) * - col0 + + - 21 + 79 + CAST ( NULL AS REAL ) AS col2, 38 FROM tab2 AS cor0
----
NULL
38
NULL
38
NULL
38

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 34 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT - COUNT( col2 ) AS col1, - 98 FROM tab0 AS cor0
----
-3
-98

skipif mysql # not compatible
query II rowsort label-8813
SELECT - COUNT ( col2 ) AS col1, - 98 FROM tab0 AS cor0
----
-3
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT ALL col1 + col2 + + col1 DIV - col1 + - - col0 AS col2 FROM tab2
----
119
180
199

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL col1 + col2 + + col1 / - col1 + - - col0 AS col2 FROM tab2
----
119
180
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ( MAX( - col1 ) ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8815
SELECT ( MAX ( - col1 ) ) col0 FROM tab0
----
-1

query I rowsort
SELECT ALL - 78 AS col0 FROM tab0 WHERE NOT + - col0 <= col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8817
SELECT ALL + CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ), col2 + 56 AS col0 FROM tab1
----
NULL
115
NULL
124
NULL
152

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ), col2 + 56 AS col0 FROM tab1
----
NULL
115
NULL
124
NULL
152

query II rowsort
SELECT DISTINCT 4 - + col2 AS col2, 76 + - - col0 AS col2 FROM tab0
----
-43
91
-6
163
-95
173

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT + col0 + - - col2 DIV + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
45
74
90

skipif mysql # not compatible
query I rowsort label-8819
SELECT + col0 + - - col2 / + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
45
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT - 22 * ( + COUNT( * ) ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - 22 * ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 * col2 BETWEEN 8 AND + ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - + 34 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - + 34 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT - col0, - col2 * - col2 AS col2 FROM tab1
----
-51
9216
-85
3481
-91
4624

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col0 * 17 / - 66 * col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - + 17 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8826
SELECT - + 17 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 98 * + col1 FROM tab1 AS cor0
----
1372
4606
490

query I rowsort
SELECT + - col0 * - - 33 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT ALL 10 DIV - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 10 / - col0 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 52, col0, - - col2 + + ( - col0 ) - + + 26 / 35 * - col0 * - + col2 + - col1, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT ALL + col0 DIV col0 col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8831
SELECT ALL + col0 / col0 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE + col1 + 5 BETWEEN + + col1 AND + 38
----
-51
-85

query I rowsort
SELECT 43 + col1 FROM tab2 WHERE NOT col1 IS NULL
----
110
120
94

query I rowsort
SELECT col1 + + col0 - col2 AS col0 FROM tab2
----
101
74
84

query I rowsort
SELECT ALL + - 81 + - 75 * col2 AS col1 FROM tab2 AS cor0
----
-1806
-3081
-4431

query I rowsort
SELECT DISTINCT col1 + - 69 FROM tab2 AS cor0
----
-18
-2
8

query I rowsort
SELECT ALL - + 90 + - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( 94 IS NULL ) )
----
-111
-171
-91

query III rowsort
SELECT ALL 2 AS col0, - 6 + + col2, + col1 + - col0 + - ( + + col2 ) AS col1 FROM tab0
----
9 values hashing to 6ec824212983563375ea5eb47889bace

query I rowsort
SELECT ALL - + 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # DIV for integer division: 
query II rowsort label-8840
SELECT DISTINCT - 49, + col0 DIV + + col0 col1 FROM tab1
----
-49
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8840
SELECT DISTINCT - 49, + col0 / + + col0 col1 FROM tab1
----
-49
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 31 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-31

query I rowsort
SELECT - 0 - col1 + - 97 * col1 AS col2 FROM tab1 AS cor0
----
-1372
-4606
-490

query I rowsort
SELECT - col0 + - ( + + col2 ) FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN + col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 49 - - ( col0 ) * + col1 + + col2 * - col0 col2 FROM tab1 AS cor0
----
-1953
-4184
-4626

query I rowsort
SELECT + 65 + - col0 AS col2 FROM tab1 AS cor0
----
-20
-26
14

query I rowsort
SELECT 49 AS col1 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - - 4 FROM tab2 WHERE col1 IS NOT NULL
----
4
4
4

query I rowsort
SELECT ALL ( + + 49 ) AS col2 FROM tab0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - col1 + - 33 FROM tab1
----
-12
21
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT COUNT( * ) * CAST( - 87 AS SIGNED ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) * CAST ( - 87 AS INTEGER ) FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + 53 - - - 80 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + 53 - - - 80 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT - ( - - CAST( NULL AS SIGNED ) ) * - col1 + + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8854
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * - col1 + + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + + MIN( 35 ) * 97 FROM tab2 AS cor0
----
3395

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + + MIN ( 35 ) * 97 FROM tab2 AS cor0
----
3395

query III rowsort
SELECT ALL * FROM tab2 WHERE - 48 + + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - ( MIN( DISTINCT - 61 ) ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8858
SELECT - ( MIN ( DISTINCT - 61 ) ) FROM tab0
----
61

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT 10 NOT BETWEEN + + 36 AND - - col1 / + - col0 + + + col0 + - - col1 + - - 48
----

query I rowsort
SELECT DISTINCT + 87 * - col0 + - + ( - - col1 ) FROM tab0
----
-1386
-7590
-8440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT - CAST( + col1 AS SIGNED ) * - 33 FROM tab1
----
1551
165
462

skipif mysql # not compatible
query I rowsort label-8861
SELECT - CAST ( + col1 AS INTEGER ) * - 33 FROM tab1
----
1551
165
462

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT 34 DIV + 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT 34 / + 85 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 23 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0 AS col1, 52 AS col2 FROM tab0
----
-15
52
-87
52
-97
52

query II rowsort
SELECT col0 AS col1, - col1 + + - col2 AS col1 FROM tab1
----
51
-110
85
-64
91
-115

query I rowsort
SELECT + 45 * 40 FROM tab1
----
1800
1800
1800

query II rowsort
SELECT ALL 93 * 18 * + col1, - col2 - - ( - col0 ) AS col2 FROM tab2
----
112158
-133
128898
-104
85374
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + col0 * - 84 + + + col2 + 23 - - + col2
----

query II rowsort
SELECT DISTINCT - AVG ( ALL 67 ) AS col1, + ( 26 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
26

query I rowsort
SELECT DISTINCT ( + - col0 ) + - 67 AS col2 FROM tab1 AS cor0
----
-118
-152
-158

query I rowsort
SELECT ALL + ( 62 ) AS col1 FROM tab2
----
62
62
62

query I rowsort
SELECT ALL + 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL - 17 + - - COUNT( + col2 ) - - ( + - 32 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - 17 + - - COUNT ( + col2 ) - - ( + - 32 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col2 )
----

query II rowsort
SELECT DISTINCT + col2 + + + col1, col0 FROM tab2 AS cor0
----
117
64
125
75
74
46

query I rowsort
SELECT ALL col1 * col1 - col0 AS col1 FROM tab0
----
-96
354
6546

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col1 < NULL AND NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8879
SELECT + AVG ( DISTINCT + CAST( - - ( + col2 ) AS DECIMAL ) ) * + - CAST( NULL AS DECIMAL ), 47 AS col0 FROM tab2 AS cor0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8879
SELECT + AVG ( DISTINCT + CAST ( - - ( + col2 ) AS REAL ) ) * + - CAST ( NULL AS REAL ), 47 AS col0 FROM tab2 AS cor0
----
NULL
47

query I rowsort
SELECT 53 * col0 AS col2 FROM tab2 cor0
----
2438
3392
3975

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT + SUM( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT 68 * SUM( DISTINCT - 29 ) FROM tab2
----
-1972

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT 68 * SUM ( DISTINCT - 29 ) FROM tab2
----
-1972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL + COUNT( * ) * - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + COUNT ( * ) * - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 * + + col2 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - 12 + 98 AS col0 FROM tab2 AS cor0
----
86
86
86

query II rowsort
SELECT DISTINCT + + 21 AS col1, - 31 + + col2 - - col0 + + col2 FROM tab2 AS cor0
----
21
113
21
160
21
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 26 AND NULL
----

query II rowsort
SELECT ALL + + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - COUNT( * ) FROM tab2 WHERE NOT - 3 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8892
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - 3 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col0 * 2 * - col1 AS col0 FROM tab2
----
-10050
-4692
-9856

query III rowsort
SELECT + col2 + 10 * col2 AS col2, + col0, col1 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to 26fd8f9977a0e0b2345ab5f12354eb89

query I rowsort
SELECT 98 FROM tab0 WHERE ( 26 ) <> col1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL col2 * + - 31 * + col1 AS col2 FROM tab0
----
-118017
-3069
-6510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + - 63 * - col1 + + col2 * 79 FROM tab1 AS cor0
----
4976
8333
8466

query I rowsort
SELECT 33 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 - + 1 FROM tab0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - - 58 + + 11 + - + COUNT( * ) * + 6 AS col2 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8902
SELECT - - 58 + + 11 + - + COUNT ( * ) * + 6 AS col2 FROM tab0 cor0
----
51

query I rowsort
SELECT - col1 + - col2 + col1 * 5 AS col0 FROM tab2 cor0
----
181
210
268

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT ALL - + ( + - col2 ) DIV - 56 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - + ( + - col2 ) / - 56 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + - 2 + - col2 FROM tab1 AS cor0
----
-61
-70
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 / + col1 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 60 * - + ( + col1 ) * - col2 * - col2 AS col0 FROM tab2
----
-13523280
-1618740
-7392000

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + + ( - + ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL - SUM( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - SUM ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE NOT 17 < - ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT + + CAST( COUNT( * ) AS SIGNED ) * + - 36 FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8912
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) * + - 36 FROM tab0 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - + 94 * + MIN( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
7614

skipif mysql # not compatible
query I rowsort label-8913
SELECT - + 94 * + MIN ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
7614

query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE - 47 <= col2
----
1344
295
3196

query I rowsort
SELECT + + 40 * + 84 FROM tab1 AS cor0
----
3360
3360
3360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 15 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 57 ) AS col0 FROM tab1
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT + CAST( - 33 AS SIGNED ) AS col2 FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-8919
SELECT + CAST ( - 33 AS INTEGER ) AS col2 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT + 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col1 >= + 18 - col0 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 8 + - col2 * col2 FROM tab2 AS cor0
----
-1592
-3356
-521

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT ( col0 ) + - - col0 DIV - 26 AS col2 FROM tab2 AS cor0
----
45
62
73

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT ( col0 ) + - - col0 / - 26 AS col2 FROM tab2 AS cor0
----
45
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT ALL + COUNT( * ) AS col1, 36 FROM tab0
----
3
36

skipif mysql # not compatible
query II rowsort label-8925
SELECT ALL + COUNT ( * ) AS col1, 36 FROM tab0
----
3
36

query I rowsort
SELECT 34 * + - 86 FROM tab2
----
-2924
-2924
-2924

query I rowsort
SELECT col2 * - - col2 AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT + - 22 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT + - 22 ) FROM tab2
----
3

query II rowsort
SELECT col1 AS col2, col1 * + 33 - + + col2 AS col1 FROM tab0
----
1
-66
21
683
81
2626

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ALL + col0 * + + col0 - + col1 DIV + 76 + - 31 * + + col1 FROM tab1 AS cor0
----
2167
6824
7070

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + col0 * + + col0 - + col1 / + 76 + - 31 * + + col1 FROM tab1 AS cor0
----
2167
6824
7070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8931
SELECT DISTINCT - - SUM( - 97 ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - - SUM ( - 97 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - + 42 + - - col0 + + col0 AS col1 FROM tab2 AS cor0
----
108
50
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8933
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + - - col0 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8933
SELECT DISTINCT - + CAST ( NULL AS REAL ) + - - col0 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col1 + 30 AS col2 FROM tab0 AS cor0
----
-66
-68
-78

query I rowsort
SELECT col1 + col1 + - col1 * 67 * - 13 * + col2 AS col1 FROM tab1
----
1170652
256955
2783810

query I rowsort
SELECT - 52 FROM tab0 WHERE NOT NULL IS NOT NULL OR NULL < - col2
----
-52
-52
-52

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 20 ) NOT BETWEEN 99 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ALL + - 8 DIV 53 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + - 8 / 53 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 + + - col0 - col1 + + col2 FROM tab1 AS cor0 WHERE NOT 29 <= + - col0
----
-23
-26
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8940
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8940
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2
----
-1

query II rowsort
SELECT col0 AS col1, - col0 + col2 AS col1 FROM tab1
----
51
45
85
-26
91
-23

query I rowsort
SELECT ALL 91 * - + col1 FROM tab0
----
-1911
-7371
-91

query II rowsort
SELECT DISTINCT + 45 * + + 47 * + col1, col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 18 * + col1 AS col0 FROM tab2
----
1206
1386
918

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
3

query II rowsort
SELECT 13 AS col0, - col0 * + + 96 * + 87 + col0 * - col0 AS col0 FROM tab0
----
13
-125505
13
-734193
13
-819553

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT ALL - COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8947
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
-3
3

query I rowsort
SELECT DISTINCT + col1 * + + 80 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 + - 66 AS col2 FROM tab1 AS cor0
----
-3547
-4690
-9282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT CAST( 69 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8950
SELECT CAST ( 69 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
66

query I rowsort
SELECT ALL + col2 + 28 AS col1 FROM tab1
----
124
87
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT col1 + + col0 DIV - col0 AS col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-8952
SELECT col1 + + col0 / - col0 AS col1 FROM tab1
----
13
4
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT ALL - col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL - 60 + + col1 DIV + 81 AS col2 FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL - 60 + + col1 / + 81 AS col2 FROM tab1
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 60 - 29 * 96 = NULL
----

query I rowsort
SELECT DISTINCT 91 + - 89 AS col0 FROM tab2
----
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - 80 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + 6 * COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT + 6 * COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col0 * - col1 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col0 * - col1 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + COUNT( * ) - - 80 AS col2 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-8961
SELECT + COUNT ( * ) - - 80 AS col2 FROM tab2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT DISTINCT - COUNT( * ) * - MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - COUNT ( * ) * - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT + 65 * - MIN( DISTINCT ( col0 ) ) FROM tab1
----
-3315

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT + 65 * - MIN ( DISTINCT ( col0 ) ) FROM tab1
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT MAX( DISTINCT - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8964
SELECT MAX ( DISTINCT - 13 ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE col0 + ( + col1 ) * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 95 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 6 * + 85 FROM tab0
----
-510
-510
-510

query I rowsort
SELECT 56 * + 84 AS col2 FROM tab1
----
4704
4704
4704

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + 16 AS col0 FROM tab0
----
-31
-83
6

query I rowsort
SELECT + 1 * - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1 WHERE NOT + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - 53 * ( MIN( DISTINCT + col1 ) ) col1 FROM tab0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT - 53 * ( MIN ( DISTINCT + col1 ) ) col1 FROM tab0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + MIN( DISTINCT 42 ) * 8 AS col2 FROM tab2
----
336

skipif mysql # not compatible
query I rowsort label-8974
SELECT + MIN ( DISTINCT 42 ) * 8 AS col2 FROM tab2
----
336

query I rowsort
SELECT col2 / + col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8976
SELECT 37 DIV COUNT( * ) col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8976
SELECT 37 / COUNT ( * ) col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - 19 + - col0 AS col2 FROM tab2
----
-65
-83
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + MIN( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + MIN ( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8981
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8982
SELECT + 90 DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8982
SELECT + 90 / - COUNT ( * ) col1 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 WHERE NOT 65 BETWEEN + col0 / 29 AND col1 * - col0 - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 WHERE NOT 65 BETWEEN + col0 / 29 AND col1 * - col0 - col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT - col2 DIV - 65 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8984
SELECT - col2 / - 65 FROM tab0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + 15 BETWEEN - 13 AND 84 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0 WHERE ( + col0 ) BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + 32 col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT - 68 * COUNT( * ) AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-8988
SELECT - 68 * COUNT ( * ) AS col1 FROM tab1
----
-204

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8989
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 * + CAST( + col0 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8989
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 * + CAST ( + col0 AS REAL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT + CAST( - 81 AS SIGNED ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) FROM tab1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + 33 < - col0 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 + col2 * - col1 NOT BETWEEN NULL AND 13
----

query I rowsort
SELECT ALL + 10 + col1 AS col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab0 cor0 WHERE NOT ( 6 ) BETWEEN ( + col1 ) AND - 41
----
52
52
52

query I rowsort
SELECT DISTINCT 19 + - + col1 + - + ( col1 ) + col1 * 85 FROM tab0
----
102
1762
6742

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL 25 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 * 55 + + col1 ) IN ( + col0 )
----
25
25
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE 5 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT DISTINCT + + CAST( col0 AS SIGNED ) + - 76 * col2 col0 FROM tab2 AS cor0
----
-1702
-2976
-4333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) + - 76 * col2 col0 FROM tab2 AS cor0
----
-1702
-2976
-4333

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) > - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 64 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + - ( + col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 col0 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + 69 AND ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - - 4 + + - 32 ) IS NULL
----

query I rowsort
SELECT col2 * - - 85 - + 87 FROM tab0
----
3908
763
8328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + ( + 80 ) FROM tab1 AS cor0
----
-11
-5
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL ) BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - COUNT( * ) FROM tab2 cor0 WHERE ( NULL BETWEEN - 76 + + 44 AND - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL BETWEEN - 76 + + 44 AND - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + ( + COUNT( * ) ) + - + MAX( ALL - col1 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9013
SELECT + ( + COUNT ( * ) ) + - + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - COUNT( ALL - 47 ) * 68 + + + 29 AS col2 FROM tab1
----
-175

skipif mysql # not compatible
query I rowsort label-9014
SELECT - COUNT ( ALL - 47 ) * 68 + + + 29 AS col2 FROM tab1
----
-175

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
65

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE + 65 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 / + 32 - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - SUM( 43 ) FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - SUM ( 43 ) FROM tab0 cor0
----
-129

query I rowsort
SELECT 16 + - - 0 - - 95 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT col2 * - 45 AS col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

query II rowsort
SELECT ALL - col2, + 43 / + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - + 26 * + col1 FROM tab1 AS cor0
----
11050
111202
18564

query I rowsort
SELECT ALL 35 * - col0 FROM tab1 AS cor0
----
-1785
-2975
-3185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 20 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 20 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9026
SELECT - COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL MAX( - 13 ) col0 FROM tab2
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT ALL MAX ( - 13 ) col0 FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT + 22 AS col2, + MIN( ALL + col2 ) AS col1 FROM tab1
----
22
59

skipif mysql # not compatible
query II rowsort label-9028
SELECT + 22 AS col2, + MIN ( ALL + col2 ) AS col1 FROM tab1
----
22
59

query II rowsort
SELECT DISTINCT - 97, - col0 AS col1 FROM tab2
----
-97
-46
-97
-64
-97
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT + COUNT( * ) DIV - ( + COUNT( * ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9030
SELECT + COUNT ( * ) / - ( + COUNT ( * ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT COUNT( ALL + 5 ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT COUNT ( ALL + 5 ) FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT + CAST( + + col1 AS SIGNED ) / - col2 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9033
SELECT + CAST ( + + col1 AS INTEGER ) / - col2 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT COUNT( * ) FROM tab1 WHERE NOT - col2 BETWEEN 29 / col1 + + col2 - col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-9034
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col2 BETWEEN 29 / col1 + + col2 - col0 AND NULL
----
3

query I rowsort
SELECT ALL - 32 * - 1 * + 87 AS col1 FROM tab2 AS cor0
----
2784
2784
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + 96 + COUNT( * ) + + + MAX( - - col1 ) AS col1 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-9036
SELECT + 96 + COUNT ( * ) + + + MAX ( - - col1 ) AS col1 FROM tab1 AS cor0
----
146

query I rowsort
SELECT + + col1 + - - col1 * - col1 + + col2 FROM tab0 AS cor0
----
-410
-6433
99

query I rowsort
SELECT + - ( 40 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query II rowsort
SELECT DISTINCT - ( + + col2 ) AS col2, + col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT - + col2 DIV - 13 FROM tab2 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-9040
SELECT - + col2 / - 13 FROM tab2 AS cor0
----
1
3
4

query I rowsort
SELECT + - col0 + - 64 FROM tab2 AS cor0
----
-110
-128
-139

query I rowsort
SELECT 27 + + - col0 FROM tab2 AS cor0
----
-19
-37
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT 21 + - col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + col2 * col1 AND 67 * + 14
----

skipif mysql # not compatible
query I rowsort label-9043
SELECT 21 + - col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 * col1 AND 67 * + 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 82 + + col2 + + 43 col2, + col2 * 97 - col2 AS col2 FROM tab2
----
-16
2208
1
3840
19
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT COUNT( * ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT COUNT ( * ) FROM tab1 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL 2 - - 56 AS col1 FROM tab1
----
58
58
58

query I rowsort
SELECT col0 + 38 FROM tab0
----
125
135
53

query III rowsort
SELECT * FROM tab1 WHERE + + col2 + - col1 <> + col2 * ( - + 93 ) + - col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
27

query II rowsort
SELECT - col0 AS col1, - col1 AS col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9051
SELECT * FROM tab0 WHERE + + CAST( + 77 AS SIGNED ) + + 31 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT * FROM tab0 WHERE + + CAST ( + 77 AS INTEGER ) + + 31 < ( NULL )
----

query II rowsort
SELECT col1, col1 * + col1 FROM tab1
----
14
196
47
2209
5
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL CAST( 22 AS SIGNED ) AS col0 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL CAST ( 22 AS INTEGER ) AS col0 FROM tab1
----
22
22
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 21 ) NOT BETWEEN + 75 AND + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT DISTINCT - COUNT( * ) col0, 94 FROM tab2 WHERE ( ( - col2 ) ) <= + 96 + - col0
----
-3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9056
SELECT DISTINCT - COUNT ( * ) col0, 94 FROM tab2 WHERE ( ( - col2 ) ) <= + 96 + - col0
----
-3
94

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 53 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab2 AS cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - 68 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL CAST( MAX( col1 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9061
SELECT ALL CAST ( MAX ( col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + + 30 + - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * - col0 * - - 78 AS col2 FROM tab2
----
199680
339300
82524

query I rowsort
SELECT 27 * + + col2 * - col1 FROM tab1
----
-36288
-7965
-86292

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 * + - col0 / 46 <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT - + 40 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - + 40 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col0 + - col0 / + 3 NOT IN ( - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT COUNT( * ) + + - 70 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT COUNT ( * ) + + - 70 FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT DISTINCT - 49 + - + 48 AS col1 FROM tab1
----
-97

query I rowsort
SELECT ( - 81 ) + col0 AS col2 FROM tab1
----
-30
10
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT + CAST( NULL AS SIGNED ) + - 50 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT + CAST ( NULL AS INTEGER ) + - 50 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
20

query I rowsort
SELECT ALL + 1 + + + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT 5 * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-24480
-25075
-30940

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 15 + + col2
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT - 42 DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - 42 / col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT ALL + col1 * + 14 + + col0 - - col2 DIV 32 col1 FROM tab1 cor0
----
156
250
751

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9079
SELECT ALL + col1 * + 14 + + col0 - - col2 / 32 col1 FROM tab1 cor0
----
156
250
751

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT + 35 DIV - col0 * - + col2 * + 22 - - - ( + 79 ) + - col2 col0 FROM tab1
----
-138
-147
-175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9080
SELECT + 35 / - col0 * - + col2 * + 22 - - - ( + 79 ) + - col2 col0 FROM tab1
----
-138
-147
-175

query I rowsort
SELECT - + col0 AS col0 FROM tab2 WHERE + ( - col1 ) < + col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT 11 * + - MAX( DISTINCT 93 ) AS col2 FROM tab1
----
-1023

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT 11 * + - MAX ( DISTINCT 93 ) AS col2 FROM tab1
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT 39 - + 42 + - - col0 DIV col0 * ( col0 ) * 66 AS col1 FROM tab1
----
3363
5607
6003

skipif mysql # not compatible
query I rowsort label-9083
SELECT 39 - + 42 + - - col0 / col0 * ( col0 ) * 66 AS col1 FROM tab1
----
3363
5607
6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9084
SELECT DISTINCT COUNT( ALL - 6 ) - COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT COUNT ( ALL - 6 ) - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 8 + + - col0 FROM tab1
----
-43
-77
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL - col1 - + col0 + 26 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - col1 - + col0 + 26 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab0 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT + + ( - col1 ) DIV col0 * 58 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT + + ( - col1 ) / col0 * 58 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT - col2 DIV + 37 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT - col2 / + 37 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT ALL ( + col2 ), + col1 * + ( + col0 ) * + 2 - + col0 * + 59 AS col0 FROM tab2 AS cor0
----
23
1978
40
6080
58
5625

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 97 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + - COUNT( DISTINCT - 57 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9093
SELECT + - COUNT ( DISTINCT - 57 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT COUNT( ALL - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9095
SELECT COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * - col1 * 76 * + col2 + - 33 FROM tab2 AS cor0 WHERE ( NOT + 47 <> 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9097
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 35 AND + 78 * + CAST( - col0 AS SIGNED ) + + + col0 + - col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-9097
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 35 AND + 78 * + CAST ( - col0 AS INTEGER ) + + + col0 + - col1 * - col2
----

query II rowsort
SELECT - 90 AS col2, + col0 + + 10 FROM tab2 cor0
----
-90
56
-90
74
-90
85

query II rowsort
SELECT ALL - 8, col1 AS col1 FROM tab1 cor0
----
-8
14
-8
47
-8
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT col2 DIV - + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9100
SELECT col2 / - + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 26 * - 85 col0 FROM tab0 AS cor0
----
2210

query II rowsort
SELECT col1 * + + col2 + - col1 AS col2, + col1 * + - ( - + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 <= + - 11
----
1122
2601
3003
5929
3819
4489

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9104
SELECT + 10 AS col0, - col0 DIV - col0 FROM tab1 AS cor0
----
10
1
10
1
10
1

skipif mysql # not compatible
query II rowsort label-9104
SELECT + 10 AS col0, - col0 / - col0 FROM tab1 AS cor0
----
10
1
10
1
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT COUNT( ALL col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + COUNT( * ) * - + COUNT( ALL - 60 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9106
SELECT + COUNT ( * ) * - + COUNT ( ALL - 60 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT ALL + 43 * - 43 FROM tab2
----
-1849
-1849
-1849

query I rowsort
SELECT 56 + + 1 AS col2 FROM tab2
----
57
57
57

query I rowsort
SELECT - 32 - + 39 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT - 41 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 41 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + SUM( DISTINCT - ( - - ( + 13 ) ) ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9112
SELECT + SUM ( DISTINCT - ( - - ( + 13 ) ) ) AS col0 FROM tab0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 + + 61 col2 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT - - col0 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - col1 + ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT ALL + + 74 AS col2, + col0 FROM tab2 AS cor0
----
74
46
74
64
74
75

query I rowsort
SELECT - + col1 + col2 * + + col1 - col1 FROM tab1 AS cor0
----
1316
285
3102

query I rowsort
SELECT DISTINCT - + 86 + + + col2 FROM tab2 AS cor0
----
-28
-46
-63

query I rowsort
SELECT ALL col2 + - 44 AS col1 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 88 * + 34 + COUNT( * ) + + ( ( - 74 ) ) AS col0 FROM tab1 AS cor0
----
-3063

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 88 * + 34 + COUNT ( * ) + + ( ( - 74 ) ) AS col0 FROM tab1 AS cor0
----
-3063

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9122
SELECT DISTINCT - MIN( DISTINCT 99 ) * - - AVG ( ALL col1 ) + - 55 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - MIN ( DISTINCT 99 ) * - - AVG ( ALL col1 ) + - 55 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9123
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) - + + col2
----

skipif mysql # not compatible
query III rowsort label-9123
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) - + + col2
----

query I rowsort
SELECT + col2 + + col0 + col2 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT COUNT( * ), + COUNT( * ) - MIN( DISTINCT + 47 ) col1 FROM tab1
----
3
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9125
SELECT COUNT ( * ), + COUNT ( * ) - MIN ( DISTINCT + 47 ) col1 FROM tab1
----
3
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - - 86 < col1
----

skipif mysql # not compatible
query I rowsort label-9126
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - - 86 < col1
----

query I rowsort
SELECT ALL 90 + + + col0 AS col2 FROM tab0
----
105
177
187

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT DISTINCT col2 DIV - 14 - + col0 AS col0 FROM tab2
----
-47
-66
-79

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT col2 / - 14 - + col0 AS col0 FROM tab2
----
-47
-66
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT + MIN( DISTINCT - - col0 ) AS col1, COUNT( * ) AS col0 FROM tab0
----
15
3

skipif mysql # not compatible
query II rowsort label-9129
SELECT + MIN ( DISTINCT - - col0 ) AS col1, COUNT ( * ) AS col0 FROM tab0
----
15
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT DISTINCT - 77 DIV + - ( - 72 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - 77 / + - ( - 72 ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9131
SELECT 88 AS col2, col1 DIV - ( + 70 ) + + col1 FROM tab0
----
88
1
88
21
88
80

skipif mysql # not compatible
query II rowsort label-9131
SELECT 88 AS col2, col1 / - ( + 70 ) + + col1 FROM tab0
----
88
1
88
21
88
80

query II rowsort
SELECT - col1 AS col2, col2 * + 50 FROM tab2
----
-51
1150
-67
2900
-77
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT - SUM( - col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - SUM ( - col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL - SUM( - + 14 ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - SUM ( - + 14 ) AS col2 FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + - COUNT( * ) * - - 18 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9135
SELECT + - COUNT ( * ) * - - 18 FROM tab0 AS cor0
----
-54

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-9137
SELECT COUNT( * ) * 5 + + - COUNT( * ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9137
SELECT COUNT ( * ) * 5 + + - COUNT ( * ) FROM tab1 cor0
----
12

query I rowsort
SELECT + + 73 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col1 col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT DISTINCT + 86 * 27, - SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
2322
185

skipif mysql # not compatible
query II rowsort label-9140
SELECT DISTINCT + 86 * 27, - SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
2322
185

query I rowsort
SELECT ( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 51 FROM tab2 AS cor0 WHERE NOT col1 + col2 < + col2
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9143
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( CAST( - + ( col1 ) AS SIGNED ) + 99 - col0 / - col1 ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9143
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( CAST ( - + ( col1 ) AS INTEGER ) + 99 - col0 / - col1 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT CAST( NULL AS SIGNED ) / 82 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT CAST ( NULL AS INTEGER ) / 82 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 * - - ( - - col1 ) AS col1 FROM tab1
----
2209
235
658

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT COUNT( 44 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT COUNT ( 44 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col1 col2 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 47 ) - + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 16 * + + col2 NOT BETWEEN col0 AND 68
----

query I rowsort
SELECT DISTINCT - + col1 + + col0 AS col0 FROM tab0 cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9151
SELECT ALL CAST( 37 AS SIGNED ) DIV + col0 * + ( + col1 ) + + 86, col0 FROM tab2 AS cor0
----
86
46
86
64
86
75

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL CAST ( 37 AS INTEGER ) / + col0 * + ( + col1 ) + + 86, col0 FROM tab2 AS cor0
----
86
46
86
64
86
75

query I rowsort
SELECT DISTINCT + col2 + - + col2 * - col1 AS col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT ALL - 31 * + 18 - + 97 + col1 * - col2 FROM tab1
----
-1999
-3851
-950

query I rowsort
SELECT ALL + + ( + 92 ) AS col0 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT col2 > NULL ) )
----

query II rowsort
SELECT 55 - 94, col0 + + col1 AS col2 FROM tab2 AS cor0
----
-39
141
-39
142
-39
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col2 * + col0
----

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL + 43 * - - COUNT( * ) AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + 43 * - - COUNT ( * ) AS col0 FROM tab2
----
129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 92 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col1 FROM tab1
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL SUM( ALL + - 95 ) col2 FROM tab0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9162
SELECT ALL SUM ( ALL + - 95 ) col2 FROM tab0
----
-285

query I rowsort
SELECT DISTINCT + 85 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 5 * - + col0 AS col1 FROM tab2 AS cor0
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( + + 63 ) * col2 - col0 + - 61 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( + + 63 ) * col2 - col0 + - 61 IS NULL
----
-3

query II rowsort
SELECT + 83, col0 AS col1 FROM tab1
----
83
51
83
85
83
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT ALL - ( - COUNT( * ) ) AS col0, + MIN( ALL + + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9167
SELECT ALL - ( - COUNT ( * ) ) AS col0, + MIN ( ALL + + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 < NULL
----

query II rowsort
SELECT col0 AS col1, + 52 FROM tab1 cor0
----
51
52
85
52
91
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9170
SELECT ALL - COUNT( * ) DIV 84 + + MAX( col0 ), + COUNT( * ) col1 FROM tab1 cor0
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9170
SELECT ALL - COUNT ( * ) / 84 + + MAX ( col0 ), + COUNT ( * ) col1 FROM tab1 cor0
----
91
3

query I rowsort
SELECT + 47 * 55 + 85 + - + 24 * - - 15 * + - 81 AS col0 FROM tab0 AS cor0
----
31830
31830
31830

query II rowsort
SELECT - 19, + col2 * col0 AS col1 FROM tab1 AS cor0
----
-19
4896
-19
5015
-19
6188

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 55 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT + 10 DIV - + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT + 10 / - + col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 88 ), + 50 * + 85 col0 FROM tab1 AS cor0
----
-88
4250
-88
4250
-88
4250

query II rowsort
SELECT 58 AS col0, 25 FROM tab1 AS cor0
----
58
25
58
25
58
25

query I rowsort
SELECT ALL 11 + 40 AS col2 FROM tab1
----
51
51
51

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 21 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT ALL col2 * + CAST( - ( - + ( + col1 ) ) AS SIGNED ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL col2 * + CAST ( - ( - + ( + col1 ) ) AS INTEGER ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 WHERE NOT NULL IN ( col1 * - col2, + col0 + + - col0, - 17 - 85 - - + 98 * + col1 * 11, + + col2 + - col0 + - - col2 + + 36 * + ( + col0 ), col2 ) AND NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9182
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 WHERE NOT NULL IN ( col1 * - col2, + col0 + + - col0, - 17 - 85 - - + 98 * + col1 * 11, + + col2 + - col0 + - - col2 + + 36 * + ( + col0 ), col2 ) AND NULL IS NULL
----

query I rowsort
SELECT - - col1 * - 9 AS col2 FROM tab2 AS cor0
----
-459
-603
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT + AVG ( + 39 ) * - 21 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT + AVG ( + 39 ) * - 21 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 col1 FROM tab1 AS cor0
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > + col2 - + 34
----

query I rowsort
SELECT + - col2 * + col1 + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT - col0 - + + col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - col0 + + - 23 AS col1 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT + 43 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-25
-53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT + col1 DIV 46 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9192
SELECT + col1 / 46 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 23 IN ( 71 - + - 34 + - col2 * - col2, + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + + col2
----

query I rowsort
SELECT + ( 74 ) FROM tab1
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 24 * - MAX( DISTINCT 45 ) AS col1 FROM tab2, tab0 cor0
----
-1080

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 24 * - MAX ( DISTINCT 45 ) AS col1 FROM tab2, tab0 cor0
----
-1080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 20, - col1 * + 91 col2 FROM tab1 WHERE - 28 IS NOT NULL
----
-20
-1274
-20
-4277
-20
-455

query I rowsort
SELECT + ( + 32 ) AS col1 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT COUNT( - 3 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9199
SELECT DISTINCT COUNT ( - 3 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT 74 * + col0 AS col0 FROM tab0
----
1110
6438
7178

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9201
SELECT col1 * - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT col1 * - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL COUNT( * ) + - - 40 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT ALL COUNT ( * ) + - - 40 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT col1 + col0 + + 38 AS col1 FROM tab0
----
134
136
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9204
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL COUNT( 61 ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL COUNT ( 61 ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT ALL - col2 * + ( + - col2 ) * + col0 + - + 12 / - col0 * 79 - - 80 + + - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL > 81 * 48
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL - 92 + - col1 * - col1 + - 38 FROM tab1 AS cor0
----
-105
2079
66

query I rowsort
SELECT DISTINCT + 43 * + - col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

query I rowsort
SELECT ALL + + col2 + - col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col2 * - col1 IS NULL
----

query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 WHERE - col0 + + col2 + 72 * 38 IS NULL
----

query I rowsort
SELECT ALL - 84 + + 44 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 0 + + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + SUM( ALL + + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9216
SELECT + SUM ( ALL + + col0 ) AS col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 WHERE - - col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT + COUNT( * ) AS col2, + 70 FROM tab1
----
3
70

skipif mysql # not compatible
query II rowsort label-9218
SELECT + COUNT ( * ) AS col2, + 70 FROM tab1
----
3
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT col0 * + col0 DIV - col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9219
SELECT col0 * + col0 / - col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col2 * 64 AS col0 FROM tab0
----
3008
6336
640

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + ( - col2 ) BETWEEN NULL AND - - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( * ) * + - 59 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( * ) * + - 59 FROM tab0
----
-177

query I rowsort
SELECT col2 * + + 28 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT + col1 - + 32 FROM tab2
----
19
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT ( COUNT( - + 99 ) ) * 51 AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT ( COUNT ( - + 99 ) ) * 51 AS col2 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - 6 - - MAX( + - col1 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9226
SELECT - 6 - - MAX ( + - col1 ) AS col2 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9227
SELECT DISTINCT CAST( + col2 AS SIGNED ) - + 77 DIV - - col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT CAST ( + col2 AS INTEGER ) - + 77 / - - col0 FROM tab0
----
10
42
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col0 + + + col0 - + 73 + + col1 AND - col2 - + col0
----

query I rowsort
SELECT col2 - + 37 + + + col1 + col1 * - 90 * - - col0 AS col2 FROM tab2
----
-211103
-443440
-452162

query II rowsort
SELECT ALL - col1 AS col1, + ( + col2 ) * - 54 + - col1 AS col0 FROM tab2
----
-51
-1293
-67
-3199
-77
-2237

onlyif mysql # DIV for integer division: 
query II rowsort label-9231
SELECT DISTINCT 94 - + ( col1 ) AS col1, col0 DIV - ( + col0 ) AS col0 FROM tab1
----
47
-1
80
-1
89
-1

skipif mysql # not compatible
query II rowsort label-9231
SELECT DISTINCT 94 - + ( col1 ) AS col1, col0 / - ( + col0 ) AS col0 FROM tab1
----
47
-1
80
-1
89
-1

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT - + COUNT( * ) * COUNT( * ) AS col2, + COUNT( * ) FROM tab0 cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-9234
SELECT - + COUNT ( * ) * COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 cor0
----
-9
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9235
SELECT + col0 * - + col1 AS col1, - 71 - - col2 DIV + + col0 + + 77 col0 FROM tab1 AS cor0
----
-425
6
-4277
6
-714
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9235
SELECT + col0 * - + col1 AS col1, - 71 - - col2 / + + col0 + + 77 col0 FROM tab1 AS cor0
----
-425
6
-4277
6
-714
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col0 ) * col2 IS NOT NULL
----

query II rowsort
SELECT - 88, - col2 AS col1 FROM tab1
----
-88
-59
-88
-68
-88
-96

query I rowsort
SELECT - col1 * 7 * 17 * + + col2 AS col0 FROM tab1
----
-159936
-35105
-380324

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT MAX( - + 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT MAX ( - + 23 ) FROM tab1
----
-23

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT DISTINCT - + COUNT( * ), - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9241
SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
-3

query I rowsort
SELECT + col0 * - - 26 AS col0 FROM tab2
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-9243
SELECT - 95 col2, - COUNT( ALL - 27 ) AS col0 FROM tab2
----
-95
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9243
SELECT - 95 col2, - COUNT ( ALL - 27 ) AS col0 FROM tab2
----
-95
-3

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - + col2 - + ( - + col1 ) * - - 36 <= - + col2 * + col2 * + 39
----
46
64
75

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab1 WHERE + 62 * - - col1 IS NOT NULL
----
23

query II rowsort
SELECT DISTINCT + ( + 25 ) * - col2 + 41, col2 * + 36 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + COUNT( * ) * - 56 + + 5 * - 14 - - + 57 + + 59 + 59 AS col2 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9247
SELECT + COUNT ( * ) * - 56 + + 5 * - 14 - - + 57 + + 59 + 59 AS col2 FROM tab1 cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 * + + 74 FROM tab2 cor0
----
-1702
-2960
-4292

query I rowsort
SELECT ALL + col1 + + col1 * 11 * + col2 FROM tab0 AS cor0 WHERE + col1 + - ( col0 ) IS NOT NULL
----
1090
2331
41958

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL col0 DIV 59 + - - col0 AS col0 FROM tab2
----
46
65
76

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL col0 / 59 + - - col0 AS col0 FROM tab2
----
46
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col2 + col1 - - col1 * - + 98 * col2 * - col2 col1 FROM tab1 AS cor0
----
12645710
1705990
21301387

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col2 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + 75 * col2 AS col1 FROM tab1 AS cor0
----
4425
5100
7200

query I rowsort
SELECT ALL + - 15 + + + col2 + + col1 FROM tab2 AS cor0
----
102
110
59

query I rowsort
SELECT ALL + col0 * - - 42 * - ( + col0 ) + + 43 AS col0 FROM tab0 AS cor0
----
-317855
-395135
-9407

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - 16 AND NULL AND NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT MIN( col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT MIN ( col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT 69 - 54 * col1 AS col2 FROM tab0 AS cor0
----
-1065
-4305
15

query I rowsort
SELECT 53 + - ( + ( + 59 ) ) AS col2 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + 15 + - ( - - col1 ) AS col1 FROM tab0
----
-6
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT + 65 * - COUNT( * ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT + 65 * - COUNT ( * ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT ALL + 21 + + 95 FROM tab2
----
116
116
116

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT ALL + col2 DIV - 50 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + col2 / - 50 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT CAST( 70 AS SIGNED ) * + ( + SUM( DISTINCT - col2 ) ) * + 56 AS col2 FROM tab2
----
-474320

skipif mysql # not compatible
query I rowsort label-9265
SELECT CAST ( 70 AS INTEGER ) * + ( + SUM ( DISTINCT - col2 ) ) * + 56 AS col2 FROM tab2
----
-474320

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 42
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT SUM( ALL + + col0 ) DIV + 43 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT SUM ( ALL + + col0 ) / + 43 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + ( + 89 ) AS col1 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL ( + MAX( + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL ( + MAX ( + col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + 82 * col0 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT + - col2 * col1 * - 98 AS col2 FROM tab2 AS cor0
----
114954
301840
380828

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 * + + 24 * col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 * - col2 FROM tab0 AS cor0
----
-3384
-7128
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT + col1 AS col2 FROM tab1 WHERE NOT + col2 * + col2 <= - col2 + + CAST( - col0 AS SIGNED ) * - + col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9275
SELECT + col1 AS col2 FROM tab1 WHERE NOT + col2 * + col2 <= - col2 + + CAST ( - col0 AS INTEGER ) * - + col1
----
14
47
5

query II rowsort
SELECT - 50 * 46 AS col0, ( - col1 ) FROM tab2 WHERE NOT + + col2 > + 2 * + col2
----
-2300
-51
-2300
-67
-2300
-77

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + - 20 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT 93 * COUNT( - + col0 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9278
SELECT 93 * COUNT ( - + col0 ) FROM tab1
----
279

query II rowsort
SELECT ( - col1 ) AS col0, 15 FROM tab1
----
-14
15
-47
15
-5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT - COUNT( - 62 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - COUNT ( - 62 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - + 99 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + COUNT( * ) + + - COUNT( * ) + + 4 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9283
SELECT + COUNT ( * ) + + - COUNT ( * ) + + 4 FROM tab0
----
4

query II rowsort
SELECT + + col1, - ( 97 ) FROM tab2 AS cor0
----
51
-97
67
-97
77
-97

query II rowsort
SELECT DISTINCT col2 + + 57 * - + 98, col1 FROM tab0 AS cor0
----
-5487
1
-5539
81
-5576
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + COUNT( * ) - - + ( - 15 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + COUNT ( * ) - - + ( - 15 ) FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - COUNT( * ) * - 48 * - MAX( ALL - - 43 ) - COUNT( * ) FROM tab1
----
-6195

skipif mysql # not compatible
query I rowsort label-9287
SELECT - COUNT ( * ) * - 48 * - MAX ( ALL - - 43 ) - COUNT ( * ) FROM tab1
----
-6195

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT COUNT( * ) * 80 - 4 FROM tab0
----
236

skipif mysql # not compatible
query I rowsort label-9288
SELECT COUNT ( * ) * 80 - 4 FROM tab0
----
236

query I rowsort
SELECT - ( - 76 ) - col1 * 4 FROM tab1
----
-112
20
56

query II rowsort
SELECT - 28 - - col2 AS col2, col2 AS col0 FROM tab1
----
31
59
40
68
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT MIN( - ( - 48 ) ) - + 17 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT MIN ( - ( - 48 ) ) - + 17 FROM tab2
----
31

query I rowsort
SELECT - col2 + ( + col1 ) AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - 82 * - COUNT( + + col2 ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - 82 * - COUNT ( + + col2 ) AS col0 FROM tab2
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT ALL + COUNT( * ) DIV + 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + COUNT ( * ) / + 5 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 0 < col0
----

query II rowsort
SELECT + 37 AS col0, ( col0 ) * ( - + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
37
-1058
37
-2560
37
-4350

query II rowsort
SELECT ALL + + 56 * 17 * - col2 * - col2 * + + 69 AS col2, col1 * + - col2 AS col1 FROM tab2 AS cor0
----
105100800
-3080
220974432
-3886
34748952
-1173

query I rowsort
SELECT - col1 * 85 * 4 FROM tab1 AS cor0
----
-15980
-1700
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) * - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT - - SUM( - col1 ) DIV + 98 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT - - SUM ( - col1 ) / + 98 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL - 72 DIV + COUNT( * ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - 72 / + COUNT ( * ) AS col0 FROM tab1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT CAST( NULL AS SIGNED ) * - SUM( DISTINCT - + 8 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - + 8 ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL col2, - 49 - - + 57 FROM tab2
----
23
8
40
8
58
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT - 76 DIV col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - 76 / col2 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT ALL - COUNT( * ) AS col2, + 74 AS col1 FROM tab0 cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL - COUNT ( * ) AS col2, + 74 AS col1 FROM tab0 cor0
----
-3
74

query I rowsort
SELECT + - col1 + - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL - 68 AS col1 FROM tab0 cor0 WHERE NULL <> + col1 / 59 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 85 col2 FROM tab0 AS cor0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL + MIN( ALL - 92 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + MIN ( ALL - 92 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

query I rowsort
SELECT + 67 + col2 AS col1 FROM tab1 AS cor0
----
126
135
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT COUNT( * ) + - COUNT( * ) * + - ( - 12 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9311
SELECT COUNT ( * ) + - COUNT ( * ) * + - ( - 12 ) FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - COUNT( * ) + + - COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9312
SELECT - COUNT ( * ) + + - COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 57 + - + col2 FROM tab1 AS cor0
----
-11
-2
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + MAX( ALL - col2 ) * + - COUNT( * ) + - + 5 AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9314
SELECT + MAX ( ALL - col2 ) * + - COUNT ( * ) + - + 5 AS col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT ( - 65 ) + + ( - - ( - col1 ) ) FROM tab0
----
-146
-66
-86

query I rowsort
SELECT ALL - 12 * + + 64 + - + col1 AS col1 FROM tab2
----
-819
-835
-845

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col0 + - + col0
----

query II rowsort
SELECT col0 AS col2, 4 FROM tab1 AS cor0
----
51
4
85
4
91
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT + 52 AS col2, 58 - - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
52
55

skipif mysql # not compatible
query II rowsort label-9319
SELECT + 52 AS col2, 58 - - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
52
55

query II rowsort
SELECT ALL col0 AS col1, 43 * 14 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col2 * 9 * + col0 FROM tab0
----
6345
7830
86427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col2 ) col0, + 48 FROM tab2 AS cor0
----
23
48
40
48
58
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 * + col0 col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL 52 * + + SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-11596

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL 52 * + + SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-11596

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + - 85 * 48 + - COUNT( * ) FROM tab1 AS cor0
----
-4083

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + - 85 * 48 + - COUNT ( * ) FROM tab1 AS cor0
----
-4083

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 39 BETWEEN NULL AND + + col0
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 IS NOT NULL
----

query II rowsort
SELECT + 75, col2 AS col2 FROM tab1
----
75
59
75
68
75
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 97 * + ( col0 ) col0, col2 FROM tab1
----
4947
96
8245
59
8827
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col0, col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT col0 / - col0 * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT col0 / - col0 * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9334
SELECT + COUNT( * ) DIV + - MIN( DISTINCT - - col1 ), + ( - - ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9334
SELECT + COUNT ( * ) / + - MIN ( DISTINCT - - col1 ), + ( - - ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
-3
NULL

query I rowsort
SELECT ALL + - 36 + + col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
2616
4520
5970

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT + MAX( - + 61 ) * + + 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2074

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + MAX ( - + 61 ) * + + 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9337
SELECT ALL 86 + - CAST( - + col1 AS SIGNED ) AS col0, + col1 * 61 + + + 8 + + col0 col2 FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
137
3165
153
4170
163
4769

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9337
SELECT ALL 86 + - CAST ( - + col1 AS INTEGER ) AS col0, + col1 * 61 + + + 8 + + col0 col2 FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
137
3165
153
4170
163
4769

query II rowsort
SELECT ALL + 63 * - - 19 - - col2 + + + col0, col1 AS col2 FROM tab0 cor0
----
1259
81
1294
21
1393
1

query I rowsort
SELECT DISTINCT - col0 * + 0 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - ( - 91 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL + - COUNT( * ) * - ( + 70 ) + - 57 AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + - COUNT ( * ) * - ( + 70 ) + - 57 AS col2 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT - + 55 + - COUNT( * ) + + + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - + 55 + - COUNT ( * ) + + + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT ALL + 4 - + + 80 AS col1 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT + 44 * col2 + 33 AS col1 FROM tab0
----
2101
4389
473

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + - 11 col1 FROM tab1
----
-1056
-649
-748

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT - + col1 + - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + + COUNT( * ) * - 59 AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + + COUNT ( * ) * - 59 AS col2 FROM tab1 AS cor0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9349
SELECT + COUNT( * ) DIV 3 AS col2, MIN( 98 ) AS col0 FROM tab1 AS cor0
----
1
98

skipif mysql # not compatible
query II rowsort label-9349
SELECT + COUNT ( * ) / 3 AS col2, MIN ( 98 ) AS col0 FROM tab1 AS cor0
----
1
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < col2 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + - col0 col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 9 AS col1 FROM tab0 cor0
----
-423
-891
-90

query II rowsort
SELECT ALL + - col0 * - ( + + 40 ), + col2 FROM tab0 AS cor0
----
3480
10
3880
99
600
47

query I rowsort
SELECT DISTINCT - 35 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
-58
-75
-93

query I rowsort
SELECT - ( + + 85 ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT COUNT( * ) + + 63 FROM tab1 AS cor0 WHERE NOT + col1 - - col1 / col0 IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-9356
SELECT COUNT ( * ) + + 63 FROM tab1 AS cor0 WHERE NOT + col1 - - col1 / col0 IS NOT NULL
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 14 + - - col2 + + col2 * col2 < NULL
----

query I rowsort
SELECT + col0 * 92 FROM tab1 AS cor0
----
4692
7820
8372

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - + + 18 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - COUNT( DISTINCT - col2 ) + + COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT - COUNT ( DISTINCT - col2 ) + + COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + 86 col1 FROM tab2
----
-2515
-4403
-5843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) + - - 4 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - - 4 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - ( + col1 ) FROM tab0 WHERE - + 51 - - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9364
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + 12 + col0 + - col1 * - col0 FROM tab0 AS cor0
----
1242
1926
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT - COUNT( * ) + - 85 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - COUNT ( * ) + - 85 FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9368
SELECT - 6 DIV - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9368
SELECT - 6 / - COUNT ( * ) FROM tab0 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 62
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 8 FROM tab1
----
472
544
768

query I rowsort
SELECT DISTINCT - ( 16 ) AS col0 FROM tab2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9373
SELECT CAST( NULL AS SIGNED ), + 92 * COUNT( * ) AS col1 FROM tab0
----
NULL
276

skipif mysql # not compatible
query II rowsort label-9373
SELECT CAST ( NULL AS INTEGER ), + 92 * COUNT ( * ) AS col1 FROM tab0
----
NULL
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 36 col0 FROM tab2
----
51
36
67
36
77
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 78 BETWEEN + ( - ( - + col0 ) ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT ALL + 94 DIV + - MAX( 98 ) + + SUM( DISTINCT + + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 94 / + - MAX ( 98 ) + + SUM ( DISTINCT + + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT ( MIN( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT ( MIN ( col2 ) ) FROM tab1
----
59

query I rowsort
SELECT ALL ( + col1 ) * - 64 FROM tab2 AS cor0
----
-3264
-4288
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL - col2 * - col2 + - + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - col2 * - col2 + - + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 85 * - + col1 FROM tab1 cor0
----
-1190
-3995
-425

query II rowsort
SELECT ( - 60 ), col0 - - 40 + - + 24 AS col0 FROM tab0 cor0
----
-60
103
-60
113
-60
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT - - col1 DIV + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - - col1 / + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9383
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) > + + ( + + col2 ) * - col2
----

skipif mysql # not compatible
query III rowsort label-9383
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > + + ( + + col2 ) * - col2
----

query I rowsort
SELECT ALL col2 * + ( + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + 24 * + col0 AS col2 FROM tab0
----
2088
2328
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT col1 - - - col0 AS col2 FROM tab1 WHERE NULL > + CAST( - 8 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9386
SELECT col1 - - - col0 AS col2 FROM tab1 WHERE NULL > + CAST ( - 8 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT SUM( DISTINCT + - 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT SUM ( DISTINCT + - 75 ) FROM tab1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9388
SELECT ALL * FROM tab0 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9388
SELECT ALL * FROM tab0 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT + - col1 * 2 FROM tab2 AS cor0 WHERE NULL >= - CAST( - - col1 AS SIGNED ) * + + col1
----

skipif mysql # not compatible
query I rowsort label-9389
SELECT + - col1 * 2 FROM tab2 AS cor0 WHERE NULL >= - CAST ( - - col1 AS INTEGER ) * + + col1
----

query I rowsort
SELECT ALL + + col2 + + 52 AS col1 FROM tab0 AS cor0
----
151
62
99

query I rowsort
SELECT + col0 * - ( col2 ) AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 87 * - col0 AS col0 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT DISTINCT 63 FROM tab1 WHERE NOT ( col0 * col0 ) IS NOT NULL
----

query I rowsort
SELECT + col2 + - 5 FROM tab0
----
42
5
94

query I rowsort
SELECT 7 * - 16 AS col1 FROM tab1 WHERE NOT + col1 / + col1 IS NULL
----
-112
-112
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9396
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT ( NULL ) <> ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT ( NULL ) <> ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT + col2 * col2 FROM tab1 WHERE NULL NOT BETWEEN col0 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9397
SELECT + col2 * col2 FROM tab1 WHERE NULL NOT BETWEEN col0 AND ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( ALL col1 ) * 19 col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND col1
----

query I rowsort
SELECT col0 + + 88 * col1 AS col2 FROM tab0
----
185
1935
7143

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( + 73 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT ALL col0 DIV - 34 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL col0 / - 34 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT col1 - col0 AS col2 FROM tab0 WHERE NOT - 14 / - col0 + col0 * - col0 IS NULL
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL MIN( - 36 ) * COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL MIN ( - 36 ) * COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( + col0 ) * col0 - 61 AS col1 FROM tab2
----
2055
4035
5564

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT ALL - col1 + + 70 DIV 11 AS col1 FROM tab0
----
-15
-75
5

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - col1 + + 70 / 11 AS col1 FROM tab0
----
-15
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + ( SUM( DISTINCT + ( - col2 ) ) ) + - SUM( ALL + 36 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT + ( SUM ( DISTINCT + ( - col2 ) ) ) + - SUM ( ALL + 36 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL > 19 / + 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 <= - col0
----
NULL

query I rowsort
SELECT ALL + col0 + - 90 * col0 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 > col2 * 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + ( col1 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + MIN( ALL + 78 ) AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9416
SELECT + MIN ( ALL + 78 ) AS col2 FROM tab0 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT COUNT( * ) * 21 AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9418
SELECT COUNT ( * ) * 21 AS col0 FROM tab0 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + 57 ) NOT BETWEEN - 18 * - col0 AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT - col2 AS col0 FROM tab0 WHERE NOT ( col2 DIV + 14 ) NOT IN ( + col1 DIV - 58 )
----
-10

skipif mysql # not compatible
query I rowsort label-9421
SELECT - col2 AS col0 FROM tab0 WHERE NOT ( col2 / + 14 ) NOT IN ( + col1 / - 58 )
----
-10

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
62

query I rowsort
SELECT 57 * - 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 9ce38f52b721848efde8afa4e4658675

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( col0 + + col1 ) IN ( - col0 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 56 * 47 )
----

query I rowsort
SELECT + - ( col1 ) * + ( + 2 ) AS col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL - 80 / col2 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT 1 DIV + 70 + - 2 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9429
SELECT 1 / + 70 + - 2 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + - 6 + col0 FROM tab1 AS cor0
----
45
79
85

query I rowsort
SELECT - - col1 + - col2 * - col0 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9433
SELECT COUNT( + col0 ) AS col1 FROM tab1 AS cor0 WHERE - 37 BETWEEN ( CAST( NULL AS DECIMAL ) / - 19 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT COUNT ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE - 37 BETWEEN ( CAST ( NULL AS REAL ) / - 19 ) AND col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9435
SELECT DISTINCT + col0 FROM tab2 WHERE col0 NOT IN ( - col2 / CAST( NULL AS DECIMAL ) + 52 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + col0 FROM tab2 WHERE col0 NOT IN ( - col2 / CAST ( NULL AS REAL ) + 52 * - col1 )
----

query I rowsort
SELECT ALL - col1 + - - 50 FROM tab2
----
-1
-17
-27

query I rowsort
SELECT DISTINCT + col0 * 30 + + col2 FROM tab2
----
1403
1960
2308

query I rowsort
SELECT ALL col1 * + 20 AS col0 FROM tab0 WHERE NOT col2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - MIN( ALL + ( 36 ) ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT - MIN ( ALL + ( 36 ) ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 75 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9442
SELECT ALL CAST( NULL AS DECIMAL ) * + - MAX( ALL + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL CAST ( NULL AS REAL ) * + - MAX ( ALL + col0 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT + 18 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT + 18 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 76 * + col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT + - COUNT( * ) + - 49 AS col0 FROM tab2 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + - COUNT ( * ) + - 49 AS col0 FROM tab2 cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9446
SELECT + CAST( NULL AS DECIMAL ) - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT + CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 38 * 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 47 * - 57 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 * + 59 IS NULL
----

query I rowsort
SELECT ALL 19 - + col2 AS col1 FROM tab1
----
-40
-49
-77

query I rowsort
SELECT DISTINCT 58 + 72 FROM tab1
----
130

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
69

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 98 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col0 )
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 + + col0 * + 9 AS col0 FROM tab0 AS cor0
----
1
776
21
696
81
120

query I rowsort
SELECT + 49 * + 78 AS col1 FROM tab2 AS cor0
----
3822
3822
3822

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col0, + 94 AS col1 FROM tab2 AS cor0
----
-23
94
-40
94
-58
94

query II rowsort
SELECT col1 AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col1 * col1 * col1 FROM tab2 AS cor0
----
132651
300763
456533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( - 31 ) col1 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT DISTINCT + col0 DIV col0 * - col2 col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9463
SELECT DISTINCT + col0 / col0 * - col2 col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 91 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT col1 DIV ( + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT col1 / ( + col2 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 BETWEEN ( + 44 ) AND col0
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT 90 * + ( + 67 ) AS col2 FROM tab2
----
6030

query I rowsort
SELECT 42 * + 98 FROM tab2
----
4116
4116
4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT DISTINCT 91 + - col2 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
33
51
68

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT 91 + - col2 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
33
51
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT - COUNT( * ) * + - MIN( DISTINCT + + 33 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - COUNT ( * ) * + - MIN ( DISTINCT + + 33 ) FROM tab2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9471
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2 WHERE NOT col1 + + + 43 / 94 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + 42 ) = ( NULL )
----

query I rowsort
SELECT ALL col0 * - col0 * + col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9475
SELECT ALL + col2 DIV CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + col2 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT SUM( DISTINCT + col1 ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9476
SELECT DISTINCT SUM ( DISTINCT + col1 ) col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - + COUNT( * ) + COUNT( * ) FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT - + COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT col2 + - col1 + - 5 + + - ( col1 ) * col2 AS col1 FROM tab1
----
-1267
-246
-3180

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 21 ) BETWEEN - 88 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT - COUNT( * ) + COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT - COUNT ( * ) + COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT DISTINCT - col2 AS col2, - 75 DIV - ( - 55 ) FROM tab1 cor0
----
-59
-1
-68
-1
-96
-1

skipif mysql # not compatible
query II rowsort label-9481
SELECT DISTINCT - col2 AS col2, - 75 / - ( - 55 ) FROM tab1 cor0
----
-59
-1
-68
-1
-96
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN ( col0 + + + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + 32 AS col0 FROM tab1 AS cor0 WHERE - 40 IS NOT NULL
----
-32

query I rowsort
SELECT ALL - 99 * - col0 + - - 83 * - ( - - col0 ) + col2 FROM tab1 cor0
----
1419
1524
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT DISTINCT - col1 * + CAST( 91 AS SIGNED ) * 24 + col1 AS col0 FROM tab0 AS cor0
----
-176823
-2183
-45843

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - col1 * + CAST ( 91 AS INTEGER ) * 24 + col1 AS col0 FROM tab0 AS cor0
----
-176823
-2183
-45843

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 > NULL )
----

query I rowsort
SELECT ALL - col1 + 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT 12 + - 13 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab1 WHERE - 58 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL >= - 10 )
----

query I rowsort
SELECT DISTINCT col0 + + + 14 AS col0 FROM tab0
----
101
111
29

query II rowsort
SELECT col1, 3 FROM tab1
----
14
3
47
3
5
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - - col1 ) * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT - COUNT( ALL + - col1 ) - 79 * - - 98 AS col2 FROM tab1
----
-7745

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - COUNT ( ALL + - col1 ) - 79 * - - 98 AS col2 FROM tab1
----
-7745

query I rowsort
SELECT ALL 6 AS col1 FROM tab1 WHERE ( + - col2 ) IS NOT NULL
----
6
6
6

query III rowsort
SELECT * FROM tab1 WHERE ( 7 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT COUNT( ALL - col1 ) + - 45 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( ALL - col1 ) + - 45 FROM tab1
----
-42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col2 * - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9500
SELECT - AVG ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + - 15 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT - AVG ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + - 15 * - CAST ( NULL AS REAL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 1 + + - 87 NOT BETWEEN NULL AND + col2 + + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, 42 col2 FROM tab1 cor0
----
-14
42
-47
42
-5
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + col2 * ( 72 ) / - - 63 + 66 * 22 + + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + col2 * ( 72 ) / - - 63 + 66 * 22 + + col0 AND NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT - - MAX( col0 ) - + 2 - - - 49 col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9504
SELECT DISTINCT - - MAX ( col0 ) - + 2 - - - 49 col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9505
SELECT + SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col2 >= col2 * col0 + - 39 - col0 / col2
----

query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - col0 * - col0 - - - col2 AS col2 FROM tab2 AS cor0
----
107893
315352
376817

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9510
SELECT - ( CAST( - - col2 AS SIGNED ) ), + 81 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( 19 )
----

skipif mysql # not compatible
query II rowsort label-9510
SELECT - ( CAST ( - - col2 AS INTEGER ) ), + 81 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( 19 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> ( + 46 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + + 72 AND + + col2 / - - col0 - - - 37
----

query I rowsort
SELECT 11 + + + 71 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT + COUNT( * ) * - 52 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + COUNT ( * ) * - 52 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + MAX( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + + 0 * - col2 * - - ( - 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + MAX ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + + 0 * - col2 * - - ( - 88 ) )
----
NULL

query I rowsort
SELECT + col0 * + + col2 * + 95 FROM tab0 AS cor0
----
66975
82650
912285

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT COUNT( DISTINCT + col2 ) * + + 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * + + 32 FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9518
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 + + 74 AS col2, 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 + + 74 AS col2, 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT - MIN( + + 14 ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT - MIN ( + + 14 ) AS col0 FROM tab1
----
-14

query II rowsort
SELECT ALL col0, + 47 FROM tab1
----
51
47
85
47
91
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 90 ) * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 21 * col2 AS col1 FROM tab2 WHERE NOT - col2 - + 48 * col2 IS NULL
----
-1276
-506
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + SUM( ALL - + col1 ) + 32 AS col1 FROM tab2 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-9523
SELECT + SUM ( ALL - + col1 ) + 32 AS col1 FROM tab2 AS cor0
----
-163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 47 > - col2
----

query II rowsort
SELECT col0 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + col0 * + - col1 - col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( + col1, 5 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT DISTINCT - COUNT( ALL - col1 ) AS col2, - 86 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9528
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col2, - 86 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * + 26 col1 FROM tab1 AS cor0
----
-1378
-1378
-1378

query I rowsort
SELECT ALL - col1 * - - 56 AS col2 FROM tab0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT 41 * - COUNT( - col0 ) FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT 41 * - COUNT ( - col0 ) FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT 9 + + + col1 AS col1 FROM tab1 AS cor0
----
14
23
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL COUNT( - 13 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL COUNT ( - 13 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - - 35, - col2 col0 FROM tab0 cor0
----
-12
-47
-64
-99
25
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 63 col1 FROM tab1 AS cor0
----
-33
-5
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col0 / + col1, - col2 )
----

query I rowsort
SELECT ALL + 52 * - + col0 + + 74 + - + 0 AS col1 FROM tab2 AS cor0
----
-2318
-3254
-3826

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( * ) + - + 78 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( * ) + - + 78 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - ( + ( 41 ) ) + col1 + - col2 * - col0 * col0 FROM tab2 AS cor0
----
163876
326276
48678

query I rowsort
SELECT DISTINCT - col2 + - 43 + + - 43 FROM tab2 AS cor0
----
-109
-126
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE NULL >= 15
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) / col1 + + + col0 + + 59 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) / col1 + + + col0 + + 59 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND col2 + - col1 + + col1
----

query I rowsort
SELECT - col1 - 18 + + ( - 98 ) AS col0 FROM tab0 AS cor0
----
-117
-137
-197

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > + 50 * 51 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NOT col0 + + + ( + ( + - col2 ) ) IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, + 76 AS col2 FROM tab1 AS cor0
----
-51
76
-85
76
-91
76

query II rowsort
SELECT 48, col0 FROM tab0 AS cor0
----
48
15
48
87
48
97

query II rowsort
SELECT DISTINCT 46 AS col0, - col1 FROM tab1 AS cor0
----
46
-14
46
-47
46
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - ( - - ( col2 ) ) * + col0 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

query I rowsort
SELECT - ( - + 67 ) AS col1 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT + + MAX( DISTINCT col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + + MAX ( DISTINCT col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9555
SELECT - 86 DIV 74 AS col1, MIN( - + col0 ) AS col0 FROM tab1
----
-1
-91

skipif mysql # not compatible
query II rowsort label-9555
SELECT - 86 / 74 AS col1, MIN ( - + col0 ) AS col0 FROM tab1
----
-1
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9556
SELECT ALL * FROM tab2 WHERE ( NULL IN ( 76, + col0, + + CAST( - col0 AS SIGNED ) * + 83 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + col0 + - 31 + 25 * - 25 ) )
----

skipif mysql # not compatible
query III rowsort label-9556
SELECT ALL * FROM tab2 WHERE ( NULL IN ( 76, + col0, + + CAST ( - col0 AS INTEGER ) * + 83 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col0 + - 31 + 25 * - 25 ) )
----

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NOT + - col2 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - MIN( - 4 ) * + COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9559
SELECT - MIN ( - 4 ) * + COUNT ( * ) AS col1 FROM tab2
----
12

query I rowsort
SELECT DISTINCT - 29 * - + ( 95 ) FROM tab0
----
2755

query I rowsort
SELECT ALL + ( - col2 ) * - col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + col0 * 71 * - 19 + col2 FROM tab0 AS cor0
----
-117353
-130754
-20188

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - 95 + col1 - + 3 AS col2 FROM tab2 cor0
----
-21
-31
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-9565
SELECT ALL - col1 AS col2, 40 + - col1 DIV - 75 FROM tab1
----
-14
40
-47
40
-5
40

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL - col1 AS col2, 40 + - col1 / - 75 FROM tab1
----
-14
40
-47
40
-5
40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * ( col0 ) NOT IN ( - col1 + - col2 )
----

query I rowsort
SELECT - col1 * + + 73 AS col1 FROM tab0 AS cor0
----
-1533
-5913
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) + - col0, 32 col0 FROM tab2 AS cor0
----
-141
32
-142
32
-97
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, 77 col0 FROM tab2 AS cor0
----
23
77
40
77
58
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + MIN( DISTINCT 15 ) * + 36 FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + MIN ( DISTINCT 15 ) * + 36 FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT - 1 / - col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + col0 ) * + col2 * + col1 * + 81 - - + col1 + col2 * - + 33 > col0
----

query I rowsort
SELECT DISTINCT 53 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT 71 + + MIN( - col0 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT 71 + + MIN ( - col0 ) FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL + CAST( + col1 AS SIGNED ) * 26 FROM tab2 WHERE NULL IS NULL
----
1326
1742
2002

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + CAST ( + col1 AS INTEGER ) * 26 FROM tab2 WHERE NULL IS NULL
----
1326
1742
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT - col1 * - col2 * - + col2 * + col2 / + 2 / CAST( NULL AS SIGNED ) - + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT - col1 * - col2 * - + col2 * + col2 / + 2 / CAST ( NULL AS INTEGER ) - + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 - + + col0 FROM tab1
----
-141
-175
-181

query I rowsort
SELECT DISTINCT col0 + + 12 FROM tab1
----
103
63
97

query I rowsort
SELECT ALL + col0 * col2 - - 46 AS col0 FROM tab0
----
751
916
9649

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT + 70 + - 22 + + 96 DIV - - col1 + - col0 * - + col1 AS col1 FROM tab0
----
1264
1879
241

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 70 + - 22 + + 96 / - - col1 + - col0 * - + col1 AS col1 FROM tab0
----
1264
1879
241

query I rowsort
SELECT ALL - 1 - - col0 FROM tab0
----
14
86
96

query I rowsort
SELECT ALL - col2 + 14 FROM tab0 WHERE + - 97 - + 78 - - col0 NOT IN ( col0 * - col2, 22 )
----
-33
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + 37 + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 37 + COUNT ( * ) FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - SUM( + 10 ) * + - 82 col0 FROM tab2
----
2460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9584
SELECT DISTINCT - SUM ( + 10 ) * + - 82 col0 FROM tab2
----
2460

query I rowsort
SELECT ALL - - 12 AS col0 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT ALL + 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 74, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - COUNT( * ) * - 26 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COUNT ( * ) * - 26 AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 63 * - 8 AS col0 FROM tab0 AS cor0
----
504
504
504

query I rowsort
SELECT 67 * - 90 + col1 FROM tab0 AS cor0
----
-5949
-6009
-6029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9593
SELECT COUNT( * ), - COUNT( 77 ) FROM tab2 AS cor0 WHERE col2 = + 73 * 46 OR NOT + col1 * + col2 IN ( - col2 + + - col2, col2, - CAST( NULL AS SIGNED ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-9593
SELECT COUNT ( * ), - COUNT ( 77 ) FROM tab2 AS cor0 WHERE col2 = + 73 * 46 OR NOT + col1 * + col2 IN ( - col2 + + - col2, col2, - CAST ( NULL AS INTEGER ) )
----
0
0

query I rowsort
SELECT col2 * + col1 * + 56 FROM tab1
----
16520
178976
75264

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT col0 DIV - col0 + + 17 AS col0 FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-9595
SELECT col0 / - col0 + + 17 AS col0 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL + MIN( ALL - - 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + MIN ( ALL - - 34 ) AS col1 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 28 * col1 + 62 col2 FROM tab0 cor0
----
2411
671
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT - 86 + 68 + + - CAST( NULL AS SIGNED ) * + + col1 * + 31 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - 86 + 68 + + - CAST ( NULL AS INTEGER ) * + + col1 * + 31 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - col1, 88 AS col0 FROM tab2 AS cor0
----
-51
88
-67
88
-77
88

query I rowsort
SELECT ALL + - col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 76 FROM tab1 AS cor0 WHERE col2 * + col2 IS NOT NULL
----
-76
-76
-76

query I rowsort
SELECT - + ( - + col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 - ( - - col0 ) AS col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 * - - 21 + + 45 * + + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 68, col2 + - + col1, - 88, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT 0 - + - COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9608
SELECT DISTINCT 0 - + - COUNT ( * ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col1 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - - ( + COUNT( * ) ) + + + 33 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9610
SELECT - - ( + COUNT ( * ) ) + + + 33 FROM tab0 AS cor0
----
36

query I rowsort
SELECT - - ( col0 ) + - - col2 * + 83 * + col2 FROM tab2 AS cor0
----
132864
279287
43953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + ( - 67 ) * col2 * - 34 + + + 13 col0 FROM tab1 AS cor0
----
-6048077
-6970667
-9840947

query I rowsort
SELECT ALL col1 + - 69 AS col2 FROM tab0 AS cor0
----
-48
-68
12

query I rowsort
SELECT - - col1 + col1 * - 48 FROM tab2 AS cor0
----
-2397
-3149
-3619

onlyif mysql # DIV for integer division: 
query II rowsort label-9615
SELECT - col1 * 24 + + - col2 AS col1, + col2 DIV - col0 FROM tab1 AS cor0
----
-1196
0
-179
0
-432
-1

skipif mysql # not compatible
query II rowsort label-9615
SELECT - col1 * 24 + + - col2 AS col1, + col2 / - col0 FROM tab1 AS cor0
----
-1196
0
-179
0
-432
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 83 * - col0
----

query I rowsort
SELECT + - 99 + 82 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - 75 + + - 93 FROM tab0 WHERE NULL = - col2
----

query I rowsort
SELECT ALL 0 + 14 + - 82 + - 46 FROM tab0
----
-114
-114
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT + + MIN( DISTINCT CAST( - 28 AS SIGNED ) ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT + + MIN ( DISTINCT CAST ( - 28 AS INTEGER ) ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + col0, 85 AS col1 FROM tab0
----
15
85
87
85
97
85

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE + col2 BETWEEN 4 AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 - col0 AS col1 FROM tab0 WHERE NULL > + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT - CAST( - 27 AS SIGNED ) * - col2 AS col0 FROM tab0
----
-1269
-2673
-270

skipif mysql # not compatible
query I rowsort label-9624
SELECT - CAST ( - 27 AS INTEGER ) * - col2 AS col0 FROM tab0
----
-1269
-2673
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab0 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT DISTINCT - + ( + ( - SUM( 39 ) ) ) AS col0 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT - + ( + ( - SUM ( 39 ) ) ) AS col0 FROM tab2 AS cor0
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + 71 * 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT 4 * COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9628
SELECT 4 * COUNT ( * ) FROM tab2 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * - col1 AND NULL
----

query I rowsort
SELECT ALL 65 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
65
65
65

query I rowsort
SELECT - col2 + - ( + 45 ) * - + col2 AS col0 FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT + - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9632
SELECT + - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT + COUNT( * ) + + + COUNT( - col1 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( - col1 ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL COUNT( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL COUNT ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + + col2 - + 22 + + 9 AS col0 FROM tab0 cor0
----
692
857
9590

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT - ( 42 ), COUNT( * ) col0 FROM tab1 WHERE NULL <= ( + col0 )
----
-42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9637
SELECT - ( 42 ), COUNT ( * ) col0 FROM tab1 WHERE NULL <= ( + col0 )
----
-42
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9638
SELECT ALL * FROM tab1 WHERE NOT - 27 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9638
SELECT ALL * FROM tab1 WHERE NOT - 27 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT - - ( - col0 ) DIV col0 + + 74 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - - ( - col0 ) / col0 + + 74 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + MAX( - col1 ) + - 10 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9640
SELECT + MAX ( - col1 ) + - 10 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

query I rowsort
SELECT - 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query II rowsort
SELECT DISTINCT + - col0, + 52 AS col1 FROM tab2 AS cor0
----
-46
52
-64
52
-75
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT ALL + COUNT( * ) AS col2, - ( 66 ) FROM tab1 AS cor0
----
3
-66

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL + COUNT ( * ) AS col2, - ( 66 ) FROM tab1 AS cor0
----
3
-66

query II rowsort
SELECT DISTINCT + - col1, + ( - + col0 ) AS col0 FROM tab1 cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - SUM( + - 89 ) - + 7 AS col2 FROM tab1 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-9647
SELECT - SUM ( + - 89 ) - + 7 AS col2 FROM tab1 AS cor0
----
260

query I rowsort
SELECT ALL + ( - + col1 ) * + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 - - - col1 + - + 55 * + col2 > col1
----

query I rowsort
SELECT ALL - col1 * col1 - - + col1 + col2 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-2527
-4364
-5812

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL MIN( + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL MIN ( + col2 ) AS col0 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT DISTINCT col0 * + CAST( - col1 AS SIGNED ) * + - col2 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col0 * + CAST ( - col1 AS INTEGER ) * + - col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT + 49 DIV - col1 AS col2 FROM tab0
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT + 49 / - col1 AS col2 FROM tab0
----
-2
-49
0

query II rowsort
SELECT - + col1 AS col0, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT MAX( + 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9655
SELECT MAX ( + 73 ) FROM tab0 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT - 3 + + - 95 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT 15 + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9658
SELECT 15 + + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT DISTINCT + CAST( MAX( DISTINCT - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + CAST ( MAX ( DISTINCT - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL 3 + - + COUNT( * ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 3 + - + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL CAST( NULL AS SIGNED ) + - 79 * - 37 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL CAST ( NULL AS INTEGER ) + - 79 * - 37 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 55 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query II rowsort
SELECT + 35 * + + col0 + - - col0 + - - 84 AS col0, - 66 AS col0 FROM tab1
----
1920
-66
3144
-66
3360
-66

query I rowsort
SELECT DISTINCT 1 + + ( - col1 ) AS col0 FROM tab0
----
-20
-80
0

query III rowsort
SELECT * FROM tab0 WHERE + - col2 <> + col0 + + + 57 / + - col0 * - - col1 * - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab2 AS cor0 WHERE NOT + 98 IN ( - col2 )
----
51
51
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 - + 62 col2 FROM tab0
----
-125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 - - col1 col0 FROM tab0
----
103
23
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT DISTINCT + + ( - + 17 ) - - 48, - MAX( ALL - 18 ) * + ( + 93 ) AS col1 FROM tab1 AS cor0
----
31
1674

skipif mysql # not compatible
query II rowsort label-9670
SELECT DISTINCT + + ( - + 17 ) - - 48, - MAX ( ALL - 18 ) * + ( + 93 ) AS col1 FROM tab1 AS cor0
----
31
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - MAX( + + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9671
SELECT - MAX ( + + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT col2 * 62 * col1 DIV - + col1 AS col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

skipif mysql # not compatible
query I rowsort label-9672
SELECT col2 * 62 * col1 / - + col1 AS col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT - ( + 92 ) * 26, - 84 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2392
-81

skipif mysql # not compatible
query II rowsort label-9673
SELECT - ( + 92 ) * 26, - 84 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2392
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT SUM( - col1 ) * ( 16 ) FROM tab2 AS cor0
----
-3120

skipif mysql # not compatible
query I rowsort label-9674
SELECT SUM ( - col1 ) * ( 16 ) FROM tab2 AS cor0
----
-3120

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) BETWEEN - col2 * + 66 * + col2 AND NULL )
----

query I rowsort
SELECT + 3 * - - 48 * + 71 AS col2 FROM tab2 AS cor0
----
10224
10224
10224

query II rowsort
SELECT DISTINCT + 43 AS col0, col1 AS col0 FROM tab2
----
43
51
43
67
43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT - SUM( + - 90 ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - SUM ( + - 90 ) FROM tab1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + MAX( ALL - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9679
SELECT + MAX ( ALL - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + + MIN( DISTINCT col1 ) * - 79 AS col1 FROM tab2 AS cor0
----
-4029

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + + MIN ( DISTINCT col1 ) * - 79 AS col1 FROM tab2 AS cor0
----
-4029

query II rowsort
SELECT col0, col0 + 66 * - 9 AS col0 FROM tab2 AS cor0
----
46
-548
64
-530
75
-519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col1 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + - col1 * - + col1 * + + col2 FROM tab2 cor0
----
237160
260362
59823

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - col0 + 11 + - - 19 - + 91 * - 76 * 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col2 ) AS col2, col1 col1 FROM tab1
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 col0, 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26
36

query I rowsort
SELECT DISTINCT - col0 * 44 AS col1 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - col2 + + 76
----

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 55 * - col0 * - 90 FROM tab2 AS cor0
----
227700
316800
371250

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN 15 AND NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 * col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT - + ( CAST( col1 AS SIGNED ) ) * + 89 col0 FROM tab2 AS cor0 WHERE + ( - - col1 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9694
SELECT - + ( CAST ( col1 AS INTEGER ) ) * + 89 col0 FROM tab2 AS cor0 WHERE + ( - - col1 ) IS NULL
----

query I rowsort
SELECT ALL - 39 + 91 AS col2 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT col1 + - - col0 + col1 AS col1 FROM tab2
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col0 * + + col1 * - + 12 col1 FROM tab1
----
433500
436968
4670484

query I rowsort
SELECT + 32 * col0 AS col1 FROM tab1
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT COUNT( * ) * - 77 * + MIN( - + col2 ) AS col0 FROM tab0
----
22869

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT COUNT ( * ) * - 77 * + MIN ( - + col2 ) AS col0 FROM tab0
----
22869

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9700
SELECT DISTINCT ( COUNT( * ) ) - - 65 AS col0, COUNT( * ) DIV + COUNT( * ) FROM tab0
----
68
1

skipif mysql # not compatible
query II rowsort label-9700
SELECT DISTINCT ( COUNT ( * ) ) - - 65 AS col0, COUNT ( * ) / + COUNT ( * ) FROM tab0
----
68
1

query I rowsort
SELECT 16 - + - col2 FROM tab1
----
112
75
84

query I rowsort
SELECT + 78 + + col2 + 32 - + 22 FROM tab1
----
147
156
184

query I rowsort
SELECT ALL AVG ( - - col2 ) FROM tab0 AS cor0 WHERE NOT + 31 * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - 91 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT DISTINCT - 91 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT + - 1 + 69 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT 99 - col1 * - - 81 * + 84 + - - col2 AS col0 FROM tab1
----
-319621
-33862
-95061

query I rowsort
SELECT ALL col0 + - + 87 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - + COUNT( * ) * - + 85 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - + COUNT ( * ) * - + 85 FROM tab1 AS cor0
----
255

query I rowsort
SELECT + 87 * + 48 AS col2 FROM tab0 AS cor0
----
4176
4176
4176

query I rowsort
SELECT 57 * - ( + col1 ) * + 70 FROM tab2 AS cor0
----
-203490
-267330
-307230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab1
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT DISTINCT 56, + COUNT( * ) AS col0 FROM tab1
----
56
3

skipif mysql # not compatible
query II rowsort label-9712
SELECT DISTINCT 56, + COUNT ( * ) AS col0 FROM tab1
----
56
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT DISTINCT COUNT( * ) AS col2, + 65 FROM tab2 cor0
----
3
65

skipif mysql # not compatible
query II rowsort label-9713
SELECT DISTINCT COUNT ( * ) AS col2, + 65 FROM tab2 cor0
----
3
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT + COUNT( * ) col2, ( - + 45 ) FROM tab1 AS cor0
----
3
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9714
SELECT + COUNT ( * ) col2, ( - + 45 ) FROM tab1 AS cor0
----
3
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT - + COUNT( * ) * ( 56 ) AS col0, COUNT( - 6 ) AS col2 FROM tab1 cor0
----
-168
3

skipif mysql # not compatible
query II rowsort label-9715
SELECT - + COUNT ( * ) * ( 56 ) AS col0, COUNT ( - 6 ) AS col2 FROM tab1 cor0
----
-168
3

query I rowsort
SELECT col1 * - col0 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * 73 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT 53 * + COUNT( DISTINCT + col1 ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-9718
SELECT 53 * + COUNT ( DISTINCT + col1 ) FROM tab1
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 col2 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83, - ( + col0 ) col0 FROM tab2
----
-83
-46
-83
-64
-83
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT col0 + + + CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT col0 + + + CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - ( - col0 ) * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * - - col0 + + + 25 - col2 * 94 + + col1 + - 27 + + ( + ( - col1 ) ) col1 FROM tab0 AS cor0
----
-3775
-5137
2799

query I rowsort
SELECT - col1 * + col1 + col2 + + 56 FROM tab1 cor0
----
-2085
-44
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT + 46 * - CAST( + 2 AS SIGNED ) + - + col1 AS col2 FROM tab2 AS cor0
----
-143
-159
-169

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 46 * - CAST ( + 2 AS INTEGER ) + - + col1 AS col2 FROM tab2 AS cor0
----
-143
-159
-169

onlyif mysql # DIV for integer division: 
query II rowsort label-9728
SELECT DISTINCT col2 + 41 AS col2, col2 DIV + + col2 AS col0 FROM tab0 AS cor0
----
140
1
51
1
88
1

skipif mysql # not compatible
query II rowsort label-9728
SELECT DISTINCT col2 + 41 AS col2, col2 / + + col2 AS col0 FROM tab0 AS cor0
----
140
1
51
1
88
1

query II rowsort
SELECT DISTINCT - 28 * - 22 AS col1, + 60 FROM tab0
----
616
60

query II rowsort
SELECT DISTINCT - 23 + - col1 * + - col1, - col2 AS col2 FROM tab1
----
173
-96
2
-59
2186
-68

query I rowsort
SELECT - 96 * col0 AS col2 FROM tab0
----
-1440
-8352
-9312

query II rowsort
SELECT + 53 * - + ( + col2 ), col1 FROM tab1 AS cor0
----
-3127
5
-3604
47
-5088
14

query I rowsort
SELECT ALL + - col1 + - col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT + col2 * - col1 - + + col1 AS col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT - - 0 * + col1 + + 95 * - CAST( NULL AS SIGNED ) - + + 3 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT - - 0 * + col1 + + 95 * - CAST ( NULL AS INTEGER ) - + + 3 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT + COUNT( * ) + - 86 FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + COUNT ( * ) + - 86 FROM tab2 cor0
----
-83

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 70 / + + 96 < NULL
----

query II rowsort
SELECT col0 AS col0, - col0 + + + 19 AS col1 FROM tab1
----
51
-32
85
-66
91
-72

query I rowsort
SELECT - - col2 * - + 32 FROM tab1 AS cor0
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - + 91 * col1 FROM tab1 AS cor0
----
-38675
-389207
-64974

query I rowsort
SELECT 62 * - col0 - 65 FROM tab1 AS cor0
----
-3227
-5335
-5707

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + COUNT( ALL + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + COUNT ( ALL + + col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT CAST( + 76 AS SIGNED ) col2 FROM tab2
----
76
76
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9744
SELECT CAST ( + 76 AS INTEGER ) col2 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT + MIN( DISTINCT - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT + MIN ( DISTINCT - 10 ) FROM tab0
----
-10

query I rowsort
SELECT ALL ( + + col1 ) FROM tab1 WHERE NOT ( 89 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT + 33 DIV - col0 * - col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT + 33 / - col0 * - col1 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab0
----
76
76
76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9749
SELECT ALL * FROM tab1 WHERE CAST( - col0 AS DECIMAL ) / col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9749
SELECT ALL * FROM tab1 WHERE CAST ( - col0 AS REAL ) / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL SUM( DISTINCT col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL SUM ( DISTINCT col0 ) FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 + + 8 col2 FROM tab2 AS cor0
----
125
133
82

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE - - col0 < NULL
----

query I rowsort
SELECT + 14 AS col2 FROM tab0 WHERE + - col2 < NULL
----

query I rowsort
SELECT + col1 + + + 86 FROM tab1
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT 71 + - CAST( - + col2 AS SIGNED ) FROM tab0
----
118
170
81

skipif mysql # not compatible
query I rowsort label-9755
SELECT 71 + - CAST ( - + col2 AS INTEGER ) FROM tab0
----
118
170
81

query I rowsort
SELECT DISTINCT + 55 + + col0 AS col2 FROM tab1 AS cor0
----
106
140
146

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2 * + 94
----

query I rowsort
SELECT DISTINCT + 85 + col2 - + + ( 88 ) * + - col1 * - ( + col2 ) + + + 87 FROM tab0 AS cor0
----
-18298
-334797
-8441

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT - SUM( 12 ) + 83 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - SUM ( 12 ) + 83 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT 5 - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT 5 - COUNT ( * ) FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT 15 DIV col0 * col2 * + - CAST( + 44 AS SIGNED ) + + + col1 FROM tab0
----
-1987
1
21

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT 15 / col0 * col2 * + - CAST ( + 44 AS INTEGER ) + + + col1 FROM tab0
----
-1987
1
21

query I rowsort
SELECT col1 - - 65 AS col0 FROM tab2
----
116
132
142

query I rowsort
SELECT + 24 - - + col1 FROM tab2
----
101
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + - 95 col1 FROM tab1
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9765
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) BETWEEN - 61 * - - 26 * - col0 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-9765
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - 61 * - - 26 * - col0 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT MIN( + 18 ) + + - COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9766
SELECT MIN ( + 18 ) + + - COUNT ( * ) FROM tab0
----
15

query II rowsort
SELECT ALL - col2 + + 19, col1 + - - col2 FROM tab1 WHERE NOT ( NOT col2 <= NULL )
----

query I rowsort
SELECT col0 + 88 * + col1 FROM tab2
----
4534
5971
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - MIN( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
75

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT ALL - + 2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2
-3

skipif mysql # not compatible
query II rowsort label-9771
SELECT ALL - + 2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT DISTINCT - 36 * - + CAST( NULL AS SIGNED ) + 28 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - 36 * - + CAST ( NULL AS INTEGER ) + 28 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <= + col1
----

query II rowsort
SELECT + col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + 44 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT DISTINCT + col2 DIV + ( + col2 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + col2 / + ( + col2 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL col2 * + 4 AS col1 FROM tab1
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - CAST( + ( + col0 ) AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9778
SELECT - CAST ( + ( + col0 ) AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + COUNT( * ) * - + COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9779
SELECT + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL - + MIN( - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL - + MIN ( - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + ( + MAX( + col2 ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9781
SELECT + ( + MAX ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + ( ( - col2 ) ) * - col2 * - + col1 AS col2 FROM tab0 cor0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - 61 * + col2 FROM tab0
----
-2867
-6039
-610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9786
SELECT DISTINCT + 32 + ( - col1 ) col2, + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-15
47
18
14
27
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9786
SELECT DISTINCT + 32 + ( - col1 ) col2, + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-15
47
18
14
27
5

query I rowsort
SELECT DISTINCT + col1 + + - 57 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT DISTINCT - + 37 AS col1 FROM tab0 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + 2
----

query I rowsort
SELECT ALL 85 * + col0 + 87 FROM tab1 AS cor0
----
4422
7312
7822

query I rowsort
SELECT + col2 * + col0 + ( + col0 ) FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT COUNT( DISTINCT col0 ) + - ( + - COUNT( * ) ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9792
SELECT COUNT ( DISTINCT col0 ) + - ( + - COUNT ( * ) ) FROM tab1 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT + col0 DIV - 68 + + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + col0 / - 68 + + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT 32 + + - COUNT( DISTINCT 19 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9794
SELECT 32 + + - COUNT ( DISTINCT 19 ) FROM tab2 AS cor0
----
31

query I rowsort
SELECT + 32 + col1 - - col0 AS col1 FROM tab2 AS cor0
----
129
173
174

query I rowsort
SELECT ALL - 57 * - - 83 + - - col1 + col1 * + col2 * - 52 + col0 AS col0 FROM tab0 AS cor0
----
-15543
-202599
-9781

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - + COUNT( * ) + 44 AS col1 FROM tab2 WHERE NULL IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-9798
SELECT - + COUNT ( * ) + 44 AS col1 FROM tab2 WHERE NULL IS NULL
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL col2 - + col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL col2 - + col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + 13 FROM tab0
----
-12
68
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 AS col1, - ( - - 18 ) col0 FROM tab2
----
86
-18
86
-18
86
-18

query I rowsort
SELECT + col2 * ( - - 25 ) - + col1 AS col0 FROM tab1 AS cor0
----
1470
1653
2386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 58 ) col1 FROM tab2 cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - MIN( ALL - 81 ) * + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - MIN ( ALL - 81 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 col0, 2 FROM tab0
----
-95
2

query I rowsort
SELECT DISTINCT 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query II rowsort
SELECT DISTINCT - ( - 89 ) AS col2, col1 FROM tab0 AS cor0
----
89
1
89
21
89
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + col0 * 12 col2 FROM tab2 AS cor0
----
23
552
40
768
58
900

query I rowsort
SELECT ALL + ( - 36 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9810
SELECT + - 75 AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-75
NULL
-75
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT + - 75 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-75
NULL
-75
NULL
-75
NULL

query I rowsort
SELECT + col1 * - 76 AS col2 FROM tab0 AS cor0
----
-1596
-6156
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 94 BETWEEN col0 AND ( NULL ) AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 12 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1020
1092
612

query I rowsort
SELECT DISTINCT - - 48 * 32 + + col0 AS col1 FROM tab1 AS cor0
----
1587
1621
1627

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT DISTINCT - 65 DIV col0 AS col2 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - 65 / col0 AS col2 FROM tab0 AS cor0
----
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT DISTINCT + - col1 DIV - 40 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + - col1 / - 40 FROM tab2 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT DISTINCT - + col1 DIV - + col2 + + col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - + col1 / - + col2 + + col1 FROM tab2 AS cor0
----
53
68
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT DISTINCT 7 DIV - COUNT( * ) col0 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9818
SELECT DISTINCT 7 / - COUNT ( * ) col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT MAX( ALL col1 ) * COUNT( + col1 ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-9819
SELECT MAX ( ALL col1 ) * COUNT ( + col1 ) AS col2 FROM tab2
----
231

query I rowsort
SELECT + col1 * + + col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 70 FROM tab2 WHERE NOT ( + + col0 ) IS NULL
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - 10 ) AS col2 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT 6 + + - COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT 6 + + - COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - - COUNT( * ) * - - MIN( + - 31 ) col1 FROM tab0 cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT - - COUNT ( * ) * - - MIN ( + - 31 ) col1 FROM tab0 cor0
----
-93

query I rowsort
SELECT DISTINCT + + col0 * - col0 + 16 AS col2 FROM tab2 cor0
----
-2100
-4080
-5609

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 0 + ( col2 ) + col2 + + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - 0 * - MAX( DISTINCT 54 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 0 * - MAX ( DISTINCT 54 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT ( - + ( - 69 ) ) FROM tab0 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT + - COUNT( DISTINCT + 58 ) col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9830
SELECT DISTINCT + - COUNT ( DISTINCT + 58 ) col0 FROM tab1 cor0
----
-1

query II rowsort
SELECT ALL - col1 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - 27 AND NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 * - 8 FROM tab1 AS cor0
----
51
112
85
40
91
376

query II rowsort
SELECT ALL - + col0 AS col0, 39 AS col1 FROM tab0 AS cor0
----
-15
39
-87
39
-97
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL - - col0 DIV + + 9 + + - 87 FROM tab2 cor0
----
-79
-80
-82

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - - col0 / + + 9 + + - 87 FROM tab2 cor0
----
-79
-80
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( ( NULL = + + col0 ) ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( + col2, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 52 + 66 AS col2 FROM tab2 AS cor0
----
118
118
118

query I rowsort
SELECT DISTINCT + ( + + 40 ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL - + SUM( ALL - - col2 ) - - + 30 AS col1 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - + SUM ( ALL - - col2 ) - - + 30 AS col1 FROM tab0 AS cor0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 55 ) * - - col2 + - col1 col0, col0 AS col1 FROM tab1
----
-3250
85
-3787
91
-5294
51

query I rowsort
SELECT + 60 * + col2 AS col0 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9844
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9844
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND - CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 69 ) FROM tab0
----
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9847
SELECT + ( - - CAST( NULL AS DECIMAL ) ) * + CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT + ( - - CAST ( NULL AS REAL ) ) * + CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT DISTINCT COUNT( * ), 11 AS col2 FROM tab0
----
3
11

skipif mysql # not compatible
query II rowsort label-9848
SELECT DISTINCT COUNT ( * ), 11 AS col2 FROM tab0
----
3
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9849
SELECT ALL col2 col1, - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9849
SELECT ALL col2 col1, - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL - 17 + + 8 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col1 + + + col0 AS col2 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9853
SELECT CAST( - + MIN( + + col2 ) AS SIGNED ) * COUNT( * ) + COUNT( * ) DIV - SUM( + col1 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9853
SELECT CAST ( - + MIN ( + + col2 ) AS INTEGER ) * COUNT ( * ) + COUNT ( * ) / - SUM ( + col1 ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT - col2 * 80 FROM tab0
----
-3760
-7920
-800

query I rowsort
SELECT DISTINCT - 15 FROM tab2 WHERE NOT + 10 * + 5 + + ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT - SUM( ALL + - 53 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - SUM ( ALL + - 53 ) AS col0 FROM tab0
----
159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 84 + - + col2 AS col0 FROM tab2 AS cor0
----
-107
-124
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT SUM( - 82 ) + + CAST( NULL AS SIGNED ) * - SUM( - col2 ) + + COUNT( * ) * + + COUNT( * ) * 84 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT SUM ( - 82 ) + + CAST ( NULL AS INTEGER ) * - SUM ( - col2 ) + + COUNT ( * ) * + + COUNT ( * ) * 84 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT + + ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9860
SELECT + + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 51 ) <> - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - COUNT( + 76 ) AS col2 FROM tab0 WHERE - col2 = - 42
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( + 76 ) AS col2 FROM tab0 WHERE - col2 = - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT col1 + + col0 DIV + - col1 FROM tab1
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-9863
SELECT col1 + + col0 / + - col1 FROM tab1
----
-12
11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COUNT( * ) + + COUNT( DISTINCT + - 78 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9864
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + - 78 ) FROM tab0
----
4

query I rowsort
SELECT + + 78 + 71 * + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-31233
-465753
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT col1 + + - CAST( + 5 AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
-290
-293
-466

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9866
SELECT col1 + + - CAST ( + 5 AS INTEGER ) * + col2 col2 FROM tab1 AS cor0
----
-290
-293
-466

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9867
SELECT + CAST( NULL AS SIGNED ) + + - col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9867
SELECT + CAST ( NULL AS INTEGER ) + + - col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 59 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9868
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 59 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE 88 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col2 FROM tab2 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - MIN( DISTINCT + + 88 ) AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-9871
SELECT - MIN ( DISTINCT + + 88 ) AS col2 FROM tab1
----
-88

query II rowsort
SELECT 5, col2 - + col0 AS col0 FROM tab1
----
5
-23
5
-26
5
45

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9874
SELECT DISTINCT 23 DIV + + col0 * - - 79 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT 23 / + + col0 * - - 79 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9875
SELECT col0 col2, ( - + col0 ) DIV - 48 AS col1 FROM tab0
----
15
0
87
1
97
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9875
SELECT col0 col2, ( - + col0 ) / - 48 AS col1 FROM tab0
----
15
0
87
1
97
2

query II rowsort
SELECT DISTINCT col2, col1 * - col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + COUNT( 46 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + COUNT ( 46 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9878
SELECT 56 DIV + 12 + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9878
SELECT 56 / + 12 + COUNT ( * ) FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT 13 * - 79 - - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 > - col0
----
-1027

skipif mysql # not compatible
query I rowsort label-9879
SELECT 13 * - 79 - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 > - col0
----
-1027

query I rowsort
SELECT DISTINCT + col2 * 82 - col0 FROM tab1
----
4753
5485
7821

query I rowsort
SELECT - col2 + + col1 FROM tab2 WHERE col0 = ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 * - ( + col1 ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( DISTINCT col2 ) - + COUNT( - 38 - - 55 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( DISTINCT col2 ) - + COUNT ( - 38 - - 55 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab1 WHERE ( ( + ( col1 ) ) * - col1 ) IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT - col2 + 9 AS col1 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - 81 ) NOT IN ( col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT col2 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9887
SELECT col2 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 53 NOT IN ( + col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + 85 col2 FROM tab2
----
5865
5865
5865

query I rowsort
SELECT + 68 + - 33 AS col1 FROM tab0
----
35
35
35

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 54 * - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + 33 * + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL MAX( DISTINCT 53 ) AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL MAX ( DISTINCT 53 ) AS col0 FROM tab1
----
53

query III rowsort
SELECT * FROM tab2 WHERE 41 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT col0 - col1 DIV + 5 FROM tab2
----
36
49
62

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT col0 - col1 / + 5 FROM tab2
----
36
49
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 84 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9896
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 84 )
----
0

query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE NULL BETWEEN 69 * col1 AND - col2 / - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * ( - col1 ) BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * - 66 ) IS NULL
----

query I rowsort
SELECT 9 * - col0 + col2 FROM tab0 AS cor0
----
-773
-774
-88

query I rowsort
SELECT - col2 * col0 + col0 FROM tab1 WHERE NULL < ( + col2 * + col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + 53 - + COUNT( ALL col0 - 41 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + 53 - + COUNT ( ALL col0 - 41 ) FROM tab2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT - ( - 4 ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - ( - 4 ) / COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT - col0 * + 96 - - col0 * ( col2 * - 49 ) AS col1 FROM tab0
----
-35985
-479859
-50982

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / 63 NOT IN ( col2 * + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 61 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 3 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 55 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT 60 / + col2 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 21 * 41 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 + 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * col1 col2 FROM tab0 cor0
----
-1743
-6723
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT - ( - 80 ) DIV 71 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT - ( - 80 ) / 71 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 30 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + SUM( DISTINCT 93 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + SUM ( DISTINCT 93 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT MIN( + + 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9918
SELECT MIN ( + + 8 ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL COUNT( * ) * + + MIN( - col0 ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL COUNT ( * ) * + + MIN ( - col0 ) AS col2 FROM tab1
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9920
SELECT - CAST( - COUNT( * ) AS SIGNED ) DIV 6 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9920
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / 6 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT - col0 DIV - 26 col2 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9922
SELECT DISTINCT - col0 / - 26 col2 FROM tab0
----
0
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 NOT IN ( - col0 )
----

query I rowsort
SELECT - 17 * col0 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL AND - col0 * - 66 <> col0 * + 20 - ( - col1 ) * 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT 71 + ( - MAX( 48 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 92 * col0 + 51 ) IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT 71 + ( - MAX ( 48 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 92 * col0 + 51 ) IS NULL
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT - col2 DIV col1 AS col1 FROM tab2 WHERE NOT + ( col0 ) > + col1
----
0
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT - col2 / col1 AS col1 FROM tab2 WHERE NOT + ( col0 ) > + col1
----
0
0

query I rowsort
SELECT DISTINCT - 59 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-59

query I rowsort
SELECT ALL 4 * - col0 * + col1 FROM tab1
----
-1700
-17108
-2856

onlyif mysql # DIV for integer division: 
query II rowsort label-9929
SELECT ALL 91 AS col1, col1 DIV - 74 + col2 AS col1 FROM tab2 AS cor0
----
91
23
91
39
91
58

skipif mysql # not compatible
query II rowsort label-9929
SELECT ALL 91 AS col1, col1 / - 74 + col2 AS col1 FROM tab2 AS cor0
----
91
23
91
39
91
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col2 / + col0 ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9931
SELECT DISTINCT CAST( - col0 AS SIGNED ) + - ( + col2 ) DIV col0 col0 FROM tab2 AS cor0 WHERE - 39 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9931
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + - ( + col2 ) / col0 col0 FROM tab2 AS cor0 WHERE - 39 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + 49 + - COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 49 + - COUNT ( * ) FROM tab1 AS cor0
----
46

query I rowsort
SELECT ALL - 29 + 83 * + col0 FROM tab1 AS cor0
----
4204
7026
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - - MAX( DISTINCT - - ( col0 ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - MAX ( DISTINCT - - ( col0 ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + col1 + ( col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 + ( - - col1 ) col0 FROM tab0 AS cor0
----
-57
-77
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col0 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col0 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL 84 * - - 82 + - COUNT( * ) FROM tab0 AS cor0
----
6885

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL 84 * - - 82 + - COUNT ( * ) FROM tab0 AS cor0
----
6885

query I rowsort
SELECT ALL + col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - col2 > 84
----

query I rowsort
SELECT + 51 FROM tab1 WHERE NULL BETWEEN + 32 AND NULL
----

query I rowsort
SELECT - col1 * - 95 + col2 * - + col0 + col2 FROM tab1
----
-1655
-3470
-4481

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 * - col2 + - col0 ) NOT BETWEEN NULL AND + ( - col0 ) * + 22
----

query I rowsort
SELECT - col1 + - col1 - col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-101
-209
-52

query I rowsort
SELECT ALL + 2 AS col2 FROM tab2 WHERE NOT NULL < ( - col2 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - 40 AS col2 FROM tab1 WHERE NOT ( + col1 ) IN ( + 20 / col0 + col0 )
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + SUM( + 14 ) * + ( - COUNT( ALL - col0 ) ) + - MIN( col2 + col1 ) FROM tab1 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + SUM ( + 14 ) * + ( - COUNT ( ALL - col0 ) ) + - MIN ( col2 + col1 ) FROM tab1 AS cor0
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * + ( - col0 * col2 ) <> col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + + col1 + + col1 + 22 AS col0 FROM tab2 AS cor0
----
147
214
216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT MAX( - + col0 ) DIV 27 * + + COUNT( * ) * - 44 - - COUNT( ALL col0 + 62 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9955
SELECT MAX ( - + col0 ) / 27 * + + COUNT ( * ) * - 44 - - COUNT ( ALL col0 + 62 ) FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + COUNT( * ) + + 35 - - COUNT( * ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + COUNT ( * ) + + 35 - - COUNT ( * ) FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT COUNT( * ) - - 5 * COUNT( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9957
SELECT COUNT ( * ) - - 5 * COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
18

query I rowsort
SELECT ALL col2 * - 23 AS col2 FROM tab0
----
-1081
-2277
-230

query II rowsort
SELECT - col2 AS col2, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT 1 * ( + ( - col2 ) ) * + 8 FROM tab0 cor0
----
-376
-792
-80

query II rowsort
SELECT DISTINCT + col1 AS col0, + ( + col0 ) AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9962
SELECT + + col1 DIV + ( - + col0 ) + + col0 * - CAST( + 29 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2523
-2813
-440

skipif mysql # not compatible
query I rowsort label-9962
SELECT + + col1 / + ( - + col0 ) + + col0 * - CAST ( + 29 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2523
-2813
-440

query I rowsort
SELECT DISTINCT - 65 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
3055
6435
650

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT + - col1 DIV ( + + ( + + col2 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT + - col1 / ( + + ( + + col2 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 76 * + ( + col2 ) * - col1 * + col0 - + col2 FROM tab2 AS cor0
----
14981080
22150142
4100785

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 = + col1 * - - 80 + - col2 + + col2 * + ( ( + col2 ) * - col1 + - 31 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT - 69 DIV + col1 AS col2 FROM tab0
----
-3
-69
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT - 69 / + col1 AS col2 FROM tab0
----
-3
-69
0

query I rowsort
SELECT + 64 - 78 AS col1 FROM tab1 WHERE NOT col1 + + + col0 * + ( - col0 ) IS NULL
----
-14
-14
-14

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT ( NOT NULL > - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT MIN( + col2 ) * + COUNT( ALL 16 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9971
SELECT MIN ( + col2 ) * + COUNT ( ALL 16 ) FROM tab2
----
69

query II rowsort
SELECT + ( - + col1 ) AS col1, + col2 - col0 + + 86 FROM tab1
----
-14
131
-47
63
-5
60

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab1 WHERE ( - col2 ) <> 17
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - 87 FROM tab0 WHERE - 18 NOT IN ( + - 22 + + col1 * - - 6 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9975
SELECT DISTINCT COUNT( * ) AS col2, 46 AS col1 FROM tab0
----
3
46

skipif mysql # not compatible
query II rowsort label-9975
SELECT DISTINCT COUNT ( * ) AS col2, 46 AS col1 FROM tab0
----
3
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 58 ) col1 FROM tab2 WHERE col2 - - col1 IN ( - - 93 - - ( 93 ) )
----

query I rowsort
SELECT + col0 + + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - ( - - col2 ) ) IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT col0 + - col2 + - + CAST( NULL AS SIGNED ) * - col1 - col0 + 95 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT col0 + - col2 + - + CAST ( NULL AS INTEGER ) * - col1 - col0 + 95 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 WHERE col2 * 17 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 44 ) col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
44
44
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT DISTINCT ( col1 ) + - col2 DIV - 46 + + col2 + + - 75 * - col1 * 54 AS col2 FROM tab1 AS cor0
----
190466
20315
56812

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT ( col1 ) + - col2 / - 46 + + col2 + + - 75 * - col1 * 54 AS col2 FROM tab1 AS cor0
----
190466
20315
56812

query I rowsort
SELECT ALL - 52 + - + col2 AS col0 FROM tab2 AS cor0
----
-110
-75
-92

query II rowsort
SELECT - - col2 * 84 AS col0, 55 FROM tab2 AS cor0
----
1932
55
3360
55
4872
55

query II rowsort
SELECT DISTINCT col2, 15 * - col0 AS col1 FROM tab2
----
23
-690
40
-960
58
-1125

query I rowsort
SELECT ALL 21 + ( + + 59 ) * + 14 AS col2 FROM tab2
----
847
847
847

query I rowsort
SELECT - col2 - - col1 - + 31 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT - col0 + + + CAST( - col1 AS SIGNED ) + col0 * + col0 * + 51 FROM tab1 WHERE + col2 * 37 + col2 IS NOT NULL
----
132586
368385
422193

skipif mysql # not compatible
query I rowsort label-9989
SELECT - col0 + + + CAST ( - col1 AS INTEGER ) + col0 * + col0 * + 51 FROM tab1 WHERE + col2 * 37 + col2 IS NOT NULL
----
132586
368385
422193

query I rowsort
SELECT DISTINCT + col0 - - - 61 FROM tab0
----
-46
26
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 81 + col0 FROM tab1
----
132
166
172

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9994
SELECT + 85 + ( col1 ) - + col1 * + CAST( NULL AS DECIMAL ) / col2 AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9994
SELECT + 85 + ( col1 ) - + col1 * + CAST ( NULL AS REAL ) / col2 AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - col0 ) / + col1 + + - col0 * + col2 ) IS NULL
----

query I rowsort
SELECT + + col2 * - + col2 AS col2 FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND + col1
----
-100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + ( + SUM( - + col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9998
SELECT + ( + SUM ( - + col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT - 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

