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 I rowsort
SELECT - ( + col2 ) + - + col2 FROM tab2
----
-116
-46
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1
SELECT ALL - 8 + CAST( NULL AS DECIMAL ) + + + 30 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - 8 + CAST ( NULL AS REAL ) + + + 30 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT 92 + - 90 AS col1, + ( + COUNT( * ) ) AS col1 FROM tab1
----
2
3

skipif mysql # not compatible
query II rowsort label-4
SELECT 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1
----
2
3

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col0 FROM tab2
----
-13
-5
8

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

query I rowsort
SELECT ALL 97 + + + col0 FROM tab1
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - + 92 * - 25 * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( + + ( + col1 ) * col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT - + 92 * - 25 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( + + ( + col1 ) * col1 IS NULL )
----
0

query I rowsort
SELECT ALL + + col2 * - col0 + + col1 * + col2 AS col0 FROM tab0 cor0
----
-660
-9504
3102

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-10
SELECT + col0 - + col2, CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-10
SELECT + col0 - + col2, CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT - SUM( DISTINCT - + 72 ) - + + 53 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-11
SELECT - SUM ( DISTINCT - + 72 ) - + + 53 FROM tab0 AS cor0
----
19

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

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT + COUNT ( * ) / + 63 AS col2 FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT - + col1 - + 0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) - - 41 AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) - - 41 AS col0 FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - - 80 = NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 - - col1 + col2 * - col0 + col0 * - - col1 - + - col1 + + - ( - + 34 ) AS col2 FROM tab1 AS cor0
----
-1851
-4216
-4605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-20
SELECT - 53 AS col2, CAST( NULL AS SIGNED ) * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-53
NULL
-53
NULL
-53
NULL

skipif mysql # not compatible
query II rowsort label-20
SELECT - 53 AS col2, CAST ( NULL AS INTEGER ) * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-53
NULL
-53
NULL
-53
NULL

query I rowsort
SELECT 21 * + - col0 FROM tab2
----
-1344
-1575
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL ( ( MIN( + ( - 0 ) ) ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL ( ( MIN ( + ( - 0 ) ) ) ) AS col0 FROM tab2
----
0

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

query II rowsort
SELECT DISTINCT col2 AS col0, + 11 * - 63 + + 78 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 87 AS col1 FROM tab2 AS cor0
----
4437
5829
6699

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 87 AS col1 FROM tab2 AS cor0
----
4437
5829
6699

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + col1 - - + 63 / - 45 NOT BETWEEN + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
425
4277
714

query I rowsort
SELECT 56 * - 73 FROM tab2
----
-4088
-4088
-4088

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

skipif mysql # not compatible
query I rowsort label-30
SELECT + MAX ( 8 ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col2 * - 58 - - - col2 AS col0 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT ALL col0 + - 2 + - - 83 FROM tab2 cor0
----
127
145
156

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

query I rowsort
SELECT ALL + 14 + - ( + col1 ) * - 56 FROM tab1
----
2646
294
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col0 col2 FROM tab1 WHERE - + col0 + - col0 + - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + - COUNT( * ) * 87 + COUNT( * ) AS col2 FROM tab1 WHERE 39 > - - col1
----
-172

skipif mysql # not compatible
query I rowsort label-36
SELECT + - COUNT ( * ) * 87 + COUNT ( * ) AS col2 FROM tab1 WHERE 39 > - - col1
----
-172

query I rowsort
SELECT ALL 61 + - ( + col1 ) * col0 AS col1 FROM tab0
----
-1154
-1766
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT - 27 DIV - 27 + + 35 col1 FROM tab0
----
36
36
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT - 27 / - 27 + + 35 col1 FROM tab0
----
36
36
36

query I rowsort
SELECT 69 + - + 5 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL + 85 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-43
SELECT - col1 * - - col0 AS col2, 86 DIV col0 * col1 FROM tab0
----
-1215
405
-1827
0
-97
0

skipif mysql # not compatible
query II rowsort label-43
SELECT - col1 * - - col0 AS col2, 86 / col0 * col1 FROM tab0
----
-1215
405
-1827
0
-97
0

query I rowsort
SELECT - 53 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + ( + - 39 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT - 79 * - + col0 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-12943360
-25773750
-3844772

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

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

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

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL - MAX ( DISTINCT + ( + + col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL ( 42 ) FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - 1 * - + MIN( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE NOT - 39 + 68 NOT IN ( - col1, col2 * + col2 * col2, - + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-50
SELECT - 1 * - + MIN ( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE NOT - 39 + 68 NOT IN ( - col1, col2 * + col2 * col2, - + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - ( - + col2 ) * 89 + - + col1
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + + 49 < ( NULL )
----

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

query II rowsort
SELECT col1 AS col2, col0 * 15 - + + 61 AS col1 FROM tab1
----
14
704
47
1304
5
1214

query I rowsort
SELECT ALL - 19 * - col2 FROM tab1
----
1121
1292
1824

query II rowsort
SELECT col0 AS col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT ALL - - col1 * + - 99 + - col0 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-196
-2158
-8034

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - - col1 * + - 99 + - col0 + col0 / col2 AS col1 FROM tab0 AS cor0
----
-196
-2158
-8034

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

query I rowsort
SELECT ALL - 66 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-3102
-330
-924

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

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

query I rowsort
SELECT 48 + + col0 FROM tab0 AS cor0
----
135
145
63

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

query I rowsort
SELECT DISTINCT - ( - 68 ) + + - col2 * - col0 FROM tab2 AS cor0
----
1126
2628
4418

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

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

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

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

query I rowsort
SELECT 23 * + col0 * - 67 * - col2 AS col1 FROM tab2
----
1630378
3944960
6703350

query I rowsort
SELECT ALL col1 + - - 97 AS col1 FROM tab1
----
102
111
144

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col1 + + + 92
----

query I rowsort
SELECT ALL + col0 + - 39 FROM tab1
----
12
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + + 47 - + MAX( ALL + ( - 56 ) ) AS col1 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-74
SELECT + + 47 - + MAX ( ALL + ( - 56 ) ) AS col1 FROM tab2 AS cor0
----
103

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

query I rowsort
SELECT + + col1 * + col0 AS col2 FROM tab1 WHERE NULL >= col0 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT 93 AS col1, COUNT( * ) FROM tab0 WHERE col2 + + 14 = - + ( - col0 ) * 54 * - col2 + - ( col0 )
----
93
0

skipif mysql # not compatible
query II rowsort label-77
SELECT 93 AS col1, COUNT ( * ) FROM tab0 WHERE col2 + + 14 = - + ( - col0 ) * 54 * - col2 + - ( col0 )
----
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT ALL col2 * 23 DIV 41 * + ( + - col0 ) AS col2 FROM tab1
----
-2703
-2805
-3458

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL col2 * 23 / 41 * + ( + - col0 ) AS col2 FROM tab1
----
-2703
-2805
-3458

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - ( - SUM( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - ( - SUM ( col0 ) ) FROM tab1 AS cor0
----
227

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

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

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

query II rowsort
SELECT 63 * - col0 * + - col2 + + col2 * + col1 + 15 AS col0, 30 AS col1 FROM tab1 AS cor0
----
309807
30
316255
30
393055
30

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-87
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT DISTINCT - col0 DIV + 2 AS col1 FROM tab1
----
-25
-42
-45

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT - col0 / + 2 AS col1 FROM tab1
----
-25
-42
-45

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + 44 * 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + 25 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT - 62 DIV + col1 FROM tab0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-92
SELECT - 62 / + col1 FROM tab0
----
-2
-62
0

query I rowsort
SELECT - col0 * - - 79 AS col0 FROM tab1
----
-4029
-6715
-7189

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

skipif mysql # not compatible
query I rowsort label-94
SELECT - - COUNT ( * ) / + + ( - 73 ) FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - - MAX( - - col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-96
SELECT - - MAX ( - - col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT - 13 + col2 DIV + - 29 + - 20 AS col2 FROM tab1 AS cor0
----
-35
-35
-36

skipif mysql # not compatible
query I rowsort label-97
SELECT - 13 + col2 / + - 29 + - 20 AS col2 FROM tab1 AS cor0
----
-35
-35
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-98
SELECT - 51 + - COUNT( * ) * + 72 + - - SUM( DISTINCT + 11 ) + 88 AS col1 FROM tab1 WHERE - + ( col0 ) BETWEEN CAST( + col1 AS SIGNED ) * col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT - 51 + - COUNT ( * ) * + 72 + - - SUM ( DISTINCT + 11 ) + 88 AS col1 FROM tab1 WHERE - + ( col0 ) BETWEEN CAST ( + col1 AS INTEGER ) * col0 AND NULL
----
NULL

query I rowsort
SELECT ALL col0 + - 19 AS col1 FROM tab1
----
32
66
72

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT DISTINCT + COUNT( DISTINCT + - col0 ) + - COUNT( * ) AS col2, COUNT( * ) col2 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-100
SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) + - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0
----
0
3

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) >= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - - 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT - col1 * - col2 + + col2 DIV + - ( ( - 81 ) ) AS col2 FROM tab0 AS cor0
----
100
210
3807

skipif mysql # not compatible
query I rowsort label-105
SELECT - col1 * - col2 + + col2 / + - ( ( - 81 ) ) AS col2 FROM tab0 AS cor0
----
100
210
3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE col0 * - col2 - - CAST( - CAST( - + 0 AS SIGNED ) AS SIGNED ) = + col1 - - + 32
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * - col2 - - CAST ( - CAST ( - + 0 AS INTEGER ) AS INTEGER ) = + col1 - - + 32
----
0

query I rowsort
SELECT 89 * + col0 * + + col1 + + col1 FROM tab0 AS cor0
----
108216
162624
8634

query I rowsort
SELECT - 68 - col0 * + col1 * col1 AS col0 FROM tab0
----
-165
-38435
-98483

query I rowsort
SELECT + col0 + 94 * + 77 AS col1 FROM tab0
----
7253
7325
7335

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

query I rowsort
SELECT DISTINCT ( + + 31 ) + + col2 FROM tab2
----
54
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + MAX( - - 82 ) + - 44 col2 FROM tab1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-112
SELECT + MAX ( - - 82 ) + - 44 col2 FROM tab1
----
38

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab1
----
-45
23
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT 29 * + - MAX( + - col2 ) FROM tab0
----
290

skipif mysql # not compatible
query I rowsort label-115
SELECT 29 * + - MAX ( + - col2 ) FROM tab0
----
290

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-117
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 * col0 BETWEEN + CAST( NULL AS DECIMAL ) AND - 7 + - col0
----

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 * col0 BETWEEN + CAST ( NULL AS REAL ) AND - 7 + - col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT + - MIN( + col2 ) / - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < CAST( - col1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT + - MIN ( + col2 ) / - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < CAST ( - col1 AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT + col1 * - 36 FROM tab1 AS cor0 WHERE NOT - 84 * + + col0 NOT BETWEEN + ( - col2 ) * ( - - col2 ) + + 37 + + 44 AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL ( + + ( COUNT( * ) ) ) * - CAST( - 89 AS SIGNED ) * - ( - 77 ) FROM tab0 AS cor0
----
20559

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL ( + + ( COUNT ( * ) ) ) * - CAST ( - 89 AS INTEGER ) * - ( - 77 ) FROM tab0 AS cor0
----
20559

onlyif mysql # DIV for integer division: 
query II rowsort label-126
SELECT DISTINCT + col0 * col2 DIV col0, 32 AS col0 FROM tab1 AS cor0
----
59
32
68
32
96
32

skipif mysql # not compatible
query II rowsort label-126
SELECT DISTINCT + col0 * col2 / col0, 32 AS col0 FROM tab1 AS cor0
----
59
32
68
32
96
32

query I rowsort
SELECT - 86 * col2 AS col1 FROM tab2
----
-1978
-3440
-4988

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= - ( + 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT 49 AS col2, - 45 + - - COUNT( * ) FROM tab0
----
49
-42

skipif mysql # not compatible
query II rowsort label-130
SELECT 49 AS col2, - 45 + - - COUNT ( * ) FROM tab0
----
49
-42

query II rowsort
SELECT DISTINCT + col2, - col2 * - col2 FROM tab0
----
10
100
47
2209
99
9801

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - col0 DIV + - col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-133
SELECT - col0 / + - col1 AS col1 FROM tab0
----
0
4
97

query I rowsort
SELECT ALL - 21 * - - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + 28 IS NOT NULL
----
23
40
58

query II rowsort
SELECT - 67 AS col0, - 76 AS col1 FROM tab1 AS cor0
----
-67
-76
-67
-76
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT DISTINCT 65 DIV - - 68 + - - col0 col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT DISTINCT 65 / - - 68 + - - col0 col1 FROM tab1 AS cor0
----
51
85
91

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

skipif mysql # not compatible
query II rowsort label-138
SELECT DISTINCT ( + col1 ) AS col2, + CAST ( NULL AS INTEGER ) * + 85 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

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

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

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

query II rowsort
SELECT + + 53 + + - col2 AS col0, col1 * - col0 FROM tab0 cor0
----
-46
-97
43
-1827
6
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT - - 84 * + COUNT( col0 ) * + 89 AS col1 FROM tab1 AS cor0
----
22428

skipif mysql # not compatible
query I rowsort label-142
SELECT - - 84 * + COUNT ( col0 ) * + 89 AS col1 FROM tab1 AS cor0
----
22428

query I rowsort
SELECT ALL 78 + + col0 * + - col1 FROM tab0
----
-1137
-1749
-19

query I rowsort
SELECT - col2 * + + 33 AS col0 FROM tab2
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT COUNT( - col1 ) - COUNT( * ) * 78 + - COUNT( * ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-145
SELECT COUNT ( - col1 ) - COUNT ( * ) * 78 + - COUNT ( * ) FROM tab1 AS cor0
----
-234

query I rowsort
SELECT ALL + col0 * + 21 + - - col1 * + 25 FROM tab1 AS cor0
----
1421
1910
3086

query II rowsort
SELECT + col0, + col1 * + col0 FROM tab1 AS cor0
----
51
714
85
425
91
4277

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-148
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( - - 4 AS SIGNED ) - 27 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-148
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( - - 4 AS INTEGER ) - 27 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT COUNT( * ) * - + 11 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-150
SELECT COUNT ( * ) * - + 11 FROM tab2
----
-33

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

query II rowsort
SELECT DISTINCT - ( - + 67 ) AS col2, + 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
67
91

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - ( 85 ) col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - COUNT( - col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-158
SELECT - COUNT ( - col0 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 83, + col0 * + col0 AS col0 FROM tab1
----
83
2601
83
7225
83
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-160
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - ( + 66 ) * 13 * + + col1 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-160
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - ( + 66 ) * 13 * + + col1 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT DISTINCT + SUM( + + col0 ) * - COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
-597
-3

skipif mysql # not compatible
query II rowsort label-161
SELECT DISTINCT + SUM ( + + col0 ) * - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
-597
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT COUNT( * ) * + - 92 AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-163
SELECT COUNT ( * ) * + - 92 AS col0 FROM tab1
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * + 76 col2 FROM tab0
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - 20 * + - col1 - 64 * - col2 DIV + + col2 - - col0 FROM tab0 AS cor0
----
1699
181
571

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - 20 * + - col1 - 64 * - col2 / + + col2 - - col0 FROM tab0 AS cor0
----
1699
181
571

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL >= + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL >= + 52 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL CAST( - MAX( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL CAST ( - MAX ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL - 6 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query II rowsort
SELECT + 91, 53 * col2 AS col0 FROM tab2
----
91
1219
91
2120
91
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT - col2 - + col1 * col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - + COUNT( * ) - - 69 AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-172
SELECT - + COUNT ( * ) - - 69 AS col0 FROM tab2 AS cor0
----
66

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

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

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

skipif mysql # not compatible
query II rowsort label-174
SELECT DISTINCT - COUNT ( * ), + 51 AS col0 FROM tab1 AS cor0
----
-3
51

query I rowsort
SELECT ALL 29 + - col2 FROM tab0 AS cor0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-176
SELECT + 23 DIV - CAST( + col2 AS SIGNED ) + + - col0 AS col1 FROM tab2
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-176
SELECT + 23 / - CAST ( + col2 AS INTEGER ) + + - col0 AS col1 FROM tab2
----
-47
-64
-75

query I rowsort
SELECT - - 95 FROM tab2 WHERE - 41 IS NULL
----

query I rowsort
SELECT col0 + + 88 AS col1 FROM tab1
----
139
173
179

query I rowsort
SELECT ALL col1 * - + col0 + + - 20 * col2 FROM tab2
----
-2806
-5728
-6185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-180
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN col0 + + CAST( NULL AS SIGNED ) - 4 AND - col1 )
----

skipif mysql # not compatible
query III rowsort label-180
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN col0 + + CAST ( NULL AS INTEGER ) - 4 AND - col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 51 * - + col2 * 8 - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 7 * col0 FROM tab0
----
105
609
679

query I rowsort
SELECT - ( 95 ) * + - col0 FROM tab1
----
4845
8075
8645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - ( - + col0 ) * 83 + col1 col2 FROM tab1
----
-35270
-354944
-59248

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT - MAX( - 12 ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - MAX ( - 12 ) FROM tab1 cor0
----
12

query I rowsort
SELECT col2 * col2 * col2 FROM tab2 AS cor0 WHERE NOT + col0 + - col0 IS NULL
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT ALL 94 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
94
-3

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL 94 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
94
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT - MAX( DISTINCT + col2 ) + COUNT( * ) DIV - 26 AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-192
SELECT - MAX ( DISTINCT + col2 ) + COUNT ( * ) / - 26 AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL + col0 DIV - col0 + + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + col0 / - col0 + + - col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

query I rowsort
SELECT - 5 + - - 29 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL + COUNT( DISTINCT + 53 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + COUNT ( DISTINCT + 53 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT 65 + - 18 AS col0 FROM tab2
----
47
47
47

query I rowsort
SELECT DISTINCT 11 * - 63 FROM tab2
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT + 67 + - CAST( - + col1 AS SIGNED ) FROM tab2 WHERE + col2 > ( 48 + - + 35 + - + 21 )
----
118
134
144

skipif mysql # not compatible
query I rowsort label-199
SELECT + 67 + - CAST ( - + col1 AS INTEGER ) FROM tab2 WHERE + col2 > ( 48 + - + 35 + - + 21 )
----
118
134
144

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT ( + + 89 ) * - COUNT( + 8 ) FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT ( + + 89 ) * - COUNT ( + 8 ) FROM tab0 AS cor0
----
-267

query I rowsort
SELECT - 76 * - col2 + - col1 FROM tab0 AS cor0
----
3491
739
7523

query I rowsort
SELECT DISTINCT 59 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 89 + - col1 - - col2 * 23 * + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-205
SELECT ALL * FROM tab0 WHERE - + col0 < + + CAST( NULL AS DECIMAL ) * - col1 + + 90 / + + col2
----

skipif mysql # not compatible
query III rowsort label-205
SELECT ALL * FROM tab0 WHERE - + col0 < + + CAST ( NULL AS REAL ) * - col1 + + 90 / + + col2
----

query I rowsort
SELECT DISTINCT - 2 * - 31 + - col1 * - + ( col2 ) + + col1 FROM tab2
----
1286
3219
4015

query I rowsort
SELECT - 32 FROM tab0, tab1 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

query I rowsort
SELECT ALL + ( col1 ) * - 95 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT COUNT( * ) * 58 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-210
SELECT COUNT ( * ) * 58 FROM tab1 AS cor0
----
174

query I rowsort
SELECT col2 * + 54 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT ALL + 99 - - col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-606
-771
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT - MAX( ALL - + col2 ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-214
SELECT - MAX ( ALL - + col2 ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT col2 * col2 + - col0 * + - col1 FROM tab2 AS cor0
----
2875
6528
8389

query I rowsort
SELECT DISTINCT + 66 * + 30 FROM tab0
----
1980

query II rowsort
SELECT DISTINCT col0, + col0 + + 85 * - col2 * 66 AS col1 FROM tab1
----
51
-538509
85
-330905
91
-381389

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL + - MAX( - col1 ) * - MIN( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL + - MAX ( - col1 ) * - MIN ( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + + SUM( + 39 ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-221
SELECT + + SUM ( + 39 ) FROM tab2 AS cor0
----
117

query I rowsort
SELECT + col0 * + col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3375
658503
912673

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

skipif mysql # not compatible
query I rowsort label-223
SELECT - SUM ( ALL col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT - 75 + - - col0, col1 FROM tab1 AS cor0
----
-24
14
10
5
16
47

query I rowsort
SELECT + ( 69 ) FROM tab2 cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + ( + col0 ) ) * + + col2 <= - ( + col1 )
----

query I rowsort
SELECT ALL - col0 + + col0 - col1 AS col1 FROM tab2
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-228
SELECT + - COUNT ( * ) / - + 21 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 BETWEEN NULL AND + + col1
----

query I rowsort
SELECT - - col1 FROM tab0 WHERE 29 <= - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT - col1 DIV 17 + + col1 AS col2 FROM tab0
----
1
20
77

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - col1 / 17 + + col1 AS col2 FROM tab0
----
1
20
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-232
SELECT DISTINCT + col0 AS col2, CAST( + col0 AS SIGNED ) * - - col1 AS col0 FROM tab2
----
46
2346
64
4928
75
5025

skipif mysql # not compatible
query II rowsort label-232
SELECT DISTINCT + col0 AS col2, CAST ( + col0 AS INTEGER ) * - - col1 AS col0 FROM tab2
----
46
2346
64
4928
75
5025

query I rowsort
SELECT + - col0 + 42 FROM tab0 AS cor0
----
-45
-55
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col2 NOT BETWEEN ( col1 ) + 48 AND ( + col1 * - col0 - 92 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT ALL 86 DIV 40 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 86 / 40 FROM tab1
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT col2 DIV 78 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-238
SELECT col2 / 78 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col0 * - 94 - - col1 FROM tab1
----
-4780
-7985
-8507

query I rowsort
SELECT 25 * + ( + col1 / 96 ) + + col1 FROM tab0 WHERE ( + 85 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT DISTINCT 82 * SUM( ALL 43 ) AS col2 FROM tab1
----
10578

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT 82 * SUM ( ALL 43 ) AS col2 FROM tab1
----
10578

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT + 71 DIV + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-242
SELECT + 71 / + col0 AS col2 FROM tab2
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT + 55 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-244
SELECT + 55 / col2 FROM tab2
----
0
1
2

query I rowsort
SELECT - ( + col2 ) * 76 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT + 55 + - 1 FROM tab0 WHERE ( + ( col1 ) * col0 ) IS NOT NULL
----
54
54
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-248
SELECT ALL * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) - + 49 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-248
SELECT ALL * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) - + 49 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-251
SELECT 92 + + MAX ( ALL - col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT - CAST( - MIN( ALL - 12 ) AS SIGNED ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-252
SELECT - CAST ( - MIN ( ALL - 12 ) AS INTEGER ) FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-253
SELECT col2 * - 59 + + ( + col0 ) DIV CAST( col0 AS SIGNED ) col1 FROM tab1
----
-3480
-4011
-5663

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-253
SELECT col2 * - 59 + + ( + col0 ) / CAST ( col0 AS INTEGER ) col1 FROM tab1
----
-3480
-4011
-5663

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

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

query I rowsort
SELECT DISTINCT + col1 * - 25 AS col1 FROM tab0 WHERE NOT ( + col2 - col2 ) = col0
----
-2025
-25
-525

query I rowsort
SELECT ALL - col0 + col2 * + col0 FROM tab2 WHERE NOT ( col1 ) / col1 IS NULL
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT 97 - + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-257
SELECT 97 - + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT + 64 * col1 FROM tab1 cor0 WHERE + 53 >= NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-262
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-262
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-264
SELECT DISTINCT - - MIN ( 5 ) col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 + - col1 <> NULL
----

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

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

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

query I rowsort
SELECT - 0 + + col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL COUNT( * ) + - MIN( ( 92 ) ) AS col2 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL COUNT ( * ) + - MIN ( ( 92 ) ) AS col2 FROM tab1
----
-89

query I rowsort
SELECT ALL col0 + + + col0 - + col0 AS col0 FROM tab0
----
15
87
97

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

query I rowsort
SELECT ALL + 79 AS col1 FROM tab0 WHERE NULL IS NULL
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + + 23 col0 FROM tab2
----
109

query I rowsort
SELECT DISTINCT 31 FROM tab1 WHERE NOT ( ( - col1 ) ) NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT ALL - ( + 30 ) + 87 AS col1 FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT + MAX( ALL - 2 ) - 37 AS col0 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT + MAX ( ALL - 2 ) - 37 AS col0 FROM tab0 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT COUNT( * ) + - 62 AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-277
SELECT COUNT ( * ) + - 62 AS col2 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - col2 * + - col2 + col0 * + col0 FROM tab1
----
10706
11817
12905

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-282
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 * + CAST( + col1 AS DECIMAL ) ) AND - col1 * col0 + - 97
----

skipif mysql # not compatible
query III rowsort label-282
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 * + CAST ( + col1 AS REAL ) ) AND - col1 * col0 + - 97
----

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2 AS cor0 WHERE NOT col1 / - ( col1 ) - col2 IN ( col0 )
----
-51

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

query I rowsort
SELECT + + col2 * - col1 * + col2 + ( col1 + col1 ) FROM tab1 AS cor0
----
-128996
-17395
-217234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT DISTINCT + 25 * - CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-286
SELECT DISTINCT + 25 * - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL col0 + - 50 FROM tab1 AS cor0 WHERE NOT 56 * 31 IS NULL
----
1
35
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) <= ( ( ( 41 ) ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT COUNT( * ) - + 92 col0 FROM tab2 WHERE NOT ( + col1 + - col0 + col0 ) IS NOT NULL
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-290
SELECT COUNT ( * ) - + 92 col0 FROM tab2 WHERE NOT ( + col1 + - col0 + col0 ) IS NOT NULL
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 * + + 83 / col2 > ( col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-292
SELECT DISTINCT col0 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT col0 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + 77 * + col2 AS col1 FROM tab2
----
1771
3080
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL - col2 + - - CAST( + 78 AS SIGNED ) FROM tab2 AS cor0
----
20
38
55

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - col2 + - - CAST ( + 78 AS INTEGER ) FROM tab2 AS cor0
----
20
38
55

query I rowsort
SELECT DISTINCT - 41 * + 40 AS col2 FROM tab0 AS cor0
----
-1640

query I rowsort
SELECT DISTINCT col0 + + - ( - 49 ) + col0 FROM tab1
----
151
219
231

query I rowsort
SELECT DISTINCT - col0 + - col0 + + col0 + + col2 + - col1 AS col0 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = 80
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = 80
----
0

query I rowsort
SELECT - col0 * - col0 * + col1 * 24 * + + col0 FROM tab1 AS cor0
----
44570736
73695000
850028088

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

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

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

query I rowsort
SELECT DISTINCT - 62 + - - col0 * - 89 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-4156
-5758
-6737

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT - + col2 DIV - col0 col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-303
SELECT - + col2 / - col0 col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT COUNT( * ) * - COUNT( ALL - - 84 ) * COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-304
SELECT COUNT ( * ) * - COUNT ( ALL - - 84 ) * COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL - + MAX( DISTINCT col1 ) FROM tab0 AS cor0 WHERE - 65 * - 74 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - + MAX ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE - 65 * - 74 IS NOT NULL
----
-81

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

query I rowsort
SELECT DISTINCT - 16 * + 82 FROM tab1 AS cor0
----
-1312

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) + + 45 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) + + 45 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query III rowsort label-310
SELECT DISTINCT * FROM tab1 WHERE + ( + + col2 ) DIV col0 + + col0 <= + col0
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-310
SELECT DISTINCT * FROM tab1 WHERE + ( + + col2 ) / col0 + + col0 <= + col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - col1 * + 43 AS col1 FROM tab1 WHERE + - col1 + + - 9 IN ( - 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT col0 * + col0 + + - col1 DIV col2 + + 40 AS col0 FROM tab2
----
2154
4135
5664

skipif mysql # not compatible
query I rowsort label-312
SELECT col0 * + col0 + + - col1 / col2 + + 40 AS col0 FROM tab2
----
2154
4135
5664

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( 90 )
----

query I rowsort
SELECT + 63 * - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT ALL + MAX( ALL + col2 ) - COUNT( * ) + + 27 AS col1, - MAX( col1 ) * 56 FROM tab2
----
82
-4312

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL + MAX ( ALL + col2 ) - COUNT ( * ) + + 27 AS col1, - MAX ( col1 ) * 56 FROM tab2
----
82
-4312

query I rowsort
SELECT ( - 67 ) + 74 AS col1 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT - ( - 71 ) * - SUM( DISTINCT + 48 ) FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
-3408

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - ( - 71 ) * - SUM ( DISTINCT + 48 ) FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
-3408

query I rowsort
SELECT DISTINCT 13 * - 50 - - col0 AS col0 FROM tab2 AS cor0
----
-575
-586
-604

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT - ( + col2 ) DIV + 53 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - ( + col2 ) / + 53 FROM tab2 AS cor0
----
-1
0

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

query III rowsort
SELECT * FROM tab0 WHERE - 42 * 20 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT 87 DIV ( + + ( - - col2 ) ) DIV - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT 87 / ( + + ( - - col2 ) ) / - col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-324
SELECT * FROM tab0 WHERE ( + 7 / - CAST( NULL AS SIGNED ) * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-324
SELECT * FROM tab0 WHERE ( + 7 / - CAST ( NULL AS INTEGER ) * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT + ( MAX( ALL 98 ) ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-325
SELECT + ( MAX ( ALL 98 ) ) FROM tab0
----
98

query I rowsort
SELECT ALL - + 10 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

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

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab2 AS cor0 WHERE col0 >= - + col2 * - + col0 + - 43
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + 18 - 84 + + col0 + + - 82 - + - col0 * - 98 + - 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL CAST( - - AVG ( DISTINCT + col1 ) AS SIGNED ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL CAST ( - - AVG ( DISTINCT + col1 ) AS INTEGER ) AS col0 FROM tab2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT 17 DIV - + 78 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-332
SELECT 17 / - + 78 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT - COUNT( * ) * + 98 AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-333
SELECT - COUNT ( * ) * + 98 AS col0 FROM tab0
----
-294

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT - 80 NOT IN ( - 49, ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT COUNT( * ) * + + MIN( 66 ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT COUNT ( * ) * + + MIN ( 66 ) AS col0 FROM tab1 AS cor0
----
198

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-337
SELECT ALL col2 FROM tab0 WHERE NOT - col2 IN ( col2, - col1, - ( - 99 ) * + 10 * col2 + - CAST( + col1 + ( + 9 ) AS DECIMAL ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL col2 FROM tab0 WHERE NOT - col2 IN ( col2, - col1, - ( - 99 ) * + 10 * col2 + - CAST ( + col1 + ( + 9 ) AS REAL ) )
----
10
47
99

query I rowsort
SELECT ALL 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT + 23 + + MIN( + 54 ) FROM tab1 AS cor0 WHERE NOT - col2 + + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + 23 + + MIN ( + 54 ) FROM tab1 AS cor0 WHERE NOT - col2 + + col0 = NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 + - + col2 + - - 94 FROM tab2 AS cor0
----
-22
14
48

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT - COUNT( * ) * + 31 AS col0 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - COUNT ( * ) * + 31 AS col0 FROM tab1 cor0
----
-93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + CAST( col2 AS SIGNED ) ) / + 41 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + CAST ( col2 AS INTEGER ) ) / + 41 IS NOT NULL
----
0

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

query I rowsort
SELECT - 26 + - - col0 + - col1 + - col1 * - col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-197159
-291468
-53989

query I rowsort
SELECT DISTINCT 97 * + col1 + + col1 FROM tab2 AS cor0
----
4998
6566
7546

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

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL + MIN( col1 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + MIN ( col1 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL col2 + col0 * - - col0 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-350
SELECT DISTINCT + col1 DIV - 56 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + col1 / - 56 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + - 42
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - ( - 41 ) * - + col1 * - ( 45 ) <> + - col2
----
14
47
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT DISTINCT MIN( - col2 ) + + SUM( CAST( + ( - 78 ) AS SIGNED ) ) + MIN( DISTINCT - 39 ) * + 47 * MAX( DISTINCT + col1 ) FROM tab0
----
-148806

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT MIN ( - col2 ) + + SUM ( CAST ( + ( - 78 ) AS INTEGER ) ) + MIN ( DISTINCT - 39 ) * + 47 * MAX ( DISTINCT + col1 ) FROM tab0
----
-148806

query II rowsort
SELECT + + 66, col2 FROM tab2 AS cor0
----
66
23
66
40
66
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-358
SELECT ALL + COUNT( + 62 ) DIV - + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + COUNT ( + 62 ) / - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

query II rowsort
SELECT DISTINCT + col0, 64 FROM tab1
----
51
64
85
64
91
64

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT DISTINCT - col0 DIV col1 + col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - col0 / col1 + col1 FROM tab2 AS cor0
----
51
66
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-363
SELECT + col1 AS col0, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-363
SELECT + col1 AS col0, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-366
SELECT + 86 AS col0, + col1 - - col0 + - - col2 DIV + - col0 FROM tab0 AS cor0
----
86
108
86
93
86
97

skipif mysql # not compatible
query II rowsort label-366
SELECT + 86 AS col0, + col1 - - col0 + - - col2 / + - col0 FROM tab0 AS cor0
----
86
108
86
93
86
97

query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, 94 FROM tab2
----
-46
94
-64
94
-75
94

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 21
----

query II rowsort
SELECT ALL + ( + - col2 ) AS col1, - col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT 59 DIV 86 DIV COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-371
SELECT 59 / 86 / COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - - 7 + + col0 AS col1 FROM tab2 AS cor0
----
53
71
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + SUM( DISTINCT - + col2 ) + - MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + SUM ( DISTINCT - + col2 ) + - MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-255

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

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

query I rowsort
SELECT ALL 56 + + - 71 AS col2 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT + - 35 * col0 FROM tab2 AS cor0
----
-1610
-2240
-2625

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

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

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

query I rowsort
SELECT - - 81 - - - col0 FROM tab2 AS cor0
----
17
35
6

query I rowsort
SELECT ALL + col0 * + - 81 FROM tab1 AS cor0
----
-4131
-6885
-7371

query II rowsort
SELECT DISTINCT 99 AS col2, + col1 * - col0 AS col1 FROM tab0 AS cor0
----
99
-1215
99
-1827
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND + ( + - col0 ) * - col0
----

query I rowsort
SELECT + col2 + + col0 * - + col2 * - col0 FROM tab2 WHERE 27 > ( - + col2 * + 86 )
----
163880
326308
48691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT CAST( - col0 AS SIGNED ) + - col2 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-385
SELECT CAST ( - col0 AS INTEGER ) + - col2 FROM tab2
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 WHERE 14 < NULL
----

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

query II rowsort
SELECT col2 * - + 23 * + col1 + + col1 * + col0 AS col1, col2 + + 4 AS col1 FROM tab0
----
-2180
103
-3003
14
-86346
51

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE + col2 + + 63 + - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-390
SELECT - COUNT ( * ) + - 72 FROM tab2
----
-75

query I rowsort
SELECT col0 + + + 50 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - - 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT MAX( DISTINCT - 19 ) * - ( - 15 ) FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-392
SELECT MAX ( DISTINCT - 19 ) * - ( - 15 ) FROM tab2 AS cor0
----
-285

query I rowsort
SELECT ALL - 38 * col0 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - col0 DIV - - col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-394
SELECT - col0 / - - col0 AS col2 FROM tab2
----
-1
-1
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-396
SELECT MAX ( DISTINCT - - 21 ) AS col2 FROM tab2
----
21

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * col2 col0 FROM tab0
----
18270
57105
9603

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 89 * - 80 + 58 + + col1 + + + col2 * - 49 * - col0 + - col0 NOT BETWEEN col0 * - col2 AND 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT MIN( ALL - 39 ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT MIN ( ALL - 39 ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT col0 * 58 * 99 * col2 FROM tab2
----
14699520
24977700
6075036

query I rowsort
SELECT 89 * + col2 AS col0 FROM tab2
----
2047
3560
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT - MIN( 21 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - MIN ( 21 ) AS col0 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL 94 + MIN( - 32 ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 94 + MIN ( - 32 ) AS col0 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 * + 89 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 * + 89 ) IS NULL
----
0

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT col0 + col0 >= - - 99 )
----
15

query II rowsort
SELECT ALL + col2, + ( + col1 ) - 40 - + 44 FROM tab0 AS cor0
----
10
-63
47
-3
99
-83

query I rowsort
SELECT DISTINCT - ( - 38 ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT 38 + + 48 FROM tab2 AS cor0 WHERE ( NOT NULL < NULL )
----

query I rowsort
SELECT + col2 + - 77 AS col0 FROM tab2
----
-19
-37
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-416
SELECT - + CAST( - + col1 AS SIGNED ) * - - col0 + - col1 + + 70 + + col1 col0, - col0 FROM tab1 WHERE + 34 * - col2 - - col0 > + 74
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-416
SELECT - + CAST ( - + col1 AS INTEGER ) * - - col0 + - col1 + + 70 + + col1 col0, - col0 FROM tab1 WHERE + 34 * - col2 - - col0 > + 74
----

query I rowsort
SELECT ALL 1 + + col0 AS col1 FROM tab1
----
52
86
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - + col0 + + - col0 IN ( + col1, + ( 14 ) ) AND NOT 60 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 81 - col2 AS col1 FROM tab1 AS cor0
----
-140
-149
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-420
SELECT ALL + CAST( + + col2 AS SIGNED ) - + 28 + + col1 + + 84 + + col0 * + col1 * + + col1 FROM tab0 AS cor0
----
253
38454
98599

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + CAST ( + + col2 AS INTEGER ) - + 28 + + col1 + + 84 + + col0 * + col1 * + + col1 FROM tab0 AS cor0
----
253
38454
98599

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - COUNT( DISTINCT + ( + col2 ) ) + + COUNT( ALL - col1 ) + - 86 AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - COUNT ( DISTINCT + ( + col2 ) ) + + COUNT ( ALL - col1 ) + - 86 AS col0 FROM tab1 AS cor0
----
-86

query II rowsort
SELECT - + 75 * - col2 AS col0, ( - + col1 ) FROM tab1 AS cor0
----
4425
-5
5100
-47
7200
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT ALL - CAST( ( + ( + + col1 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - CAST ( ( + ( + + col1 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

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

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + MIN( col0 ) * + 33 AS col2 FROM tab1
----
1683

skipif mysql # not compatible
query I rowsort label-425
SELECT + MIN ( col0 ) * + 33 AS col2 FROM tab1
----
1683

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

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT 46 * - col2 DIV col2 * - - ( + 98 ) FROM tab0
----
-4508
-4508
-4508

skipif mysql # not compatible
query I rowsort label-427
SELECT 46 * - col2 / col2 * - - ( + 98 ) FROM tab0
----
-4508
-4508
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + + col0 + + col2 * - - 39 * + - 93 * - ( + col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + + col0 + + col2 * - - 39 * + - 93 * - ( + col2 ) >= NULL
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT col2 DIV - 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-432
SELECT col2 / - 86 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT + 69 * + MAX( + + col0 ) FROM tab1 AS cor0
----
6279

skipif mysql # not compatible
query I rowsort label-433
SELECT + 69 * + MAX ( + + col0 ) FROM tab1 AS cor0
----
6279

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-435
SELECT - - col0 DIV - - col1, 82 AS col2 FROM tab0 AS cor0
----
0
82
4
82
97
82

skipif mysql # not compatible
query II rowsort label-435
SELECT - - col0 / - - col1, 82 AS col2 FROM tab0 AS cor0
----
0
82
4
82
97
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT DISTINCT CAST( 20 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT CAST ( 20 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL 37 + + col2 FROM tab2
----
60
77
95

query II rowsort
SELECT DISTINCT - col0 + + 35 * col1 + col0 * + 98, ( + - 20 ) FROM tab2 WHERE + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT ALL 91 DIV 59 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 91 / 59 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-440
SELECT DISTINCT + col0 AS col2, - CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab2
----
46
2601
64
5929
75
4489

skipif mysql # not compatible
query II rowsort label-440
SELECT DISTINCT + col0 AS col2, - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab2
----
46
2601
64
5929
75
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - 24 + - - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-441
SELECT - 24 + - - COUNT ( * ) FROM tab2
----
-21

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

query I rowsort
SELECT - col1 * + ( - col1 ) + 56 AS col2 FROM tab0 cor0
----
497
57
6617

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT + - col1 DIV - - 58 + - ( - - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-444
SELECT + - col1 / - - 58 + - ( - - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

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

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

query I rowsort
SELECT + 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT 10 AS col0, + MIN( ALL + col1 ) + 2 AS col2 FROM tab1
----
10
7

skipif mysql # not compatible
query II rowsort label-448
SELECT 10 AS col0, + MIN ( ALL + col1 ) + 2 AS col2 FROM tab1
----
10
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53, col0 col2 FROM tab2
----
53
46
53
64
53
75

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

query I rowsort
SELECT ALL 7 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ( + + col2 ) - + 62 FROM tab2 AS cor0
----
-22
-39
-4

query I rowsort
SELECT col0 - ( - col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
118
143
197

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - 57, col0 col2 FROM tab2 AS cor0
----
108
46
124
75
134
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 3 BETWEEN + + col1 AND col0
----
97
1
99

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

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

query I rowsort
SELECT DISTINCT - 18 * + 20 AS col0 FROM tab2 cor0
----
-360

query I rowsort
SELECT ALL + 92 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT col0 + - - 46 AS col2 FROM tab2 cor0
----
110
121
92

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + ( col2 ) * + col1 > 43 * + 87 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + col0 * + + 40 + + - 84 AS col2 FROM tab0 cor0
----
3396
3796
516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - 7 + - COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-469
SELECT - 7 + - COUNT ( * ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL 56 + - col0 FROM tab2
----
-19
-8
10

query I rowsort
SELECT - 94 * - col1 + + - col2 AS col0 FROM tab2
----
4771
6240
7198

query I rowsort
SELECT ALL + col1 + 28 - col0 + - col0 FROM tab2
----
-13
-23
-55

query II rowsort
SELECT DISTINCT + ( + col1 ), col1 + 7 AS col2 FROM tab1
----
14
21
47
54
5
12

query III rowsort
SELECT * FROM tab2 WHERE col0 < 71
----
46
51
23
64
77
40

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

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + col1 ) - + col2 col0 FROM tab1
----
-34
100
2141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 59 + + col0 + + col1 * + - col0 * + 13 col1, 66 AS col2 FROM tab0 cor0
----
-1223
66
-15839
66
-23723
66

query I rowsort
SELECT - col1 + + col0 * - 0 * + col1 AS col2 FROM tab1 AS cor0 WHERE ( 8 / + col0 ) > + col1 * + 48 * + + 49
----

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

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL + + COUNT ( * ) - + - 88 AS col2 FROM tab2 AS cor0
----
91

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

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

query I rowsort
SELECT - col1 * - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - 35 * + col2 * - col2 - - ( - 30 ) + - 12 * ( - 19 ) FROM tab1 AS cor0
----
122033
162038
322758

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT MAX( + 2 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-484
SELECT MAX ( + 2 ) AS col2 FROM tab0 AS cor0
----
2

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

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

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

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

query II rowsort
SELECT ALL 55 AS col1, + 44 FROM tab2
----
55
44
55
44
55
44

query II rowsort
SELECT DISTINCT col0 * 2, - col0 AS col2 FROM tab2
----
128
-64
150
-75
92
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2 + + 56
----

query I rowsort
SELECT ALL ( - 6 ) FROM tab2
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 > col0
----
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-492
SELECT ALL + MIN( col0 ) AS col1, + CAST( NULL AS SIGNED ) + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL + MIN ( col0 ) AS col1, + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > + col0
----
87
21
10

query II rowsort
SELECT DISTINCT - col1, + 12 * + col1 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1
1164
-21
460404
-81
1180980

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL - SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-498
SELECT col0 AS col0, ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-498
SELECT col0 AS col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT - MIN( 62 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - MIN ( 62 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-62

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

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

query I rowsort
SELECT ALL col1 * 61 + - ( - col1 ) FROM tab0 AS cor0
----
1302
5022
62

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

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

query I rowsort
SELECT + - 85 FROM tab0 WHERE + + ( 78 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-507
SELECT ALL 60 / + CAST( NULL AS SIGNED ) * col0 * + 92 / - + CAST( + col2 AS DECIMAL ) + + ( - + 13 ) + - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 60 / + CAST ( NULL AS INTEGER ) * col0 * + 92 / - + CAST ( + col2 AS REAL ) + + ( - + 13 ) + - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 73 * col2 + + ( + col2 ) FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT + COUNT( * ) + + 52 AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT + COUNT ( * ) + + 52 AS col1 FROM tab0
----
55

query I rowsort
SELECT ALL col0 * col0 + + col1 AS col0 FROM tab1
----
2615
7230
8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 77 + - 33 * 84 * - col0 col0, col0 AS col2 FROM tab2
----
127589
46
177485
64
207977
75

query I rowsort
SELECT DISTINCT col0 * - + ( 56 ) * + col2 * col1 FROM tab0
----
-1023120
-3197880
-537768

query I rowsort
SELECT col2 + - + ( + + col1 ) + + col1 * - col1 FROM tab1
----
-114
-2188
29

query I rowsort
SELECT + 17 + - col1 FROM tab1
----
-30
12
3

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - - 64 NOT BETWEEN - 2 AND + + col0 + - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col2 * 56
----

query I rowsort
SELECT ALL + 87 * + col0 * - col2 FROM tab1 AS cor0
----
-425952
-436305
-538356

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT ALL col2 DIV - - col1 * - + 81 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-521
SELECT ALL col2 / - - col1 * - + 81 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + 30 - - + ( col0 ) FROM tab0 AS cor0 WHERE NOT + 31 BETWEEN + 45 AND NULL
----
204
224
60

query I rowsort
SELECT ALL + - ( + 24 ) * col0 + - + 81 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1305
-2121
-2265

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

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE NOT + col2 <= - col0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT 2 * - + SUM( - col2 ) AS col0 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT 2 * - + SUM ( - col2 ) AS col0 FROM tab0
----
312

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT + 44 * + col1 DIV - col1 AS col0 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + 44 * + col1 / - col1 AS col0 FROM tab1
----
-44

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

query I rowsort
SELECT 48 * - + 78 AS col1 FROM tab0
----
-3744
-3744
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - MAX( ALL 31 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - MAX ( ALL 31 ) FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-531
SELECT ALL + col1 DIV + col0 - - + 29, + CAST( + col2 AS SIGNED ) * 95 * + + 25 col0 FROM tab0 AS cor0
----
29
235125
29
23750
34
111625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-531
SELECT ALL + col1 / + col0 - - + 29, + CAST ( + col2 AS INTEGER ) * 95 * + + 25 col0 FROM tab0 AS cor0
----
29
235125
29
23750
34
111625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT + ( - + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-532
SELECT + ( - + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL COUNT ( ALL col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT - COUNT( * ) AS col2, + ( ( - 33 ) ) FROM tab0
----
-3
-33

skipif mysql # not compatible
query II rowsort label-534
SELECT - COUNT ( * ) AS col2, + ( ( - 33 ) ) FROM tab0
----
-3
-33

query II rowsort
SELECT - 58, 5 AS col1 FROM tab1
----
-58
5
-58
5
-58
5

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

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

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

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

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT SUM ( DISTINCT - + 57 ) AS col2 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT + - MAX( ALL - 40 ) AS col1 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + - MAX ( ALL - 40 ) AS col1 FROM tab1 cor0
----
40

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

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

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

skipif mysql # not compatible
query I rowsort label-541
SELECT - - ( - CAST ( + + 2 AS INTEGER ) ) * - - col0 * - CAST ( NULL AS INTEGER ) + 99 * ( + 21 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col1 - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-96
354
6546

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT 72 + - - col1 + - col2 DIV 58 AS col2 FROM tab0 AS cor0
----
153
72
93

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 72 + - - col1 + - col2 / 58 AS col2 FROM tab0 AS cor0
----
153
72
93

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT SUM( ( - 6 ) ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-544
SELECT SUM ( ( - 6 ) ) FROM tab0
----
-18

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

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

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

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT col2 + col1 + + - CAST ( NULL AS INTEGER ) / - 51 * + col1 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT + AVG ( col0 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT + AVG ( col0 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 - + 30 AS col2, col2 + + + 60 col0 FROM tab0
----
25
107
25
159
25
70

query I rowsort
SELECT DISTINCT - col0 * + 77 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1155
-6699
-7469

query I rowsort
SELECT DISTINCT + col1 * - 84 * - ( + 44 ) * col2 - + + col1 AS col1 FROM tab2
----
11383603
14362589
4335357

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

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

query I rowsort
SELECT DISTINCT col1 - + - col2 - - - col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT DISTINCT + + MAX( + 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT + + MAX ( + 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-554
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 < - CAST( + - 59 AS SIGNED ) )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-554
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 < - CAST ( + - 59 AS INTEGER ) )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - + 77 AS col0 FROM tab1 cor0
----
-77
-77
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - 55 * - COUNT( * ) FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-557
SELECT - 55 * - COUNT ( * ) FROM tab2 cor0
----
165

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > col1 + col2 * + 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 44, + col2 - + + 95 * + col2 col1 FROM tab0
----
3828
-940
4268
-9306
660
-4418

query I rowsort
SELECT - - col1 + + col1 FROM tab1 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-561
SELECT COUNT( * ) DIV - 63 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-561
SELECT COUNT ( * ) / - 63 AS col0 FROM tab2
----
0

query I rowsort
SELECT 24 * - col2 + 72 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 + - + 72 FROM tab1 AS cor0
----
-13
-4
24

query II rowsort
SELECT col1, 26 FROM tab2
----
51
26
67
26
77
26

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT + ( - col0 ) DIV - + col0 + - col1 * col0 DIV - 43 AS col0 FROM tab2
----
115
117
55

skipif mysql # not compatible
query I rowsort label-565
SELECT + ( - col0 ) / - + col0 + - col1 * col0 / - 43 AS col0 FROM tab2
----
115
117
55

query I rowsort
SELECT - col1 * + - 96 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1344
4512
480

query II rowsort
SELECT + col2 AS col2, col2 * - col0 - col0 + + col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT 18 * + ( - col1 ) + + 61 DIV col1 * 81 * + col0 AS col1 FROM tab2 AS cor0
----
-1206
-1386
2808

skipif mysql # not compatible
query I rowsort label-568
SELECT 18 * + ( - col1 ) + + 61 / col1 * 81 * + col0 AS col1 FROM tab2 AS cor0
----
-1206
-1386
2808

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - + 28 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT ALL + col1 / 59 * - CAST( NULL AS SIGNED ) + + 43 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + col1 / 59 * - CAST ( NULL AS INTEGER ) + + 43 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + - - 17 * - col1 FROM tab2
----
-1079
-1249
-807

query I rowsort
SELECT - col1 / 91 * - col2 FROM tab2 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT - ( COUNT( * ) ) + + - MIN( 76 ) DIV 13 AS col1 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-573
SELECT - ( COUNT ( * ) ) + + - MIN ( 76 ) / 13 AS col1 FROM tab2
----
-8

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

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

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

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

query I rowsort
SELECT - col0 + + - 78 - + + col2 * + col0 AS col1 FROM tab2
----
-1182
-2702
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 79 * + col2 * + col1 col0 FROM tab1 AS cor0
----
106190
23310
252531

query II rowsort
SELECT + ( - col2 ) AS col0, col1 * 74 FROM tab0 cor0
----
-10
1554
-47
5994
-99
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT ALL COUNT( ALL + col1 ) * + COUNT( * ) DIV + 42 FROM tab0
----
0

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

query I rowsort
SELECT + ( col2 ) * - col2 + + - 76 AS col1 FROM tab1
----
-3557
-4700
-9292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-583
SELECT + COUNT( + - col1 ) * - CAST( - ( + 94 ) AS SIGNED ) AS col1 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-583
SELECT + COUNT ( + - col1 ) * - CAST ( - ( + 94 ) AS INTEGER ) AS col1 FROM tab2
----
282

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col2 * + col1 * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT MAX( ALL + - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-586
SELECT MAX ( ALL + - col1 ) AS col2 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + ( - 78 ) col2, - 37 AS col1 FROM tab1
----
4602
-37
5304
-37
7488
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT ALL - MIN( ALL - - col2 ) DIV 74 DIV - 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - MIN ( ALL - - col2 ) / 74 / - 69 FROM tab1
----
0

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

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

query I rowsort
SELECT + col1 * - 39 FROM tab2
----
-1989
-2613
-3003

onlyif mysql # DIV for integer division: 
query II rowsort label-592
SELECT DISTINCT + col2 AS col1, col1 DIV + col0 FROM tab2
----
23
1
40
1
58
0

skipif mysql # not compatible
query II rowsort label-592
SELECT DISTINCT + col2 AS col1, col1 / + col0 FROM tab2
----
23
1
40
1
58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT - col2 DIV + 42 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - col2 / + 42 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + SUM( - - 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + SUM ( - - 70 ) FROM tab2
----
210

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

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

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

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

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

query II rowsort
SELECT col0, col2 * + col0 FROM tab0 cor0
----
15
705
87
870
97
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + + ( ( + + col2 ) ), ( col2 ) * + - col2 + col2 col1 FROM tab0
----
196
-9702
62
-2162
97
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col2 col1 FROM tab2 AS cor0
----
117
125
74

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

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 cor0
----
-47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT + COUNT( * ) * COUNT( * ) + + + CAST( - 38 AS SIGNED ) - - 20 * - SUM( - 46 ) FROM tab2 cor0
----
2731

skipif mysql # not compatible
query I rowsort label-604
SELECT + COUNT ( * ) * COUNT ( * ) + + + CAST ( - 38 AS INTEGER ) - - 20 * - SUM ( - 46 ) FROM tab2 cor0
----
2731

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-606
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT - 42 * - - col0 NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT ALL + 46 + + ( + ( + col2 ) ) * col0 AS col0 FROM tab2 AS cor0
----
1104
2606
4396

query I rowsort
SELECT DISTINCT + + 90 + 54 AS col0 FROM tab1 AS cor0
----
144

query I rowsort
SELECT 73 * 54 AS col2 FROM tab2
----
3942
3942
3942

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

skipif mysql # not compatible
query I rowsort label-610
SELECT COUNT ( ALL - 14 ) * COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT - COUNT( * ) + MIN( DISTINCT - ( col2 ) ) + - 47 FROM tab1 WHERE + CAST( - col0 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT - COUNT ( * ) + MIN ( DISTINCT - ( col2 ) ) + - 47 FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-612
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 65 - - 78 AS col2, - 10 FROM tab2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-612
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 65 - - 78 AS col2, - 10 FROM tab2
----
NULL
-10

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col1 * 62 * + 48 IS NULL
----

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

query II rowsort
SELECT - 4 AS col0, - 37 AS col1 FROM tab0 AS cor0
----
-4
-37
-4
-37
-4
-37

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

query II rowsort
SELECT DISTINCT - - col2, 11 + - 23 * - + col1 AS col0 FROM tab1 AS cor0
----
59
126
68
1092
96
333

query II rowsort
SELECT ALL ( col2 ) AS col2, + 23 - 26 FROM tab1 AS cor0
----
59
-3
68
-3
96
-3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 53 NOT BETWEEN - col0 AND + 30
----

query I rowsort
SELECT DISTINCT ( + - 10 ) AS col0 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT ALL + - col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN 40 AND - - 82 * + ( - col1 )
----

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

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

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

query I rowsort
SELECT - col0 * + + col1 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - + 96 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - - 16 + - 50 AS col2 FROM tab0 AS cor0
----
-34
-34
-34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 * - col0 col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT + - ( - col0 ) + + - col2 FROM tab0 AS cor0
----
-2
-32
77

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

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

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

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

query I rowsort
SELECT 75 - 86 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT 91 - - ( - + col0 ) * + - col2 AS col2 FROM tab0 AS cor0
----
796
961
9694

query I rowsort
SELECT ALL + 28 * col0 AS col1 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL + col0 DIV col1 AS col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + col0 / col1 AS col2 FROM tab1 cor0
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT ALL + CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 / - - CAST( - 77 AS SIGNED ) * + 71 - + col2 * 89 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 / - - CAST ( - 77 AS INTEGER ) * + 71 - + col2 * 89 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT ALL + ( + col2 ) DIV - + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + ( + col2 ) / - + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT 13 * - col2 + + + col1 FROM tab1
----
-1234
-762
-837

query II rowsort
SELECT ALL ( + col0 ) AS col1, ( + + 21 ) FROM tab1
----
51
21
85
21
91
21

query I rowsort
SELECT DISTINCT 44 * - + col1 AS col1 FROM tab2
----
-2244
-2948
-3388

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

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - SUM( DISTINCT + col0 ) * + 14 FROM tab0 AS cor0
----
-2786

skipif mysql # not compatible
query I rowsort label-647
SELECT - SUM ( DISTINCT + col0 ) * + 14 FROM tab0 AS cor0
----
-2786

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT + SUM( + - 22 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + SUM ( + - 22 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT + col1 + + 38 AS col0 FROM tab0 AS cor0
----
119
39
59

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

query I rowsort
SELECT ALL + 57 + 42 FROM tab2
----
99
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT - COUNT( * ) DIV + 12 + + 66 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-652
SELECT - COUNT ( * ) / + 12 + + 66 FROM tab1
----
66

query I rowsort
SELECT + 37 + + col1 FROM tab2
----
104
114
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - SUM( ALL 64 ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-655
SELECT - SUM ( ALL 64 ) AS col2 FROM tab0
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - AVG ( ALL - col0 ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - AVG ( ALL - col0 ) * + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-657
SELECT DISTINCT * FROM tab2 WHERE + CAST( col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-657
SELECT DISTINCT * FROM tab2 WHERE + CAST ( col0 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * - - 69 AS col1 FROM tab0
----
3243
6831
690

query I rowsort
SELECT ALL col1 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
198
220
3854

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

query I rowsort
SELECT DISTINCT - + 28 + col2 - ( col1 ) FROM tab0 AS cor0
----
-39
-62
70

query I rowsort
SELECT 86 * + 29 * - col1 + 19 FROM tab2 AS cor0
----
-127175
-167079
-192019

query I rowsort
SELECT + col1 + - 65 FROM tab0
----
-44
-64
16

query II rowsort
SELECT ALL col2 + + 35, - 16 AS col2 FROM tab1
----
103
-16
131
-16
94
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT col2 DIV + col0 + col1 FROM tab0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-665
SELECT col2 / + col0 + col1 FROM tab0
----
2
21
84

query I rowsort
SELECT - 1 / - col0 * - - 22 FROM tab2 WHERE NULL < - 43 * + + col1 / - col1
----

query I rowsort
SELECT DISTINCT + 74 + - + col0 AS col0 FROM tab0
----
-13
-23
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT - + ( - 32 ) DIV 8 DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT - + ( - 32 ) / 8 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 61 col0 FROM tab1 AS cor0
----
-14
-47
-56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + 79 * 24 * COUNT( * ) FROM tab2 AS cor0
----
5688

skipif mysql # not compatible
query I rowsort label-671
SELECT + 79 * 24 * COUNT ( * ) FROM tab2 AS cor0
----
5688

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT DISTINCT + - col0 - - + 38 DIV - 7 FROM tab1 AS cor0
----
-56
-90
-96

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + - col0 - - + 38 / - 7 FROM tab1 AS cor0
----
-56
-90
-96

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

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

query I rowsort
SELECT - col0 * - ( 87 ) * + col2 AS col2 FROM tab2 AS cor0
----
222720
378450
92046

query I rowsort
SELECT ALL + 61 FROM tab2 AS cor0 WHERE NOT + 97 * + col0 >= 63 + 11
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-677
SELECT DISTINCT - CAST( - col2 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) / + col0 FROM tab2 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT DISTINCT COUNT( * ), - MAX( DISTINCT + 49 ) AS col1 FROM tab0
----
3
-49

skipif mysql # not compatible
query II rowsort label-680
SELECT DISTINCT COUNT ( * ), - MAX ( DISTINCT + 49 ) AS col1 FROM tab0
----
3
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * - - col0 col2 FROM tab1
----
-4590
-7650
-8190

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT + 29 * MAX( - + 11 ) col0 FROM tab1
----
-319

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-684
SELECT DISTINCT + 29 * MAX ( - + 11 ) col0 FROM tab1
----
-319

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

query I rowsort
SELECT ALL + col0 - + col1 * + 19 / - col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 41 )
----

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

query II rowsort
SELECT + col2, col0 * col1 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

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

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

query I rowsort
SELECT col1 + 40 FROM tab1 WHERE ( NULL ) IS NULL
----
45
54
87

query I rowsort
SELECT 64 FROM tab2 WHERE NOT - col2 IS NULL
----
64
64
64

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

query I rowsort
SELECT ALL - 8 + 35 FROM tab1
----
27
27
27

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

skipif mysql # not compatible
query I rowsort label-694
SELECT COUNT ( ALL col1 ) AS col2 FROM tab2
----
3

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

query I rowsort
SELECT 9 FROM tab2 WHERE NOT - col0 IS NULL
----
9
9
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT COUNT( * ) + 95 AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-698
SELECT COUNT ( * ) + 95 AS col0 FROM tab0
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-699
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + + 15 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) + + 15 FROM tab1
----
NULL

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

query I rowsort
SELECT col0 * 65 + - col1 FROM tab1
----
3301
5520
5868

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT COUNT( DISTINCT - 6 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-703
SELECT COUNT ( DISTINCT - 6 ) col0 FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-704
SELECT - 85 - - 0 FROM tab1 WHERE - 98 + 41 / col1 <> ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-704
SELECT - 85 - - 0 FROM tab1 WHERE - 98 + 41 / col1 <> ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 >= ( - col2 * col2 )
----

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

query I rowsort
SELECT 16 + 85 FROM tab1
----
101
101
101

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT ALL - COUNT( * ) DIV 69 FROM tab2 WHERE NOT col1 DIV 4 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - COUNT ( * ) / 69 FROM tab2 WHERE NOT col1 / 4 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * 95 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT ALL + col1 - + 35 AS col0 FROM tab2
----
16
32
42

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

query I rowsort
SELECT ALL 1 * 74 AS col0 FROM tab1
----
74
74
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT CAST( col0 AS SIGNED ) * 60 + + 99 AS col1 FROM tab0
----
5319
5919
999

skipif mysql # not compatible
query I rowsort label-717
SELECT CAST ( col0 AS INTEGER ) * 60 + + 99 AS col1 FROM tab0
----
5319
5919
999

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

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

query I rowsort
SELECT DISTINCT col0 + - 84 AS col2 FROM tab2 AS cor0
----
-20
-38
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 93 * - 0 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL 13 + + COUNT( * ) * 37 FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL 13 + + COUNT ( * ) * 37 FROM tab0
----
124

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col0 - - ( 48 ) <> ( col0 + col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 86 - - 78 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT 14 * + col0 - 47 AS col2 FROM tab2
----
1003
597
849

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-727
SELECT * FROM tab1 WHERE 83 NOT BETWEEN CAST( NULL AS SIGNED ) AND - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-727
SELECT * FROM tab1 WHERE 83 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 - col1 * - 95 FROM tab1
----
1344
4512
480

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL 5 + 9 * MIN( col2 ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 5 + 9 * MIN ( col2 ) AS col0 FROM tab0
----
95

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE 92 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col1 * col2 - - 85 FROM tab1 AS cor0
----
-1259
-210
-3111

query I rowsort
SELECT DISTINCT + - col1 - + col1 * col0 FROM tab0 cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - - MIN( + col0 ) - 3 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-735
SELECT - - MIN ( + col0 ) - 3 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT - - COUNT( * ) + 79 DIV 51 AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-736
SELECT - - COUNT ( * ) + 79 / 51 AS col0 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT - - CAST( - col2 AS SIGNED ) * 35 + col0 AS col0 FROM tab2 AS cor0
----
-1336
-1955
-759

skipif mysql # not compatible
query I rowsort label-737
SELECT - - CAST ( - col2 AS INTEGER ) * 35 + col0 AS col0 FROM tab2 AS cor0
----
-1336
-1955
-759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-738
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 + 37 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + COUNT( * ) * 85 AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-742
SELECT + COUNT ( * ) * 85 AS col2 FROM tab0
----
255

query I rowsort
SELECT 65 * - - col2 FROM tab1
----
3835
4420
6240

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-745
SELECT * FROM tab0 WHERE NOT NULL >= col1 + ( - col0 + 80 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-745
SELECT * FROM tab0 WHERE NOT NULL >= col1 + ( - col0 + 80 * - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT + 56 * - + 4 AS col0 FROM tab0
----
-224

query I rowsort
SELECT + ( - + col0 ) * 74 AS col0 FROM tab0
----
-1110
-6438
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 6 * 69 col1 FROM tab1
----
19458
2070
5796

query I rowsort
SELECT DISTINCT 5 * + 82 AS col2 FROM tab0
----
410

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT ALL - 63 DIV col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - 63 / col2 FROM tab2
----
-1
-1
-2

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

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

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

query I rowsort
SELECT - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 41 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + + 24 + + 75 AS col0 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT + + COUNT( DISTINCT + ( - 94 ) ) DIV + COUNT( * ) + - 65 AS col1 FROM tab1 AS cor0
----
-65

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

query I rowsort
SELECT - ( 47 ) AS col0 FROM tab0 AS cor0 WHERE col1 * - col0 > - col1 + 38
----

query I rowsort
SELECT - 62 + 28 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT + COUNT( * ) + - + COUNT( * ) * + SUM( col2 ) * + 72 FROM tab1 AS cor0
----
-48165

skipif mysql # not compatible
query I rowsort label-761
SELECT + COUNT ( * ) + - + COUNT ( * ) * + SUM ( col2 ) * + 72 FROM tab1 AS cor0
----
-48165

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 69 IN ( + col1 / 62 )
----

query I rowsort
SELECT + col0 + + col1 + - col2 * - col2 FROM tab1 AS cor0
----
3571
4762
9281

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT - SUM( ALL + ( - ( col0 ) ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT - SUM ( ALL + ( - ( col0 ) ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-681

query I rowsort
SELECT DISTINCT - 7 + - 61 AS col2 FROM tab0 AS cor0
----
-68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 35 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT MIN( ALL + 29 ) col1 FROM tab1
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-767
SELECT MIN ( ALL + 29 ) col1 FROM tab1
----
29

query I rowsort
SELECT + 51 AS col2 FROM tab2 WHERE NULL IN ( + + 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT DISTINCT + 74 DIV + - col0 + + col2 * - 61 * col0 AS col0 FROM tab2
----
-156161
-265350
-64539

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + 74 / + - col0 + + col2 * - 61 * col0 AS col0 FROM tab2
----
-156161
-265350
-64539

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL SUM( ALL + 3 ) + COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL SUM ( ALL + 3 ) + COUNT ( * ) AS col2 FROM tab2
----
12

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - - 34 NOT IN ( + 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-777
SELECT - 78 + - + AVG ( + CAST( NULL AS SIGNED ) ) + - ( - CAST( COUNT( * ) AS DECIMAL ) ) * 47 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT - 78 + - + AVG ( + CAST ( NULL AS INTEGER ) ) + - ( - CAST ( COUNT ( * ) AS REAL ) ) * 47 AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( 53 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-780
SELECT DISTINCT * FROM tab1 WHERE ( col0 * col0 ) BETWEEN - col0 * 17 AND CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-780
SELECT DISTINCT * FROM tab1 WHERE ( col0 * col0 ) BETWEEN - col0 * 17 AND CAST ( NULL AS INTEGER ) + col0
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * col0 AND - + 68 * - col2 + 49
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <> ( - col2 )
----

query I rowsort
SELECT 85 * - col2 * + 98 FROM tab0
----
-391510
-824670
-83300

query I rowsort
SELECT ALL - 96 * - - col0 * col0 AS col1 FROM tab2
----
-203136
-393216
-540000

query I rowsort
SELECT ALL col0 * 17 AS col1 FROM tab2
----
1088
1275
782

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( NOT + 20 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - 2 * - COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - 2 * - COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT ALL - col0 / col2 / - - col1 FROM tab2 WHERE col0 IS NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 50 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 10
----

query III rowsort
SELECT - col1, + col1 AS col1, + + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 62c46d628f16c9b11bf60b3d4d42b6f4

query I rowsort
SELECT DISTINCT + + col2 * - 87 + - col0 AS col1 FROM tab2 AS cor0
----
-2047
-3544
-5121

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

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

query I rowsort
SELECT + 11 * - ( - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-1056
-649
-748

query II rowsort
SELECT ALL - 98 * - - 90 AS col2, col0 FROM tab1 AS cor0
----
-8820
51
-8820
85
-8820
91

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

skipif mysql # not compatible
query I rowsort label-799
SELECT ( MAX ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
75

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

query I rowsort
SELECT DISTINCT + col1 * 17 FROM tab0 cor0
----
1377
17
357

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 WHERE NOT NULL <= - col2 OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-803
SELECT 95 + CAST( NULL AS SIGNED ), - COUNT( - + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-803
SELECT 95 + CAST ( NULL AS INTEGER ), - COUNT ( - + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-804
SELECT DISTINCT - COUNT( * ) - COUNT( * ) * - MIN( ALL - CAST( + - col1 AS SIGNED ) ) + - - 57 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) * - MIN ( ALL - CAST ( + - col1 AS INTEGER ) ) + - - 57 FROM tab2
----
207

query I rowsort
SELECT - col0 + + + 10 FROM tab2
----
-36
-54
-65

query I rowsort
SELECT DISTINCT col2 * - col0 * - + col0 + + col0 - + col2 FROM tab0
----
10543
75767
931489

query I rowsort
SELECT ALL col2 - - + ( + col2 ) FROM tab2
----
116
46
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT NULL >= + 81 - - 94 + + col1 * 27
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-809
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT NULL >= + 81 - - 94 + + col1 * 27
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT ALL - col2 - - col0 + - col1 DIV col1 * + col2 AS col0 FROM tab1
----
-141
-33
-45

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - col2 - - col0 + - col1 / col1 * + col2 AS col0 FROM tab1
----
-141
-33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT 69 + + - 71 * - - MIN( - - 82 ) * + SUM( DISTINCT col2 ) + + - 52 * + COUNT( ALL + col0 ) col1 FROM tab2 AS cor0
----
-704549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-811
SELECT 69 + + - 71 * - - MIN ( - - 82 ) * + SUM ( DISTINCT col2 ) + + - 52 * + COUNT ( ALL + col0 ) col1 FROM tab2 AS cor0
----
-704549

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 12 + + col2 * + col1 * col1 IS NULL
----

query II rowsort
SELECT ALL - + col2 AS col1, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-817
SELECT - COUNT ( * ) / 76 FROM tab1
----
0

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

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

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

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

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

query I rowsort
SELECT + col1 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
-132651
-300763
-456533

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

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

query II rowsort
SELECT ALL - 41 * - + col2 * + col0 * + col1 * - - col2 AS col0, - col1 AS col2 FROM tab1
----
269789184
-14
60656425
-5
810850768
-47

query I rowsort
SELECT 72 * - 12 * - col2 AS col1 FROM tab1
----
50976
58752
82944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT col1 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT col1 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
441
6561

query I rowsort
SELECT + 14 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab1 WHERE NOT - + col1 + + col0 * - - col0 >= + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT 13 * - MIN( - + 76 ) FROM tab1
----
988

skipif mysql # not compatible
query I rowsort label-830
SELECT 13 * - MIN ( - + 76 ) FROM tab1
----
988

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

query I rowsort
SELECT ALL ( 60 ) AS col1 FROM tab0 cor0
----
60
60
60

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

query I rowsort
SELECT DISTINCT - 6 * - 21 + - 81 - + - 70 FROM tab1 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT MAX( DISTINCT + col0 ) + - + 33 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT MAX ( DISTINCT + col0 ) + - + 33 FROM tab1
----
58

query I rowsort
SELECT ALL + + col0 * + col2 FROM tab1 WHERE 41 BETWEEN + ( col0 ) * col1 AND NULL
----

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

query I rowsort
SELECT ALL + 21 * 29 FROM tab2 AS cor0
----
609
609
609

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + - ( col1 ) DIV + 90 * + - 15 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-839
SELECT + - ( col1 ) / + 90 * + - 15 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL - + COUNT( * ) * + 45 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - + COUNT ( * ) * + 45 FROM tab1 AS cor0
----
-135

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

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

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT 70 / col0 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE - 29 NOT BETWEEN NULL AND + 83 + - col2
----

query I rowsort
SELECT col2 * col1 + - 96 AS col1 FROM tab2 cor0
----
1077
2984
3790

query I rowsort
SELECT - col1 * ( col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT DISTINCT - col1 DIV 41 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT - col1 / 41 FROM tab0
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 92 = NULL )
----

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + COUNT( * ) * - + 88 AS col1 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-849
SELECT + COUNT ( * ) * - + 88 AS col1 FROM tab0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT DISTINCT + CAST( 72 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + CAST ( 72 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
72

query I rowsort
SELECT - 59 - col1 AS col0 FROM tab1 AS cor0
----
-106
-64
-73

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

query I rowsort
SELECT DISTINCT + 62 - - col0 + + - col2 FROM tab0 AS cor0
----
139
30
60

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT - COUNT( * ) * + + 96 AS col1 FROM tab2 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-855
SELECT - COUNT ( * ) * + + 96 AS col1 FROM tab2 cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT - ( + MIN( + 63 ) ) * + 20 FROM tab1 AS cor0
----
-1260

skipif mysql # not compatible
query I rowsort label-856
SELECT - ( + MIN ( + 63 ) ) * + 20 FROM tab1 AS cor0
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT - 13 DIV - col0 AS col1 FROM tab2 WHERE NOT - 82 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-857
SELECT - 13 / - col0 AS col1 FROM tab2 WHERE NOT - 82 IS NULL
----
0
0
0

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL <= ( NULL )
----

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

query I rowsort
SELECT ALL + - col2 * col1 - col1 FROM tab0 AS cor0
----
-100
-231
-3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT - col0 * - + col0 * + 88 FROM tab2 cor0 WHERE NOT - 14 IN ( CAST( 59 AS SIGNED ) / - 10 * 70 )
----
186208
360448
495000

skipif mysql # not compatible
query I rowsort label-866
SELECT - col0 * - + col0 * + 88 FROM tab2 cor0 WHERE NOT - 14 IN ( CAST ( 59 AS INTEGER ) / - 10 * 70 )
----
186208
360448
495000

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

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab0 cor0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - - col0 <> - + 71 * col1 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT - COUNT( - - 96 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-869
SELECT - COUNT ( - - 96 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + + 71 + - 81 * - col1
----

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

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

query I rowsort
SELECT 3 + col2 AS col1 FROM tab2 AS cor0
----
26
43
61

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 78 col2 FROM tab0 AS cor0
----
159
79
99

query I rowsort
SELECT 65 * + 50 + + - col1 + + - col2 FROM tab1 AS cor0
----
3135
3140
3186

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN + ( - col1 ) + + 92 AND - - 74 * + 81
----

query I rowsort
SELECT col0 * + 35 AS col1 FROM tab2
----
1610
2240
2625

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-880
SELECT ALL 77 * col1 DIV - - col2, col0 FROM tab2 AS cor0
----
148
64
170
46
88
75

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL 77 * col1 / - - col2, col0 FROM tab2 AS cor0
----
148
64
170
46
88
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 35 ) > + col0
----

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

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

query I rowsort
SELECT 76 - col0 AS col0 FROM tab1 AS cor0
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - col0 + - + 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 + - + 35 IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 29 * + col1 + + - col2 AS col0 FROM tab1
----
1295
310
86

query II rowsort
SELECT ALL 1 AS col1, 9 FROM tab1
----
1
9
1
9
1
9

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

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

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

query I rowsort
SELECT col0 * + - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 + + - 23 FROM tab0 cor0 WHERE NOT - 99 > 41
----
-8
64
74

query I rowsort
SELECT ( + 10 ) + 23 AS col0 FROM tab0 AS cor0 WHERE NOT + 48 * - - 96 IS NULL
----
33
33
33

query I rowsort
SELECT DISTINCT - 79 * + + 57 * + col0 * + 25 FROM tab2 AS cor0
----
-5178450
-7204800
-8443125

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT + 47 * + COUNT( * ), + 9 + COUNT( * ) * SUM( + + col0 ) AS col1 FROM tab1
----
141
690

skipif mysql # not compatible
query II rowsort label-896
SELECT + 47 * + COUNT ( * ), + 9 + COUNT ( * ) * SUM ( + + col0 ) AS col1 FROM tab1
----
141
690

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

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

query I rowsort
SELECT - 13 * + - col1 FROM tab2
----
1001
663
871

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 78 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 78 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT + + COUNT( DISTINCT 27 ) DIV - 41 + + COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + + COUNT ( DISTINCT 27 ) / - 41 + + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-901
SELECT COUNT( * ) DIV - MAX( ALL - 69 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT COUNT ( * ) / - MAX ( ALL - 69 ) FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - col0 + + col2 * col1 AS col1 FROM tab1 cor0
----
1293
210
3105

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NULL < 56
----

query I rowsort
SELECT DISTINCT - col2 + + + col2 AS col0 FROM tab0
----
0

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

query II rowsort
SELECT col2 AS col0, col2 + - col0 AS col1 FROM tab0
----
10
-77
47
32
99
2

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

query I rowsort
SELECT + - 0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT DISTINCT + ( - COUNT ( * ) ) col1 FROM tab0
----
-3

query II rowsort
SELECT ALL 54 AS col0, 47 - 86 + col2 * - 42 FROM tab1
----
54
-2517
54
-2895
54
-4071

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

query I rowsort
SELECT 41 + - 50 * + col0 FROM tab2
----
-2259
-3159
-3709

query I rowsort
SELECT ALL + col2 - - + col1 FROM tab0 cor0
----
100
128
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-919
SELECT - col2 AS col2, - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-919
SELECT - col2 AS col2, - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * + col0 + - col1 + - + col1 AS col2 FROM tab1 AS cor0
----
-2629
-7235
-8375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-921
SELECT ALL + col1 - + CAST( NULL AS SIGNED ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-921
SELECT ALL + col1 - + CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT COUNT( * ) * + 68 FROM tab2 cor0
----
204

skipif mysql # not compatible
query I rowsort label-922
SELECT COUNT ( * ) * + 68 FROM tab2 cor0
----
204

query I rowsort
SELECT ALL - 57 + - - col1 FROM tab2
----
-6
10
20

query I rowsort
SELECT ALL 10 + + col1 * - col1 AS col0 FROM tab1
----
-15
-186
-2199

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT col0 * + - 69 AS col2 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT ALL 77 * - col2 AS col1 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-928
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT 97 * - 94 AS col1 FROM tab0
----
-9118
-9118
-9118

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL - col1 DIV - 46 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - col1 / - 46 AS col0 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT ( 3 ) * - col2 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 45 IS NULL )
----

query II rowsort
SELECT + 27 AS col1, col1 * + 27 AS col1 FROM tab0 AS cor0
----
27
2187
27
27
27
567

query II rowsort
SELECT + 11, - col2 + - + col0 + - col1 AS col1 FROM tab2 AS cor0
----
11
-120
11
-181
11
-200

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 >= NULL
----

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE NOT + 82 * 57 * 39 = NULL
----

query I rowsort
SELECT + 99 AS col2 FROM tab1 WHERE NOT + col0 * 87 > - col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT 26 + + MIN( + - ( - col1 ) ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-944
SELECT 26 + + MIN ( + - ( - col1 ) ) AS col2 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT - 29 DIV - 22 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - 29 / - 22 FROM tab1
----
1

query I rowsort
SELECT - - 68 * - - col1 + - + col1 FROM tab2 AS cor0
----
3417
4489
5159

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * - 38 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 34 + - 64 FROM tab2
----
-98

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

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

query II rowsort
SELECT DISTINCT + 73 * 25 + col0 * - + ( col2 ) - - 28 AS col2, col2 + - + 82 FROM tab1 AS cor0
----
-3043
14
-3162
-23
-4335
-14

query I rowsort
SELECT - col2 + + 14 AS col2 FROM tab2 AS cor0
----
-26
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT - CAST( NULL AS SIGNED ) * - 86 * - col2 FROM tab0 AS cor0 WHERE 87 < NULL
----

skipif mysql # not compatible
query I rowsort label-954
SELECT - CAST ( NULL AS INTEGER ) * - 86 * - col2 FROM tab0 AS cor0 WHERE 87 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-955
SELECT + col2 * ( col1 ) + + 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-955
SELECT + col2 * ( col1 ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 > - col0
----

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 cor0
----
20
20
20

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

skipif mysql # not compatible
query I rowsort label-958
SELECT ( - - CAST ( + ( + + col0 ) AS INTEGER ) ) / + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT 25 * - 92 AS col1 FROM tab1
----
-2300
-2300
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL 7 * COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL 7 * COUNT ( * ) AS col0 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT + 40 DIV 53 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-961
SELECT + 40 / 53 col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-962
SELECT ALL + - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 22 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 22 IS NOT NULL
----
0

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

query I rowsort
SELECT + 44 / - col2 FROM tab1 AS cor0 WHERE col0 / - col1 BETWEEN - - 60 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 33 AS col1 FROM tab0 AS cor0
----
2871
3201
495

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + - col0 col1 FROM tab0 AS cor0
----
690
783
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * + col0 col0 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT DISTINCT col1 + + 40 AS col2 FROM tab1
----
45
54
87

query I rowsort
SELECT DISTINCT col2 + - col1 * - 4 FROM tab2
----
227
326
348

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT 46 * - COUNT( * ) AS col1 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-973
SELECT 46 * - COUNT ( * ) AS col1 FROM tab1
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT DISTINCT - col0 DIV - - col0 + + - col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT - col0 / - - col0 + + - col0 FROM tab0
----
-16
-88
-98

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

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) + - COUNT ( - + 58 ) AS col2 FROM tab2
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL - COUNT( * ) * + 83 AS col0 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - COUNT ( * ) * + 83 AS col0 FROM tab1
----
-249

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0 cor0
----
68

query I rowsort
SELECT - col1 + - + 29 - - 14 AS col2 FROM tab0 cor0
----
-16
-36
-96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT + 91 + + 56 * + COUNT( * ) FROM tab0
----
259

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + 91 + + 56 * + COUNT ( * ) FROM tab0
----
259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 38 + col0 - - col0 + + - col2 col1 FROM tab1
----
154
199
58

query I rowsort
SELECT ALL + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL + 17 - - - 35 + MAX( DISTINCT + col0 ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + 17 - - - 35 + MAX ( DISTINCT + col0 ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-986
SELECT DISTINCT - + COUNT( + col0 ) DIV - - SUM( ALL col1 ) + + + COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - + COUNT ( + col0 ) / - - SUM ( ALL col1 ) + + + COUNT ( - col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 * - + 26 AND col1 + - 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-988
SELECT ALL CAST( 75 AS SIGNED ) AS col2, + COUNT( * ) + + 91 AS col0 FROM tab0 AS cor0
----
75
94

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL CAST ( 75 AS INTEGER ) AS col2, + COUNT ( * ) + + 91 AS col0 FROM tab0 AS cor0
----
75
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-989
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ), col2 + + - 74, - 25 )
----

skipif mysql # not compatible
query III rowsort label-989
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ), col2 + + - 74, - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - - 73 * COUNT( * ) * - ( - + MAX( ALL + col0 ) ) AS col1 FROM tab1 AS cor0
----
19929

skipif mysql # not compatible
query I rowsort label-990
SELECT - - 73 * COUNT ( * ) * - ( - + MAX ( ALL + col0 ) ) AS col1 FROM tab1 AS cor0
----
19929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 50 IS NULL OR - col1 NOT BETWEEN - 58 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - ( COUNT( * ) ) * - 86 AS col0 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-992
SELECT - ( COUNT ( * ) ) * - 86 AS col0 FROM tab1 AS cor0
----
258

query I rowsort
SELECT DISTINCT + - 7 AS col0 FROM tab1 AS cor0
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT 38 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-995
SELECT 38 / - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT - 49 AS col2, - 99 AS col1 FROM tab2
----
-49
-99
-49
-99
-49
-99

query II rowsort
SELECT col2 * - col0 * - - col2, + col1 FROM tab1
----
-295885
5
-420784
47
-470016
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> + col0 / col2
----

query I rowsort
SELECT col0 + + - 51 * - 68 FROM tab0 cor0
----
3483
3555
3565

query I rowsort
SELECT - col0 + + + col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT 59 AS col0, + col2 FROM tab0 AS cor0
----
59
10
59
47
59
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 50 * + col0 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + MAX( + col1 ) * - 44 FROM tab0 AS cor0
----
-3564

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + MAX ( + col1 ) * - 44 FROM tab0 AS cor0
----
-3564

query I rowsort
SELECT col1 * - col1 * 47 FROM tab1 AS cor0
----
-103823
-1175
-9212

query I rowsort
SELECT DISTINCT + 88 * + - 85 + - + col1 FROM tab2 AS cor0
----
-7531
-7547
-7557

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL 96 * SUM( ALL - col0 ) FROM tab0 cor0
----
-19104

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL 96 * SUM ( ALL - col0 ) FROM tab0 cor0
----
-19104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1008
SELECT * FROM tab1 AS cor0 WHERE - 32 NOT IN ( - + CAST( + col1 AS SIGNED ) * - col0, + 57 / - - col0 * + + col2 + - col0, - col0 * + + ( - - col1 ), - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1008
SELECT * FROM tab1 AS cor0 WHERE - 32 NOT IN ( - + CAST ( + col1 AS INTEGER ) * - col0, + 57 / - - col0 * + + col2 + - col0, - col0 * + + ( - - col1 ), - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 31 + col0 FROM tab1 AS cor0
----
116
122
82

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

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

query I rowsort
SELECT DISTINCT + col1 + - - 87 + - + ( + col1 ) AS col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL col0 * + + 21 AS col0 FROM tab1 WHERE + + 46 + + ( - - col2 ) IS NULL
----

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

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

query I rowsort
SELECT col0 + - + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT col0 * - col1 * + 94 * col1 FROM tab2
----
-11246724
-31647450
-35668864

query II rowsort
SELECT + + 68 AS col2, col0 + + 84 + - col2 / - 64 AS col2 FROM tab0 AS cor0 WHERE NULL <> col2 + - col0 + + - 74
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 0
----

query I rowsort
SELECT 44 * - 1 - - - 25 AS col0 FROM tab1
----
-69
-69
-69

query II rowsort
SELECT DISTINCT col1 * ( - col1 ) - - col1 AS col0, + col2 FROM tab2
----
-2550
23
-4422
58
-5852
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT + COUNT( * ) AS col0, 16 - + 64 FROM tab2 AS cor0
----
3
-48

skipif mysql # not compatible
query II rowsort label-1021
SELECT + COUNT ( * ) AS col0, 16 - + 64 FROM tab2 AS cor0
----
3
-48

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 83 = + ( + + col1 )
----

query II rowsort
SELECT + col2, + col0 + + col1 FROM tab0 cor0
----
10
108
47
96
99
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1024
SELECT DISTINCT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 59 col2, - 53 FROM tab2 cor0
----
59
-53
59
-53
59
-53

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

query II rowsort
SELECT - col0 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

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

query I rowsort
SELECT + 62 * - 34 FROM tab1
----
-2108
-2108
-2108

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT col2 DIV - - 43 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1030
SELECT col2 / - - 43 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL - ( - 92 ) AS col0 FROM tab2 AS cor0
----
92
92
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT - MAX( + col2 ) * + + 71 + - 44 + MIN( col1 ) * COUNT( * ) FROM tab0
----
-7070

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT - MAX ( + col2 ) * + + 71 + - 44 + MIN ( col1 ) * COUNT ( * ) FROM tab0
----
-7070

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 <> + col0 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 <> + col0 * - col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT + - COUNT ( * ) + 69 AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT 26 * COUNT( * ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-1037
SELECT 26 * COUNT ( * ) FROM tab1 cor0
----
78

query I rowsort
SELECT DISTINCT - col0 + + 50 - 54 * - col0 - - 49 + + - col0 + - col0 AS col0 FROM tab2
----
2445
3363
3924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * col0 + + col2 + - - col0 col0 FROM tab1
----
5043
5159
6347

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

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

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

query I rowsort
SELECT - + col2 * col2 * - col0 + + 40 * - 99 + 43 AS col1 FROM tab2 cor0
----
20417
248383
98483

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1044
SELECT AVG ( DISTINCT col1 ), - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1044
SELECT AVG ( DISTINCT col1 ), - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL
0

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE 67 < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1049
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab1
----
NULL
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - 3 * + - SUM( DISTINCT - 44 ) AS col2 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-1050
SELECT - 3 * + - SUM ( DISTINCT - 44 ) AS col2 FROM tab2
----
-132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - 18 * - - COUNT( * ) FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - 18 * - - COUNT ( * ) FROM tab0 cor0
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + MAX( ( + + col1 ) ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1054
SELECT + MAX ( ( + + col1 ) ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT + - col2 * col2 + - - col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 + - ( - col1 ) * 74 / col2 * + ( + 84 ) BETWEEN col2 * + - col2 AND 26
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT SUM( ALL ( + 48 ) ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1058
SELECT SUM ( ALL ( + 48 ) ) FROM tab1 AS cor0
----
144

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

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

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

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

query I rowsort
SELECT 30 * - - col1 - 37 AS col0 FROM tab0 AS cor0
----
-7
2393
593

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

query I rowsort
SELECT - ( - 23 ) + - col0 AS col1 FROM tab0 AS cor0
----
-64
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT DISTINCT + COUNT( - col2 ) + - SUM( DISTINCT - + col1 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + COUNT ( - col2 ) + - SUM ( DISTINCT - + col1 ) FROM tab2
----
198

query I rowsort
SELECT 59 + - col2 AS col1 FROM tab2
----
1
19
36

query I rowsort
SELECT ALL col2 * col1 * - - col2 + + 27 FROM tab1
----
129051
17432
217355

onlyif mysql # DIV for integer division: 
query II rowsort label-1068
SELECT 94 AS col0, - 49 DIV + col1 col1 FROM tab1
----
94
-1
94
-3
94
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1068
SELECT 94 AS col0, - 49 / + col1 col1 FROM tab1
----
94
-1
94
-3
94
-9

query II rowsort
SELECT col1, ( - 90 ) FROM tab2
----
51
-90
67
-90
77
-90

query II rowsort
SELECT 37 AS col0, col2 AS col2 FROM tab1
----
37
59
37
68
37
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1071
SELECT + MAX ( DISTINCT - + col1 ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - COUNT( * ) + - 69 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1072
SELECT - COUNT ( * ) + - 69 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT SUM( DISTINCT + 18 ) * + - COUNT( * ) + 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-139

skipif mysql # not compatible
query I rowsort label-1073
SELECT SUM ( DISTINCT + 18 ) * + - COUNT ( * ) + 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-139

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1074
SELECT ALL + + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - + ( - - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1076
SELECT ALL + - ( + MIN( DISTINCT - col0 ) ) col1, - 81 - CAST( 90 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE 74 IS NULL
----
NULL
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1076
SELECT ALL + - ( + MIN ( DISTINCT - col0 ) ) col1, - 81 - CAST ( 90 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 74 IS NULL
----
NULL
-171

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - 69 + col0 <= - + 86
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - 54 col0 FROM tab2
----
2754
3618
4158

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + COUNT ( * ) * 1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab0 WHERE NOT ( + 16 ) BETWEEN col1 AND col1
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT MIN( ALL + 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1081
SELECT MIN ( ALL + 3 ) FROM tab1
----
3

query II rowsort
SELECT ALL - col2 * + col1 + + col2 + - ( + 83 ) AS col1, - col2 FROM tab1
----
-1331
-96
-319
-59
-3211
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT CAST( ( + 28 ) AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-1083
SELECT CAST ( ( + 28 ) AS INTEGER ) FROM tab2
----
28
28
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - COUNT( * ) * + - 95 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-1085
SELECT - COUNT ( * ) * + - 95 FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT 35 + + 94 + + - 59 - + + 7 * MIN( DISTINCT - 33 ) AS col2 FROM tab0
----
301

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 35 + + 94 + + - 59 - + + 7 * MIN ( DISTINCT - 33 ) AS col2 FROM tab0
----
301

query I rowsort
SELECT - + 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT + + ( col2 ) + - 69 - + col1 + + + col1 * col0 + - col1 DIV + + col0 - col0 DIV - + col2 FROM tab2 AS cor0
----
2250
4822
4948

skipif mysql # not compatible
query I rowsort label-1089
SELECT + + ( col2 ) + - 69 - + col1 + + + col1 * col0 + - col1 / + + col0 - col0 / - + col2 FROM tab2 AS cor0
----
2250
4822
4948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1090
SELECT + - MIN( ALL - 38 ) + - 85 * + - COUNT( * ) * - MAX( col0 ) col1, + CAST( - 81 AS SIGNED ) + - + SUM( - col0 ) FROM tab2 AS cor0
----
-19087
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1090
SELECT + - MIN ( ALL - 38 ) + - 85 * + - COUNT ( * ) * - MAX ( col0 ) col1, + CAST ( - 81 AS INTEGER ) + - + SUM ( - col0 ) FROM tab2 AS cor0
----
-19087
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) - + 12 + - - col1 FROM tab1 AS cor0
----
103
52
98

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) - + 12 + - - col1 FROM tab1 AS cor0
----
103
52
98

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL + 53 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 < + CAST( - col1 AS SIGNED )
----
-14
-24
2

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + 53 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 < + CAST ( - col1 AS INTEGER )
----
-14
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT - COUNT( * ) * - 56 AS col1 FROM tab0 WHERE 68 NOT IN ( + + 63 * + - 54 - + + col0 )
----
168

skipif mysql # not compatible
query I rowsort label-1095
SELECT - COUNT ( * ) * - 56 AS col1 FROM tab0 WHERE 68 NOT IN ( + + 63 * + - 54 - + + col0 )
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT ALL - col0 + - CAST( - col2 AS SIGNED ) + col1 col2 FROM tab0
----
-56
113
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1096
SELECT ALL - col0 + - CAST ( - col2 AS INTEGER ) + col1 col2 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) + - + 36 * + 66 * COUNT( * ) AS col2 FROM tab2
----
-7128

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) + - + 36 * + 66 * COUNT ( * ) AS col2 FROM tab2
----
-7128

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query II rowsort
SELECT DISTINCT col2, - col1 * - 14 * + 12 + + col1 FROM tab2 AS cor0
----
23
8619
40
13013
58
11323

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

query I rowsort
SELECT DISTINCT 84 + + + col2 FROM tab1
----
143
152
180

query I rowsort
SELECT col0 * - - col0 * + 69 * - 94 + - col2 + - col0 * + ( + 10 ) AS col1 FROM tab2
----
-13724859
-26567336
-36484558

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

query I rowsort
SELECT col1 + + 28 FROM tab2 AS cor0
----
105
79
95

query I rowsort
SELECT DISTINCT - col0 * - col0 * - 71 + - 7 AS col0 FROM tab2 AS cor0
----
-150243
-290823
-399382

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1111
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + - col1 AND + col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-1111
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + - col1 AND + col1 * - col1
----

query I rowsort
SELECT ALL col2 + ( col2 ) * - + col1 AS col0 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT + col0 - + - 62 AS col1 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT 20 - - - col1 FROM tab2 AS cor0
----
-31
-47
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT + - col0 - + col2 + 15 + - + ( + col2 ) * - col1 * col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1240980
16903982
7884711

skipif mysql # not compatible
query I rowsort label-1115
SELECT + - col0 - + col2 + 15 + - + ( + col2 ) * - col1 * col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1240980
16903982
7884711

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT DISTINCT - ( - col2 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - ( - col2 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL 75 * + col1 - ( - col2 ) AS col2 FROM tab1 AS cor0
----
1146
3593
434

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN - + col0 + + + ( col2 ) + - - col2 / + col2 + - col1 AND + + 68
----
91
47
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 44 * - - 69 IS NULL
----

query I rowsort
SELECT col0 * - + 56 * - col2 + col2 + - col0 AS col0 FROM tab0
----
39512
48643
537770

query II rowsort
SELECT DISTINCT + col2 + + + col0 AS col2, - col1 - 58 * 44 + - ( col2 ) AS col2 FROM tab1
----
144
-2616
147
-2662
159
-2667

query I rowsort
SELECT col1 * - + 83 AS col2 FROM tab0
----
-1743
-6723
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1124
SELECT DISTINCT - 41 AS col2, + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1124
SELECT DISTINCT - 41 AS col2, + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
-41
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1126
SELECT col2 AS col2, - ( + col1 ) DIV - col1 AS col2 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-1126
SELECT col2 AS col2, - ( + col1 ) / - col1 AS col2 FROM tab0
----
10
1
47
1
99
1

query II rowsort
SELECT + col1, - col0 * - col2 * + ( - 52 ) * - - ( + - col2 ) AS col2 FROM tab1
----
14
24440832
47
21880768
5
15386020

query II rowsort
SELECT ALL + 82 AS col0, col2 * - ( - ( col2 ) ) FROM tab0
----
82
100
82
2209
82
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1129
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 64 AS col1 FROM tab2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 64 AS col1 FROM tab2
----
NULL
-64

query I rowsort
SELECT + - col0 / + col1 FROM tab1 AS cor0 WHERE NOT 17 = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT ALL + 77 DIV + 88 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + 77 / + 88 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT col2 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-1133
SELECT col2 / col1 col2 FROM tab2
----
0
0
0

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> - 23 * - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL + + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

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

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

query I rowsort
SELECT 64 + 18 FROM tab1 AS cor0
----
82
82
82

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col0 AND 84
----

query III rowsort
SELECT * FROM tab1 WHERE + 82 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + 19 FROM tab0
----
-2190
-81
-9782

onlyif mysql # aggregate syntax: 
query II rowsort label-1146
SELECT + 14, COUNT( * ) col1 FROM tab1
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1146
SELECT + 14, COUNT ( * ) col1 FROM tab1
----
14
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL + COUNT( * ) * + - 41 AS col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + COUNT ( * ) * + - 41 AS col2 FROM tab2 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT MAX( ALL + ( - 7 ) ) + + COUNT( * ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT MAX ( ALL + ( - 7 ) ) + + COUNT ( * ) AS col1 FROM tab1
----
-4

query I rowsort
SELECT col1 * ( - 68 ) AS col0 FROM tab2
----
-3468
-4556
-5236

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

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

query I rowsort
SELECT DISTINCT - 93 * 21 FROM tab1
----
-1953

query I rowsort
SELECT DISTINCT 15 + + 78 AS col0 FROM tab1
----
93

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

query I rowsort
SELECT ALL - 34 * col1 AS col0 FROM tab0
----
-2754
-34
-714

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

query III rowsort
SELECT * FROM tab2 WHERE + 15 + 79 <> ( + ( + 72 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT COUNT( * ) * 30 col0 FROM tab1
----
90

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= col0 - - 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT ALL 39 DIV COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL 39 / COUNT ( * ) FROM tab1
----
13

query I rowsort
SELECT - 7 * col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + 58 ) + - ( ( - col2 ) ) FROM tab2
----
116
81
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT ALL - 21 DIV - col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 21 / - col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT 72 * - 43 + col0 AS col2 FROM tab0
----
-2999
-3009
-3081

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / + col2 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-1165
SELECT COUNT ( * ) / 35 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 4 FROM tab0 WHERE - col0 <= - col1 + - 83
----
-4

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE col1 BETWEEN ( NULL ) AND - 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE ( ( 80 ) + - col0 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT 8 + - COUNT( * ) AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1169
SELECT 8 + - COUNT ( * ) AS col1 FROM tab0
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - COUNT( col1 ) + 95 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1171
SELECT - COUNT ( col1 ) + 95 FROM tab1
----
92

query I rowsort
SELECT - col2 + 30 AS col0 FROM tab0
----
-17
-69
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL MIN( col1 ) AS col1 FROM tab1 WHERE 47 / + 20 IN ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL MIN ( col1 ) AS col1 FROM tab1 WHERE 47 / + 20 IN ( 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT + COUNT( * ) + - 30 * - MAX( col1 * + 39 ) FROM tab1
----
54993

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + COUNT ( * ) + - 30 * - MAX ( col1 * + 39 ) FROM tab1
----
54993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT - col1 * CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 WHERE NOT col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1175
SELECT - col1 * CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 27 ) IN ( col1 * - col0 )
----

query I rowsort
SELECT + col0 * col0 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT ALL + ( - 52 ) * ( + col2 ) FROM tab1 cor0
----
-3068
-3536
-4992

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

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

query I rowsort
SELECT 97 * 69 AS col0 FROM tab2
----
6693
6693
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT SUM( ALL 7 ) AS col1 FROM tab2 WHERE NOT col1 / col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT SUM ( ALL 7 ) AS col1 FROM tab2 WHERE NOT col1 / col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 + + col2 AS col2 FROM tab0
----
272
7579
9508

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 95 ) IN ( - col0 )
----

query I rowsort
SELECT + 71 * 55 FROM tab2 cor0
----
3905
3905
3905

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 68 * - SUM( DISTINCT 86 * col1 ) AS col1 FROM tab1 AS cor0 WHERE ( 85 + + col0 ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 68 * - SUM ( DISTINCT 86 * col1 ) AS col1 FROM tab1 AS cor0 WHERE ( 85 + + col0 ) IN ( col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT ALL CAST( + col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL CAST ( + col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + col0 * + 73 FROM tab1 WHERE NULL IS NULL
----
3723
6205
6643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + 80 col1 FROM tab2
----
22
40
57

query I rowsort
SELECT ALL 5 + - - 15 AS col1 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT COUNT( * ) DIV - 13 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN ( - col2 ) AND 22
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT COUNT ( * ) / - 13 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN ( - col2 ) AND 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1194
SELECT COUNT( DISTINCT + col0 ) col0 FROM tab0 WHERE 89 * CAST( NULL AS DECIMAL ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1194
SELECT COUNT ( DISTINCT + col0 ) col0 FROM tab0 WHERE 89 * CAST ( NULL AS REAL ) NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL 52 AS col0 FROM tab0 WHERE 95 IS NOT NULL
----
52
52
52

query I rowsort
SELECT ALL col0 + + col1 - + col1 * 65 FROM tab2
----
-3218
-4213
-4864

query I rowsort
SELECT - 91 + + 70 AS col1 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT SUM( ALL col2 ) + 40 AS col2 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-1198
SELECT SUM ( ALL col2 ) + 40 AS col2 FROM tab0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT MIN( DISTINCT - col0 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1199
SELECT MIN ( DISTINCT - col0 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-94

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col2 * - col2 ) IN ( 21 )
----

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + col2 + col2 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col2 <> col0
----

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

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

query I rowsort
SELECT - - ( + 12 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT ALL + col1 DIV col1 * + + 10 AS col1 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + col1 / col1 * + + 10 AS col1 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-77

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 > col0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + 26 - col2 FROM tab1 WHERE NOT + col1 * - 73 * col1 NOT IN ( - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + 48 * + - MAX( DISTINCT + col2 ) FROM tab2
----
-2784

skipif mysql # not compatible
query I rowsort label-1213
SELECT + 48 * + - MAX ( DISTINCT + col2 ) FROM tab2
----
-2784

query I rowsort
SELECT DISTINCT 96 * - col1 * - col2 * + col1 * - 24 FROM tab0
----
-10160640
-228096
-710477568

query II rowsort
SELECT DISTINCT + 93 * col0, col2 AS col0 FROM tab0
----
1395
47
8091
10
9021
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT + 88 DIV col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + 88 / col1 AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT + SUM( - 23 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-1217
SELECT + SUM ( - 23 ) FROM tab1
----
-69

query I rowsort
SELECT + 96 FROM tab1 WHERE NOT + - ( - col0 ) IS NULL
----
96
96
96

query I rowsort
SELECT DISTINCT - 70 + ( + col0 + - col0 / col0 ) * col0 FROM tab1 WHERE + col1 * + col0 BETWEEN ( - col1 ) AND + col1 + col2
----

query II rowsort
SELECT - ( - - 63 ), col1 FROM tab0
----
-63
1
-63
21
-63
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT + col2 DIV col1 + + col2 AS col1 FROM tab1 AS cor0
----
102
69
70

skipif mysql # not compatible
query I rowsort label-1222
SELECT + col2 / col1 + + col2 AS col1 FROM tab1 AS cor0
----
102
69
70

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * SUM ( + + col1 ) FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT + col2 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT 38 * MIN( + col1 ) + + + COUNT( * ) col2 FROM tab1 AS cor0
----
193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1230
SELECT 38 * MIN ( + col1 ) + + + COUNT ( * ) col2 FROM tab1 AS cor0
----
193

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > + col1
----
15
81
47

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

query I rowsort
SELECT ALL ( 7 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, col0 + - col1 - - - 24 )
----

query III rowsort
SELECT DISTINCT - - 33 AS col2, 44 + - col2, - ( 31 ) * + col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to a07186b05824bfc76551d4e561504558

query I rowsort
SELECT DISTINCT + col0 * - 44 + - col1 FROM tab1 AS cor0
----
-2258
-3745
-4051

query I rowsort
SELECT DISTINCT - + 48 + + ( - col2 ) * + + col2 AS col1 FROM tab0 AS cor0
----
-148
-2257
-9849

query II rowsort
SELECT 64, col0 AS col0 FROM tab0
----
64
15
64
87
64
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1238
SELECT ALL * FROM tab0 WHERE 17 * 6 + + - col1 - col1 + CAST( col1 AS SIGNED ) * + 21 * - col0 NOT IN ( 80 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1238
SELECT ALL * FROM tab0 WHERE 17 * 6 + + - col1 - col1 + CAST ( col1 AS INTEGER ) * + 21 * - col0 NOT IN ( 80 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 - - - col0 AS col2 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT + ( 45 ) - + - COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + ( 45 ) - + - COUNT ( * ) AS col2 FROM tab0
----
48

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

query I rowsort
SELECT + col0 * + - col2 - 66 AS col0 FROM tab2 AS cor0 WHERE - 25 + 7 / + 35 IS NOT NULL
----
-1124
-2626
-4416

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT - col0 - col1 + - + col1 + + col1 DIV - - 69 FROM tab1 AS cor0
----
-185
-79
-95

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - col0 - col1 + - + col1 + + col1 / - - 69 FROM tab1 AS cor0
----
-185
-79
-95

query II rowsort
SELECT ALL + 81, - ( + - 20 ) AS col1 FROM tab0 AS cor0
----
81
20
81
20
81
20

query II rowsort
SELECT + col1 + col1, + col0 AS col2 FROM tab1
----
10
85
28
51
94
91

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

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

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab0 AS cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT - 25 * col0 * + ( + + col0 ) * - 85 AS col0 FROM tab0 AS cor0
----
16084125
19994125
478125

query I rowsort
SELECT + col0 * - col2 * + col1 + 27 * col1 FROM tab2 AS cor0
----
-195041
-289641
-52581

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT - COUNT( * ) * + 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT - COUNT ( * ) * + 17 FROM tab2
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + COUNT( + + 13 ) AS col0 FROM tab1 WHERE NOT NULL IN ( - ( - + col2 ), + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT + COUNT ( + + 13 ) AS col0 FROM tab1 WHERE NOT NULL IN ( - ( - + col2 ), + 32 )
----
0

query I rowsort
SELECT DISTINCT + 60 * - col1 AS col0 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT - 6 * col0 AS col1 FROM tab2
----
-276
-384
-450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1261
SELECT ALL * FROM tab1 WHERE NOT ( 84 * col0 * + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1261
SELECT ALL * FROM tab1 WHERE NOT ( 84 * col0 * + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> 30 * 56
----

query I rowsort
SELECT DISTINCT - 58 * + col2 FROM tab0
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT - COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1265
SELECT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT - 4 * - + 47 * - col2 + + 80 AS col0 FROM tab1 AS cor0
----
-11012
-12704
-17968

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT + + CAST( - - MAX( ALL col2 ) AS SIGNED ) FROM tab1 AS cor0
----
96

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

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( 0 / - col1 ) BETWEEN 58 AND + 31 / + - 30
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 * + - col2 * - - col1 * + + 19 + col1 * 63 AS col0 FROM tab1 AS cor0
----
-2450574
-330380
-4126271

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT - 87 DIV + 35 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 87 / + 35 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query II rowsort
SELECT DISTINCT - col0 * + + 87, - 2 AS col1 FROM tab1 AS cor0
----
-4437
-2
-7395
-2
-7917
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 + + + 61 + + col2 col0 FROM tab1 cor0 WHERE NOT + 24 IS NULL
----
184
244
267

query I rowsort
SELECT + col0 + + col0 + - + col2 + col0 FROM tab2 AS cor0
----
115
152
167

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

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

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab0 AS cor0 WHERE NOT 14 + + + 49 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT - col0 DIV - - col0 + col0 * col0 FROM tab1
----
2600
7224
8280

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - col0 / - - col0 + col0 * col0 FROM tab1
----
2600
7224
8280

query I rowsort
SELECT + - 31 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) + 85 AS col1 FROM tab1
----
-11
17
26

query I rowsort
SELECT + 0 FROM tab2 WHERE + 60 IS NULL
----

query I rowsort
SELECT DISTINCT 98 + col2 FROM tab0
----
108
145
197

query I rowsort
SELECT DISTINCT + 25 + + 1 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT + 50 - COUNT( * ) * + 96 AS col2 FROM tab1 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT + 50 - COUNT ( * ) * + 96 AS col2 FROM tab1 AS cor0
----
-238

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL + COUNT( * ) - 22 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + COUNT ( * ) - 22 FROM tab2 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT DISTINCT + + 21 * col2 + + 29 DIV + col1 AS col0 FROM tab1 cor0
----
1244
1428
2018

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + + 21 * col2 + + 29 / + col1 AS col0 FROM tab1 cor0
----
1244
1428
2018

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - 17 DIV - 99 * + 38 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1291
SELECT - 17 / - 99 * + 38 col2 FROM tab2
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 11 + - + 24 <= + + 30 + 53 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL SUM( ALL - + 98 ) AS col2 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL SUM ( ALL - + 98 ) AS col2 FROM tab0 AS cor0
----
-294

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

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

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

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

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

query I rowsort
SELECT - 88 * + col2 AS col1 FROM tab2
----
-2024
-3520
-5104

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 <> - 41 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 6 / + - 67 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + - col2 + 93 FROM tab0 AS cor0
----
192
303
3900

query I rowsort
SELECT DISTINCT + 83 * - - col0 AS col1 FROM tab2 AS cor0
----
3818
5312
6225

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1313
SELECT - - col0 col2, 37 DIV + 1 FROM tab1 AS cor0
----
51
37
85
37
91
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1313
SELECT - - col0 col2, 37 / + 1 FROM tab1 AS cor0
----
51
37
85
37
91
37

query I rowsort
SELECT ALL + + col2 + - 35 + 31 - ( - col2 ) FROM tab0 AS cor0
----
16
194
90

query II rowsort
SELECT - col0 AS col2, + ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

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

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

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

query I rowsort
SELECT ALL - 91 * col2 AS col1 FROM tab0
----
-4277
-9009
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + - col2 col0 FROM tab0 WHERE - + col1 BETWEEN - + col0 AND + col1
----
-4
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - MIN( ALL 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-1320
SELECT - MIN ( ALL 11 ) FROM tab2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - 98 DIV - COUNT( * ) col0 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT DISTINCT - 98 / - COUNT ( * ) col0 FROM tab2
----
32

query I rowsort
SELECT ALL + 65 + 90 + + col1 * + 86 AS col2 FROM tab1
----
1359
4197
585

query I rowsort
SELECT DISTINCT 77 * + 94 * - + col2 + - - col0 * + 83 * - + col0 - + - col0 FROM tab1 AS cor0
----
-1026632
-1179416
-910680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT 8 * - CAST( MAX( ALL - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
472

skipif mysql # not compatible
query I rowsort label-1324
SELECT 8 * - CAST ( MAX ( ALL - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
472

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT + ( COUNT( DISTINCT col0 ) ) + - 94 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
-94

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + ( COUNT ( DISTINCT col0 ) ) + - 94 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
-94

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

query I rowsort
SELECT ALL ( + + 44 ) AS col0 FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + ( col0 ) + + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + ( col0 ) + + 14 )
----
0

query I rowsort
SELECT DISTINCT + ( - 12 ) AS col0 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 * - + col1 >= + ( + 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT ALL COUNT( * ) AS col1, + 41 AS col1 FROM tab1 cor0
----
3
41

skipif mysql # not compatible
query II rowsort label-1334
SELECT ALL COUNT ( * ) AS col1, + 41 AS col1 FROM tab1 cor0
----
3
41

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

query I rowsort
SELECT ALL - - 43 AS col1 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT DISTINCT COUNT( * ) + + + 26 + - ( - 60 ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT COUNT ( * ) + + + 26 + - ( - 60 ) AS col1 FROM tab1
----
89

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * 42 + + col0 NOT BETWEEN + + col0 * + col2 * 74 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT 59 + - - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1342
SELECT 59 + - - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 40 * col1 FROM tab1 AS cor0
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT DISTINCT + CAST( + 45 AS SIGNED ) + - col2 * + 42 FROM tab1 AS cor0
----
-2433
-2811
-3987

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + CAST ( + 45 AS INTEGER ) + - col2 * + 42 FROM tab1 AS cor0
----
-2433
-2811
-3987

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL + - 12 + 9 + + SUM( DISTINCT - + col1 ) AS col2 FROM tab0 cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL + - 12 + 9 + + SUM ( DISTINCT - + col1 ) AS col2 FROM tab0 cor0
----
-106

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT - col2 - - 53 DIV + col0 FROM tab1 cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-1347
SELECT - col2 - - 53 / + col0 FROM tab1 cor0
----
-59
-68
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 - - col0 col0 FROM tab0 AS cor0
----
153
163
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT ALL + ( - col2 ) DIV - 7 AS col2 FROM tab0 AS cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + ( - col2 ) / - 7 AS col2 FROM tab0 AS cor0
----
1
14
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 56 * - + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col2 * + + col1, col1 + col1 AS col2 FROM tab2 AS cor0
----
-1173
102
-3080
154
-3886
134

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

query I rowsort
SELECT ALL - - 43 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT + 19 * col0 + - CAST( 5 AS SIGNED ) AS col2 FROM tab1
----
1610
1724
964

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 19 * col0 + - CAST ( 5 AS INTEGER ) AS col2 FROM tab1
----
1610
1724
964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT CAST( NULL AS SIGNED ) * - + col1 + + col0 / 83, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-1355
SELECT CAST ( NULL AS INTEGER ) * - + col1 + + col0 / 83, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT col2 - + 46 DIV + col0 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT col2 - + 46 / + col0 FROM tab0
----
10
44
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT DISTINCT - 80 * - COUNT( CAST( - + col1 AS SIGNED ) ) AS col2 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - 80 * - COUNT ( CAST ( - + col1 AS INTEGER ) ) AS col2 FROM tab0
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT ALL + 2 DIV - 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + 2 / - 92 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT DISTINCT + 53 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

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

query II rowsort
SELECT col0 * + + 87, + col1 FROM tab0
----
1305
81
7569
21
8439
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 <= + + 6 + - + col2
----
3

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 <= + + 6 + - + col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT COUNT( * ) * 82, 78 col2 FROM tab1 AS cor0
----
246
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1365
SELECT COUNT ( * ) * 82, 78 col2 FROM tab1 AS cor0
----
246
78

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 21 + + col0 FROM tab2
----
67
85
96

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

query I rowsort
SELECT 71 * - + 55 AS col1 FROM tab0
----
-3905
-3905
-3905

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

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

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

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

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

query I rowsort
SELECT + + 80 + ( - - col1 ) FROM tab2 cor0
----
131
147
157

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

query I rowsort
SELECT 64 * 86 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 170290a9f7a5bd97996fed76006177da

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1380
SELECT 70 - + + 18, + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52
9

skipif mysql # not compatible
query II rowsort label-1380
SELECT 70 - + + 18, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52
9

query II rowsort
SELECT ALL col0 + - 70 AS col2, col1 * col1 + + 55 * col1 AS col0 FROM tab2
----
-24
5406
-6
10164
5
8174

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 AS col1 FROM tab1
----
144
147
159

query II rowsort
SELECT ALL col0, 46 FROM tab1 WHERE ( NOT 49 NOT IN ( + col1, 83, - col0, + + 78 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT ALL - + col2 DIV + + col0 + + ( - 6 ) - col0 FROM tab1 AS cor0
----
-58
-91
-97

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - + col2 / + + col0 + + ( - 6 ) - col0 FROM tab1 AS cor0
----
-58
-91
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT + COUNT( * ) DIV - - SUM( + + 60 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COUNT ( * ) / - - SUM ( + + 60 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col1 - 78 AS col1 FROM tab0 AS cor0
----
-159
-79
-99

query I rowsort
SELECT - 6 - col2 AS col1 FROM tab2 AS cor0
----
-29
-46
-64

query I rowsort
SELECT col2 - + col2 + + col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( - col0 ) ) col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + col0 * + 6 AS col2 FROM tab0
----
522
582
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * - col1 col2 FROM tab1
----
-3196
-340
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + 47 * + COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 47 * + COUNT ( * ) AS col0 FROM tab1
----
141

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - 29 ) col0, 52 - - col1 * + - ( - - col2 ) col0 FROM tab2
----
-29
-1121
-29
-3028
-29
-3834

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1401
SELECT ALL - 83, - col1 - - + col2 - - col2 DIV col2 * + col2 AS col0 FROM tab2 AS cor0
----
-83
-5
-83
3
-83
49

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL - 83, - col1 - - + col2 - - col2 / col2 * + col2 AS col0 FROM tab2 AS cor0
----
-83
-5
-83
3
-83
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - + COUNT( * ) + + 5 + + 70 - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 2 * 90 + + 29 IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-1403
SELECT - + COUNT ( * ) + + 5 + + 70 - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 2 * 90 + + 29 IS NULL
----
69

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

query II rowsort
SELECT ALL col0 AS col1, - 29 AS col0 FROM tab0 AS cor0
----
15
-29
87
-29
97
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1406
SELECT - col1 AS col0, 79 * CAST( - col2 AS SIGNED ) - + + col2 AS col0 FROM tab2 AS cor0
----
-51
-1840
-67
-4640
-77
-3200

skipif mysql # not compatible
query II rowsort label-1406
SELECT - col1 AS col0, 79 * CAST ( - col2 AS INTEGER ) - + + col2 AS col0 FROM tab2 AS cor0
----
-51
-1840
-67
-4640
-77
-3200

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

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

query I rowsort
SELECT ALL + 62 + 5 * + 28 + - col0 * - + col2 + + + 13 FROM tab1 AS cor0
----
5111
5230
6403

query I rowsort
SELECT DISTINCT - col0 * + + col2 * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-1119364
-18922500
-6553600

query I rowsort
SELECT ALL - col0 + + col1 - - + col1 FROM tab1
----
-23
-75
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 NOT IN ( ( - ( + - 69 ) ), - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 59 + - col2 FROM tab0
----
-40
12
49

query I rowsort
SELECT DISTINCT - 19 * - col0 * + col0 + + - col2 AS col0 FROM tab0
----
143801
178672
4228

query III rowsort
SELECT ALL * FROM tab2 WHERE - 48 < - col0 * + + 57
----

query I rowsort
SELECT DISTINCT + 0 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1416
SELECT * FROM tab2 WHERE + 17 + + - col2 NOT IN ( - + col1, col2, + - col0 + 78 - - col0 + + 2, - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1416
SELECT * FROM tab2 WHERE + 17 + + - col2 NOT IN ( - + col1, col2, + - col0 + 78 - - col0 + + 2, - + CAST ( NULL AS INTEGER ) )
----

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

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

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

query I rowsort
SELECT col0 * - - ( - 97 ) + - 16 FROM tab1 AS cor0
----
-4963
-8261
-8843

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1420
SELECT - col2 col2 FROM tab0 AS cor0 WHERE + ( - 50 ) * CAST( + 77 AS DECIMAL ) + + + 9 >= col0 OR + 37 - + col2 > - col0 * col1 + + - col1 * col0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1420
SELECT - col2 col2 FROM tab0 AS cor0 WHERE + ( - 50 ) * CAST ( + 77 AS REAL ) + + + 9 >= col0 OR + 37 - + col2 > - col0 * col1 + + - col1 * col0
----
-10
-47
-99

query I rowsort
SELECT - 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT 78 - - col2 FROM tab2
----
101
118
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT + 50 * + - CAST( - + ( - COUNT( * ) ) AS SIGNED ) + 95 * - + MIN( 15 ) + - MAX( ALL - col1 ) * - ( - ( + COUNT( * ) ) ) * + 54 FROM tab0 cor0
----
-1413

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 50 * + - CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) + 95 * - + MIN ( 15 ) + - MAX ( ALL - col1 ) * - ( - ( + COUNT ( * ) ) ) * + 54 FROM tab0 cor0
----
-1413

query I rowsort
SELECT 14 + 52 - - col1 + col2 - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
10
179
69

query II rowsort
SELECT ALL col0, - 35 FROM tab2 AS cor0
----
46
-35
64
-35
75
-35

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 34 AS col0 FROM tab1
----
14
34
47
34
5
34

query I rowsort
SELECT - col2 * - 77 * 29 FROM tab2
----
129514
51359
89320

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL - COUNT( * ), - 11 AS col2 FROM tab0
----
-3
-11

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - COUNT ( * ), - 11 AS col2 FROM tab0
----
-3
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - COUNT( * ) * - - 46 AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-1432
SELECT - COUNT ( * ) * - - 46 AS col0 FROM tab2
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL MAX( DISTINCT + 67 ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL MAX ( DISTINCT + 67 ) AS col0 FROM tab2 AS cor0
----
67

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

skipif mysql # not compatible
query II rowsort label-1435
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col0, - 62 FROM tab1 AS cor0
----
3
-62

query I rowsort
SELECT 91 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND ( + + col0 )
----

query I rowsort
SELECT DISTINCT col2 + 56 * + col0 * col0 * - col0 * + - 85 FROM tab2
----
1247805480
2008125058
463319383

query I rowsort
SELECT DISTINCT + col2 * col0 + 73 + - - col0 AS col2 FROM tab2
----
1177
2697
4498

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT ALL 3 + col0 + - 12 DIV + ( 24 ) AS col0 FROM tab1
----
54
88
94

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL 3 + col0 + - 12 / + ( 24 ) AS col0 FROM tab1
----
54
88
94

query II rowsort
SELECT + ( + - 52 ) * - col0, + 95 * + 99 AS col0 FROM tab2
----
2392
9405
3328
9405
3900
9405

query I rowsort
SELECT ALL 11 * col1 + - - 97 FROM tab1
----
152
251
614

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL - SUM( + - col2 ) - 43 AS col2 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - SUM ( + - col2 ) - 43 AS col2 FROM tab1 AS cor0
----
180

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

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

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

skipif mysql # not compatible
query I rowsort label-1444
SELECT + - 16 + - - 27 + - - 79 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 + - - col1 FROM tab2
----
139
155
165

query I rowsort
SELECT - 68 * 28 + - col2 FROM tab1
----
-1963
-1972
-2000

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT 1 * MAX( - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1448
SELECT 1 * MAX ( - col1 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT DISTINCT + - col2 * col0 AS col2 FROM tab0 AS cor0 WHERE + 94 / col1 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + col1 * 81 + - - 91 AS col0 FROM tab2 AS cor0
----
4222
5518
6328

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( 8 ) = col1 / + col0 + + 70 / + - ( + 34 ) + + col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL MAX( ALL 42 ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL MAX ( ALL 42 ) AS col2 FROM tab2
----
42

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

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 WHERE NOT - - col0 + - - 89 >= 63 * col2
----
14
47
5

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

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

query I rowsort
SELECT ( + col2 ) * + col2 FROM tab1
----
3481
4624
9216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - MIN( 65 ) * 32 + ( + - COUNT( - 70 ) ) * 88 AS col2 FROM tab0 AS cor0
----
-2344

skipif mysql # not compatible
query I rowsort label-1461
SELECT - MIN ( 65 ) * 32 + ( + - COUNT ( - 70 ) ) * 88 AS col2 FROM tab0 AS cor0
----
-2344

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 86 FROM tab2 AS cor0
----
89

query I rowsort
SELECT DISTINCT - 55 * col2 * - - 85 AS col1 FROM tab2
----
-107525
-187000
-271150

query I rowsort
SELECT DISTINCT 1 / col0 * + col0 + + col1 AS col0 FROM tab1 WHERE + col1 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1465
SELECT DISTINCT MAX ( DISTINCT - + ( + + col1 ) ) col2 FROM tab2
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + + COUNT( ALL - + 21 ) * 94 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1467
SELECT + + COUNT ( ALL - + 21 ) * 94 FROM tab1 AS cor0
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT - col2 * - - ( col1 ) * + CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - col2 * - - ( col1 ) * + CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT DISTINCT + 27 * - + ( 27 ) FROM tab0 AS cor0
----
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT + col2 DIV + 54 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1470
SELECT + col2 / + 54 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - COUNT( * ) + - - COUNT( * ) + + 33 + + COUNT( * ) * 2 AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1471
SELECT - COUNT ( * ) + - - COUNT ( * ) + + 33 + + COUNT ( * ) * 2 AS col2 FROM tab0 AS cor0
----
39

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

query I rowsort
SELECT ALL - col0 * - ( + + 31 ) FROM tab0
----
2697
3007
465

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

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

query I rowsort
SELECT ALL ( + col2 ) * - - 12 * + col0 AS col1 FROM tab0
----
10440
115236
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1476
SELECT 39 DIV - 85 + - + ( - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1476
SELECT 39 / - 85 + - + ( - COUNT ( * ) ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 < + - 34
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - ( col0 ) + + + col2 FROM tab0
----
-77
2
32

query II rowsort
SELECT DISTINCT + col0 * - col0 AS col0, 10 * - - col2 FROM tab2
----
-2116
230
-4096
400
-5625
580

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1481
SELECT DISTINCT col1 DIV + col2 col0, - col0 FROM tab0 AS cor0
----
0
-97
1
-15
2
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1481
SELECT DISTINCT col1 / + col2 col0, - col0 FROM tab0 AS cor0
----
0
-97
1
-15
2
-87

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT col2 DIV + - CAST( - + 35 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
-23
-39
-57

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT col2 / + - CAST ( - + 35 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
-23
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 AS col0, - 87 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 4cc9e522d2a07929a44ca3afa01fca90

query I rowsort
SELECT 78 * - col1 AS col1 FROM tab1
----
-1092
-3666
-390

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

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

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

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

query I rowsort
SELECT - 61 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-61
-61
-61

query I rowsort
SELECT col1 * + col2 * 1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT 62 * + - 71 FROM tab0
----
-4402
-4402
-4402

query I rowsort
SELECT ( + - 30 ) FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT COUNT( * ) * - - MIN( - col0 ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-1497
SELECT COUNT ( * ) * - - MIN ( - col0 ) AS col0 FROM tab0
----
-291

query I rowsort
SELECT 11 * ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1067
-165
-957

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT DISTINCT + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - + 84 + - COUNT( * ) * + - 22 AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1501
SELECT - + 84 + - COUNT ( * ) * + - 22 AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + 20 + + 69 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - 13
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 9 * - 98 * - ( - 29 ) NOT IN ( + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 39 FROM tab2 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + COUNT( * ) * + 89 * + COUNT( * ) - 37 AS col0 FROM tab1 AS cor0
----
764

skipif mysql # not compatible
query I rowsort label-1505
SELECT + COUNT ( * ) * + 89 * + COUNT ( * ) - 37 AS col0 FROM tab1 AS cor0
----
764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT ALL - SUM( ALL - - CAST( col0 AS SIGNED ) ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1506
SELECT ALL - SUM ( ALL - - CAST ( col0 AS INTEGER ) ) col0 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col1 NOT BETWEEN ( + col1 ) AND - col0 / - col1 + + + col0 + 78 * - - col2 - - - 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1508
SELECT col1 DIV 26 * - + col2 - 93 FROM tab0
----
-234
-93
-93

skipif mysql # not compatible
query I rowsort label-1508
SELECT col1 / 26 * - + col2 - 93 FROM tab0
----
-234
-93
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT 77 * COUNT( * ) col1 FROM tab0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1510
SELECT DISTINCT 77 * COUNT ( * ) col1 FROM tab0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL - - SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

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

query II rowsort
SELECT - 49 AS col1, + 34 AS col1 FROM tab0 AS cor0 WHERE NOT + 7 IS NULL
----
-49
34
-49
34
-49
34

query I rowsort
SELECT ALL - 31 * col1 AS col0 FROM tab0 AS cor0
----
-2511
-31
-651

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

query I rowsort
SELECT ALL col0 * + 57 FROM tab0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - SUM( ALL + 87 ) col1 FROM tab0
----
-261

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1518
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1518
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > CAST ( - col2 AS REAL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1519
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + 92 + - COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 92 + - COUNT ( * ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT col0 + + - 48 AS col1 FROM tab0 AS cor0
----
-33
39
49

query I rowsort
SELECT + col2 * + + col1 + + col2 + - col0 AS col0 FROM tab1 cor0
----
1389
269
3173

onlyif mysql # DIV for integer division: 
query II rowsort label-1523
SELECT ALL col2, - col2 DIV 2 FROM tab1 AS cor0
----
59
-29
68
-34
96
-48

skipif mysql # not compatible
query II rowsort label-1523
SELECT ALL col2, - col2 / 2 FROM tab1 AS cor0
----
59
-29
68
-34
96
-48

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

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

query I rowsort
SELECT + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + 88 col0 FROM tab0 AS cor0
----
-1
-73
9

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT DISTINCT col1 * - col2 + - - 68 - + 9 AS col0 FROM tab2
----
-1114
-3021
-3827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL + CAST( NULL AS SIGNED ) * + 8 + 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL + CAST ( NULL AS INTEGER ) * + 8 + 42 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1533
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-1533
SELECT + - CAST ( NULL AS REAL ) FROM tab2 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL - COUNT( * ) + - CAST( 97 AS SIGNED ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - COUNT ( * ) + - CAST ( 97 AS INTEGER ) FROM tab1
----
-100

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL NOT BETWEEN - - 34 AND NULL
----

query I rowsort
SELECT ALL col2 - + 20 AS col1 FROM tab0
----
-10
27
79

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

query I rowsort
SELECT DISTINCT col0 - - col1 + + + col0 FROM tab2
----
143
205
217

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 22 ) col0 FROM tab2 AS cor0
----
22

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

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

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

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

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

query II rowsort
SELECT 74 AS col0, - 30 AS col0 FROM tab0
----
74
-30
74
-30
74
-30

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

query I rowsort
SELECT ALL - 50 * - col1 AS col1 FROM tab1
----
2350
250
700

onlyif mysql # DIV for integer division: 
query II rowsort label-1551
SELECT DISTINCT + col0 DIV + col0, 10 AS col1 FROM tab0
----
1
10

skipif mysql # not compatible
query II rowsort label-1551
SELECT DISTINCT + col0 / + col0, 10 AS col1 FROM tab0
----
1
10

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

skipif mysql # not compatible
query I rowsort label-1552
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( - col1 ) ) IN ( - 69 + + col1 + col1, 86 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1553
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( - col1 ) ) IN ( - 69 + + col1 + col1, 86 - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1555
SELECT DISTINCT + - col1 * + - 25 + + col0, col0 AS col2 FROM tab0 AS cor0 WHERE NULL < - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1555
SELECT DISTINCT + - col1 * + - 25 + + col0, col0 AS col2 FROM tab0 AS cor0 WHERE NULL < - ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col2 * + col0 * + col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT ALL + col0 * + col0 * 60 AS col0 FROM tab2 AS cor0
----
126960
245760
337500

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

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

query I rowsort
SELECT - col2 * + 32 AS col0 FROM tab2
----
-1280
-1856
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - 75 * - 69 + - - 51 + - MIN( - 96 ) FROM tab0
----
5322

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - 75 * - 69 + - - 51 + - MIN ( - 96 ) FROM tab0
----
5322

query II rowsort
SELECT + col1 * - col1 AS col0, col0 FROM tab2
----
-2601
46
-4489
75
-5929
64

query I rowsort
SELECT DISTINCT + col0 * - - col0 * + 37 * - col2 FROM tab2
----
-12071250
-1800716
-6062080

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT + 78 * - COUNT( * ) col1 FROM tab1
----
-234

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT + + 97 NOT BETWEEN NULL AND - 48
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - - 48 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 41 FROM tab2 AS cor0 WHERE + col2 = 93
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT + MAX( DISTINCT - col0 ) + - - ( - 24 ) + - + 44 col0 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1570
SELECT DISTINCT + MAX ( DISTINCT - col0 ) + - - ( - 24 ) + - + 44 col0 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT ALL col2 * + 52 AS col0 FROM tab0 AS cor0
----
2444
5148
520

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT ALL - - 73 - CAST( - - 71 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - - 73 - CAST ( - - 71 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 42 col1, col2 AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
42
59
42
68
42
96

query I rowsort
SELECT DISTINCT + col1 - col2 + + col2 * - col0 FROM tab2 cor0
----
-1030
-2523
-4341

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

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

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

query I rowsort
SELECT + + 89 FROM tab0 WHERE - col2 + col2 <> - 70
----
89
89
89

query I rowsort
SELECT ALL col0 + - col2 + 71 FROM tab0
----
148
39
69

query I rowsort
SELECT ALL 53 * + col2 - col0 FROM tab1
----
3042
3513
5037

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 < NULL
----

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

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

query II rowsort
SELECT 67 * - + col1 AS col1, ( - col2 ) FROM tab2 AS cor0
----
-3417
-23
-4489
-58
-5159
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 77 AS col0, 85 col2 FROM tab0 AS cor0
----
77
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 99
----

query I rowsort
SELECT DISTINCT 87 * + - col2 FROM tab2 AS cor0
----
-2001
-3480
-5046

query I rowsort
SELECT DISTINCT + col2 * + - 36 AS col1 FROM tab1 AS cor0
----
-2124
-2448
-3456

query I rowsort
SELECT ALL + col0 + + ( - col2 ) FROM tab0 AS cor0
----
-2
-32
77

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

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

query II rowsort
SELECT ALL col0 AS col0, 29 + + col0 FROM tab1
----
51
80
85
114
91
120

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

query I rowsort
SELECT ALL 94 * 75 + 83 + + 88 AS col1 FROM tab2
----
7221
7221
7221

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT col2 DIV - + 12 + + col0 AS col2 FROM tab1
----
43
81
86

skipif mysql # not compatible
query I rowsort label-1596
SELECT col2 / - + 12 + + col0 AS col2 FROM tab1
----
43
81
86

query I rowsort
SELECT 42 + - + col1 FROM tab0 cor0
----
-39
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + col2 * 42 FROM tab2
----
1720
2494
989

query I rowsort
SELECT DISTINCT - col2 + - - col2 FROM tab2
----
0

query I rowsort
SELECT + col0 * - + col2 - - + 56 AS col1 FROM tab1
----
-4840
-4959
-6132

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

skipif mysql # not compatible
query III rowsort label-1602
SELECT ALL * FROM tab0 WHERE ( + + CAST ( NULL AS INTEGER ) ) <> - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL + COUNT( * ) - + 28 + + - CAST( + 92 AS SIGNED ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + COUNT ( * ) - + 28 + + - CAST ( + 92 AS INTEGER ) FROM tab0 AS cor0
----
-117

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

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

query I rowsort
SELECT ALL col2 - - col2 + col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT + col0 + col1 + + col1 * col2 + col1 FROM tab0 AS cor0
----
198
339
3984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1607
SELECT DISTINCT - + col0 AS col0, + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT 26 - col2 BETWEEN NULL AND - ( col1 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1607
SELECT DISTINCT - + col0 AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT 26 - col2 BETWEEN NULL AND - ( col1 ) + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 52 AS col2 FROM tab0 AS cor0 WHERE 0 IS NULL
----

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

query I rowsort
SELECT ALL + col1 * + + col2 * - col2 + - col1 + col0 FROM tab1 AS cor0
----
-128987
-17325
-217284

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + + col1 <= + + ( - 21 ) + + - 55
----

query I rowsort
SELECT - 69 FROM tab2 AS cor0 WHERE + 28 * - col0 + - col2 NOT IN ( col0 - col0, col2 * col2 / - 21, 97, + + col1 + - col0, - 13 ) OR - col0 + + col1 + + - col2 IS NOT NULL
----
-69
-69
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1617
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) * CAST( - 47 AS SIGNED ) AND + 49 * 89
----

skipif mysql # not compatible
query III rowsort label-1617
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) * CAST ( - 47 AS INTEGER ) AND + 49 * 89
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL < ( CAST( NULL AS SIGNED ) * - 67 )
----

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL < ( CAST ( NULL AS INTEGER ) * - 67 )
----

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT + COUNT ( - 71 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - 35 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * col2 + ( - 9 + + ( col0 ) ) * + 96 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
16368
4336
8288

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL + SUM( + 52 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 61 - + col2 * 57 AND - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL + SUM ( + 52 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 61 - + col2 * 57 AND - 56
----
NULL

query I rowsort
SELECT ALL - 94 FROM tab2 WHERE NOT - col2 BETWEEN col1 AND ( NULL )
----
-94
-94
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT 83 DIV col0 + 12 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1626
SELECT 83 / col0 + 12 FROM tab2
----
13
13
13

query I rowsort
SELECT 59 * 53 AS col2 FROM tab2
----
3127
3127
3127

query I rowsort
SELECT 89 FROM tab0 WHERE NULL <= 5
----

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

query I rowsort
SELECT DISTINCT 72 * + col2 + col2 FROM tab0
----
3431
7227
730

query I rowsort
SELECT DISTINCT col0 * 90 AS col2 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT 20 * + 19 FROM tab1
----
380
380
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT SUM( col1 ) + 30 col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1633
SELECT SUM ( col1 ) + 30 col0 FROM tab1
----
96

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + 98 AND ( - 84 )
----

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

query I rowsort
SELECT 13 - + 6 AS col1 FROM tab0 WHERE NOT 71 * 59 IN ( + col0 )
----
7
7
7

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT + col0 + 33 DIV col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1639
SELECT + col0 + 33 / col1 FROM tab2
----
46
64
75

query I rowsort
SELECT - col0 + - 39 AS col0 FROM tab1
----
-124
-130
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT col1 BETWEEN ( 34 ) AND NULL
----
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT CAST( NULL AS SIGNED ) + + ( col1 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - 4 )
----

skipif mysql # not compatible
query I rowsort label-1642
SELECT CAST ( NULL AS INTEGER ) + + ( col1 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - 4 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1643
SELECT DISTINCT col1 * + col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST( - 12 AS DECIMAL ) AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT col1 * + col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST ( - 12 AS REAL ) AND ( + col0 )
----

query I rowsort
SELECT DISTINCT 3 * + col1 AS col1 FROM tab1 AS cor0
----
141
15
42

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

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

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

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

query I rowsort
SELECT col0 + - col1 * 19 AS col0 FROM tab2 AS cor0
----
-1198
-1399
-923

query I rowsort
SELECT DISTINCT - 11 + 63 FROM tab0 AS cor0
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1650
SELECT * FROM tab1 AS cor0 WHERE - ( + col0 ) * - CAST( + col2 * - 81 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1650
SELECT * FROM tab1 AS cor0 WHERE - ( + col0 ) * - CAST ( + col2 * - 81 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT 51 + MAX( - col2 ) AS col0 FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1651
SELECT 51 + MAX ( - col2 ) AS col0 FROM tab1 cor0
----
-8

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND + col0 * ( - col1 )
----

query I rowsort
SELECT 23 * col0 + col1 FROM tab1 AS cor0
----
1187
1960
2140

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT ALL MIN( - col0 ) DIV COUNT( * ) col2 FROM tab2
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT ALL MIN ( - col0 ) / COUNT ( * ) col2 FROM tab2
----
-25

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL NOT BETWEEN - 27 AND 44
----

query I rowsort
SELECT ALL + 89 + col1 AS col0 FROM tab1
----
103
136
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1658
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1658
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1659
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - CAST( + col1 AS SIGNED ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1659
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - CAST ( + col1 AS INTEGER ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( col0 + - 68 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + 36 - + COUNT( * ) * - 68 col2 FROM tab0 AS cor0
----
240

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1662
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
0

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

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

query I rowsort
SELECT ALL + - col1 * + col2 - - 56 * 80 AS col0 FROM tab2 AS cor0
----
1400
3307
594

query I rowsort
SELECT DISTINCT 61 * - col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 55 NOT BETWEEN + col2 * - 97 AND ( ( + col0 ) )
----
85
91

query I rowsort
SELECT + col0 * 77 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT - - 73 * CAST( col0 * 5 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
16790
23360
27375

skipif mysql # not compatible
query I rowsort label-1668
SELECT - - 73 * CAST ( col0 * 5 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
16790
23360
27375

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

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

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

query I rowsort
SELECT - 89 * + + 76 * - 49 AS col1 FROM tab1
----
331436
331436
331436

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

query I rowsort
SELECT ALL + 43 * ( + col0 ) AS col2 FROM tab2
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT SUM( DISTINCT + 49 ) AS col1 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-1674
SELECT SUM ( DISTINCT + 49 ) AS col1 FROM tab0 cor0
----
49

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( 54 ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + 14 * + col1 NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + 14 * + col1 NOT IN ( - col1 )
----
3

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

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

query I rowsort
SELECT - col2 * + col1 * - col2 + + 44 FROM tab0 AS cor0
----
178973
2144
9845

query I rowsort
SELECT ALL + col2 * + 85 * - col1 FROM tab2 AS cor0
----
-261800
-330310
-99705

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL + SUM( + col1 ) AS col1 FROM tab1 WHERE NULL >= ( + + col0 * ( 93 ) + - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + SUM ( + col1 ) AS col1 FROM tab1 WHERE NULL >= ( + + col0 * ( 93 ) + - 11 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 4 ) = 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 82 * col0 AS col1 FROM tab0
----
-1230
-7134
-7954

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - COUNT( ALL + 38 ) DIV - 99 FROM tab1 AS cor0 WHERE NOT 5 * + + 11 <= - col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - COUNT ( ALL + 38 ) / - 99 FROM tab1 AS cor0 WHERE NOT 5 * + + 11 <= - col2 + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1686
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + + col0 + ( 54 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-1686
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + + col0 + ( 54 ) AND col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT col0 DIV + + 49 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1688
SELECT col0 / + + 49 FROM tab1 AS cor0
----
1
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 * - col1 >= ( 31 )
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 * - col1 >= ( 31 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + 71 * - + col0 AS col2 FROM tab2
----
-3317
-4621
-5392

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + 71 * - + col0 AS col2 FROM tab2
----
-3317
-4621
-5392

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 69 * + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-207

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 69 * + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-207

query I rowsort
SELECT DISTINCT col0 + - + col0 - + col0 * 85 * 79 + col0 FROM tab1
----
-342414
-570690
-610974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL - 79 + + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - 79 + + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT col2 + + + col1 + + + CAST( 58 AS SIGNED ) + + col2 FROM tab2
----
155
215
241

skipif mysql # not compatible
query I rowsort label-1698
SELECT col2 + + + col1 + + + CAST ( 58 AS INTEGER ) + + col2 FROM tab2
----
155
215
241

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 + + - col0 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - 18 + 99 * col2 NOT BETWEEN - 95 AND 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - SUM( col1 ) col1 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1701
SELECT - SUM ( col1 ) col1 FROM tab0 WHERE NULL <= NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1702
SELECT COUNT ( * ) col0 FROM tab1 WHERE + + col2 NOT IN ( + 9 )
----
3

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

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

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

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

query I rowsort
SELECT DISTINCT - - ( - - col1 ) * - 73 * 35 + 37 AS col0 FROM tab0 AS cor0
----
-206918
-2518
-53618

query III rowsort
SELECT * FROM tab2 WHERE ( + - 61 ) BETWEEN ( 19 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL SUM( - + col2 ) + + + 96 FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL SUM ( - + col2 ) + + + 96 FROM tab1
----
-127

query I rowsort
SELECT + col1 - - 87 FROM tab2
----
138
154
164

query I rowsort
SELECT ALL - col0 * + - col0 * - 40 FROM tab2 WHERE + col2 IS NOT NULL
----
-163840
-225000
-84640

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT DISTINCT + col2 + + + col1 DIV + col0 + + 33 FROM tab0
----
132
43
85

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + col2 + + + col1 / + col0 + + 33 FROM tab0
----
132
43
85

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + - 71 * + col0 * + 54 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT MAX ( + + col2 ) * - - ( - 97 ) AS col0 FROM tab1 AS cor0
----
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT + col2 DIV - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1714
SELECT + col2 / - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT - ( + - CAST( - col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - ( + - CAST ( - col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 6 * - + 32 AS col0 FROM tab0
----
-192

query I rowsort
SELECT + col0 * + ( - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT col1, 65 * col2 AS col1 FROM tab0
----
1
6435
21
650
81
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + 77 * SUM( col1 ) FROM tab1
----
5082

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + 77 * SUM ( col1 ) FROM tab1
----
5082

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - ( + ( col0 ) ) < + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT ALL + 44 DIV - col1 FROM tab0
----
-2
-44
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + 44 / - col1 FROM tab0
----
-2
-44
0

query I rowsort
SELECT DISTINCT col2 * 99 * + 90 FROM tab0
----
418770
882090
89100

query I rowsort
SELECT ALL 84 AS col0 FROM tab0 cor0 WHERE + 66 * + col1 IS NOT NULL
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - 65 AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - 65 AS col2 FROM tab1
----
-195

query I rowsort
SELECT DISTINCT - 72 + + - col2 FROM tab0
----
-119
-171
-82

query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT NULL <> col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL - 40 DIV - - ( 29 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - 40 / - - ( 29 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 51 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT col2 DIV ( - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1732
SELECT col2 / ( - col0 ) FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 40
----

query I rowsort
SELECT ALL + 49 + + col1 FROM tab1
----
54
63
96

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

query I rowsort
SELECT col2 - 66 + - - 25 FROM tab1
----
18
27
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab2
----
104
133
69

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 2 * col1 + - ( + 71 ) < ( - col2 )
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE 78 NOT BETWEEN ( + - 52 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE 78 NOT BETWEEN ( + - 52 ) AND NULL
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col1 + - 13 )
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 91 > ( + + 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT DISTINCT + SUM( CAST( + col0 AS SIGNED ) ) * + - COUNT( * ) FROM tab2 AS cor0
----
-555

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT - COUNT( 77 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - COUNT ( 77 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 45 - 52 >= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1748
SELECT ALL col0, col0 + + col2 AS col0, + - col0 DIV 57 FROM tab1
----
9 values hashing to 4cbc11cad8e407848fe9c543d0f6d13d

skipif mysql # not compatible
query III rowsort label-1748
SELECT ALL col0, col0 + + col2 AS col0, + - col0 / 57 FROM tab1
----
9 values hashing to 4cbc11cad8e407848fe9c543d0f6d13d

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - - 8, col2 )
----

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT - + 84 - + 96 IS NOT NULL
----

query I rowsort
SELECT + + col0 * col2 + + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT - col2 * + col1 * - - 31 + + + 90 AS col0 FROM tab2 AS cor0
----
-120376
-36273
-95390

query I rowsort
SELECT ALL - AVG ( ALL col0 ) + - 34 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > - ( - col0 )
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL + 6 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + 6 / col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT 66 + + col0 * - + 12 + - col0 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 NOT BETWEEN NULL AND - 73
----

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

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

query I rowsort
SELECT ALL + 89 FROM tab1 AS cor0 WHERE NOT + col1 + - 32 IS NOT NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT DISTINCT - 66 * + 35 + col0 + + + CAST( + 67 AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
1153
2254
2913

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1764
SELECT DISTINCT - 66 * + 35 + col0 + + + CAST ( + 67 AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
1153
2254
2913

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT - - 32 DIV + col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-1766
SELECT - - 32 / + col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
83

query II rowsort
SELECT + 97 + - + col0 AS col2, 96 + - col0 FROM tab2 AS cor0
----
22
21
33
32
51
50

query I rowsort
SELECT ALL + 95 + - col1 + - col2 + + 68 AS col0 FROM tab2 AS cor0
----
38
46
89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 88 ) * + ( col0 ) col0 FROM tab1
----
-4488
-7480
-8008

query I rowsort
SELECT - col2 + - col2 - - + ( - col2 ) * - ( col2 ) * - - col1 * + - 7 - + col0 AS col0 FROM tab1
----
-122038
-1521523
-903411

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL 74 + + + COUNT( * ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 74 + + + COUNT ( * ) AS col0 FROM tab0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL COUNT( * ) + + 57 AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL COUNT ( * ) + + 57 AS col1 FROM tab1
----
60

query I rowsort
SELECT DISTINCT 52 * + 68 - + col1 AS col1 FROM tab0
----
3455
3515
3535

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1778
SELECT - CAST( NULL AS SIGNED ) AS col2, - col1 * - - col2 AS col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-1778
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col1 * - - col2 AS col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT DISTINCT SUM( 95 ) col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1779
SELECT DISTINCT SUM ( 95 ) col2 FROM tab0 AS cor0
----
285

query II rowsort
SELECT ALL + - col0, + col2 - - col1 + - 10 AS col1 FROM tab2 AS cor0
----
-46
64
-64
107
-75
115

query I rowsort
SELECT DISTINCT ( - 87 ) AS col0 FROM tab1 cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT MIN( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT MIN ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + ( MIN( - 25 ) ) * - 60 FROM tab1
----
1500

skipif mysql # not compatible
query I rowsort label-1783
SELECT + ( MIN ( - 25 ) ) * - 60 FROM tab1
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT - 56 * + 33 * + COUNT( * ) FROM tab2
----
-5544

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - 56 * + 33 * + COUNT ( * ) FROM tab2
----
-5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + - 98 col0 FROM tab1
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT COUNT( * ) * - 38 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-1786
SELECT COUNT ( * ) * - 38 FROM tab1
----
-114

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

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

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - - MAX ( col1 ) FROM tab2 cor0
----
77

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

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

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1791
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col0, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1791
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT COUNT( * ) + + 52 * + 64 AS col1, MIN( DISTINCT - col2 ) FROM tab1
----
3331
-96

skipif mysql # not compatible
query II rowsort label-1792
SELECT COUNT ( * ) + + 52 * + 64 AS col1, MIN ( DISTINCT - col2 ) FROM tab1
----
3331
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab1, tab0 cor0 WHERE NULL IS NULL
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

query I rowsort
SELECT ALL 76 * - - 96 AS col0 FROM tab0 cor0
----
7296
7296
7296

query I rowsort
SELECT DISTINCT + - 12 * + + 76 FROM tab0 AS cor0
----
-912

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT + - SUM ( + col0 ) FROM tab1 AS cor0
----
-227

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT col0 DIV - ( + - col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT col0 / - ( + - col0 ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + + - col0 col1 FROM tab1
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT + MIN( + 9 ) - - - MIN( DISTINCT + + 65 ) + - ( + 96 ) AS col0 FROM tab0
----
-152

skipif mysql # not compatible
query I rowsort label-1801
SELECT + MIN ( + 9 ) - - - MIN ( DISTINCT + + 65 ) + - ( + 96 ) AS col0 FROM tab0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 74 NOT IN ( - col0, - col1 * + ( + 74 ) * 66, + col0 ) AND NULL IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 74 NOT IN ( - col0, - col1 * + ( + 74 ) * 66, + col0 ) AND NULL IN ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - - SUM( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT - - SUM ( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col1 - + - col1, 55 * - col0 AS col1 FROM tab0
----
162
-825
2
-5335
42
-4785

query I rowsort
SELECT - 32 - - col2 FROM tab0
----
-22
15
67

query I rowsort
SELECT - - col1 * ( ( + - 95 ) ) FROM tab1 AS cor0
----
-1330
-4465
-475

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1810
SELECT + + col0 AS col1, 19 + col0 + - - ( - 40 ) + 76 DIV + 10 AS col2 FROM tab0 cor0
----
15
1
87
73
97
83

skipif mysql # not compatible
query II rowsort label-1810
SELECT + + col0 AS col1, 19 + col0 + - - ( - 40 ) + 76 / + 10 AS col2 FROM tab0 cor0
----
15
1
87
73
97
83

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT + + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT COUNT( * ) DIV COUNT( * ) + + 51 * - 94 FROM tab2 AS cor0
----
-4793

skipif mysql # not compatible
query I rowsort label-1814
SELECT COUNT ( * ) / COUNT ( * ) + + 51 * - 94 FROM tab2 AS cor0
----
-4793

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 / - - 57 <> - 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT ALL - ( - + col1 ) / + 21 * + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0 WHERE - 48 > NULL
----

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - ( - + col1 ) / + 21 * + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0 WHERE - 48 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT MIN( - - col2 ) AS col2, + 68 FROM tab2 cor0
----
23
68

skipif mysql # not compatible
query II rowsort label-1817
SELECT MIN ( - - col2 ) AS col2, + 68 FROM tab2 cor0
----
23
68

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

query I rowsort
SELECT DISTINCT + 82 + 40 AS col2 FROM tab0 WHERE NULL BETWEEN + col1 + 64 AND col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - MAX ( ALL - ( + - col0 ) ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT - col1 * - 6 AS col2 FROM tab1
----
282
30
84

query I rowsort
SELECT + 98 + - - 20 FROM tab2 AS cor0
----
118
118
118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL COUNT( DISTINCT + + col2 ) + + - COUNT( * ) * COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL COUNT ( DISTINCT + + col2 ) + + - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-6

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

query I rowsort
SELECT DISTINCT ( - - 40 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
40

query I rowsort
SELECT col2 - - col0 + - col1 * - 36 FROM tab2
----
1905
2545
2876

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL COUNT ( * ) + MIN ( - col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-228

query I rowsort
SELECT ALL col0 * + + col2 * + col0 - col2 * - 14 FROM tab1 AS cor0
----
251040
427101
564060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 + col0 col1 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-51
-85
-91

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 16 col2 FROM tab2
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL - COUNT( * ) + - 84 AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - COUNT ( * ) + - 84 AS col2 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT COUNT( * ), 29 AS col1 FROM tab0
----
3
29

skipif mysql # not compatible
query II rowsort label-1841
SELECT COUNT ( * ), 29 AS col1 FROM tab0
----
3
29

query I rowsort
SELECT ALL - 5 * + + col0 FROM tab0
----
-435
-485
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT DISTINCT col2 * - col0 DIV col0 * 11 FROM tab2
----
-253
-440
-638

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT col2 * - col0 / col0 * 11 FROM tab2
----
-253
-440
-638

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - col0 IS NULL
----

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 91 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + MAX( DISTINCT col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1847
SELECT + MAX ( DISTINCT col0 ) FROM tab1
----
91

query I rowsort
SELECT + + col1 * - 84 FROM tab1 WHERE NOT NULL = - + col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - col2 / - col2 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE 24 < + 10
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - 42 + + + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - 42 + + + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1855
SELECT ALL - COUNT( * ) + + 90 * - CAST( NULL AS SIGNED ) * 73 col0 FROM tab0 WHERE + - col2 + 76 = ( col2 * + col2 - - - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1855
SELECT ALL - COUNT ( * ) + + 90 * - CAST ( NULL AS INTEGER ) * 73 col0 FROM tab0 WHERE + - col2 + 76 = ( col2 * + col2 - - - col0 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT - MIN ( - ( - col1 ) ) AS col1 FROM tab0
----
-1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - - 65 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT ALL 57 + + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-1860
SELECT ALL 57 + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
60
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT MAX( DISTINCT + col0 ) * MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE ( + col1 * - col1 ) IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT MIN( 69 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT MIN ( 69 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
69

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

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

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

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

query I rowsort
SELECT - col1 * + col1 - + col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT - - col2 - + ( col1 ) FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1868
SELECT - CAST( + - MIN( DISTINCT - col0 ) AS DECIMAL ) col0 FROM tab0 WHERE NOT + - col2 + - ( 38 ) * - 68 / - 53 < + 88
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1868
SELECT - CAST ( + - MIN ( DISTINCT - col0 ) AS REAL ) col0 FROM tab0 WHERE NOT + - col2 + - ( 38 ) * - 68 / - 53 < + 88
----
NULL

query I rowsort
SELECT - 12 * + - 89 - - col1 FROM tab0 WHERE NOT - + 0 / col0 * + + col1 NOT BETWEEN + + col2 AND - col0 + 25
----

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

query I rowsort
SELECT ALL + - col2 * col0 FROM tab0 WHERE - + col2 < NULL
----

query I rowsort
SELECT 74 * col0 + + 60 FROM tab0 AS cor0
----
1170
6498
7238

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - 70 * + col2 col2 FROM tab1 AS cor0
----
-4155
-6916
-6969

query I rowsort
SELECT DISTINCT - + col0 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-2162
-4160
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * col2 col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL - col2 + - 36 AS col2 FROM tab0
----
-135
-46
-83

query I rowsort
SELECT DISTINCT - col1 + + 8 FROM tab1
----
-39
-6
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 83 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1880
SELECT DISTINCT + col2 AS col0, - col0 DIV - 23 col0 FROM tab2 AS cor0
----
23
2
40
2
58
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1880
SELECT DISTINCT + col2 AS col0, - col0 / - 23 col0 FROM tab2 AS cor0
----
23
2
40
2
58
3

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 / - 76 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT + SUM( + col1 ) + + 14 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + SUM ( + col1 ) + + 14 FROM tab0 AS cor0
----
117

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + + MIN( 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-1884
SELECT + + MIN ( 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
69

query I rowsort
SELECT 42 + - 19 * - + col1 AS col2 FROM tab1 AS cor0
----
137
308
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT - COUNT( * ) DIV 73 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( * ) / 73 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT ALL + + ( + col2 ) AS col1, - 29 FROM tab2 AS cor0
----
23
-29
40
-29
58
-29

query II rowsort
SELECT DISTINCT + col0 * + col1 AS col0, - col2 + - - col1 FROM tab0 AS cor0
----
1215
34
1827
11
97
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL MAX( 92 ) AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL MAX ( 92 ) AS col0 FROM tab2
----
92

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

query I rowsort
SELECT ALL + col2 - + col0 * - - col0 AS col2 FROM tab1 WHERE NOT + col2 + - 31 = NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT COUNT ( * ) * + + ( MAX ( ALL col2 ) ) AS col0 FROM tab1
----
288

query I rowsort
SELECT ALL - col0 * - 72 AS col2 FROM tab0
----
1080
6264
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - MAX( ALL - 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1897
SELECT - MAX ( ALL - 26 ) FROM tab2
----
26

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

query II rowsort
SELECT ALL + col2 AS col2, ( ( - col1 ) ) + - 6 FROM tab1 AS cor0
----
59
-11
68
-53
96
-20

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

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL MIN( 51 ) * - + COUNT( * ) + + - COUNT( * ) col2 FROM tab1 AS cor0 WHERE - 34 < + col1
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1901
SELECT ALL MIN ( 51 ) * - + COUNT ( * ) + + - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE - 34 < + col1
----
-156

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

query I rowsort
SELECT ALL 22 * + 5 FROM tab1
----
110
110
110

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1904
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( col2 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1904
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( col2 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0 * col0, + col2 + 46 * - - col2 AS col0 FROM tab1 AS cor0
----
2601
4512
7225
2773
8281
3196

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT - COUNT ( * ) * + + 7 FROM tab1 cor0
----
-21

query I rowsort
SELECT DISTINCT + 63 * col0 - + 27 + 77 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT SUM( - + 47 ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT SUM ( - + 47 ) FROM tab0 AS cor0
----
-141

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1910
SELECT DISTINCT * FROM tab0 WHERE + + col1 * - col2 - - col2 / + col1 < + col0 * CAST( NULL AS SIGNED ) * - + ( + 18 ) * + col1 + - - col0 + 89
----

skipif mysql # not compatible
query III rowsort label-1910
SELECT DISTINCT * FROM tab0 WHERE + + col1 * - col2 - - col2 / + col1 < + col0 * CAST ( NULL AS INTEGER ) * - + ( + 18 ) * + col1 + - - col0 + 89
----

query I rowsort
SELECT ALL 27 * col0 + col2 - - 14 - - 63 AS col0 FROM tab0
----
2436
2795
529

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

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

query I rowsort
SELECT ALL col0 + 29 + col1 AS col2 FROM tab2
----
126
170
171

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT 34 + 34 * - 26 * + col2 IS NULL
----
1
21
81

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

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

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

query I rowsort
SELECT - ( + 73 ) + col2 FROM tab2 AS cor0
----
-15
-33
-50

query I rowsort
SELECT - col0 + - 93 AS col0 FROM tab2
----
-139
-157
-168

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 45 - + + ( - 80 ) / col0 IS NULL
----
23
40
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT + - COUNT( * ) + CAST( NULL AS SIGNED ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1921
SELECT DISTINCT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT ( - + 60 ) AS col0, + COUNT( * ) * + MIN( DISTINCT 17 ) + - 57 FROM tab1 AS cor0
----
-60
-6

skipif mysql # not compatible
query II rowsort label-1923
SELECT ( - + 60 ) AS col0, + COUNT ( * ) * + MIN ( DISTINCT 17 ) + - 57 FROM tab1 AS cor0
----
-60
-6

query I rowsort
SELECT - col0 * - + col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT DISTINCT CAST( SUM( - 87 ) AS SIGNED ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT CAST ( SUM ( - 87 ) AS INTEGER ) FROM tab1
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + COUNT( * ) * - + MIN( col0 ), - MIN( ALL - col2 ) AS col2 FROM tab2
----
-138
58

skipif mysql # not compatible
query II rowsort label-1927
SELECT + COUNT ( * ) * - + MIN ( col0 ), - MIN ( ALL - col2 ) AS col2 FROM tab2
----
-138
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1929
SELECT ALL * FROM tab0 WHERE NOT + 28 * col0 + CAST( NULL AS SIGNED ) NOT IN ( 35, col2 )
----

skipif mysql # not compatible
query III rowsort label-1929
SELECT ALL * FROM tab0 WHERE NOT + 28 * col0 + CAST ( NULL AS INTEGER ) NOT IN ( 35, col2 )
----

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

query I rowsort
SELECT DISTINCT + 79 * - - col1 FROM tab0 AS cor0
----
1659
6399
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - + COUNT( + col0 ) * 55 FROM tab0 WHERE 39 >= + + 18
----
-165

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - + COUNT ( + col0 ) * 55 FROM tab0 WHERE 39 >= + + 18
----
-165

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 36
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - ( - 23 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1936
SELECT + col2 AS col1, col1 - - - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1936
SELECT + col2 AS col1, col1 - - - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT 76 * + - col0 * + 89 FROM tab0 cor0
----
-101460
-588468
-656108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT - CAST( col1 AS SIGNED ) * + 82 AS col1 FROM tab0 AS cor0
----
-1722
-6642
-82

skipif mysql # not compatible
query I rowsort label-1938
SELECT - CAST ( col1 AS INTEGER ) * + 82 AS col1 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT + 54 DIV + + 20 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1939
SELECT + 54 / + + 20 AS col2 FROM tab1 AS cor0
----
2
2
2

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

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

query I rowsort
SELECT DISTINCT + 55 + - col2 FROM tab1 AS cor0
----
-13
-4
-41

query I rowsort
SELECT ALL + col1 + - 91 - - + col0 + + col2 * 27 AS col0 FROM tab0 AS cor0
----
1274
2680
287

query I rowsort
SELECT + - col1 + col1 * - + col2 AS col1 FROM tab2 cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL COUNT( * ) + + 2 + 13 AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL COUNT ( * ) + + 2 + 13 AS col2 FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + 35 >= NULL
----

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

query II rowsort
SELECT ALL - 8 + 84, col2 AS col1 FROM tab1
----
76
59
76
68
76
96

query I rowsort
SELECT DISTINCT + 16 * + + 45 FROM tab0 WHERE NOT - + 51 * + col2 * + col1 <> + 36
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 = + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1951
SELECT ALL ( col2 ) - CAST( NULL AS DECIMAL ) + + col2 * + 13 * + - col0 / col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT ALL ( col2 ) - CAST ( NULL AS REAL ) + + col2 * + 13 * + - col0 / col2 col2 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - 67 - - col2 AS col0 FROM tab2
----
-27
-44
-9

query I rowsort
SELECT ALL ( + 85 ) * - - col0 AS col1 FROM tab1 AS cor0
----
4335
7225
7735

query I rowsort
SELECT - col0 * - - col2 * 1 - - + 54 AS col0 FROM tab2 AS cor0
----
-1004
-2506
-4296

query I rowsort
SELECT DISTINCT - col2 * col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

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

skipif mysql # not compatible
query I rowsort label-1957
SELECT + col1 / + 78 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - 84 - + 3 + col1 + + col1 * + 17 + + - 79 FROM tab2 AS cor0
----
1040
1220
752

query I rowsort
SELECT ALL + ( - 99 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + ( + 97 ) - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT DISTINCT - + SUM( - + 74 ) AS col0, + COUNT( * ) * - + 96 AS col1 FROM tab2 AS cor0
----
222
-288

skipif mysql # not compatible
query II rowsort label-1961
SELECT DISTINCT - + SUM ( - + 74 ) AS col0, + COUNT ( * ) * - + 96 AS col1 FROM tab2 AS cor0
----
222
-288

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1963
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT COUNT( * ) AS col2, 67 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-1967
SELECT COUNT ( * ) AS col2, 67 FROM tab0 AS cor0
----
3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + 11 * - COUNT( ALL + - 24 ) * - 41 * 93 FROM tab2 cor0
----
125829

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + 11 * - COUNT ( ALL + - 24 ) * - 41 * 93 FROM tab2 cor0
----
125829

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT COUNT( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT COUNT ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 78 * + 41 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 + + + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - - 41 ) FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + - AVG ( - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col0 * - - 40 AS col1 FROM tab0
----
-3480
-3880
-600

query II rowsort
SELECT DISTINCT col2 AS col2, 39 + + col0 * - col1 FROM tab2
----
23
-2307
40
-4889
58
-4986

query II rowsort
SELECT col2, - 12 * 68 FROM tab0
----
10
-816
47
-816
99
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) + + 6 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 6 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - 8 * - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 8 * - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT DISTINCT SUM( DISTINCT - col0 ), - 46 AS col2 FROM tab2 AS cor0
----
-185
-46

skipif mysql # not compatible
query II rowsort label-1979
SELECT DISTINCT SUM ( DISTINCT - col0 ), - 46 AS col2 FROM tab2 AS cor0
----
-185
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / col1 * - col0 col2 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 - + + col0 * + col0 * - + 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL + - 48 * 13 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + - 48 * 13 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
1872

query I rowsort
SELECT ALL - + col1 + col0 + - col1 FROM tab0 AS cor0
----
-147
45
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1983
SELECT DISTINCT + col2 * - 15 + + - 92 AS col1, CAST( + col1 AS SIGNED ) FROM tab1
----
-1112
47
-1532
14
-977
5

skipif mysql # not compatible
query II rowsort label-1983
SELECT DISTINCT + col2 * - 15 + + - 92 AS col1, CAST ( + col1 AS INTEGER ) FROM tab1
----
-1112
47
-1532
14
-977
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + MAX( + 81 ) FROM tab1 WHERE col2 + + + 18 + - - col1 * + - 76 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT + MAX ( + 81 ) FROM tab1 WHERE col2 + + + 18 + - - col1 * + - 76 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 + + 9 + + col1 col1 FROM tab2
----
19
35
45

query I rowsort
SELECT DISTINCT col1 * col2 + + + col0 AS col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT DISTINCT + col2 * - col2 - + 87 FROM tab1
----
-3568
-4711
-9303

query I rowsort
SELECT + 48 - + - col0 FROM tab2
----
112
123
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1989
SELECT - + col1 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT - + col1 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT DISTINCT - + 90 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1260
4230
450

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - + 90 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT ALL - 33 * - 94 + + col1 FROM tab0 AS cor0
----
3103
3123
3183

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT ALL - col0 DIV 62 * + col2 FROM tab2 AS cor0
----
-40
-58
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - col0 / 62 * + col2 FROM tab2 AS cor0
----
-40
-58
0

query I rowsort
SELECT + + ( - 93 ) AS col2 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT - - CAST( + + 31 AS SIGNED ) FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-1994
SELECT - - CAST ( + + 31 AS INTEGER ) FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT - col1 * + + col2 - + + 42 FROM tab2 cor0
----
-1215
-3122
-3928

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1997
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL - SUM( ALL col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1998
SELECT ALL - SUM ( ALL col0 ) col2 FROM tab0
----
-199

query I rowsort
SELECT - col2 + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT - 68 + + ( + + 28 ) FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT - COUNT( * ) DIV + 28 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - COUNT ( * ) / + 28 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab1 WHERE NOT NULL = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT 23, + SUM( DISTINCT col0 ) AS col0 FROM tab0
----
23
199

skipif mysql # not compatible
query II rowsort label-2004
SELECT 23, + SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
23
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT - 50 * - + col2 - CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
2397
5049
510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT - 50 * - + col2 - CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
2397
5049
510

query I rowsort
SELECT + col1 - col1 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT 15 + - + col2, ( - - 36 ) * col1 AS col2 FROM tab1 AS cor0
----
-44
180
-53
1692
-81
504

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT DISTINCT + COUNT( * ), - MAX( ALL ( - - ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-2008
SELECT DISTINCT + COUNT ( * ), - MAX ( ALL ( - - ( - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT - SUM( DISTINCT + 65 ) AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - SUM ( DISTINCT + 65 ) AS col0 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT ( - SUM( - 2 ) ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT ( - SUM ( - 2 ) ) FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT ALL 76 + 15 AS col0, + SUM( DISTINCT 26 ) * 52 AS col0 FROM tab2 AS cor0
----
91
1352

skipif mysql # not compatible
query II rowsort label-2011
SELECT ALL 76 + 15 AS col0, + SUM ( DISTINCT 26 ) * 52 AS col0 FROM tab2 AS cor0
----
91
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 65 ) - - - col0 * + 6 FROM tab2
----
-211
-319
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT col1 FROM tab1 WHERE - + col2 - - CAST( NULL AS SIGNED ) NOT BETWEEN 19 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2014
SELECT col1 FROM tab1 WHERE - + col2 - - CAST ( NULL AS INTEGER ) NOT BETWEEN 19 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * + ( - - col2 ) + - ( + 89 ) FROM tab2
----
2471
4261
969

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT 22 DIV - 19 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2016
SELECT 22 / - 19 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1 * - + col0
----

query I rowsort
SELECT 67 * - - 54 AS col2 FROM tab2
----
3618
3618
3618

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT ALL + + col0 * + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL + + col0 * + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) + + 3 FROM tab1
----
-11
-2
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2023
SELECT ALL + col2 + + CAST( NULL AS DECIMAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + col2 + + CAST ( NULL AS REAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + ( col2 ) FROM tab0
----
196
62
97

query I rowsort
SELECT col2 * + - 93 * + col0 FROM tab0
----
-65565
-80910
-893079

onlyif mysql # DIV for integer division: 
query II rowsort label-2026
SELECT ALL - col1 DIV + col1 col0, - 28 FROM tab2
----
-1
-28
-1
-28
-1
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2026
SELECT ALL - col1 / + col1 col0, - 28 FROM tab2
----
-1
-28
-1
-28
-1
-28

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0, col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 99 / - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col2 + - col1 - col2 * - - 46 * + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - COUNT( DISTINCT - col2 ) + + 63 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2031
SELECT - COUNT ( DISTINCT - col2 ) + + 63 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT - MIN( - + ( 87 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT - MIN ( - + ( 87 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - ( 83 ) + ( + COUNT( * ) ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-2033
SELECT - ( 83 ) + ( + COUNT ( * ) ) AS col0 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT COUNT( * ) * + 87 - 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
766

skipif mysql # not compatible
query I rowsort label-2034
SELECT COUNT ( * ) * + 87 - 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
766

query I rowsort
SELECT ALL + col1 + col0 + - + col1 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + COUNT( + 5 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2036
SELECT + COUNT ( + 5 ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL + 75 + - col0 FROM tab0
----
-12
-22
60

query I rowsort
SELECT + col0 * - 28 + - 3 + + col0 FROM tab0 AS cor0
----
-2352
-2622
-408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 + + 62 * - 89, col2 - - 35 + - ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL - MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col2 - + + col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - MIN( + - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - MIN ( + - col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + col0 AND - col1
----

query II rowsort
SELECT 93 - + + col2 * 18 * + + col1 AS col1, ( + - col1 ) - - 81 AS col2 FROM tab1
----
-24099
67
-5217
76
-57435
34

query I rowsort
SELECT ALL col0 + 13 FROM tab1
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT COUNT( + 4 ) - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( + 4 ) - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT 1 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT 1 / + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2049
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + CAST( + col2 AS SIGNED ) AND ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2049
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + CAST ( + col2 AS INTEGER ) AND ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2050
SELECT - CAST( NULL AS DECIMAL ) * col0 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT - CAST ( NULL AS REAL ) * col0 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT + + 76 AS col2, ( 40 ) + + 69 + - + COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
76
106

skipif mysql # not compatible
query II rowsort label-2051
SELECT + + 76 AS col2, ( 40 ) + + 69 + - + COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
76
106

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col1 - - col2 IS NOT NULL
----

query I rowsort
SELECT + 97 * + col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + 91 AS col1 FROM tab1 cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT - + MAX( DISTINCT - ( - 54 ) ) FROM tab1 AS cor0 WHERE 0 / + 45 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT - + MAX ( DISTINCT - ( - 54 ) ) FROM tab1 AS cor0 WHERE 0 / + 45 IS NULL
----
NULL

query I rowsort
SELECT - - 30 * - 87 FROM tab0 AS cor0
----
-2610
-2610
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT MIN( col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2057
SELECT MIN ( col0 ) col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL COUNT( * ) + ( + - ( - 34 ) ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL COUNT ( * ) + ( + - ( - 34 ) ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT - ( - 26 ) + - - 31 * 44 AS col1 FROM tab1
----
1390

query I rowsort
SELECT DISTINCT + col1 + + ( + ( 49 ) ) AS col2 FROM tab0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2, tab1 cor0
----
-9

query I rowsort
SELECT col2 + + + ( - col2 ) * - + col1 AS col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + ( + col0 ), - CAST( NULL AS SIGNED ) + + col1, 76, + + 58 + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + ( + col0 ), - CAST ( NULL AS INTEGER ) + + col1, 76, + + 58 + 17 )
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE - - col2 * + - col2 - + + col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - + ( - 51 ) AS col1 FROM tab1 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + ( - 21 ) + - col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2068
SELECT DISTINCT col2 * - + CAST( NULL AS DECIMAL ) * + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT col2 * - + CAST ( NULL AS REAL ) * + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT + col1 * + + 32 * 0 * + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT + col1 * + + 32 * 0 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + + 73 * col0 + + col1 FROM tab1 AS cor0
----
3686
6125
6599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT DISTINCT 12 + + CAST( NULL AS SIGNED ) * - col1 FROM tab0 WHERE NOT ( col1 * 9 ) < 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT 12 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 WHERE NOT ( col1 * 9 ) < 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT - col0 DIV + 99 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT - col0 / + 99 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT - 61 DIV col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 61 / col0 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) AS col2 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT COUNT( * ) DIV + MAX( DISTINCT - col1 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT COUNT ( * ) / + MAX ( DISTINCT - col1 ) col2 FROM tab2
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 58
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 NOT IN ( - 35 )
----

query I rowsort
SELECT ALL + col2 + col2 * + col2 FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT ALL - 60 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 51 * + 77 AS col1 FROM tab1
----
3927
3927
3927

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col2 IS NULL
----
46
64
75

query I rowsort
SELECT - 58 * 10 AS col2 FROM tab0
----
-580
-580
-580

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT COUNT( * ) + 3 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2086
SELECT COUNT ( * ) + 3 FROM tab1
----
6

query I rowsort
SELECT 75 * - col1 AS col0 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT ALL + ( + 13 ) + + 87 FROM tab1
----
100
100
100

query I rowsort
SELECT col0 + 46 FROM tab0
----
133
143
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + col1 * ( 44 ) > col1 / col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2091
SELECT ALL * FROM tab1 WHERE NOT ( col2 / - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2091
SELECT ALL * FROM tab1 WHERE NOT ( col2 / - CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( col2 * - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT - col2 DIV - col2 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2093
SELECT - col2 / - col2 + col0 FROM tab2
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + col1 DIV 14 + col1 FROM tab0
----
1
22
86

skipif mysql # not compatible
query I rowsort label-2094
SELECT + col1 / 14 + col1 FROM tab0
----
1
22
86

query I rowsort
SELECT col2 + 41 FROM tab0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND 51
----
140
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT + COUNT( * ) - 6 AS col2 FROM tab2 WHERE col0 * col0 <> NULL
----
-6

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + COUNT ( * ) - 6 AS col2 FROM tab2 WHERE col0 * col0 <> NULL
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + 4 IS NULL
----

query I rowsort
SELECT DISTINCT - 21 - - col2 * + col0 FROM tab1
----
4875
4994
6167

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND - col1
----
59
68
96

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 19
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2103
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2103
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT - col2 * col0 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2104
SELECT CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT - col2 * col0 IS NULL
----
23
40
58

query I rowsort
SELECT ALL - 0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
441
6561

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - ( 11 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 + 5 FROM tab2 cor0
----
28
45
63

query I rowsort
SELECT DISTINCT + 37 + + col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 68 = col0
----
-388
-4240
-677

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 42 * - 1 NOT BETWEEN 79 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 27 <= ( NULL )
----

query I rowsort
SELECT - ( ( 92 ) ) FROM tab1 AS cor0
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / + col2 ) IS NULL
----

query I rowsort
SELECT ALL 51 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - 93 / 95 )
----

query I rowsort
SELECT DISTINCT col1 * 52 * col2 + col1 * col1 AS col2 FROM tab0
----
11361
204525
5149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT ALL + 70 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL + 70 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT - col2 col1 FROM tab0 WHERE CAST( - col2 AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2118
SELECT - col2 col1 FROM tab0 WHERE CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col1 * + col2 * - col2 + ( + col1 + 11 ) FROM tab2
----
123288
225466
27041

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + ( 70 ) FROM tab1
----
3290
350
980

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - 2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + 75 * - - 47 AS col2 FROM tab0
----
3525
3525
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * ( - ( - 9 ) ) col2 FROM tab0 WHERE col2 - - col0 > - col1 * - col0
----
648

query I rowsort
SELECT + 82 + + 34 FROM tab2 AS cor0
----
116
116
116

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN - 50 * 18 AND col1 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN + 96 AND NULL
----

query I rowsort
SELECT DISTINCT + 24 + - + col0 FROM tab2
----
-22
-40
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 57 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2129
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 57 col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * col1 + col1 AS col2 FROM tab2 WHERE - 1 BETWEEN - 68 AND + col2
----
2652
4556
6006

query I rowsort
SELECT 90 + - ( col0 + 65 / 39 ) FROM tab2 AS cor0 WHERE NULL <> 69
----

query I rowsort
SELECT DISTINCT - 4 * + 85 * 60 FROM tab2 AS cor0
----
-20400

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1 * - col1 + - col2
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( 38 ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT DISTINCT + + col2 DIV - col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT + + col2 / - col0 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab0 AS cor0
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - - ( + 92 ) * - col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 53 * - - col1 + 99 * 75 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + 33 + col0 BETWEEN 74 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL SUM( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 / + 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2144
SELECT MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT DISTINCT + MAX( col0 ) AS col2, + ( - MIN( ALL - col2 ) ) AS col2 FROM tab0 AS cor0
----
97
99

skipif mysql # not compatible
query II rowsort label-2145
SELECT DISTINCT + MAX ( col0 ) AS col2, + ( - MIN ( ALL - col2 ) ) AS col2 FROM tab0 AS cor0
----
97
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 76 + + 92 * + 99 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0 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-2147
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2149
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL + + MIN( - 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + + MIN ( - 7 ) FROM tab1 AS cor0
----
-7

query II rowsort
SELECT DISTINCT - + 54 * ( col0 ) AS col1, - 53 AS col1 FROM tab0 AS cor0
----
-4698
-53
-5238
-53
-810
-53

query I rowsort
SELECT - 3 + + 70 AS col2 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT ALL 7 + COUNT( * ) * COUNT( - col2 ) AS col0, - 30 AS col2 FROM tab1
----
16
-30

skipif mysql # not compatible
query II rowsort label-2153
SELECT ALL 7 + COUNT ( * ) * COUNT ( - col2 ) AS col0, - 30 AS col2 FROM tab1
----
16
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - COUNT( * ) * - - COUNT( * ) - + COUNT( * ) * + - 82 AS col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2154
SELECT - COUNT ( * ) * - - COUNT ( * ) - + COUNT ( * ) * + - 82 AS col0 FROM tab0 AS cor0
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 68, + 55 + + col2 col1 FROM tab2 AS cor0
----
-68
113
-68
78
-68
95

query I rowsort
SELECT ALL - - col1 - - + 22 AS col2 FROM tab2 AS cor0
----
73
89
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col1 NOT BETWEEN NULL AND + + col1 * - CAST( NULL AS SIGNED ) + - 79 + col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col1 NOT BETWEEN NULL AND + + col1 * - CAST ( NULL AS INTEGER ) + - 79 + col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT CAST( + 81 AS SIGNED ) FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-2158
SELECT CAST ( + 81 AS INTEGER ) FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT - MIN( 46 ) AS col2 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT - MIN ( 46 ) AS col2 FROM tab0 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 37 * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 9 * + col1 - - col1 >= NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT col0 AS col2, - 18 AS col0 FROM tab2
----
46
-18
64
-18
75
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 14 col0 FROM tab0
----
1134
14
294

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN + 89 * - + col0 AND + + col0
----

query I rowsort
SELECT DISTINCT + col1 * + - col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - + 18 / - 65 BETWEEN ( NULL ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2168
SELECT col2, + col2 + - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
59
144
68
159
96
147

skipif mysql # not compatible
query II rowsort label-2168
SELECT col2, + col2 + - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
59
144
68
159
96
147

query II rowsort
SELECT DISTINCT 93 AS col0, col2 + - col1 FROM tab1 AS cor0
----
93
21
93
54
93
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT 56 / + MAX( ALL + col2 ) * - ( - + 47 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT 56 / + MAX ( ALL + col2 ) * - ( - + 47 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col2 * - + 24 col1 FROM tab2
----
-28106
-73856
-93189

query II rowsort
SELECT + col2 + + col1 AS col1, - 93 FROM tab1
----
110
-93
115
-93
64
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 BETWEEN - + col2 * - col1 + - col0 + 65 + col1 AND ( 82 - col0 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab2 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + ( - - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2176
SELECT + ( - - COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + + 20 AS col2 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT * FROM tab2 WHERE - - 83 >= NULL
----

query II rowsort
SELECT ALL col1 * + col0 + + + col1, + col2 AS col0 FROM tab2
----
2397
23
5005
40
5092
58

query I rowsort
SELECT DISTINCT + ( - col0 ) * + 25 + col0 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT ALL + 72 AS col1 FROM tab1 WHERE ( - col2 + ( - + 48 ) ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT - col2 DIV - ( + - col2 ) - + 10 FROM tab0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2182
SELECT - col2 / - ( + - col2 ) - + 10 FROM tab0
----
-11
-11
-11

query II rowsort
SELECT col0 - + col1 + + - col0, - col0 * + col1 AS col2 FROM tab0
----
-1
-97
-21
-1827
-81
-1215

query I rowsort
SELECT DISTINCT + 81 + col0 FROM tab0
----
168
178
96

query I rowsort
SELECT 76 + col2 AS col2 FROM tab0
----
123
175
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 - - + 72 col1 FROM tab0 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 80 col0 FROM tab1 AS cor0
----
-29
11
5

query I rowsort
SELECT 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT - 34 DIV 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT - 34 / 99 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2191
SELECT DISTINCT * FROM tab0 WHERE - - col0 + CAST( - col2 AS DECIMAL ) NOT IN ( + - col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2191
SELECT DISTINCT * FROM tab0 WHERE - - col0 + CAST ( - col2 AS REAL ) NOT IN ( + - col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * ( 74 ) * - - col2, + col1 col1 FROM tab2 AS cor0
----
189440
77
321900
67
78292
51

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 + - + col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT DISTINCT - ( 49 ) * - 14 FROM tab1 AS cor0
----
686

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0
----

query II rowsort
SELECT ALL col1 * - col0 AS col0, col1 AS col0 FROM tab1
----
-425
5
-4277
47
-714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - 19 * + - COUNT( - col1 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - 19 * + - COUNT ( - col1 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + COUNT( * ) * 1 * - - 91 col0 FROM tab2
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2198
SELECT + COUNT ( * ) * 1 * - - 91 col0 FROM tab2
----
273

query I rowsort
SELECT ALL ( - + 96 ) FROM tab2
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2, col0 )
----

query II rowsort
SELECT DISTINCT - 5 * + col2 AS col0, + col2 * + col1 * + ( + 87 ) * - col2 + - 60 * + 47 AS col0 FROM tab0 AS cor0
----
-235
-15569643
-495
-855507
-50
-185520

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT + 9 DIV + 63 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 9 / + 63 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + COUNT( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2204
SELECT + COUNT ( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE 49 BETWEEN NULL AND - col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT - 80 * ( 47 ) * - col0 AS col0 FROM tab2
----
172960
240640
282000

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL MAX( ALL + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL MAX ( ALL + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - 48 + - 83 AS col1 FROM tab2 AS cor0
----
2365
3133
3613

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - 48 + - 83 AS col1 FROM tab2 AS cor0
----
2365
3133
3613

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - + COUNT( * ) + + 47 AS col1 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-2210
SELECT - + COUNT ( * ) + + 47 AS col1 FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT DISTINCT 0 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2211
SELECT DISTINCT 0 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - MAX( - 75 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - MAX ( - 75 ) AS col1 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 28 * col2 col2 FROM tab2 AS cor0
----
1184
1699
690

query I rowsort
SELECT - + 72 + col1 + - 21 FROM tab1 AS cor0
----
-46
-79
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 + + col1 * + col0 + col2 + col0 FROM tab1 AS cor0
----
4527
654
912

query I rowsort
SELECT DISTINCT - - 59 * - col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL COUNT( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL COUNT ( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-88

query II rowsort
SELECT ALL 79 + + col1 + col2, + 91 AS col2 FROM tab1 AS cor0
----
143
91
189
91
194
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2220
SELECT DISTINCT 99 + + col0 + + ( 50 ) * col2 - - + col1 * - CAST( col1 AS SIGNED ) * - CAST( + col2 AS SIGNED ) + - ( + 67 ) - - - col0 DIV - - 20 + + col2 + col0 * ( 15 DIV col1 + - col0 DIV + col1 ) FROM tab0
----
-2681
310811
4687

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT 99 + + col0 + + ( 50 ) * col2 - - + col1 * - CAST ( col1 AS INTEGER ) * - CAST ( + col2 AS INTEGER ) + - ( + 67 ) - - - col0 / - - 20 + + col2 + col0 * ( 15 / col1 + - col0 / + col1 ) FROM tab0
----
-2681
310811
4687

query I rowsort
SELECT ALL ( + - col2 ) + - col1 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 WHERE 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT + COUNT( DISTINCT + - 75 ) - + - 5 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + COUNT ( DISTINCT + - 75 ) - + - 5 FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE - - 6 IN ( + col2 + - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MIN( col0 ) - + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MIN ( col0 ) - + COUNT ( * ) AS col0 FROM tab0
----
12

query I rowsort
SELECT ALL - 90 - + + col0 AS col2 FROM tab2
----
-136
-154
-165

query I rowsort
SELECT ALL 0 + + 26 * + 96 AS col2 FROM tab0
----
2496
2496
2496

query I rowsort
SELECT + + col2 - + 82 FROM tab1 cor0
----
-14
-23
14

query I rowsort
SELECT ALL 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT + COUNT( - + 24 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2231
SELECT + COUNT ( - + 24 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( - - ( - 67 ) ) AS col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - ( + 35 ) FROM tab1 cor0
----
-35

query I rowsort
SELECT ALL + col1 + + 43 AS col0 FROM tab0 AS cor0 WHERE col1 + - col1 - + col1 IS NOT NULL
----
124
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT COUNT( * ) * - MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2235
SELECT COUNT ( * ) * - MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT 88 * + - CAST( - col0 AS SIGNED ) FROM tab0
----
1320
7656
8536

skipif mysql # not compatible
query I rowsort label-2236
SELECT 88 * + - CAST ( - col0 AS INTEGER ) FROM tab0
----
1320
7656
8536

query II rowsort
SELECT - 5 * - 93 AS col0, 82 * + col0 FROM tab2
----
465
3772
465
5248
465
6150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + ( - + col1 ) col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT - 17 DIV 76 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT - 17 / 76 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT - col0 + - + 78 AS col2, col2 AS col2 FROM tab2 AS cor0
----
-124
23
-142
40
-153
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2241
SELECT * FROM tab2 AS cor0 WHERE CAST( - col2 AS SIGNED ) > - - col1 * - - col0 - - col1 - + - 23 + + 48
----

skipif mysql # not compatible
query III rowsort label-2241
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col2 AS INTEGER ) > - - col1 * - - col0 - - col1 - + - 23 + + 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2243
SELECT CAST( col0 AS SIGNED ) + - col1 AS col1, col1 FROM tab1
----
37
14
44
47
80
5

skipif mysql # not compatible
query II rowsort label-2243
SELECT CAST ( col0 AS INTEGER ) + - col1 AS col1, col1 FROM tab1
----
37
14
44
47
80
5

query I rowsort
SELECT - + col0 - - col1 AS col0 FROM tab2 WHERE + ( 95 ) * + + ( + col1 ) / - 78 IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - 78 * - SUM( + ( + col2 ) ) AS col1 FROM tab0 WHERE - 3 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - 78 * - SUM ( + ( + col2 ) ) AS col1 FROM tab0 WHERE - 3 IS NULL
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL + SUM( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + SUM ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT + ( - - COUNT( * ) ) DIV 27 * + COUNT( ALL + 30 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT + ( - - COUNT ( * ) ) / 27 * + COUNT ( ALL + 30 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 98 + - + 48 / + - col0 AND - col1
----

query I rowsort
SELECT ALL col2 * - 69 + + 74 + + 11 AS col2 FROM tab2 AS cor0
----
-1502
-2675
-3917

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT col0 DIV - col0 + col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-2251
SELECT col0 / - col0 + col1 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT ALL - COUNT( ALL + col0 ) DIV 50 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2252
SELECT ALL - COUNT ( ALL + col0 ) / 50 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 + - - col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT - COUNT( * ) + + + 54 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - COUNT ( * ) + + + 54 FROM tab1
----
51

query I rowsort
SELECT + col0 - - + col2 AS col0 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( - 48 + + col0 + - 45, + col1 + col1, - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT - ( + 95 ) - + - 55 DIV - col1 + + col0 AS col2 FROM tab2
----
-20
-31
-50

skipif mysql # not compatible
query I rowsort label-2257
SELECT - ( + 95 ) - + - 55 / - col1 + + col0 AS col2 FROM tab2
----
-20
-31
-50

query I rowsort
SELECT DISTINCT 23 + + - 64 - - col2 * + - col0 FROM tab1
----
-4937
-5056
-6229

query I rowsort
SELECT 35 + + + 38 AS col0 FROM tab2
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT + + MAX( + + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2260
SELECT + + MAX ( + + col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT - + MIN( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2261
SELECT - + MIN ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - + 92 AS col0 FROM tab2 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2263
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2263
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + - col1 * 27 * - col1 FROM tab2 AS cor0
----
121145
160043
70204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2265
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col0 / - + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col0 / - + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2266
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 * + - CAST( - col2 AS SIGNED ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2266
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 * + - CAST ( - col2 AS INTEGER ) * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
-295880
-420737
-470002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - col0 * - ( + 74 ) col2 FROM tab2
----
123136
144300
88504

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE NOT NULL = col2
----

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT 79 * COUNT( * ) + + SUM( DISTINCT + 67 ) col2 FROM tab1 AS cor0
----
304

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2271
SELECT DISTINCT 79 * COUNT ( * ) + + SUM ( DISTINCT + 67 ) col2 FROM tab1 AS cor0
----
304

query II rowsort
SELECT - col2 AS col1, - 29 FROM tab1 cor0
----
-59
-29
-68
-29
-96
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2273
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + ( - 65 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + ( - 65 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 59 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-59

query I rowsort
SELECT + col1 - 53 AS col1 FROM tab1
----
-39
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - 43 + ( SUM( DISTINCT - col0 ) ) * + 16 FROM tab1 AS cor0
----
-3675

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 43 + ( SUM ( DISTINCT - col0 ) ) * + 16 FROM tab1 AS cor0
----
-3675

query I rowsort
SELECT DISTINCT - col2 * + 25 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT ALL COUNT( 56 ) DIV - 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL COUNT ( 56 ) / - 63 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT DISTINCT 28, COUNT( * ) AS col2 FROM tab0 AS cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT 28, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE col2 * + col1 NOT IN ( - 27, col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2280
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE col2 * + col1 NOT IN ( - 27, col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT ALL - col0 DIV col2 + + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - col0 / col2 + + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
6

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT DISTINCT + COUNT( DISTINCT + col0 ) DIV + 80 * - 33 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) / + 80 * - 33 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL 83 * - MAX( ALL - col0 ) + + + MAX( ALL col1 ) - + COUNT( * ) * + - COUNT( * ) * 45 FROM tab2
----
4300

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL 83 * - MAX ( ALL - col0 ) + + + MAX ( ALL col1 ) - + COUNT ( * ) * + - COUNT ( * ) * 45 FROM tab2
----
4300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2286
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2286
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 99 ) col2 FROM tab1
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( + + col1 / - col2 * col2 / + col2 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( + + col1 / - col2 * col2 / + col2 + - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2289
SELECT ALL + - col1 / CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + - col1 / CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col2, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2291
SELECT DISTINCT 18, + COUNT( * ) * + 26 * - + CAST( MIN( ALL - col0 ) AS SIGNED ) AS col0 FROM tab2
----
18
5850

skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT 18, + COUNT ( * ) * + 26 * - + CAST ( MIN ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab2
----
18
5850

query I rowsort
SELECT 91 * + - 91 AS col2 FROM tab0
----
-8281
-8281
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT MIN( + - 18 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2293
SELECT MIN ( + - 18 ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + + COUNT( * ) + - 44 AS col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2294
SELECT + + COUNT ( * ) + - 44 AS col0 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT ALL - col1 * - 65 FROM tab0 AS cor0
----
1365
5265
65

query I rowsort
SELECT 14 + + col0 * - + col0 AS col1 FROM tab1 AS cor0 WHERE - 98 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2298
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 72 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 72 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN ( - 93 ) AND NULL
----

query I rowsort
SELECT ALL col0 * - 32 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + SUM( ALL + 18 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2302
SELECT + SUM ( ALL + 18 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2303
SELECT ( 20 ), + 25 * - COUNT( * ) AS col2 FROM tab2
----
20
-75

skipif mysql # not compatible
query II rowsort label-2303
SELECT ( 20 ), + 25 * - COUNT ( * ) AS col2 FROM tab2
----
20
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL 19 * + - 33 + + + COUNT( * ) AS col0 FROM tab0
----
-624

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL 19 * + - 33 + + + COUNT ( * ) AS col0 FROM tab0
----
-624

query I rowsort
SELECT DISTINCT 94 FROM tab0 WHERE + + 9 + - + col2 NOT BETWEEN - - col1 * col0 * col2 AND ( 22 )
----
94

query I rowsort
SELECT - col1 FROM tab1 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT - ( - + COUNT( DISTINCT col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - ( - + COUNT ( DISTINCT col2 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + - 1 FROM tab2
----
22
39
57

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 37 IS NOT NULL )
----

query I rowsort
SELECT + col2 + - + col1 - + + col0 * + 44 FROM tab2 AS cor0
----
-2052
-2853
-3309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col2 NOT BETWEEN + 35 AND ( + 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT 43 + - + COUNT( * ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT 43 + - + COUNT ( * ) AS col2 FROM tab2
----
40

query III rowsort
SELECT * FROM tab0 WHERE + col1 = - col1
----

query I rowsort
SELECT DISTINCT 29 - + col2 * - + ( - col2 ) FROM tab2
----
-1571
-3335
-500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2316
SELECT DISTINCT * FROM tab0 WHERE - CAST( + col2 AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2316
SELECT DISTINCT * FROM tab0 WHERE - CAST ( + col2 AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 65 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + 49 - + col2 col1 FROM tab1 AS cor0
----
-193
-196
-208

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 74 IS NULL
----

query I rowsort
SELECT 97 - + + 35 AS col1 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT - 73 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2321
SELECT - 73 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT - 77 * + col1 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT + 78 DIV - 36 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 78 / - 36 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + col2 * + 10 FROM tab1
----
590
680
960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2325
SELECT * FROM tab2 WHERE NOT - - CAST( + - col1 AS SIGNED ) - + col0 > - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2325
SELECT * FROM tab2 WHERE NOT - - CAST ( + - col1 AS INTEGER ) - + col0 > - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL + COUNT( * ) * - 99 AS col0 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + COUNT ( * ) * - 99 AS col0 FROM tab2
----
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2327
SELECT 53, - COUNT( DISTINCT + col1 ) * - SUM( + + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
53
-363

skipif mysql # not compatible
query II rowsort label-2327
SELECT 53, - COUNT ( DISTINCT + col1 ) * - SUM ( + + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
53
-363

query I rowsort
SELECT DISTINCT 70 * - + col2 * + - 86 AS col1 FROM tab1
----
355180
409360
577920

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL < - 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2331
SELECT * FROM tab2 WHERE NOT + - col1 NOT IN ( col0, - col0 * + col2, + - CAST( NULL AS SIGNED ) - - 68 )
----

skipif mysql # not compatible
query III rowsort label-2331
SELECT * FROM tab2 WHERE NOT + - col1 NOT IN ( col0, - col0 * + col2, + - CAST ( NULL AS INTEGER ) - - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT + col0 DIV + ( + 90 ) AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT + col0 / + ( + 90 ) AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL + SUM( DISTINCT - col0 ) AS col1, + 13 AS col2 FROM tab1 AS cor0
----
-227
13

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL + SUM ( DISTINCT - col0 ) AS col1, + 13 AS col2 FROM tab1 AS cor0
----
-227
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + MAX( 17 ) * + COUNT( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT + MAX ( 17 ) * + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - - ( + - 15 ) OR NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col0 - + 50 NOT BETWEEN NULL AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 39 AS col2 FROM tab1 cor0
----
39
39
39

query II rowsort
SELECT + col1 * - - col2 AS col0, - col0 + - + col2 FROM tab2 AS cor0
----
1173
-69
3080
-104
3886
-133

query I rowsort
SELECT ALL - col1 * - 47 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 73 + + col0 + - - ( col0 ) * 49 * - - col1 AS col0 FROM tab2 cor0
----
114927
241463
246227

query II rowsort
SELECT ( - col0 ) * + col2 * - - col1 + + - col2 AS col1, - col0 FROM tab2 AS cor0
----
-197160
-64
-291508
-75
-53981
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL - COUNT( * ) + - ( + - 5 ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - COUNT ( * ) + - ( + - 5 ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL + col1 + - ( col1 ) AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col0 + + + 69 AS col0 FROM tab2
----
-6
23
5

query I rowsort
SELECT ALL 7 + - 56 + + 78 * - col2 AS col0 FROM tab2
----
-1843
-3169
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT MIN( ALL - 6 ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT MIN ( ALL - 6 ) AS col2 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT - col0 + + + 31 * col1 AS col2 FROM tab1
----
1366
383
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2348
SELECT ( - - 30 ) col0 FROM tab0 WHERE NULL > - CAST( NULL AS DECIMAL ) - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT ( - - 30 ) col0 FROM tab0 WHERE NULL > - CAST ( NULL AS REAL ) - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + ( + - 40 ) + + ( - COUNT( * ) ) AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-2349
SELECT + ( + - 40 ) + + ( - COUNT ( * ) ) AS col1 FROM tab1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT 45 * MAX( ALL CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
4455

skipif mysql # not compatible
query I rowsort label-2350
SELECT 45 * MAX ( ALL CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
4455

query I rowsort
SELECT DISTINCT + col2 + + 32 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2352
SELECT - col1 DIV + + 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2352
SELECT - col1 / + + 84 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2353
SELECT - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT ALL + + SUM( col0 ), 9 + + + 6 + + 94 - ( + COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
227
100

skipif mysql # not compatible
query II rowsort label-2354
SELECT ALL + + SUM ( col0 ), 9 + + + 6 + + 94 - ( + COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
227
100

query I rowsort
SELECT ALL ( + 28 ) AS col0 FROM tab2 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * - 28 col1 FROM tab1
----
-2744
-2744
-2744

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT - 26 DIV + - col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - 26 / + - col2 FROM tab2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2359
SELECT + COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT + COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT DISTINCT col0 DIV + 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT col0 / + 4 FROM tab2
----
11
16
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + - MAX( - + col1 ) FROM tab2 WHERE NOT + col2 = + - ( - col2 ) * 16 * - col0 - 80
----
51

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + - MAX ( - + col1 ) FROM tab2 WHERE NOT + col2 = + - ( - col2 ) * 16 * - col0 - 80
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 AS col1, col2 col1 FROM tab0
----
-83
10
-83
47
-83
99

query I rowsort
SELECT + col2 * - - 42 + - + col0 FROM tab0 AS cor0
----
1959
333
4061

query II rowsort
SELECT ALL + col0, - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT ALL + - col1 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2366
SELECT DISTINCT - - 62 col1, + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
62
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2366
SELECT DISTINCT - - 62 col1, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
62
3

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL = + 26
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * + + col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT ALL 16 + - ( - + 17 ) FROM tab2
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT ALL - CAST( - ( + col2 ) AS SIGNED ) * - col0 - + + 90 AS col0 FROM tab2
----
-1148
-2650
-4440

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - CAST ( - ( + col2 ) AS INTEGER ) * - col0 - + + 90 AS col0 FROM tab2
----
-1148
-2650
-4440

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + ( - MAX( - col2 ) ) + - 64 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + ( - MAX ( - col2 ) ) + - 64 FROM tab2
----
-41

query I rowsort
SELECT ( - + col1 ) * col0 + col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = - col0
----
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT ( - 58 ) DIV + col2 + col2 * col1 FROM tab0
----
205
3806
99

skipif mysql # not compatible
query I rowsort label-2375
SELECT ( - 58 ) / + col2 + col2 * col1 FROM tab0
----
205
3806
99

query I rowsort
SELECT + col1 * - - 9 AS col1 FROM tab1
----
126
423
45

query I rowsort
SELECT ALL col0 + - + 85 AS col0 FROM tab1
----
-34
0
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2378
SELECT + CAST( + 86 AS SIGNED ) * + 21 AS col1, - 35 * - 94 * COUNT( * ) FROM tab0
----
1806
9870

skipif mysql # not compatible
query II rowsort label-2378
SELECT + CAST ( + 86 AS INTEGER ) * + 21 AS col1, - 35 * - 94 * COUNT ( * ) FROM tab0
----
1806
9870

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + 36 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col0 / - - 23 FROM tab1 AS cor0 WHERE NOT + 39 * - 94 < + + 86
----

query II rowsort
SELECT ALL - + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + COUNT( 6 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2383
SELECT + COUNT ( 6 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL + CAST( + 57 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + CAST ( + 57 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # DIV for integer division: 
query II rowsort label-2386
SELECT DISTINCT col1 * + col2 AS col1, - ( + col1 ) + col0 + - col0 + - + 91 DIV col0 AS col2 FROM tab2
----
1173
-52
3080
-78
3886
-68

skipif mysql # not compatible
query II rowsort label-2386
SELECT DISTINCT col1 * + col2 AS col1, - ( + col1 ) + col0 + - col0 + - + 91 / col0 AS col2 FROM tab2
----
1173
-52
3080
-78
3886
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT COUNT( ALL + col0 ) * - 81 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-2387
SELECT COUNT ( ALL + col0 ) * - 81 FROM tab2
----
-243

query I rowsort
SELECT ALL + col1 * ( 58 ) FROM tab2
----
2958
3886
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 40 * + col0 * col0 AS col0 FROM tab1
----
104040
289000
331240

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + col1 + + col2
----

query I rowsort
SELECT ALL + ( + - 69 ) FROM tab0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - col0 ) <= NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT SUM( 17 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2395
SELECT SUM ( 17 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT + col1 + - - ( - col1 ) DIV - + col2 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + col1 + - - ( - col1 ) / - + col2 FROM tab0
----
1
23
82

query I rowsort
SELECT DISTINCT 62 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
62

query I rowsort
SELECT + + col2 + + ( col0 ) + - col1 FROM tab1 AS cor0
----
112
133
139

query II rowsort
SELECT ALL 26, col0 - - ( - 72 ) AS col2 FROM tab2 AS cor0
----
26
-26
26
-8
26
3

query I rowsort
SELECT - + col0 + + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - + 97 + - 94 AS col2 FROM tab1 AS cor0
----
-191
-191
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + col1 + + - 11 + + 35 DIV + col2 FROM tab1 AS cor0
----
-6
3
36

skipif mysql # not compatible
query I rowsort label-2402
SELECT + col1 + + - 11 + + 35 / + col2 FROM tab1 AS cor0
----
-6
3
36

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 77 * - - col1 IN ( - col1 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2404
SELECT + + ( 81 ) + col0, col0 + - 51 + ( - CAST( col1 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
127
-56
145
-64
156
-43

skipif mysql # not compatible
query II rowsort label-2404
SELECT + + ( 81 ) + col0, col0 + - 51 + ( - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
127
-56
145
-64
156
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL - COUNT( * ) + - - 39 AS col0 FROM tab1, tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - COUNT ( * ) + - - 39 AS col0 FROM tab1, tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT 70 * - COUNT( * ) - - - MIN( + 32 ) * - + COUNT( * ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT 70 * - COUNT ( * ) - - - MIN ( + 32 ) * - + COUNT ( * ) FROM tab0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2407
SELECT + 5 AS col1, - ( + + MAX( ALL col1 ) ) DIV + 36 + - COUNT( * ) FROM tab1
----
5
-4

skipif mysql # not compatible
query II rowsort label-2407
SELECT + 5 AS col1, - ( + + MAX ( ALL col1 ) ) / + 36 + - COUNT ( * ) FROM tab1
----
5
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( 92 ) ) + col1 NOT BETWEEN - - col0 + + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT 15 * + - COUNT( * ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT 15 * + - COUNT ( * ) FROM tab1
----
-45

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE + col1 = + 25 / + + col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2411
SELECT DISTINCT + - 72, CAST( - + col2 AS SIGNED ) + - + col0 AS col1 FROM tab2 AS cor0
----
-72
-104
-72
-133
-72
-69

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT + - 72, CAST ( - + col2 AS INTEGER ) + - + col0 AS col1 FROM tab2 AS cor0
----
-72
-104
-72
-133
-72
-69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL 0 DIV - - 78 * - ( + 18 ) * + + col0 + + 6 * - 32 AS col0 FROM tab1
----
-192
-192
-192

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL 0 / - - 78 * - ( + 18 ) * + + col0 + + 6 * - 32 AS col0 FROM tab1
----
-192
-192
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-2414
SELECT - SUM( DISTINCT + col2 ) AS col1, 25 AS col0 FROM tab0
----
-156
25

skipif mysql # not compatible
query II rowsort label-2414
SELECT - SUM ( DISTINCT + col2 ) AS col1, 25 AS col0 FROM tab0
----
-156
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 37 * 57 col0 FROM tab2 AS cor0
----
-2109

query II rowsort
SELECT - - col2 * + col1, col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 / - 59 IS NULL
----
1173
23
3080
40
3886
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT ALL - - col1 * 47 FROM tab2 AS cor0 WHERE ( + 97 - ( col0 ) + - CAST( + col2 AS SIGNED ) NOT BETWEEN ( 64 ) AND - col0 )
----
2397
3149
3619

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - - col1 * 47 FROM tab2 AS cor0 WHERE ( + 97 - ( col0 ) + - CAST ( + col2 AS INTEGER ) NOT BETWEEN ( 64 ) AND - col0 )
----
2397
3149
3619

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND col1 + ( + col1 )
----

query II rowsort
SELECT col1, + 39 AS col1 FROM tab0
----
1
39
21
39
81
39

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - SUM( DISTINCT + + col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2421
SELECT ALL - SUM ( DISTINCT + + col1 ) col1 FROM tab2
----
-195

query II rowsort
SELECT + col0, 42 AS col2 FROM tab0
----
15
42
87
42
97
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 + 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT col0 DIV + + 84 col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT col0 / + + 84 col0 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2425
SELECT * FROM tab0 WHERE NOT NULL BETWEEN CAST( - col0 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2425
SELECT * FROM tab0 WHERE NOT NULL BETWEEN CAST ( - col0 AS REAL ) AND NULL
----

query I rowsort
SELECT col0 * + - col1 + - 28 * - col0 AS col2 FROM tab0 AS cor0
----
-795
2619
609

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + 40 + + col1 NOT BETWEEN - - col2 * - - col2 AND + - 66
----

query I rowsort
SELECT DISTINCT - 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 * + + col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT + 16 * + - COUNT( * ) AS col2, - 6 FROM tab0 cor0
----
-48
-6

skipif mysql # not compatible
query II rowsort label-2431
SELECT + 16 * + - COUNT ( * ) AS col2, - 6 FROM tab0 cor0
----
-48
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * 7 col2 FROM tab0 AS cor0
----
-189
-189
-189

query I rowsort
SELECT DISTINCT - - col0 * + + col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col2 + + - 37 AS col2 FROM tab1 AS cor0
----
-105
-133
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + ( + COUNT( - 94 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2435
SELECT + ( + COUNT ( - 94 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL 91 + + 14 * MAX( DISTINCT 17 ) FROM tab2
----
329

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL 91 + + 14 * MAX ( DISTINCT 17 ) FROM tab2
----
329

query I rowsort
SELECT - col1 - 79 AS col1 FROM tab0
----
-100
-160
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT CAST( NULL AS SIGNED ) - - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT CAST ( NULL AS INTEGER ) - - + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 5 * col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> + - col1 + - col2 AND NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT DISTINCT + col0 DIV + + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT + col0 / + + col0 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - + col1 + + - col1 NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT MIN( - - col1 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT MIN ( - - col1 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 56 * - col1 FROM tab0 AS cor0
----
1176
4536
56

query I rowsort
SELECT ALL + col2 + + - col1 * + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT + col1 DIV + + 70 - + - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2446
SELECT + col1 / + + 70 - + - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 49 col2 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - - COUNT( ALL + - 72 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - - COUNT ( ALL + - 72 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT - SUM( DISTINCT 39 ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - SUM ( DISTINCT 39 ) AS col1 FROM tab0 AS cor0
----
-39

query II rowsort
SELECT - col0, col0 AS col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 + + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT COUNT( * ) * + 52 AS col2 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( * ) * + 52 AS col2 FROM tab1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL - MIN( DISTINCT - col0 ) + - - COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL - MIN ( DISTINCT - col0 ) + - - COUNT ( * ) AS col2 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2455
SELECT 99 DIV - col1, + col2 * + col1 AS col0 FROM tab0
----
-1
3807
-4
210
-99
99

skipif mysql # not compatible
query II rowsort label-2455
SELECT 99 / - col1, + col2 * + col1 AS col0 FROM tab0
----
-1
3807
-4
210
-99
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL COUNT( ALL - - 59 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL COUNT ( ALL - - 59 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - + col0 + + col0 * + 13 AS col1 FROM tab2 AS cor0
----
552
768
900

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - 87 / + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 25 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT SUM( ALL + col2 ) col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2461
SELECT DISTINCT SUM ( ALL + col2 ) col1 FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + col2 * + col0 + ( - + col2 ) * col2 FROM tab0 AS cor0
----
-1504
-198
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL - - col0 - - - col0 * - + col2 + + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - - col0 - - - col0 * - + col2 + + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 73 < - + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + + COUNT( * ) * - 92 + - 55 FROM tab2 cor0
----
-331

skipif mysql # not compatible
query I rowsort label-2465
SELECT + + COUNT ( * ) * - 92 + - 55 FROM tab2 cor0
----
-331

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2467
SELECT col0 + + col1 DIV + + ( - + 18 ), - 11 * - + col0 AS col2 FROM tab2 AS cor0
----
44
506
60
704
72
825

skipif mysql # not compatible
query II rowsort label-2467
SELECT col0 + + col1 / + + ( - + 18 ), - 11 * - + col0 AS col2 FROM tab2 AS cor0
----
44
506
60
704
72
825

query I rowsort
SELECT DISTINCT - ( - + col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + 3 + - 85 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL ( + + 81 ) AS col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2471
SELECT DISTINCT - - 80, col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2471
SELECT DISTINCT - - 80, col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
80
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 - col1 IS NULL
----

query I rowsort
SELECT ALL col2 + + col2 * + col0 FROM tab0
----
752
880
9702

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT ALL + CAST( - col0 AS SIGNED ) - + 81 AS col2 FROM tab1
----
-132
-166
-172

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + CAST ( - col0 AS INTEGER ) - + 81 AS col2 FROM tab1
----
-132
-166
-172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2476
SELECT ALL + AVG ( col1 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + AVG ( col1 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IS NULL AND NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 col0 FROM tab2 cor0
----
-46
-46
-46

query II rowsort
SELECT col0 * - + col1 / - - col2 AS col0, ( 17 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 20 * col1 * + ( + col2 ) FROM tab2 cor0
----
23460
61600
77720

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL MAX( ALL - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL - 70 - col1 AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-117
68
-75
59
-84
96

query II rowsort
SELECT DISTINCT - - 94, + col0 AS col0 FROM tab2 AS cor0
----
94
46
94
64
94
75

query II rowsort
SELECT DISTINCT + col0, ( + col1 ) FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col1 - - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col2 FROM tab0
----
1000
103823
970299

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 >= + col1 / col2 + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 + - + col2 * + + col0 col1 FROM tab0
----
-833
-901
-9703

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT 53 * - - COUNT( * ) col2 FROM tab2
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2491
SELECT 53 * - - COUNT ( * ) col2 FROM tab2
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT SUM( + + 22 ) AS col2, 60 FROM tab1
----
66
60

skipif mysql # not compatible
query II rowsort label-2492
SELECT SUM ( + + 22 ) AS col2, 60 FROM tab1
----
66
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT ALL + COUNT( * ) DIV + 56 * - MIN( DISTINCT - col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + COUNT ( * ) / + 56 * - MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + 71 AS col0 FROM tab0 WHERE NOT + 98 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT - 25 * - 30 col0, - COUNT( * ) col2 FROM tab0
----
750
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2495
SELECT - 25 * - 30 col0, - COUNT ( * ) col2 FROM tab0
----
750
-3

query I rowsort
SELECT + + 52 * + + col0 + + col1 FROM tab1 AS cor0
----
2666
4425
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL - SUM( + 60 ) AS col0 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - SUM ( + 60 ) AS col0 FROM tab2 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT + 32 + - CAST( - ( ( + col2 ) ) AS SIGNED ) FROM tab1
----
100
128
91

skipif mysql # not compatible
query I rowsort label-2498
SELECT + 32 + - CAST ( - ( ( + col2 ) ) AS INTEGER ) FROM tab1
----
100
128
91

query I rowsort
SELECT - ( - col0 ) + - - ( + 74 ) FROM tab2
----
120
138
149

query I rowsort
SELECT ALL + + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT - + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( - - 80 ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT + + 51 - col2 FROM tab1 AS cor0
----
-17
-45
-8

query I rowsort
SELECT col1 - - - col0 AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL 13 + + - col2 * - col2 * 86 AS col0 FROM tab2
----
137613
289317
45507

query I rowsort
SELECT col1 * 59 AS col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT ALL + 22 * - - col1 AS col1 FROM tab0
----
1782
22
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * - 9 col2 FROM tab1
----
-873

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT DISTINCT - 18 AS col2, - COUNT( * ) FROM tab0
----
-18
-3

skipif mysql # not compatible
query II rowsort label-2510
SELECT DISTINCT - 18 AS col2, - COUNT ( * ) FROM tab0
----
-18
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + MIN( ALL + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + MIN ( ALL + 71 ) FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * - ( + - 34 ) FROM tab0 cor0
----
-2754
-34
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT COUNT( DISTINCT + CAST( + 35 AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2515
SELECT COUNT ( DISTINCT + CAST ( + 35 AS INTEGER ) ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col1 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT SUM( ALL + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL 92 + - col2 FROM tab1
----
-4
24
33

query I rowsort
SELECT 2 * - col0 FROM tab1 WHERE + 85 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT 76 + + CAST( COUNT( * ) + 8 AS SIGNED ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT 76 + + CAST ( COUNT ( * ) + 8 AS INTEGER ) AS col1 FROM tab0
----
87

query III rowsort
SELECT * FROM tab0 WHERE col0 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 * col1 + 25 AS col0 FROM tab1
----
-250
-2560
-745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2525
SELECT + 37 DIV COUNT( * ) + 80 AS col2 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 37 / COUNT ( * ) + 80 AS col2 FROM tab0
----
92

query I rowsort
SELECT - 55 + + col2 AS col0 FROM tab1
----
13
4
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT - 3 DIV + col0 + 76 col1 FROM tab0
----
76
76
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2527
SELECT - 3 / + col0 + 76 col1 FROM tab0
----
76
76
76

query III rowsort
SELECT * FROM tab0 WHERE NOT + 82 <> + 91
----

query I rowsort
SELECT ALL 34 * + 43 FROM tab0
----
1462
1462
1462

query I rowsort
SELECT 51 AS col1 FROM tab2 WHERE NOT 31 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT COUNT( ALL 45 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT COUNT ( ALL 45 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab2 WHERE col2 = - 66
----

query I rowsort
SELECT 99 + col1 * col1 FROM tab1
----
124
2308
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT 11 * - CAST( + 66 AS SIGNED ) AS col1 FROM tab0
----
-726
-726
-726

skipif mysql # not compatible
query I rowsort label-2534
SELECT 11 * - CAST ( + 66 AS INTEGER ) AS col1 FROM tab0
----
-726
-726
-726

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2535
SELECT + CAST( NULL AS DECIMAL ) + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2535
SELECT + CAST ( NULL AS REAL ) + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT MAX( DISTINCT ( - 4 ) ) FROM tab2 WHERE - 65 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT MAX ( DISTINCT ( - 4 ) ) FROM tab2 WHERE - 65 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - SUM( ALL col0 ) + - 79 AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-2538
SELECT - SUM ( ALL col0 ) + - 79 AS col1 FROM tab2
----
-264

query I rowsort
SELECT DISTINCT + 24 - col2 AS col1 FROM tab2 WHERE + ( col1 ) < ( NULL )
----

query I rowsort
SELECT + 94 * + 69 FROM tab2
----
6486
6486
6486

query I rowsort
SELECT ALL + 73 + - col2 FROM tab1
----
-23
14
5

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( 14 ) NOT BETWEEN NULL AND ( - 55 )
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2543
SELECT col2 + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2543
SELECT col2 + + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 + + col1 FROM tab1 WHERE - col0 BETWEEN + ( - ( 70 ) ) AND NULL
----

query I rowsort
SELECT + 44 * col1 AS col1 FROM tab2 cor0
----
2244
2948
3388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE ( col0 ) + + col2 < + 34 * col1
----
59
68
96

query I rowsort
SELECT ALL - col1 * + 48 AS col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

query I rowsort
SELECT + col1 * + 9 AS col0 FROM tab1 AS cor0
----
126
423
45

query I rowsort
SELECT ALL 87 FROM tab0 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) + + col2 IN ( + col1 + + 88 )
----

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
21
21
21

query I rowsort
SELECT DISTINCT col0 * ( - 73 ) AS col2 FROM tab0
----
-1095
-6351
-7081

query III rowsort
SELECT * FROM tab0 WHERE 26 * - col2 BETWEEN ( NULL ) AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 - + col2 col0 FROM tab1
----
3422
4556
9120

query I rowsort
SELECT ALL col2 * - col0 FROM tab1 WHERE NOT - col2 < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT 77 DIV + 57 + col1 AS col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2556
SELECT 77 / + 57 + col1 AS col1 FROM tab2
----
52
68
78

query I rowsort
SELECT - col2 + 52 AS col0 FROM tab0 AS cor0
----
-47
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE - 66 <> col0 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-2558
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - 66 <> col0 + - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + - COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL 53 + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL 50 - COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL 50 - COUNT ( * ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / col2 IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT ALL - 23 * MIN( ALL - 56 DIV + col1 - col2 ) AS col1 FROM tab0 AS cor0
----
3565

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 23 * MIN ( ALL - 56 / + col1 - col2 ) AS col1 FROM tab0 AS cor0
----
3565

query I rowsort
SELECT + col2 + + 63 FROM tab2 AS cor0
----
103
121
86

query I rowsort
SELECT + + col2 * - 9 AS col1 FROM tab1 AS cor0
----
-531
-612
-864

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + ( - 82 ) ) * - col0 - + 40 * col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 * + col1 AND + 48 * col0
----

query I rowsort
SELECT ALL - 63 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IN ( + col1 )
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT + CAST( 36 AS SIGNED ) FROM tab1 WHERE NOT ( ( col0 ) + + col2 ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2570
SELECT + CAST ( 36 AS INTEGER ) FROM tab1 WHERE NOT ( ( col0 ) + + col2 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * + 5 FROM tab1 WHERE NOT 24 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * + 5 FROM tab1 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT DISTINCT + 61 * - + CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT DISTINCT + 61 * - + CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 FROM tab0 WHERE ( 37 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 FROM tab0 WHERE ( 37 ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT ALL - col2 DIV - col1 FROM tab0 WHERE ( + 56 ) >= col1 DIV - col2
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - col2 / - col1 FROM tab0 WHERE ( + 56 ) >= col1 / - col2
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT 79 DIV + + ( + col1 ) col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2576
SELECT 79 / + + ( + col1 ) col2 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 * + 61 <> 22 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - - MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2578
SELECT - - MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col2 AND - col2 + + CAST( 28 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2579
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col2 AND - col2 + + CAST ( 28 AS INTEGER )
----
3

query I rowsort
SELECT col1 + 55 * col2 FROM tab1 AS cor0 WHERE NOT ( - ( - col1 ) * + col2 ) IN ( col1 * + 60 )
----
3250
3787
5294

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 91 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT col1 - 32 AS col1 FROM tab1 WHERE NOT + col2 BETWEEN ( 60 ) AND ( - col2 )
----
-18
-27
15

query I rowsort
SELECT + 68 FROM tab2 WHERE NOT ( - - 68 * 56 ) IS NULL
----
68
68
68

query I rowsort
SELECT 84 + + + col0 AS col1 FROM tab2
----
130
148
159

query I rowsort
SELECT + 20 AS col2 FROM tab2 WHERE NOT - 6 IS NULL
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT ( - - 12 ) + - + CAST( - 9 AS SIGNED ) FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-2587
SELECT ( - - 12 ) + - + CAST ( - 9 AS INTEGER ) FROM tab2
----
21
21
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * + col2 * col2 >= 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 48 <= ( NULL )
----

query II rowsort
SELECT ALL - col1, col0 - + 40 AS col1 FROM tab0 AS cor0
----
-1
57
-21
47
-81
-25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 79 * + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL + COUNT( DISTINCT + col1 ) + - 10 * + 69 FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) IS NOT NULL
----
-687

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + COUNT ( DISTINCT + col1 ) + - 10 * + 69 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) IS NOT NULL
----
-687

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + + 4 + - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + + 4 + - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 1 FROM tab0 AS cor0 WHERE 21 * - col1 * + col1 NOT BETWEEN - col1 AND - 61 - + 81
----
-1
-1
-1

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + 72 * - ( - COUNT( * ) ) AS col0 FROM tab1 WHERE + col2 * - col0 NOT BETWEEN + col0 * - 13 AND NULL
----
216

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 72 * - ( - COUNT ( * ) ) AS col0 FROM tab1 WHERE + col2 * - col0 NOT BETWEEN + col0 * - 13 AND NULL
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - SUM( ALL - 72 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-2598
SELECT - SUM ( ALL - 72 ) FROM tab2
----
216

query I rowsort
SELECT 12 * - col2 AS col0 FROM tab1
----
-1152
-708
-816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2600
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) + 78 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) + 78 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 <= NULL
----

query I rowsort
SELECT DISTINCT 32 + + + col0 AS col2 FROM tab1
----
117
123
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + 45 col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + COUNT( DISTINCT - - ( + col2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( DISTINCT - - ( + col2 ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + 59 + + col1 FROM tab0
----
140
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT 60 * - - MAX( ALL - 64 ) * + COUNT( * ) FROM tab2
----
-11520

skipif mysql # not compatible
query I rowsort label-2606
SELECT 60 * - - MAX ( ALL - 64 ) * + COUNT ( * ) FROM tab2
----
-11520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT - + col1 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - + col1 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT COUNT( * ) + + + 82 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT COUNT ( * ) + + + 82 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - SUM( DISTINCT + - ( - col1 ) ) * - + COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - SUM ( DISTINCT + - ( - col1 ) ) * - + COUNT ( * ) FROM tab1 AS cor0
----
198

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 71 * + - 98 IN ( - 85 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - 49 + + 62 AS col1 FROM tab2
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT COUNT( * ) FROM tab1 WHERE ( + col2 * - 9 + + CAST( NULL AS SIGNED ) - - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2614
SELECT COUNT ( * ) FROM tab1 WHERE ( + col2 * - 9 + + CAST ( NULL AS INTEGER ) - - col2 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL CAST( + + 45 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL CAST ( + + 45 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - + MIN( ALL 49 ) * - 54 AS col0 FROM tab2 AS cor0
----
2646

skipif mysql # not compatible
query I rowsort label-2616
SELECT - + MIN ( ALL 49 ) * - 54 AS col0 FROM tab2 AS cor0
----
2646

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - col2 ) + - 40 < - + col1 * col2 + - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT + + COUNT( * ) * + 77 - - + 80 AS col1 FROM tab2 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-2618
SELECT + + COUNT ( * ) * + 77 - - + 80 AS col1 FROM tab2 AS cor0
----
311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - 13 * - + col2 * - CAST( + 49 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-29939
-63063
-6370

skipif mysql # not compatible
query I rowsort label-2620
SELECT - 13 * - + col2 * - CAST ( + 49 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-29939
-63063
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ( col0 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL = ( - col2 * - 83 * - col0 * + col0 ) )
----

query II rowsort
SELECT DISTINCT 49 AS col2, col0 AS col0 FROM tab1
----
49
51
49
85
49
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2625
SELECT + ( col0 ) / - CAST( NULL AS DECIMAL ) + - - col0 - col1 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2625
SELECT + ( col0 ) / - CAST ( NULL AS REAL ) + - - col0 - col1 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT + col0, + 19 * + col0 AS col1 FROM tab1 AS cor0
----
51
969
85
1615
91
1729

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL - SUM( - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - SUM ( - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT + 34 AS col1, COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-2628
SELECT + 34 AS col1, COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
34
3

query I rowsort
SELECT ALL 50 AS col2 FROM tab0 AS cor0 WHERE ( 58 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT + 44 + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
53

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + 44 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ( - - MAX( ALL 91 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2632
SELECT ( - - MAX ( ALL 91 ) ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - 47 * - 41 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 col0 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 + 59 FROM tab1 AS cor0
----
-26
-32
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + + MAX( - - col2 ) + + 30 col2 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT + + MAX ( - - col2 ) + + 30 col2 FROM tab1 AS cor0
----
126

query I rowsort
SELECT col0 * - col0 + - 68 + - - col1 * col0 + + + col0 FROM tab0 AS cor0
----
-5723
-9283
937

query I rowsort
SELECT ALL 5 + - 51 - - + col0 FROM tab1 AS cor0
----
39
45
5

query II rowsort
SELECT col0 + col0 AS col2, + col1 + - col2 FROM tab1 AS cor0
----
102
-82
170
-54
182
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2641
SELECT DISTINCT + col1 DIV ( + + CAST( - - 99 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + col1 / ( + + CAST ( - - 99 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2642
SELECT DISTINCT - + col2 + - 54 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - + col2 + - 54 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT CAST( NULL AS SIGNED ) + - - 10 * SUM( DISTINCT - CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT CAST ( NULL AS INTEGER ) + - - 10 * SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT 96 + - - COUNT( ALL + ( - - ( + + col0 ) ) ) * + COUNT( ALL + + col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT 96 + - - COUNT ( ALL + ( - - ( + + col0 ) ) ) * + COUNT ( ALL + + col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL - 26 FROM tab2 WHERE + CAST( - + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - 26 FROM tab2 WHERE + CAST ( - + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + + 5 ) * ( + + ( 95 ) ) + + col0 * + - col0 AS col2 FROM tab0
----
-7094
-8934
250

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - col2 ) ) IN ( + col0, 26 * + col2 + + 63 )
----

query I rowsort
SELECT DISTINCT col2 + ( - - 3 ) AS col0 FROM tab1
----
62
71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - 1 * COUNT( DISTINCT + 87 ) AS col1 FROM tab1 WHERE NOT ( + 97 * - 45 ) IS NOT NULL OR NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2649
SELECT - 1 * COUNT ( DISTINCT + 87 ) AS col1 FROM tab1 WHERE NOT ( + 97 * - 45 ) IS NOT NULL OR NULL IS NULL
----
-1

query I rowsort
SELECT 29 * + col0 AS col0 FROM tab0
----
2523
2813
435

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT col1 - + col0 * - - col0, col1 FROM tab2 AS cor0
----
-2065
51
-4019
77
-5558
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - ( + - 97 ) DIV - 27 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-2654
SELECT - ( + - 97 ) / - 27 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT DISTINCT + - COUNT( * ) + + MIN( 9 ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ), + 65 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT DISTINCT + - COUNT ( * ) + + MIN ( 9 ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ), + 65 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 * + 71 FROM tab1 AS cor0
----
247151
328304
654336

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) <> - col0
----

query I rowsort
SELECT + 86 * + + col1 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT DISTINCT - + 77 DIV - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT - + 77 / - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT - col2 * + 14 + - + col0 FROM tab0 AS cor0
----
-1483
-227
-673

query II rowsort
SELECT + 10 AS col2, col1 FROM tab2
----
10
51
10
67
10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT + 66 * - - 33 * - COUNT( - col2 ) AS col0 FROM tab2
----
-6534

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + 66 * - - 33 * - COUNT ( - col2 ) AS col0 FROM tab2
----
-6534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT - 2 DIV COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT - 2 / COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL col2 * + 79 FROM tab1
----
4661
5372
7584

query I rowsort
SELECT col2 * + + col1 * col0 FROM tab2
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col2 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MIN( + 64 ) AS col2 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2668
SELECT MIN ( + 64 ) AS col2 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT 54 * - - COUNT( DISTINCT + col1 ), COUNT( * ) AS col0 FROM tab1
----
162
3

skipif mysql # not compatible
query II rowsort label-2669
SELECT 54 * - - COUNT ( DISTINCT + col1 ), COUNT ( * ) AS col0 FROM tab1
----
162
3

query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab2 WHERE - 92 IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT DISTINCT COUNT( * ), + MIN( DISTINCT + col2 ) * - - 90 AS col1 FROM tab2
----
3
2070

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT COUNT ( * ), + MIN ( DISTINCT + col2 ) * - - 90 AS col1 FROM tab2
----
3
2070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 col1 FROM tab2 AS cor0
----
-38
-38
-38

query II rowsort
SELECT ALL + col1, + 30 * + - col0 AS col0 FROM tab2
----
51
-1380
67
-2250
77
-1920

query I rowsort
SELECT ALL - col2 * ( - + col2 ) AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + MIN( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + MIN ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL COUNT( + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL COUNT ( + col0 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) * 85 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) * 85 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + 55 FROM tab1 AS cor0
----
41
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL - MIN( col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT - 46 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - col1 NOT IN ( - + col0, + col0, - 66 )
----

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 46 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - col1 NOT IN ( - + col0, + col0, - 66 )
----

query I rowsort
SELECT - - 44 FROM tab1 cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT - CAST( - - 31 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-2682
SELECT - CAST ( - - 31 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT 12 - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT 12 - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 33 + - + ( + col1 ) FROM tab1
----
-14
19
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-2685
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9
9

query I rowsort
SELECT ( - + 79 ) - + col2 FROM tab0
----
-126
-178
-89

query II rowsort
SELECT ALL + col2 + + - col2, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT + col1 - + - col1 AS col0 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT + COUNT( ALL CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + + 23 ) + 7 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + + 23 ) + 7 FROM tab2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2690
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab1 WHERE ( + 0 < NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab1 WHERE ( + 0 < NULL )
----

query I rowsort
SELECT DISTINCT - 26 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 23 / col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT SUM( + 29 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2693
SELECT SUM ( + 29 ) AS col0 FROM tab0
----
87

query II rowsort
SELECT ALL - col0 AS col2, - 23 FROM tab1 AS cor0
----
-51
-23
-85
-23
-91
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT ALL + - col2 DIV - - 67 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + - col2 / - - 67 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 + - + ( + - col0 ) * + + col2 * + col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col2, col1 * col1 )
----

query II rowsort
SELECT - col0 - + col1 AS col0, ( - ( - 62 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-141
62
-142
62
-97
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT + SUM( DISTINCT 92 ) AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + SUM ( DISTINCT 92 ) AS col1 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - COUNT( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT - COUNT ( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2700
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + CAST( NULL AS SIGNED ) <> - - 68
----

skipif mysql # not compatible
query III rowsort label-2700
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + CAST ( NULL AS INTEGER ) <> - - 68
----

query II rowsort
SELECT - - col2, + 83 AS col2 FROM tab1 AS cor0
----
59
83
68
83
96
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 28 ) * col2 col0 FROM tab2
----
-1120
-1624
-644

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 61 / - col0 - + 64
----

query I rowsort
SELECT DISTINCT 85 * + - 77 FROM tab1
----
-6545

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - 10 * - col2 + - col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + col1 + - ( - col0 ) AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 86 AND col2 < - col1 * + col1
----

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NOT - 69 > + - col1 )
----
-51
-85
-91

query I rowsort
SELECT - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT COUNT( * ) + - - 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT COUNT ( * ) + - - 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70

query I rowsort
SELECT - col1 * 33 + - col0 FROM tab1 AS cor0
----
-1642
-250
-513

query I rowsort
SELECT DISTINCT - ( - - 11 ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - + col0 + - col2 + + col1 + - 69 FROM tab0 AS cor0
----
-145
-264
-50

query I rowsort
SELECT col2 * - 83 + + - col1 * + col0 + + 65 FROM tab0 AS cor0
----
-2592
-5051
-8249

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 86 + + - 36 + + 97 IS NOT NULL
----

query I rowsort
SELECT - col1 + 21 AS col0 FROM tab1 AS cor0
----
-26
16
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - - 46 col0 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT + col2 + - + 67 FROM tab2 AS cor0
----
-27
-44
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL 50 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL 50 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT ALL + 63 + + ( - COUNT( + col0 ) ) col0, MAX( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NULL < - col1 * - col0 * + col1
----
63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2722
SELECT ALL + 63 + + ( - COUNT ( + col0 ) ) col0, MAX ( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NULL < - col1 * - col0 * + col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL COUNT( * ) + + - COUNT( * ) + - + 24 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL COUNT ( * ) + + - COUNT ( * ) + - + 24 FROM tab0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - 75 AS col2, - col0 col0 FROM tab2 AS cor0
----
-11
-64
-29
-46
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL + MIN( DISTINCT + 25 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + MIN ( DISTINCT + 25 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT - - 52 / - - col2 + - CAST( - col2 AS SIGNED ) + + + 74 + + col2 / - col2 + + + col2 AS col1 FROM tab2 cor0 WHERE 94 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - - 52 / - - col2 + - CAST ( - col2 AS INTEGER ) + + + 74 + + col2 / - col2 + + + col2 AS col1 FROM tab2 cor0 WHERE 94 IS NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * 64 * - 40 <> NULL
----

query I rowsort
SELECT + + 75 * + 25 FROM tab1 cor0
----
1875
1875
1875

query I rowsort
SELECT ALL + - col2 FROM tab0 cor0 WHERE ( - + col2 ) IN ( 55, + col1 )
----

query I rowsort
SELECT ALL + ( + ( - col0 ) ) * - col1 / col1 AS col0 FROM tab2 cor0 WHERE NOT 29 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 40 col0 FROM tab1
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 + + col0 * - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2733
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 + + col0 * - ( CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT - 39 AS col1, 77 + - col1 FROM tab2
----
-39
0
-39
10
-39
26

query I rowsort
SELECT ALL + 21 * - col1 FROM tab0
----
-1701
-21
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL + CAST( + + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + CAST ( + + col0 AS INTEGER ) FROM tab2
----
46
64
75

query I rowsort
SELECT + col0 * 33 FROM tab1
----
1683
2805
3003

query II rowsort
SELECT col1 AS col2, 53 + - col1 - col1 AS col2 FROM tab2
----
51
-49
67
-81
77
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT - ( + + SUM( ALL - 17 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - ( + + SUM ( ALL - 17 ) ) FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - + 50 + + - 80 AS col1 FROM tab0 AS cor0
----
-130

query I rowsort
SELECT ALL - 60 + - - 45 FROM tab0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + 61 + + + COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 61 + + + COUNT ( * ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT COUNT( + ( + - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT COUNT ( + ( + - col1 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE 1 + - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - + 71 AS col0 FROM tab1 AS cor0
----
-3621
-6035
-6461

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL > NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * col2 ) > NULL
----

query I rowsort
SELECT DISTINCT + 97 * + 22 FROM tab0 AS cor0
----
2134

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT 62 * + + col0 * 49 DIV + col0 - + col0 AS col2 FROM tab0
----
2941
2951
3023

skipif mysql # not compatible
query I rowsort label-2750
SELECT 62 * + + col0 * 49 / + col0 - + col0 AS col2 FROM tab0
----
2941
2951
3023

query I rowsort
SELECT ALL col2 + + 3 AS col2 FROM tab0
----
102
13
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT + - 36 * 39 * - MAX( + col0 ) * + + 74 * + SUM( - 15 ) FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + - 36 * 39 * - MAX ( + col0 ) * + + 74 * + SUM ( - 15 ) FROM tab0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT col2 + - + 78 FROM tab1
----
-10
-19
18

query I rowsort
SELECT + 48 + + col2 AS col1 FROM tab0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT + ( - COUNT( ALL - col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + ( - COUNT ( ALL - col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col1 * + + ( 38 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND 14
----

query I rowsort
SELECT col2 * - ( - 8 ) FROM tab2 AS cor0
----
184
320
464

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 / - + ( - col0 ) AND NULL
----

query I rowsort
SELECT - 64 * col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 84 / + + col1 <= NULL
----

query II rowsort
SELECT DISTINCT + 78, + col2 AS col1 FROM tab1 cor0
----
78
59
78
68
78
96

query II rowsort
SELECT ALL + 93 AS col0, col2 FROM tab0 cor0
----
93
10
93
47
93
99

query I rowsort
SELECT ALL - ( 7 ) + - col0 AS col0 FROM tab1 AS cor0
----
-58
-92
-98

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2766
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + - MAX( ALL 42 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT DISTINCT + - CAST ( NULL AS REAL ) + - MAX ( ALL 42 ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL - COUNT( ALL + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - COUNT ( ALL + - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 / - 69 BETWEEN col2 AND + col0
----

query I rowsort
SELECT + col1 + + + 25 * + col1 + + col1 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT ALL - col2 * + 92 * - 83 + - + 40 AS col2 FROM tab2
----
175588
305400
442848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL 76 * - - CAST( + - col0 AS SIGNED ) * - 43 FROM tab2
----
150328
209152
245100

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL 76 * - - CAST ( + - col0 AS INTEGER ) * - 43 FROM tab2
----
150328
209152
245100

query I rowsort
SELECT - col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col1 * col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 68 * + - 16 + + col0 + - 77 FROM tab0 AS cor0 WHERE NOT ( - 27 IS NOT NULL )
----

query II rowsort
SELECT col0 * 81, col0 FROM tab1 AS cor0
----
4131
51
6885
85
7371
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col2 <= - - col2 ) )
----

query I rowsort
SELECT ( 14 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT - - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 WHERE 45 NOT BETWEEN NULL AND - + col0 + + col1
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2778
SELECT - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 WHERE 45 NOT BETWEEN NULL AND - + col0 + + col1
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 + + + 15 AS col0 FROM tab1 AS cor0
----
-44
-53
-81

query I rowsort
SELECT DISTINCT 10 - col1 + - ( col2 ) * - col1 * + col0 * - - 74 FROM tab1 AS cor0
----
1855555
21521827
5072252

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT ALL + col0 DIV + 18 + - 75 + + ( + - col0 ) * col2 FROM tab2 AS cor0
----
-1131
-2632
-4421

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + col0 / + 18 + - 75 + + ( + - col0 ) * col2 FROM tab2 AS cor0
----
-1131
-2632
-4421

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT ALL + 40 DIV + - 55 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + 40 / + - 55 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL - COUNT( * ) * + 13 + COUNT( * ) + + 38 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - COUNT ( * ) * + 13 + COUNT ( * ) + + 38 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2784
SELECT DISTINCT - 57 AS col0, CAST( NULL AS SIGNED ) * MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-2784
SELECT DISTINCT - 57 AS col0, CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-57
NULL

query II rowsort
SELECT ALL 65 * - 13 AS col0, - col0 * + col0 FROM tab0
----
-845
-225
-845
-7569
-845
-9409

query II rowsort
SELECT - 88, - 99 + + - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-88
-109
-88
-146
-88
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT - + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2787
SELECT - + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT MAX( + 19 ) AS col1 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-2788
SELECT MAX ( + 19 ) AS col1 FROM tab0 cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 + - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-131
-147
-157

query I rowsort
SELECT ALL + col2 * 63 + 92 FROM tab0 AS cor0
----
3053
6329
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 * + - col0 + - 38 col0, + 43 AS col1 FROM tab2 AS cor0 WHERE NOT + 43 IS NULL
----
-4178
43
-5798
43
-6788
43

query I rowsort
SELECT ALL - + 35 * + 64 AS col0 FROM tab0 cor0
----
-2240
-2240
-2240

query I rowsort
SELECT ALL 2 + - + 50 FROM tab1
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - 83 + + + col2 col0 FROM tab1
----
-4137
-6996
-7485

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - COUNT( - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2795
SELECT - COUNT ( - col1 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col2 + + col2 + - + 55 AS col2 FROM tab0
----
-35
143
39

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL >= NULL OR NOT ( NULL ) >= col2 / - - col0 + - col1
----

query II rowsort
SELECT ALL col2 AS col2, + 67 FROM tab2
----
23
67
40
67
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - MIN( ALL 22 ) * + 13 FROM tab0
----
-286

skipif mysql # not compatible
query I rowsort label-2799
SELECT - MIN ( ALL 22 ) * + 13 FROM tab0
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL MIN( ALL - + col0 ) * 31 + - COUNT( * ) AS col0 FROM tab2
----
-2328

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL MIN ( ALL - + col0 ) * 31 + - COUNT ( * ) AS col0 FROM tab2
----
-2328

query I rowsort
SELECT col2 * + 38 AS col2 FROM tab2
----
1520
2204
874

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - 14 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 81 + + COUNT( * ) col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2804
SELECT + 81 + + COUNT ( * ) col1 FROM tab1
----
84

query I rowsort
SELECT ( + + col2 ) + - col2 + + ( col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - - col2 + 20 FROM tab0 cor0
----
119
30
67

query I rowsort
SELECT DISTINCT + ( - 53 ) * + col1 * - col2 + ( col1 ) * col2 * - col1 AS col1 FROM tab2
----
-54404
-73920
2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT col1 AS col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN ( + col0 * 46 * + 25 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2808
SELECT col1 AS col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col0 * 46 * + 25 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT - - 79 - + COUNT( * ) + + 49 AS col2 FROM tab1 cor0
----
125

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - - 79 - + COUNT ( * ) + + 49 AS col2 FROM tab1 cor0
----
125

query I rowsort
SELECT ALL + - 96 * + col1 - 74 FROM tab2 AS cor0
----
-4970
-6506
-7466

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 69 >= + 21
----

query I rowsort
SELECT DISTINCT + - 94 AS col1 FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT DISTINCT - ( + MIN( col1 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT - ( + MIN ( col1 ) ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT - 20 * + - 2 AS col2 FROM tab0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2817
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 53 FROM tab2
----
1219
2120
3074

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2820
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) * 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) * 62 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - 46 * - col2 AS col2, col0 col0 FROM tab1
----
-160126
85
-212704
91
-423936
51

query I rowsort
SELECT ALL + col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT COUNT( * ) AS col2, 11 AS col1 FROM tab1 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-2824
SELECT COUNT ( * ) AS col2, 11 AS col1 FROM tab1 AS cor0
----
3
11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 98 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 79 AS col1, col0 FROM tab1 AS cor0
----
-79
51
-79
85
-79
91

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + MAX( ALL - - col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT + MAX ( ALL - - col1 ) col1 FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT - + ( + col1 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - + ( + col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 * 6 + + + col0 + ( - + col2 ) FROM tab1 AS cor0
----
380
431
531

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 10 * - 60 + + + 23 - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + col0 + - - ( - 13 ) * + col1 + + + 66 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 16 * + + col0 + col0 + + + col1 FROM tab0 AS cor0
----
-1284
-144
-1454

query III rowsort
SELECT * FROM tab2 WHERE 44 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL - SUM( ALL - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - SUM ( ALL - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT 62 * - + col2 + - col1 + + - col0 + - 52 * col0 FROM tab0
----
-11280
-3790
-5252

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT + - ( - col2 ) - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT col2 + ( - + col1 ) + col0 + + 87 * - 0 * + + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT col2 + ( - + col1 ) + col0 + + 87 * - 0 * + + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - col1, + ( col2 ) FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - col1 * - 74 AS col2 FROM tab0 AS cor0
----
1554
5994
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 8 * + 4 col2 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT DISTINCT CAST( MIN( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT CAST ( MIN ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * - col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - + MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2846
SELECT - + MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT + 84 * + COUNT( * ) AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + 84 * + COUNT ( * ) AS col1 FROM tab0
----
252

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col2 ) * + - 7 FROM tab0
----
329
693
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT ALL - col1 DIV - 14 AS col2 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - col1 / - 14 AS col2 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT MAX( + - col1 ) DIV - + 13 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT MAX ( + - col1 ) / - + 13 FROM tab0
----
0

query II rowsort
SELECT + col1 * + col1, col0 AS col0 FROM tab1
----
196
51
2209
91
25
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2853
SELECT + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0, - 14 DIV + + 27 AS col2 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2853
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0, - 14 / + + 27 AS col2 FROM tab1
----
NULL
0

query I rowsort
SELECT ALL col1 * + col0 * + col1 * - - col0 FROM tab1
----
180625
18292729
509796

query I rowsort
SELECT - 3 * 88 AS col2 FROM tab2
----
-264
-264
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT DISTINCT CAST( + + 66 AS SIGNED ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT CAST ( + + 66 AS INTEGER ) AS col0 FROM tab1
----
66

query I rowsort
SELECT col1 * + 17 * col0 AS col1 FROM tab1
----
12138
7225
72709

query I rowsort
SELECT - 77 * + 90 * - col0 * + col2 FROM tab0 AS cor0
----
4885650
6029100
66548790

query I rowsort
SELECT ALL col2 + - ( - 20 ) AS col1 FROM tab2
----
43
60
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT - + COUNT( * ), + 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
52

skipif mysql # not compatible
query II rowsort label-2860
SELECT - + COUNT ( * ), + 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
52

query I rowsort
SELECT - col2 + + - 14 AS col1 FROM tab2
----
-37
-54
-72

query I rowsort
SELECT + col1 + col2 + - 9 * + col2 FROM tab0
----
-295
-59
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - 47 * - COUNT( * ) AS col0 FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-2863
SELECT - 47 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 26 * - 38 * col0 FROM tab2 AS cor0
----
-45448
-63232
-74100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + MAX( DISTINCT + - col2 ) * - COUNT( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + MAX ( DISTINCT + - col2 ) * - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT col0 * + + col1 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT DISTINCT + 57 + - col1, - col1 AS col0 FROM tab0
----
-24
-81
36
-21
56
-1

query I rowsort
SELECT DISTINCT col1 - + + col0 * col2 FROM tab1
----
-4882
-5010
-6141

query II rowsort
SELECT col1 - 48, col2 AS col0 FROM tab1
----
-1
68
-34
96
-43
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT CAST( NULL AS SIGNED ) - - - COUNT( * ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT CAST ( NULL AS INTEGER ) - - - COUNT ( * ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col1 + + 55 FROM tab1
----
4332
480
769

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + SUM( - - 66 ) AS col1 FROM tab2 cor0
----
198

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + SUM ( - - 66 ) AS col1 FROM tab2 cor0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT DISTINCT + + SUM( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT + 29 <> + + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + + SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT + 29 <> + + col2 ) )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = ( 99 )
----
97
1
99

query I rowsort
SELECT + - ( + - col0 ) * + col2 + + - col2 FROM tab1 cor0
----
4800
4956
6120

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 3, 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2880
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - CAST( col1 AS SIGNED ) + + - col2 * col1
----

skipif mysql # not compatible
query III rowsort label-2880
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - CAST ( col1 AS INTEGER ) + + - col2 * col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + 54 + + 62 / - col1 * 34 IS NULL AND NOT col2 - - + 73 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col2 FROM tab1 AS cor0
----
-55

query II rowsort
SELECT DISTINCT + - 38, + col1 FROM tab1 AS cor0
----
-38
14
-38
47
-38
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL + AVG ( - + 94 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + AVG ( - + 94 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT - 24 * COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT - 24 * COUNT ( * ) FROM tab2
----
-72

query I rowsort
SELECT + col1 * - 21 AS col1 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2888
SELECT DISTINCT * FROM tab2 WHERE - CAST( + - col1 AS SIGNED ) <= + col0 + + - 82
----

skipif mysql # not compatible
query III rowsort label-2888
SELECT DISTINCT * FROM tab2 WHERE - CAST ( + - col1 AS INTEGER ) <= + col0 + + - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT DISTINCT 82 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT 82 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL - COUNT( * ) * - + 72 * - + COUNT( * ) + - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-654

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - COUNT ( * ) * - + 72 * - + COUNT ( * ) + - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-654

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + + 1 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - SUM( 18 ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2892
SELECT - SUM ( 18 ) AS col2 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT CAST( 22 AS SIGNED ) FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2894
SELECT CAST ( 22 AS INTEGER ) FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT - COUNT( ALL - - 88 ), 53 AS col1 FROM tab1 AS cor0
----
-3
53

skipif mysql # not compatible
query II rowsort label-2895
SELECT - COUNT ( ALL - - 88 ), 53 AS col1 FROM tab1 AS cor0
----
-3
53

query I rowsort
SELECT + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL col0 * + ( + + col0 ) * col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT - 49 - + col2 FROM tab1 WHERE NOT 47 = NULL
----

query I rowsort
SELECT 9 * + col1 + - col0 FROM tab0 AS cor0
----
-88
102
714

query I rowsort
SELECT ALL + - 45 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL < col1 )
----

query I rowsort
SELECT ( - - 8 ) + + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-109
-117
-66

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2902
SELECT + 5 DIV - col0 + - + col2 + - ( col1 ) + + 2 * - col2 AS col1, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-120
NULL
-197
NULL
-241
NULL

skipif mysql # not compatible
query II rowsort label-2902
SELECT + 5 / - col0 + - + col2 + - ( col1 ) + + 2 * - col2 AS col1, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-120
NULL
-197
NULL
-241
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT ALL - COUNT( * ) * + 93 + - + 36 AS col0, 36 FROM tab0 AS cor0
----
-315
36

skipif mysql # not compatible
query II rowsort label-2903
SELECT ALL - COUNT ( * ) * + 93 + - + 36 AS col0, 36 FROM tab0 AS cor0
----
-315
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2904
SELECT DISTINCT - + col1 * + + 81 + + col1 / + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - + col1 * + + 81 + + col1 / + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + MIN( ALL - col0 ) + + 39 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2905
SELECT + MIN ( ALL - col0 ) + + 39 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT ( MAX( - col1 ) ) + - ( COUNT( * ) ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT ( MAX ( - col1 ) ) + - ( COUNT ( * ) ) FROM tab2 cor0
----
-54

query I rowsort
SELECT DISTINCT 19 * + col2 + + col0 - col0 AS col2 FROM tab1
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT MIN( ALL + col2 ) FROM tab2 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-2908
SELECT MIN ( ALL + col2 ) FROM tab2 WHERE NULL IS NULL
----
23

query I rowsort
SELECT ALL col0 + 68 * + 24 FROM tab1
----
1683
1717
1723

query I rowsort
SELECT DISTINCT + 22 + - 10 FROM tab0
----
12

query II rowsort
SELECT col0 AS col0, 79 FROM tab1
----
51
79
85
79
91
79

query I rowsort
SELECT DISTINCT - 95 + + col0 AS col0 FROM tab1
----
-10
-4
-44

query I rowsort
SELECT - + ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col2 - - 68 AS col2 FROM tab2 cor0
----
108
126
91

query I rowsort
SELECT + + col1 - + 78 + - 12 AS col0 FROM tab1 AS cor0
----
-43
-76
-85

query I rowsort
SELECT col2 - 46 FROM tab0 AS cor0
----
-36
1
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT - 51 - + 99 + + MIN( + - CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 51 - + 99 + + MIN ( + - CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT DISTINCT - 86 DIV - col2 + - 11 * 83 FROM tab1 AS cor0
----
-912
-913

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - 86 / - col2 + - 11 * 83 FROM tab1 AS cor0
----
-912
-913

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + 66 - + - col2 * + col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) BETWEEN + col2 AND + - ( - col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL - - MAX( DISTINCT col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - - MAX ( DISTINCT col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL - SUM( DISTINCT col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 88 * - col2 FROM tab1
----
-5192
-5984
-8448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT + 63 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 63 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col2, col0 + - 30 AS col0 FROM tab1
----
-14
21
-47
61
-5
55

query I rowsort
SELECT + col0 * + - 69 FROM tab0
----
-1035
-6003
-6693

query II rowsort
SELECT ALL + col0, 5 FROM tab1
----
51
5
85
5
91
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + - col0 + - - 29 + - col0 / - - col1 / - 44 = NULL
----

query I rowsort
SELECT ALL 65 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + col0 + - - col1 * col2
----

query I rowsort
SELECT DISTINCT - + 11 * - 31 * - col2 AS col1 FROM tab2 AS cor0
----
-13640
-19778
-7843

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT + MAX( DISTINCT - ( - 2 ) ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + MAX ( DISTINCT - ( - 2 ) ) AS col1 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - + COUNT( DISTINCT - 96 ) + - SUM( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <> ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - + COUNT ( DISTINCT - 96 ) + - SUM ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <> ( NULL ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 35 * + ( - 95 ) * 2 * col0 < NULL
----

query I rowsort
SELECT ALL + 73 * - 82 + + col0 - col2 FROM tab0 AS cor0
----
-5909
-5988
-6018

query I rowsort
SELECT 41 + + + 83 FROM tab2
----
124
124
124

query I rowsort
SELECT ALL - 84 * + + 18 * + 46 AS col1 FROM tab1
----
-69552
-69552
-69552

query I rowsort
SELECT ALL + col1 * - 73 * - - col1 FROM tab0 AS cor0
----
-32193
-478953
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT + SUM( ALL - - CAST( NULL AS SIGNED ) ) * + - 57 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * + - 57 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT + + 83 * - + CAST( NULL AS SIGNED ) / + 15 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + + 83 * - + CAST ( NULL AS INTEGER ) / + 15 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 84 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL - 33 DIV - col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - 33 / - col0 + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + 96 AS col0, col1 * - 51 AS col1 FROM tab0 AS cor0 WHERE - ( + + col0 ) IS NOT NULL
----
96
-1071
96
-4131
96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT + COUNT( * ) + - MAX( - col0 ) DIV - MIN( - 31 ) + SUM( - + col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-677

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + COUNT ( * ) + - MAX ( - col0 ) / - MIN ( - 31 ) + SUM ( - + col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-677

query I rowsort
SELECT - + 29 * - col1 AS col1 FROM tab2 AS cor0
----
1479
1943
2233

query I rowsort
SELECT ALL - - col1 * + col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2950
SELECT - COUNT( * ) - - - 5 AS col1, + MAX( - CAST( - + 51 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-8
51

skipif mysql # not compatible
query II rowsort label-2950
SELECT - COUNT ( * ) - - - 5 AS col1, + MAX ( - CAST ( - + 51 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-8
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT + col0 * col1 + 41 AS col2 FROM tab2 WHERE - col0 / + 67 + + 33 * col0 * CAST( NULL AS SIGNED ) * 12 IS NULL
----
2387
4969
5066

skipif mysql # not compatible
query I rowsort label-2951
SELECT + col0 * col1 + 41 AS col2 FROM tab2 WHERE - col0 / + 67 + + 33 * col0 * CAST ( NULL AS INTEGER ) * 12 IS NULL
----
2387
4969
5066

query I rowsort
SELECT 42 * - col2 - col1 FROM tab1
----
-2483
-2903
-4046

query I rowsort
SELECT ALL - 94 * - 2 + + col2 AS col1 FROM tab1
----
247
256
284

query I rowsort
SELECT DISTINCT - ( + ( - 37 ) ) + + col1 FROM tab2
----
104
114
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2955
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2, 50 FROM tab0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2955
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2, 50 FROM tab0
----
NULL
50

query III rowsort
SELECT * FROM tab0 WHERE 39 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 78 - - 96, + 18 AS col0 FROM tab2 cor0
----
18
18
18
18
18
18

query I rowsort
SELECT DISTINCT + - 28 * + 46 * + col2 FROM tab1 AS cor0
----
-123648
-75992
-87584

onlyif mysql # DIV for integer division: 
query II rowsort label-2959
SELECT + col2 DIV - + 81, - col2 col0 FROM tab0 AS cor0
----
-1
-99
0
-10
0
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2959
SELECT + col2 / - + 81, - col2 col0 FROM tab0 AS cor0
----
-1
-99
0
-10
0
-47

query II rowsort
SELECT + + col2 * - + col1 AS col1, - col0 FROM tab2 AS cor0
----
-1173
-46
-3080
-64
-3886
-75

query II rowsort
SELECT - 41 AS col0, col1 AS col1 FROM tab1
----
-41
14
-41
47
-41
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + MIN( DISTINCT + 59 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2962
SELECT + MIN ( DISTINCT + 59 ) AS col0 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 col2 FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 + + - ( + col1 ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - 20 ) AS col0 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 39 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 39 IS NULL
----
3

query I rowsort
SELECT + col0 * + - 13 * - col1 AS col1 FROM tab2 AS cor0
----
30498
64064
65325

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT DISTINCT - COUNT( + 76 ), ( + 39 ) AS col2 FROM tab2 WHERE NOT 17 IS NULL
----
-3
39

skipif mysql # not compatible
query II rowsort label-2968
SELECT DISTINCT - COUNT ( + 76 ), ( + 39 ) AS col2 FROM tab2 WHERE NOT 17 IS NULL
----
-3
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab2
----
32

query I rowsort
SELECT ALL + ( + 32 ) FROM tab0 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL + COUNT( + - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + COUNT ( + - col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT DISTINCT ( - ( MAX( DISTINCT + col1 ) ) ) AS col1 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT ( - ( MAX ( DISTINCT + col1 ) ) ) AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----
-47

query I rowsort
SELECT ALL ( + - col0 ) * - 86 AS col0 FROM tab1 AS cor0 WHERE col2 > + ( 34 )
----
4386
7310
7826

query III rowsort
SELECT * FROM tab0 cor0 WHERE 10 IS NULL
----

query I rowsort
SELECT DISTINCT + - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query I rowsort
SELECT DISTINCT col2 + - 84 FROM tab2
----
-26
-44
-61

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 28 * 0 + - + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 / - + col1 * - col1 + col2 + col0 * + + ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 28 * 0 + - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 / - + col1 * - col1 + col2 + col0 * + + ( - col1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( - 51 ) + + - col2 AS col1 FROM tab1
----
-110
-119
-147

query I rowsort
SELECT - 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT + col0 + col2 DIV col1 DIV - 25 + - 99 AS col0 FROM tab0 AS cor0
----
-12
-5
-84

skipif mysql # not compatible
query I rowsort label-2981
SELECT + col0 + col2 / col1 / - 25 + - 99 AS col0 FROM tab0 AS cor0
----
-12
-5
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2982
SELECT * FROM tab2 cor0 WHERE - col0 + + CAST( NULL AS SIGNED ) * + 87 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2982
SELECT * FROM tab2 cor0 WHERE - col0 + + CAST ( NULL AS INTEGER ) * + 87 IS NOT NULL
----

query I rowsort
SELECT + ( + - 68 ) + + col2 AS col1 FROM tab2 AS cor0
----
-10
-28
-45

query I rowsort
SELECT + col1 * - - col1 + - 96 FROM tab1 AS cor0
----
-71
100
2113

query I rowsort
SELECT DISTINCT - col1 - - col1 * col2 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT ALL CAST( 27 AS SIGNED ) FROM tab0 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL CAST ( 27 AS INTEGER ) FROM tab0 AS cor0
----
27
27
27

query II rowsort
SELECT + 60 + + 8 * + col2 AS col0, + 24 * + col1 AS col1 FROM tab2 AS cor0
----
244
1224
380
1848
524
1608

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - ( + col2 ), + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT 89 + + COUNT( * ) + 32 AS col2 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-2989
SELECT 89 + + COUNT ( * ) + 32 AS col2 FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + COUNT( * ) + 24 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + COUNT ( * ) + 24 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + col1 + + + 85 FROM tab0
----
106
166
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2992
SELECT ALL 0 DIV + col0 * + + col1 + - CAST( + 61 AS SIGNED ) col0 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT ALL 0 / + col0 * + + col1 + - CAST ( + 61 AS INTEGER ) col0 FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT 97 DIV SUM( col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2993
SELECT 97 / SUM ( col0 ) AS col0 FROM tab0
----
0

query II rowsort
SELECT - - 29, - 27 AS col1 FROM tab0 AS cor0
----
29
-27
29
-27
29
-27

query III rowsort
SELECT * FROM tab0 WHERE NOT + 92 + 60 > + + col0
----

query I rowsort
SELECT ALL - 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT CAST( - ( + + col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT CAST ( - ( + + col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT + col0 + col1 - + + col2 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT - ( MAX( DISTINCT + - col1 ) ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT - ( MAX ( DISTINCT + - col1 ) ) AS col2 FROM tab1 cor0
----
5

query II rowsort
SELECT col1, col0 * + + col0 AS col1 FROM tab1
----
14
2601
47
8281
5
7225

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT DISTINCT COUNT( * ) AS col2, + 39 FROM tab2 WHERE NULL >= NULL
----
0
39

skipif mysql # not compatible
query II rowsort label-3002
SELECT DISTINCT COUNT ( * ) AS col2, + 39 FROM tab2 WHERE NULL >= NULL
----
0
39

query I rowsort
SELECT ALL col2 + - + 59 * - col1 + + col2 + + + ( + 66 ) * - - col1 + col0 AS col0 FROM tab2
----
6467
8566
9769

query I rowsort
SELECT 77 * + + col2 AS col2 FROM tab0
----
3619
7623
770

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT + col0 DIV 67 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + col0 / 67 AS col1 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 89 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 8 BETWEEN - + 43 AND NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 >= 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) <= ( - 46 )
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) <= ( - 46 )
----

query I rowsort
SELECT ALL + col1 + + 87 * + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1232
4136
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT DISTINCT + COUNT( * ) DIV + 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT + COUNT ( * ) / + 89 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + 56 DIV + 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 56 / + 91 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT ALL col0 DIV 38 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL col0 / 38 FROM tab0
----
0
2
2

query I rowsort
SELECT col2 - - col0 AS col2 FROM tab0 WHERE - col2 NOT BETWEEN NULL AND + 87
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3016
SELECT - ( + CAST( ( - ( + CAST( + col2 AS DECIMAL ) ) ) AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3016
SELECT - ( + CAST ( ( - ( + CAST ( + col2 AS REAL ) ) ) AS INTEGER ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT COUNT( * ) * - COUNT( * ) + 1 AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3017
SELECT COUNT ( * ) * - COUNT ( * ) + 1 AS col2 FROM tab2
----
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 20 + + 70 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT + 32 DIV + 4 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3019
SELECT + 32 / + 4 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT - 10 + col2 AS col2 FROM tab2
----
13
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT + MIN( 86 ) - - MAX( col0 ) AS col2 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + MIN ( 86 ) - - MAX ( col0 ) AS col2 FROM tab1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT col2 DIV + 41 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3022
SELECT col2 / + 41 FROM tab1
----
1
1
2

query I rowsort
SELECT col2 * - 74 FROM tab0
----
-3478
-7326
-740

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 31 * col2
----

query I rowsort
SELECT + 67 FROM tab0 WHERE col0 BETWEEN - col2 AND ( + col2 )
----
67
67

query I rowsort
SELECT - 91 + - 9 AS col0 FROM tab1
----
-100
-100
-100

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * + col2 + + col1 * - col2 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col2 IN ( col2 + + col0 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 ON ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 50 * ( 12 ) FROM tab2
----
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT ALL 80 DIV + ( 7 ) AS col1 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 80 / + ( 7 ) AS col1 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + - COUNT( ALL - col2 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3033
SELECT + - COUNT ( ALL - col2 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT - col1 + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3035
SELECT - col1 + col2 / col2 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - COUNT( * ) + - 1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3036
SELECT - COUNT ( * ) + - 1 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 48 - 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT COUNT( * ) * 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT COUNT ( * ) * 4 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL MAX( ALL 18 ) + 73 AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL MAX ( ALL 18 ) + 73 AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 - 69 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - 89 AS col1 FROM tab2 AS cor0
----
-31
-49
-66

query I rowsort
SELECT col2 + - 52 - ( + 93 ) AS col2 FROM tab1
----
-49
-77
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT CAST( NULL AS SIGNED ) + + col2 - - col2 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT CAST ( NULL AS INTEGER ) + + col2 - - col2 / col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 34 )
----

query I rowsort
SELECT col2 / + 64 + + col1 AS col0 FROM tab2 WHERE ( col0 - col1 ) IN ( + col2 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 26 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT + CAST( NULL AS SIGNED ) * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + CAST ( NULL AS INTEGER ) * - + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 36 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2 AS cor0 WHERE NOT - 77 * col2 - + col2 IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL - 50 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT SUM( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3053
SELECT SUM ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - col0 - + col0 + + col1 FROM tab0
----
-153
-193
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3055
SELECT * FROM tab0 WHERE - col1 * - 39 NOT BETWEEN - 54 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3055
SELECT * FROM tab0 WHERE - col1 * - 39 NOT BETWEEN - 54 AND CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NULL IN ( col0 + - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 28 * + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 80 + - col2 FROM tab0 AS cor0
----
-127
-179
-90

query I rowsort
SELECT DISTINCT - 34 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 46 + 9 * - 73 FROM tab2 AS cor0
----
-703
-703
-703

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 51 * + + 65 ) AND NULL
----

query I rowsort
SELECT ALL col2 * + col0 - + col2 + + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3063
SELECT 96 * + 64 + + + 62 + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT 96 * + 64 + + + 62 + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 97 NOT BETWEEN - ( - col0 ) AND NULL OR NOT ( NULL ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 27 ) FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3066
SELECT - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT - MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - 83 col2 FROM tab0 AS cor0
----
166
166
166

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * + col1 ) <= ( + col1 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3070
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 * + 94 / CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3070
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 * + 94 / CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - 35 / ( + 48 ) - 86 + col1 ) BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + 27
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL <> ( NULL ) AND NOT ( col2 ) >= ( - col2 )
----

query II rowsort
SELECT DISTINCT - ( - col1 ), - 52 AS col2 FROM tab2
----
51
-52
67
-52
77
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT MIN( ALL 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3076
SELECT MIN ( ALL 58 ) FROM tab1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT DISTINCT - MAX( - CAST( + + col1 AS SIGNED ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - MAX ( - CAST ( + + col1 AS INTEGER ) ) FROM tab2
----
51

query I rowsort
SELECT 2 FROM tab0 AS cor0 WHERE NOT - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL + COUNT( + - col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + COUNT ( + - col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col2 FROM tab2
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - 11 AS col1, col1 * - 24 FROM tab0 AS cor0
----
-11
-1944
-11
-24
-11
-504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3083
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + 67 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + 67 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 35 + col2 < - 3 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3086
SELECT 98 AS col0, - 12 * - + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
98
168
98
564
98
60

skipif mysql # not compatible
query II rowsort label-3086
SELECT 98 AS col0, - 12 * - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
98
168
98
564
98
60

query I rowsort
SELECT DISTINCT - 33 * + - 73 * - - col2 AS col0 FROM tab1 cor0
----
142131
163812
231264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT DISTINCT col2 - + CAST( + 87 + + 32 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( - + 44 * + 1 )
----

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT col2 - + CAST ( + 87 + + 32 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( - + 44 * + 1 )
----

query I rowsort
SELECT + col2 * + + 70 / - 55 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 79 + + col0 AS col0 FROM tab2 cor0
----
-15
-33
-4

query I rowsort
SELECT ALL col1 * + - col0 + col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT COUNT( ALL - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3092
SELECT COUNT ( ALL - + col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col0 col1 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3094
SELECT + 50, - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3094
SELECT + 50, - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
50
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + - col1 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 * col1 AND + - col2
----

query I rowsort
SELECT - 91 * + ( - 84 ) AS col2 FROM tab0
----
7644
7644
7644

query I rowsort
SELECT ALL + + 56 FROM tab2 WHERE NOT 52 NOT IN ( 25, + col1 )
----

query I rowsort
SELECT + 57 + - col2 + - col1 FROM tab1
----
-53
-58
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT CAST( NULL AS SIGNED ) * 73 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 73 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT 63 * + - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 63 * + - COUNT ( * ) FROM tab2
----
-189

query I rowsort
SELECT + col0 + col2 * - - 5 FROM tab1 AS cor0
----
380
431
531

query I rowsort
SELECT ALL + 53 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

query I rowsort
SELECT ALL - + col0 * 59 AS col0 FROM tab0 AS cor0
----
-5133
-5723
-885

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 WHERE ( + col0 * 75 / - - col2 * + 80 ) IS NULL
----

query I rowsort
SELECT ALL + 9 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 79 NOT IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL + + col2 * - CAST( 3 AS SIGNED ) col1 FROM tab0 cor0
----
-141
-297
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT ALL + + col2 * - CAST ( 3 AS INTEGER ) col1 FROM tab0 cor0
----
-141
-297
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + col2 BETWEEN + col2 AND ( 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL SUM( 30 ) col1 FROM tab0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT ALL SUM ( 30 ) col1 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 98 ) col0 FROM tab1
----
98

query I rowsort
SELECT ALL 73 * col0 FROM tab2 WHERE NOT ( - col0 ) = ( + 46 )
----
3358
4672
5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT 73 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 NOT BETWEEN - col2 * col0 AND - col2 + col2
----

skipif mysql # not compatible
query I rowsort label-3113
SELECT 73 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 NOT BETWEEN - col2 * col0 AND - col2 + col2
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT 12 * - 84 * + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT MIN( DISTINCT - col0 ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 55, col2 / - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 55, col2 / - - col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 9 + - + col0 + + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + MAX( DISTINCT + + 39 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3117
SELECT + MAX ( DISTINCT + + 39 ) AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT + col2 + ( - - 85 ) AS col2 FROM tab0
----
132
184
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + SUM( 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + SUM ( 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
252

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( ( + col1 ) )
----

query I rowsort
SELECT AVG ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE 85 BETWEEN - col2 AND NULL
----
NULL

query I rowsort
SELECT + - col1 + - 75 * 7 FROM tab0 AS cor0
----
-526
-546
-606

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT + 26 + col1 DIV + - 30 AS col0 FROM tab2 AS cor0
----
24
25

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + 26 + col1 / + - 30 AS col0 FROM tab2 AS cor0
----
24
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT + COUNT( * ) + + - 45 * - - 51 FROM tab2 AS cor0
----
-2292

skipif mysql # not compatible
query I rowsort label-3124
SELECT + COUNT ( * ) + + - 45 * - - 51 FROM tab2 AS cor0
----
-2292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3125
SELECT ALL col0 + col0 AS col1, 68 * + col1 + - - CAST( - 74 AS SIGNED ) FROM tab0 AS cor0
----
174
1354
194
-6
30
5434

skipif mysql # not compatible
query II rowsort label-3125
SELECT ALL col0 + col0 AS col1, 68 * + col1 + - - CAST ( - 74 AS INTEGER ) FROM tab0 AS cor0
----
174
1354
194
-6
30
5434

query III rowsort
SELECT * FROM tab2 WHERE 94 * + 94 + col2 + + 64 + + col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 6 col0 FROM tab0
----
105
16
53

query I rowsort
SELECT ALL - 57 + col2 FROM tab0
----
-10
-47
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT COUNT( col2 ) + + 61 - - 5 + + 8 + - COUNT( * ) * COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT COUNT ( col2 ) + + 61 - - 5 + + 8 + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT MIN( + 33 ) * COUNT( * ) DIV COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3130
SELECT MIN ( + 33 ) * COUNT ( * ) / COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT - - 87 FROM tab0 WHERE NULL = - - col1 / + - col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT 31 * + MAX( col2 ) AS col1 FROM tab1
----
2976

skipif mysql # not compatible
query I rowsort label-3132
SELECT 31 * + MAX ( col2 ) AS col1 FROM tab1
----
2976

query I rowsort
SELECT DISTINCT 7 - col1 * + col2 FROM tab0
----
-203
-3800
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3134
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + col0 - col1 + - col0 + + 71 FROM tab0 cor0
----
-10
50
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT - + ( - + ( - CAST( + col1 AS SIGNED ) ) ) - col0 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - + ( - + ( - CAST ( + col1 AS INTEGER ) ) ) - col0 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT 45 + + ( col1 ) FROM tab0 AS cor0
----
126
46
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - ( + + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 5 * + 62 * col2 + ( + col2 ) * - col0 AS col0 FROM tab1 WHERE + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT MIN( ALL - 24 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-3142
SELECT MIN ( ALL - 24 ) FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + COUNT( * ) * + 90 * - + COUNT( * ) FROM tab1 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-3143
SELECT + COUNT ( * ) * + 90 * - + COUNT ( * ) FROM tab1 AS cor0
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL - MIN( ALL 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - MIN ( ALL 16 ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT 30 AS col1, - col1 FROM tab2 AS cor0
----
30
-51
30
-67
30
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - + SUM( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - + SUM ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + ( + MAX( + + 73 ) ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3147
SELECT + ( + MAX ( + + 73 ) ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
219

query I rowsort
SELECT ALL - ( - + 37 ) AS col0 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + - 77 AS col0 FROM tab0 cor0
----
-77

query I rowsort
SELECT - 81 * + - 57 * col2 FROM tab0
----
216999
457083
46170

query II rowsort
SELECT + col1 * - 65 * + col2 AS col2, - 67 FROM tab0
----
-13650
-67
-247455
-67
-6435
-67

query I rowsort
SELECT 68 * - + ( + 44 ) FROM tab0
----
-2992
-2992
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3153
SELECT * FROM tab2 WHERE NOT NULL BETWEEN CAST( + + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3153
SELECT * FROM tab2 WHERE NOT NULL BETWEEN CAST ( + + col1 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL col2 * - - col1 * + col1 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 BETWEEN - + col0 + + - 12 AND + 70
----
51
14
96

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT 41 * - + col0 + + 72 - - col1 NOT IN ( col0 + - 70, + ( 40 ) + + 75 )
----

query II rowsort
SELECT - col0 AS col0, - 13 AS col2 FROM tab0 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT - col2 + - - col0 DIV + col2 AS col0 FROM tab0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-3158
SELECT - col2 + - - col0 / + col2 AS col0 FROM tab0
----
-2
-47
-99

query I rowsort
SELECT DISTINCT col2 / + 13 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col0 * 10 AS col1 FROM tab1 AS cor0
----
510
850
910

query II rowsort
SELECT ALL + col1 * - col0 + + col0 * 53 AS col0, + 84 FROM tab2 AS cor0
----
-1050
84
-1536
84
92
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3162
SELECT DISTINCT - COUNT( * ) AS col2, - 47 FROM tab1 AS cor0
----
-3
-47

skipif mysql # not compatible
query II rowsort label-3162
SELECT DISTINCT - COUNT ( * ) AS col2, - 47 FROM tab1 AS cor0
----
-3
-47

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE - 55 * + col1 = + col1 + col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * + + 20 * + 75 col1 FROM tab2 AS cor0
----
112567
69051
96077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT DISTINCT + + CAST( + + SUM( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + + CAST ( + + SUM ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3168
SELECT - - COUNT( * ) DIV CAST( - AVG ( DISTINCT ( + - col1 ) ) AS SIGNED ) DIV SUM( ALL + + 45 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT - - COUNT ( * ) / CAST ( - AVG ( DISTINCT ( + - col1 ) ) AS INTEGER ) / SUM ( ALL + + 45 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( + - 16 ) AS col0 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + SUM( DISTINCT 51 ) / - 87 + - ( - 89 ) AS col2 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT + SUM ( DISTINCT 51 ) / - 87 + - ( - 89 ) AS col2 FROM tab0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - 84 * col0 + + col1 FROM tab1
----
-4270
-7135
-7597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 87 ) - + col2 col1 FROM tab2
----
-110
-127
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - SUM( DISTINCT - + col0 ) + 70 col1 FROM tab0
----
269

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3173
SELECT - SUM ( DISTINCT - + col0 ) + 70 col1 FROM tab0
----
269

query I rowsort
SELECT col1 + - - 63 FROM tab1
----
110
68
77

query II rowsort
SELECT ALL col2 - - 43 AS col2, - col1 * + col0 FROM tab2
----
101
-5025
66
-2346
83
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - 23 - + MIN( col0 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - 23 - + MIN ( col0 ) FROM tab0 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT - COUNT( * ) * - 76 - - 22 FROM tab0 AS cor0 WHERE NOT + 24 >= col1
----
98

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - COUNT ( * ) * - 76 - - 22 FROM tab0 AS cor0 WHERE NOT + 24 >= col1
----
98

query I rowsort
SELECT - - col2 * + + col0 AS col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT 65 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query II rowsort
SELECT DISTINCT 4 * - + col0 * 10, col0 AS col2 FROM tab1
----
-2040
51
-3400
85
-3640
91

query I rowsort
SELECT ALL + col0 * + 67 FROM tab0
----
1005
5829
6499

query II rowsort
SELECT ALL - - col2 AS col2, 98 FROM tab1 cor0
----
59
98
68
98
96
98

query I rowsort
SELECT + col2 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col2 AS col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + col2 * - 2 AS col1 FROM tab0 cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL + SUM( ALL + col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3186
SELECT ALL + SUM ( ALL + col2 ) col2 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col2 * + - col2 col2 FROM tab0 AS cor0
----
-108241
-480249
-4900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT ALL - COUNT( * ) DIV - - ( 22 ) * 55 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - COUNT ( * ) / - - ( 22 ) * 55 FROM tab0
----
0

query I rowsort
SELECT col1 + - + ( + col1 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL + COUNT( * ) * - + 96 col0 FROM tab1
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT ALL + COUNT ( * ) * - + 96 col0 FROM tab1
----
-288

query II rowsort
SELECT col1 + + - 75 + col1 * - 66 AS col0, + col1 AS col2 FROM tab1
----
-3130
47
-400
5
-985
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT - col0 DIV - 57 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT - col0 / - 57 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT + col0 AS col1, + col2 FROM tab2 AS cor0 WHERE NOT - col2 * - 95 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * col0 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 77 NOT BETWEEN 53 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 col2 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - col0 + - - ( + col0 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * - + col1 col1 FROM tab1
----
1034
110
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) - + - ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) - + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 94 * - 95 * - 77 + - col1 * + 42 + col1 FROM tab2 AS cor0
----
31627969
44003883
51568003

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT 7 DIV + 51 + + - col0 + + - ( 34 ) + + col2 FROM tab0 AS cor0
----
-111
-2
-32

skipif mysql # not compatible
query I rowsort label-3201
SELECT 7 / + 51 + + - col0 + + - ( 34 ) + + col2 FROM tab0 AS cor0
----
-111
-2
-32

query I rowsort
SELECT + + col2 + col1 + - - col1 FROM tab2 AS cor0
----
125
192
194

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 45 + - 76 + + 23 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL - 85 - + CAST( MAX( + col2 ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT + col0 / - col0 * - col0 / + col2 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3204
SELECT ALL - 85 - + CAST ( MAX ( + col2 ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT + col0 / - col0 * - col0 / + col2 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3205
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3205
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3207
SELECT * FROM tab1 WHERE 79 BETWEEN col1 + + + col0 + - - col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3207
SELECT * FROM tab1 WHERE 79 BETWEEN col1 + + + col0 + - - col2 AND - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + 6 AS col0, col0 - - col0 AS col2 FROM tab2 WHERE + - col1 * col2 * col2 NOT IN ( - col0 + - col2 )
----
6
128
6
150
6
92

query I rowsort
SELECT DISTINCT ( - - 0 ) * - col1 + - - col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT col1 * col2 - - + col2 AS col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT ALL 97 AS col0 FROM tab2 WHERE NOT ( ( + col0 ) ) NOT BETWEEN NULL AND + col1 * + col2 / col2 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / col2 / col2 + + - col1
----

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL 97 AS col0 FROM tab2 WHERE NOT ( ( + col0 ) ) NOT BETWEEN NULL AND + col1 * + col2 / col2 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / col2 / col2 + + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 = col2
----

query I rowsort
SELECT - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3214
SELECT + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + SUM( DISTINCT - 32 ) AS col0 FROM tab1 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3215
SELECT + SUM ( DISTINCT - 32 ) AS col0 FROM tab1 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT ( COUNT( * ) ) * + + MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT ( COUNT ( * ) ) * + + MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-243

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 75 * 44 / + col0 > + 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - + 90 * ( - + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-63450
-78300
-864270

query I rowsort
SELECT ALL - 28 + 62 AS col0 FROM tab1
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL CAST( NULL AS SIGNED ) + 79 * + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL CAST ( NULL AS INTEGER ) + 79 * + - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + + col2 AS col1 FROM tab1 WHERE NOT - 78 IS NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + + 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3224
SELECT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN CAST( + 2 AS SIGNED ) - + 93 + - ( + 35 ) * ( + 18 ) * + + col1 AND - col1 AND NOT 75 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3224
SELECT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN CAST ( + 2 AS INTEGER ) - + 93 + - ( + 35 ) * ( + 18 ) * + + col1 AND - col1 AND NOT 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT MAX( ALL - col2 ) FROM tab2 WHERE - + col1 BETWEEN + + 61 + - col1 AND + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT MAX ( ALL - col2 ) FROM tab2 WHERE - + col1 BETWEEN + + 61 + - col1 AND + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + + COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col2 * col0
----

query I rowsort
SELECT + ( 75 ) - - col1 FROM tab0 AS cor0
----
156
76
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT DISTINCT + - col2 + + ( - col0 ) * col2 DIV - - col1 FROM tab1 cor0
----
-1062
-199
-445

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + - col2 + + ( - col0 ) * col2 / - - col1 FROM tab1 cor0
----
-1062
-199
-445

query I rowsort
SELECT col0 - - 7 AS col1 FROM tab0 cor0
----
104
22
94

query I rowsort
SELECT + col1 - + 58 FROM tab2
----
-7
19
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3233
SELECT ALL - COUNT( * ) + 36, CAST( - - ( + + MAX( DISTINCT - col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
33
-10

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL - COUNT ( * ) + 36, CAST ( - - ( + + MAX ( DISTINCT - col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
33
-10

query III rowsort
SELECT * FROM tab1 WHERE + ( - col2 ) * - col1 * - - col2 IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT col0 DIV col1 * + col2 FROM tab1
----
1003
288
68

skipif mysql # not compatible
query I rowsort label-3235
SELECT col0 / col1 * + col2 FROM tab1
----
1003
288
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 16 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT + + MIN( DISTINCT + - col2 ) * + COUNT( * ) FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + + MIN ( DISTINCT + - col2 ) * + COUNT ( * ) FROM tab2 cor0
----
-174

query II rowsort
SELECT ALL + 57, + col1 FROM tab0 AS cor0
----
57
1
57
21
57
81

query I rowsort
SELECT - + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 68 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + MAX( - + col2 ) + + 45 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + MAX ( - + col2 ) + + 45 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NULL IS NULL )
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 + + + col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - - MAX( DISTINCT + + col2 ) FROM tab2 WHERE NOT - 17 NOT BETWEEN NULL AND 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - - MAX ( DISTINCT + + col2 ) FROM tab2 WHERE NOT - 17 NOT BETWEEN NULL AND 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL - SUM( + col1 ) FROM tab1 WHERE NOT ( - 28 + - + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - SUM ( + col1 ) FROM tab1 WHERE NOT ( - 28 + - + col0 IS NOT NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + 60 IS NOT NULL
----

query II rowsort
SELECT 19 AS col0, + 34 AS col1 FROM tab1 cor0 WHERE - col1 NOT BETWEEN col0 AND NULL
----
19
34
19
34
19
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT ALL + 42 + - - COUNT( + - 36 ) * - 12 DIV + 99 + + - 55 col1 FROM tab0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3248
SELECT ALL + 42 + - - COUNT ( + - 36 ) * - 12 / + 99 + + - 55 col1 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + COUNT( * ) * ( 39 ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + COUNT ( * ) * ( 39 ) FROM tab0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3250
SELECT - col0 * - col0 + - col2 - - ( + CAST( + 28 AS SIGNED ) ), 76 * + 19 + + col2 col2 FROM tab2
----
2121
1467
4084
1484
5595
1502

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3250
SELECT - col0 * - col0 + - col2 - - ( + CAST ( + 28 AS INTEGER ) ), 76 * + 19 + + col2 col2 FROM tab2
----
2121
1467
4084
1484
5595
1502

query I rowsort
SELECT - col0 + 55 FROM tab1 AS cor0
----
-30
-36
4

query I rowsort
SELECT ALL - col0 * + 68 FROM tab2 AS cor0
----
-3128
-4352
-5100

query I rowsort
SELECT ALL - col2 - - - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 33 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3255
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 IN ( + CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-3255
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 IN ( + CAST ( NULL AS INTEGER ), - col2 )
----

query I rowsort
SELECT ALL + col0 * + + 9 FROM tab1 AS cor0
----
459
765
819

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT + 98 DIV + col0 FROM tab0 AS cor0
----
1
6

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + 98 / + col0 FROM tab0 AS cor0
----
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT DISTINCT + - 0 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + - 0 / col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - MIN( col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3259
SELECT - MIN ( col1 ) col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT MIN( DISTINCT ( + - col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT MIN ( DISTINCT ( + - col1 ) ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 82 * - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 68 ) * + col0 + - - col0 * + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT col2 DIV - + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT col2 / - + col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3264
SELECT * FROM tab0 WHERE NOT + + CAST( - 56 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3264
SELECT * FROM tab0 WHERE NOT + + CAST ( - 56 AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 >= - col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT MIN( + ( - + col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT MIN ( + ( - + col2 ) ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT + col2 AS col1, + 1 - + - col2 FROM tab0 AS cor0
----
10
11
47
48
99
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT 65, COUNT( ALL - - col0 ) + - - 86 AS col0 FROM tab1 AS cor0
----
65
89

skipif mysql # not compatible
query II rowsort label-3268
SELECT 65, COUNT ( ALL - - col0 ) + - - 86 AS col0 FROM tab1 AS cor0
----
65
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3269
SELECT 18 DIV 18 AS col1, + CAST( - ( - 12 ) AS SIGNED ) AS col2 FROM tab1
----
1
12
1
12
1
12

skipif mysql # not compatible
query II rowsort label-3269
SELECT 18 / 18 AS col1, + CAST ( - ( - 12 ) AS INTEGER ) AS col2 FROM tab1
----
1
12
1
12
1
12

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = - 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT 66 DIV col2 * - - col0 AS col2 FROM tab2
----
64
75
92

skipif mysql # not compatible
query I rowsort label-3271
SELECT 66 / col2 * - - col0 AS col2 FROM tab2
----
64
75
92

query I rowsort
SELECT - - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col1 - + 48 AND - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 5 + - - col1 + + - 28 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - 15 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT MIN( + - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3278
SELECT MIN ( + - 96 ) FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT - 89 AS col1 FROM tab1 WHERE ( + col2 ) <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 89 AS col1 FROM tab1 WHERE ( + col2 ) <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + COUNT( * ) + 64 * 9 + - - 14 AS col0 FROM tab1
----
593

skipif mysql # not compatible
query I rowsort label-3280
SELECT + COUNT ( * ) + 64 * 9 + - - 14 AS col0 FROM tab1
----
593

query I rowsort
SELECT - col2 + + 73 FROM tab2
----
15
33
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT 79 + + MIN( - 65 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 79 + + MIN ( - 65 ) FROM tab0
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col0 ) / + 89 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 94 AS col0 FROM tab0 AS cor0 WHERE + col1 + - - col1 < NULL
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE ( NULL BETWEEN - 65 AND col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 + + col0 + - col2 AND + col1 * - - col2
----

query I rowsort
SELECT ALL + + 84 FROM tab2 WHERE + ( col2 ) * + col2 IS NULL
----

query II rowsort
SELECT - col0 - - col2 AS col1, + col0 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - COUNT( ALL + 16 ) - 35 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( ALL + 16 ) - 35 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL - 42 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + - COUNT( * ) * + SUM( + col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-3292
SELECT + - COUNT ( * ) * + SUM ( + col0 ) FROM tab0 AS cor0
----
-597

query I rowsort
SELECT + col0 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT - col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3294
SELECT - col1 / - - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT DISTINCT 30 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT 30 / col0 FROM tab2
----
0

query I rowsort
SELECT ALL 70 * + 54 FROM tab0
----
3780
3780
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - SUM( DISTINCT - col2 ) AS col0 FROM tab0 WHERE NOT + 71 NOT BETWEEN NULL AND + - col0 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT - SUM ( DISTINCT - col2 ) AS col0 FROM tab0 WHERE NOT + 71 NOT BETWEEN NULL AND + - col0 + 97
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - - col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL > + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL > + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, - 28 + - col0 col1 FROM tab2 AS cor0
----
-23
-74
-40
-92
-58
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL + + 71 + COUNT( * ) + + 10 * + COUNT( * ) FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + + 71 + COUNT ( * ) + + 10 * + COUNT ( * ) FROM tab1 AS cor0
----
104

query II rowsort
SELECT DISTINCT + + col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL - + CAST( + ( + + ( - COUNT( DISTINCT + ( - col2 ) ) ) ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - + CAST ( + ( + + ( - COUNT ( DISTINCT + ( - col2 ) ) ) ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN col0 AND + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT DISTINCT - + ( + + col2 ) + - 66 DIV + col0 AS col1 FROM tab0 AS cor0
----
-10
-51
-99

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - + ( + + col2 ) + - 66 / + col0 AS col1 FROM tab0 AS cor0
----
-10
-51
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 63 < - col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - COUNT( DISTINCT col0 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - COUNT ( DISTINCT col0 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 * 85 + + 73 + - col2 * + col1 AS col1 FROM tab2
----
2433
2562
2810

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col2 / - - 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT + col0 * - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3312
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - SUM( ALL - 43 ) * + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-384

skipif mysql # not compatible
query I rowsort label-3313
SELECT - SUM ( ALL - 43 ) * + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-384

query I rowsort
SELECT col0 * + + col0 * + col2 - col1 FROM tab0 AS cor0
----
10494
75669
931490

query I rowsort
SELECT + + col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 3 AND NULL
----

query II rowsort
SELECT - col1 AS col1, - col0 AS col1 FROM tab1 WHERE ( NULL ) < NULL
----

query II rowsort
SELECT ALL - - 84 AS col0, + 40 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to d48dce6d92cda2dea9cc17c912d33aed

query I rowsort
SELECT ALL - col2 - + col2 AS col1 FROM tab0
----
-198
-20
-94

query II rowsort
SELECT ALL + - col0 AS col2, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT + - MIN( + 49 ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3320
SELECT + - MIN ( + 49 ) FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT + + col0 * ( - ( 1 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col0, - col1 + col1 * + col2 * - 47 * col1 AS col2 FROM tab1 AS cor0
----
51
-884366
85
-69330
91
-7060011

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 14 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 BETWEEN - col1 AND col1 + + 62
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - + MIN( ALL 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3325
SELECT - + MIN ( ALL 69 ) FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-3326
SELECT - - col0, col1 + - col0 + col0 DIV - 86 + + - 9 * col0 * + - col1 AS col2 FROM tab1 AS cor0
----
51
6389
85
3745
91
38448

skipif mysql # not compatible
query II rowsort label-3326
SELECT - - col0, col1 + - col0 + col0 / - 86 + + - 9 * col0 * + - col1 AS col2 FROM tab1 AS cor0
----
51
6389
85
3745
91
38448

query I rowsort
SELECT - ( + 72 ) AS col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL 40 * + col2 AS col2 FROM tab0
----
1880
3960
400

query I rowsort
SELECT 95 * col0 * + + col0 FROM tab2
----
201020
389120
534375

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT COUNT( * ) * - 87 AS col1 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT COUNT ( * ) * - 87 AS col1 FROM tab2
----
-261

query I rowsort
SELECT 13 * + - 6 AS col1 FROM tab0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - SUM( DISTINCT + - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - SUM ( DISTINCT + - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + COUNT( 90 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3334
SELECT + COUNT ( 90 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 + col1 col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col2 AND + col0 * 15
----
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col2 AND + col0 * 15
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL 64 + 69, + col1 + + col1 AS col2 FROM tab2 AS cor0
----
133
102
133
134
133
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + SUM( ALL + 16 ) + SUM( DISTINCT - 2 ) AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3341
SELECT + SUM ( ALL + 16 ) + SUM ( DISTINCT - 2 ) AS col1 FROM tab1
----
46

query I rowsort
SELECT - + col0 * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
690
783
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31, col0 col1 FROM tab1 AS cor0
----
31
51
31
85
31
91

query I rowsort
SELECT ALL + 52 * + - 11 * + - col1 + ( + col1 ) + ( + col2 ) AS col0 FROM tab0
----
12043
46460
672

query I rowsort
SELECT DISTINCT + col1 * + + col0 + - 78 AS col2 FROM tab2
----
2268
4850
4947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) + 29 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) + 29 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 19 - - col1 + + col1 * 13 AS col1 FROM tab1
----
215
677
89

query I rowsort
SELECT - 86 + - col0 AS col2 FROM tab2
----
-132
-150
-161

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3349
SELECT 53 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) + + - 75 + + + col2 / + 19 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT 53 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) + + - 75 + + + col2 / + 19 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3350
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) - - col2 * col0 * - col0 * + col1, - col2 col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3350
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) - - col2 * col0 * - col0 * + col1, - col2 col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT - col0 + - 36 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3351
SELECT - col0 + - 36 / - - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 90 col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 = 92 / - + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + SUM( + 12 ) * COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-3355
SELECT + SUM ( + 12 ) * COUNT ( * ) FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - 59 * + MIN( ALL - ( - 46 ) ) AS col2 FROM tab0
----
-2714

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - 59 * + MIN ( ALL - ( - 46 ) ) AS col2 FROM tab0
----
-2714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 81 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + - col0 > - 62 * col2 + - ( - - 42 )
----

skipif mysql # not compatible
query III rowsort label-3358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + - col0 > - 62 * col2 + - ( - - 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT SUM( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT SUM ( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT DISTINCT - col2 * + - col0 + - col1 DIV col0 FROM tab0 AS cor0
----
700
870
9603

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - col2 * + - col0 + - col1 / col0 FROM tab0 AS cor0
----
700
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3362
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - - col2 * + + col1
----

query I rowsort
SELECT + 29 FROM tab2 AS cor0 WHERE NOT + ( col0 ) BETWEEN 21 AND + col1
----
29

query I rowsort
SELECT + ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 * 70 AS col2 FROM tab1
----
3570
5950
6370

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT col1 DIV - 2 col1 FROM tab0
----
-10
-40
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3367
SELECT col1 / - 2 col1 FROM tab0
----
-10
-40
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3368
SELECT CAST( - SUM( ALL - + col0 ) AS SIGNED ) * - ( - 79 ) AS col2 FROM tab1
----
17933

skipif mysql # not compatible
query I rowsort label-3368
SELECT CAST ( - SUM ( ALL - + col0 ) AS INTEGER ) * - ( - 79 ) AS col2 FROM tab1
----
17933

query I rowsort
SELECT ALL 37 * - 59 * col1 FROM tab1
----
-102601
-10915
-30562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 59 col2 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT DISTINCT - col2 * 77 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL SUM( ALL + col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT ALL SUM ( ALL + col2 ) col1 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL ( - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + col1
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT COUNT( * ) * + COUNT( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT + col1, + col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT - + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT - + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 77 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 77 / col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 22 * + col2 AS col0 FROM tab2 cor0
----
-1276
-506
-880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3381
SELECT - col0 * + CAST( NULL AS DECIMAL ) + - 28 + - 5 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT - col0 * + CAST ( NULL AS REAL ) + - 28 + - 5 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 37 + ( - col2 ) - 52 FROM tab1 AS cor0
----
-159
-162
-174

onlyif mysql # DIV for integer division: 
query II rowsort label-3383
SELECT 17 DIV - - col2 * - - col1 + - - col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-3383
SELECT 17 / - - col2 * - - col1 + - - col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT - col0 + + col2 DIV col0 * + + ( ( - + col0 ) ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3384
SELECT - col0 + + col2 / col0 * + + ( ( - + col0 ) ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT col2 AS col1, col0 + col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - 76 + + 8 AS col1, 88 AS col1 FROM tab1 AS cor0
----
-68
88
-68
88
-68
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - + col2 ) + - + 73 AS col0 FROM tab1 AS cor0
----
-132
-141
-169

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + + col1 ) < - col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT - COUNT( ALL 1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3390
SELECT - COUNT ( ALL 1 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 - - - col1 col0 FROM tab1
----
-27
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT + COUNT( * ) * 29 * + 59 - + 89 FROM tab0 AS cor0
----
5044

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT + COUNT ( * ) * 29 * + 59 - + 89 FROM tab0 AS cor0
----
5044

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL + - 78 - + 2 + + MIN( + ( col2 ) ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + - 78 - + 2 + + MIN ( + ( col2 ) ) FROM tab2 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 * - ( col0 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT + ( + CAST( - COUNT( * ) AS SIGNED ) ) + + CAST( + 72 AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) + + CAST ( + 72 AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63

query II rowsort
SELECT + col2 AS col2, col2 AS col0 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT col0, + 60 FROM tab2
----
46
60
64
60
75
60

query I rowsort
SELECT + - ( + 61 ) FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT + 13 col2, + COUNT( * ) col2 FROM tab0 AS cor0
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3399
SELECT + 13 col2, + COUNT ( * ) col2 FROM tab0 AS cor0
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 NOT BETWEEN NULL AND - + col2 / - + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT + + col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - CAST( NULL AS SIGNED ), 52 )
----

skipif mysql # not compatible
query I rowsort label-3403
SELECT + + col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - CAST ( NULL AS INTEGER ), 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3404
SELECT DISTINCT col0, - col1 FROM tab2 WHERE NOT CAST( - col2 AS SIGNED ) + col0 NOT IN ( - + col0 / + col1 + 18 * 3, - col1 / - col2 * - 56 )
----

skipif mysql # not compatible
query II rowsort label-3404
SELECT DISTINCT col0, - col1 FROM tab2 WHERE NOT CAST ( - col2 AS INTEGER ) + col0 NOT IN ( - + col0 / + col1 + 18 * 3, - col1 / - col2 * - 56 )
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3406
SELECT DISTINCT - + col0 * - CAST( NULL AS DECIMAL ) * + - 77 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - + col0 * - CAST ( NULL AS REAL ) * + - 77 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + + 4 ) * col0 FROM tab2
----
184
256
300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - 33 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL col2 * - 30 FROM tab0
----
-1410
-2970
-300

onlyif mysql # DIV for integer division: 
query III rowsort label-3412
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 DIV 67 * + col0 * 39 < 58
----
97
1
99

skipif mysql # not compatible
query III rowsort label-3412
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / 67 * + col0 * 39 < 58
----
97
1
99

query I rowsort
SELECT ALL - col1 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT + col2 * - + col1 - + - col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT 94 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 64 col0 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT + 91 + - 61 FROM tab0 cor0
----
30

query I rowsort
SELECT col2 - col2 + 13 AS col0 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT - 20 DIV 47 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3419
SELECT DISTINCT - 20 / 47 col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 + - - 24 * - - 41 * - + col1 AS col0 FROM tab2
----
-50230
-66003
-75832

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT - col0 DIV + - 15 + - - col0 + - col1 FROM tab2
----
-2
-9
13

skipif mysql # not compatible
query I rowsort label-3421
SELECT - col0 / + - 15 + - - col0 + - col1 FROM tab2
----
-2
-9
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT ALL 49 * - + 14 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 49 * - + 14 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 51 FROM tab2
----
109
74
91

query I rowsort
SELECT + col1 + + + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - col0 - - 28 + col0 * + 94 * col2 FROM tab2
----
240604
408853
99434

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - COUNT( * ) + - 71 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-3426
SELECT - COUNT ( * ) + - 71 FROM tab0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT 93 + + COUNT( * ) + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT 93 + + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 = + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + ( COUNT( * ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3429
SELECT ALL + ( COUNT ( * ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= 23
----

query II rowsort
SELECT 83, 36 AS col1 FROM tab2 AS cor0
----
83
36
83
36
83
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT ALL + col1 DIV + + col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3433
SELECT ALL + col1 / + + col2 col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IS NULL AND NOT + col2 / - 13 <= NULL
----

query I rowsort
SELECT col0 * + col0 + + col0 AS col2 FROM tab0
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT - 86 DIV col1 + col1 FROM tab1
----
-12
46
8

skipif mysql # not compatible
query I rowsort label-3436
SELECT - 86 / col1 + col1 FROM tab1
----
-12
46
8

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL ( + ( + col1 ) ) AS col1 FROM tab2
----
51
67
77

query II rowsort
SELECT ALL + 30, 30 FROM tab0
----
30
30
30
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + 77 * - COUNT( * ) AS col1 FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + 77 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + + MIN( ALL - + 74 ) FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3441
SELECT + + MIN ( ALL - + 74 ) FROM tab2 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + + MIN( col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3442
SELECT + + MIN ( col1 ) FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3443
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3443
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT DISTINCT + - col0 + + + CAST( NULL AS SIGNED ) * - 26 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + - col0 + + + CAST ( NULL AS INTEGER ) * - 26 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 45 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 84 + - col1 + - 17, col2 FROM tab1
----
20
68
53
96
62
59

query I rowsort
SELECT ( col2 ) + + + 28 AS col1 FROM tab0
----
127
38
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT CAST( NULL AS SIGNED ) + - + col1 * 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT CAST ( NULL AS INTEGER ) + - + col1 * 34 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 * + col1 - - col2 * + col2 * + 53 + - col1 FROM tab1 AS cor0
----
184063
240748
487720

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + - col2 ) / - 76 IS NULL
----

query I rowsort
SELECT - + 63 + + col0 + + 80 AS col1 FROM tab2 AS cor0
----
63
81
92

query I rowsort
SELECT - col0 * - + col2 + + col0 * - 94 FROM tab2 AS cor0
----
-2700
-3266
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3454
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - + MIN( ALL - - ( CAST( - 82 AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + MIN ( ALL - - ( CAST ( - 82 AS REAL ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col1 + + + col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * - + 76 + col1 * - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * - + 76 + col1 * - 69 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 42 ) IS NULL )
----

query I rowsort
SELECT ALL ( 8 ) AS col1 FROM tab2
----
8
8
8

query I rowsort
SELECT ALL 2 * - ( + ( col1 ) ) AS col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT MIN( DISTINCT 73 ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3461
SELECT MIN ( DISTINCT 73 ) AS col2 FROM tab0 AS cor0
----
73

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT 0 * - col0 + + 51 AS col2 FROM tab0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL ( CAST( - col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL ( CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( col0 ) - 99 FROM tab2
----
-24
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL + COUNT( * ) * ( - COUNT( - col0 ) * 43 ) + 27 AS col2 FROM tab1
----
-360

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + COUNT ( * ) * ( - COUNT ( - col0 ) * 43 ) + 27 AS col2 FROM tab1
----
-360

query III rowsort
SELECT * FROM tab1 WHERE + 44 <> NULL
----

query I rowsort
SELECT DISTINCT col0 / col1 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 + - 98 FROM tab1
----
-2
-30
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT MIN( ALL 81 ) col2 FROM tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT MIN ( ALL 81 ) col2 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT MIN( 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3471
SELECT MIN ( 60 ) AS col1 FROM tab0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 62 * 90 + 60 <= ( + col0 )
----

query I rowsort
SELECT - col2 + 27 FROM tab2 WHERE 36 BETWEEN col1 / + 57 + col1 AND ( - 31 + col1 )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 13 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT 8 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * col1 + col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3478
SELECT 8 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * col1 + col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - 43 + COUNT( 0 ) col1 FROM tab1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3479
SELECT - 43 + COUNT ( 0 ) col1 FROM tab1
----
-40

query I rowsort
SELECT DISTINCT + 20 * + col1 AS col1 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT ALL 4 * 81 AS col0 FROM tab2
----
324
324
324

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 78 * - col1 AS col2 FROM tab0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab2 WHERE - 65 * + col2 IS NULL
----

query I rowsort
SELECT ALL + ( 19 ) AS col2 FROM tab0
----
19
19
19

query I rowsort
SELECT 76 AS col0 FROM tab2 cor0 WHERE ( 41 - col0 ) IS NOT NULL
----
76
76
76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3487
SELECT * FROM tab0 AS cor0 WHERE - ( - 82 ) IN ( - ( - 65 ) + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3487
SELECT * FROM tab0 AS cor0 WHERE - ( - 82 ) IN ( - ( - 65 ) + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + MAX( ALL - 31 ) * - COUNT( * ) + - COUNT( ALL 93 ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3488
SELECT + MAX ( ALL - 31 ) * - COUNT ( * ) + - COUNT ( ALL 93 ) AS col0 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3489
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE ( + 58 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9

skipif mysql # not compatible
query I rowsort label-3491
SELECT + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 - - 39 col1 FROM tab0
----
85

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 * - col2 ) IN ( - col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - MIN( + col2 ) * - 31 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
713

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - MIN ( + col2 ) * - 31 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT ALL + col2 - + CAST( 83 + col0 AS SIGNED ) FROM tab2 AS cor0
----
-100
-106
-107

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + col2 - + CAST ( 83 + col0 AS INTEGER ) FROM tab2 AS cor0
----
-100
-106
-107

query I rowsort
SELECT DISTINCT - + 38 * ( - 63 ) - 86 AS col0 FROM tab2 cor0
----
2308

query I rowsort
SELECT 18 AS col2 FROM tab1 AS cor0 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT - col2 - 32 * - col2 FROM tab0 AS cor0
----
1457
3069
310

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT MAX( ALL ( + col2 ) ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3501
SELECT MAX ( ALL ( + col2 ) ) AS col0 FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - ( 39 + col0 ) NOT IN ( ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3503
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN + col2 * 39 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3503
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN + col2 * 39 AND ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( - col0 * + 92 ) OR NOT ( col2 ) <> - 31
----

query I rowsort
SELECT DISTINCT - 36 * - col2 FROM tab2
----
1440
2088
828

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT + col2 * + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT + col2 * + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 14 * 37 * - col0 + - ( col0 ) col1 FROM tab2 AS cor0
----
23782
33088
38775

query I rowsort
SELECT - - 90 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3512
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-3512
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * 8 NOT IN ( col0 - 76 )
----

query I rowsort
SELECT ALL - ( + - col0 ) * 66 + col0 AS col2 FROM tab0
----
1005
5829
6499

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 + - col1 AND NULL
----

query II rowsort
SELECT + + col1 AS col1, - 62 + col0 AS col1 FROM tab0 AS cor0
----
1
35
21
25
81
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 40 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3520
SELECT CAST( NULL AS DECIMAL ) AS col0, - col1 + 34 FROM tab1 AS cor0
----
NULL
-13
NULL
20
NULL
29

skipif mysql # not compatible
query II rowsort label-3520
SELECT CAST ( NULL AS REAL ) AS col0, - col1 + 34 FROM tab1 AS cor0
----
NULL
-13
NULL
20
NULL
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT CAST( + col2 AS SIGNED ) * 56 + + col2 FROM tab0 AS cor0
----
2679
5643
570

skipif mysql # not compatible
query I rowsort label-3521
SELECT CAST ( + col2 AS INTEGER ) * 56 + + col2 FROM tab0 AS cor0
----
2679
5643
570

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT - col0 / - col2 + - + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT - col0 / - col2 + - + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT + col2 * + ( CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 >= col0
----

skipif mysql # not compatible
query I rowsort label-3524
SELECT + col2 * + ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + + col0 col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ( 30 ) + col2 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT ALL col1 - + col0 FROM tab1 AS cor0 WHERE col2 * 97 * - CAST( - col2 AS SIGNED ) + ( - 43 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL col1 - + col0 FROM tab1 AS cor0 WHERE col2 * 97 * - CAST ( - col2 AS INTEGER ) + ( - 43 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT + + SUM( col2 ) + COUNT( * ) DIV MAX( DISTINCT 50 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3528
SELECT + + SUM ( col2 ) + COUNT ( * ) / MAX ( DISTINCT 50 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - col0 + + col0 * + + col1 FROM tab2
----
2300
4864
4950

query II rowsort
SELECT ALL - 91 * - col1 AS col1, - 97 AS col0 FROM tab1
----
1274
-97
4277
-97
455
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT SUM( + col1 ) + + 28 - - - COUNT( col2 ) AS col0 FROM tab0
----
128

skipif mysql # not compatible
query I rowsort label-3531
SELECT SUM ( + col1 ) + + 28 - - - COUNT ( col2 ) AS col0 FROM tab0
----
128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3532
SELECT - col2 + - + col2 / CAST( NULL AS DECIMAL ) + + 85 / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT - col2 + - + col2 / CAST ( NULL AS REAL ) + + 85 / col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 + col1 * 8 )
----

query I rowsort
SELECT 56 * + 96 * - 99 * col1 AS col2 FROM tab0
----
-11176704
-43110144
-532224

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3535
SELECT - + CAST( - + col1 AS SIGNED ) / - col2 - + 79 * - ( + CAST( NULL AS DECIMAL ) * col1 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3535
SELECT - + CAST ( - + col1 AS INTEGER ) / - col2 - + 79 * - ( + CAST ( NULL AS REAL ) * col1 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT 99 DIV - col0 - + col1 * - - col1 * col0 FROM tab1 AS cor0
----
-201020
-2126
-9997

skipif mysql # not compatible
query I rowsort label-3536
SELECT 99 / - col0 - + col1 * - - col1 * col0 FROM tab1 AS cor0
----
-201020
-2126
-9997

query I rowsort
SELECT + ( - col1 ) - + 71 AS col0 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT + + ( + col0 ) - - 94 + col1 FROM tab1 AS cor0
----
159
184
232

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 33 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT - col1 * + col0 * + col0 * - 20 * + ( - col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT - col1 * + col0 * + col0 * - 20 * + ( - col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE col0 + - col2 + col0 * + col0 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( - 26 ) FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - col1 * - col1 * - - col1 AS col2 FROM tab1 cor0
----
103823
125
2744

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 87 + + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3546
SELECT 89 AS col1, 4 DIV col0 FROM tab0 AS cor0
----
89
0
89
0
89
0

skipif mysql # not compatible
query II rowsort label-3546
SELECT 89 AS col1, 4 / col0 FROM tab0 AS cor0
----
89
0
89
0
89
0

query II rowsort
SELECT ALL + 45, + col0 AS col2 FROM tab2 AS cor0
----
45
46
45
64
45
75

query II rowsort
SELECT DISTINCT col2 AS col2, 14 AS col1 FROM tab1 AS cor0
----
59
14
68
14
96
14

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( - col0 * col0 ) AND NULL
----

query I rowsort
SELECT - col0 * 48 AS col2 FROM tab2 WHERE NOT ( ( - 77 * col0 ) BETWEEN + col2 * + col0 AND + 66 )
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + MIN( - 94 ) * - 35 * 96 FROM tab1
----
315840

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + MIN ( - 94 ) * - 35 * 96 FROM tab1
----
315840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab2
----
44
44
44

query II rowsort
SELECT + col0, + col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT - - col2, col2 AS col1 FROM tab1 cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + 34 AS col0, + col1 FROM tab0 AS cor0
----
34
1
34
21
34
81

query I rowsort
SELECT col0 * col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) < col0 + - 83 * + col1 - - col2
----
705
870

onlyif mysql # DIV for integer division: 
query II rowsort label-3558
SELECT col1, - ( - - 47 ) DIV - 94 + ( + + 72 ) * + col2 FROM tab1 AS cor0
----
14
6912
47
4896
5
4248

skipif mysql # not compatible
query II rowsort label-3558
SELECT col1, - ( - - 47 ) / - 94 + ( + + 72 ) * + col2 FROM tab1 AS cor0
----
14
6912
47
4896
5
4248

query II rowsort
SELECT ALL - 17 AS col0, 14 * + col1 AS col2 FROM tab2 cor0
----
-17
1078
-17
714
-17
938

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT - COUNT( * ) * + 41 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
369

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - COUNT ( * ) * + 41 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
369

query I rowsort
SELECT + col1 + + + 35 * + col2 FROM tab0
----
1726
3466
371

query I rowsort
SELECT col2 * + + 40 + + 46 * - 88 FROM tab1
----
-1328
-1688
-208

query I rowsort
SELECT ALL - + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 NOT IN ( - + col1 - - col1 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3565
SELECT - + CAST( col0 AS SIGNED ), ( + 10 ) AS col2 FROM tab1 AS cor0
----
-51
10
-85
10
-91
10

skipif mysql # not compatible
query II rowsort label-3565
SELECT - + CAST ( col0 AS INTEGER ), ( + 10 ) AS col2 FROM tab1 AS cor0
----
-51
10
-85
10
-91
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - + col1 / + 7 - + 46 NOT BETWEEN + col1 - 51 AND ( NULL ) )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - - col0 * col2 + col0 + + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + + + 24 AS col2 FROM tab2
----
101
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + 42 + + + ( - - SUM( DISTINCT - + 39 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT ALL + 42 + + + ( - - SUM ( DISTINCT - + 39 ) ) col2 FROM tab1
----
3

query I rowsort
SELECT col2 + - + col0 * - + col1 + + + col0 AS col1 FROM tab2
----
2415
5032
5158

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT COUNT( * ) + + 95 * - 20 * COUNT( * ) FROM tab1
----
-5697

skipif mysql # not compatible
query I rowsort label-3571
SELECT COUNT ( * ) + + 95 * - 20 * COUNT ( * ) FROM tab1
----
-5697

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT + 80 + - col1 DIV + 77 AS col2 FROM tab0
----
79
80
80

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 80 + - col1 / + 77 AS col2 FROM tab0
----
79
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL CAST( - 49 AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL CAST ( - 49 AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
147

query I rowsort
SELECT DISTINCT - 42 * - - col1 AS col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ALL + COUNT( DISTINCT - + 27 ) + 98 col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3576
SELECT ALL + COUNT ( DISTINCT - + 27 ) + 98 col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL + col1 + + col2 + + + 68 * col2 + + col1 + + ( - col0 ) * - + col1 * + + col0 FROM tab2
----
109605
318306
381011

query III rowsort
SELECT * FROM tab1 WHERE + + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3579
SELECT ALL CAST( - 92 AS DECIMAL ) * 65 + col2 + + + col1 + col1 * + CAST( NULL AS SIGNED ) + - CAST( col2 AS DECIMAL ) * ( col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL CAST ( - 92 AS REAL ) * 65 + col2 + + + col1 + col1 * + CAST ( NULL AS INTEGER ) + - CAST ( col2 AS REAL ) * ( col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - COUNT( * ) * - 96 * - COUNT( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-864

skipif mysql # not compatible
query I rowsort label-3580
SELECT - COUNT ( * ) * - 96 * - COUNT ( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-864

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT + - COUNT( * ) DIV + 14 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + - COUNT ( * ) / + 14 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + COUNT( * ) * - - SUM( 84 ) FROM tab0 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-3583
SELECT + COUNT ( * ) * - - SUM ( 84 ) FROM tab0 AS cor0
----
756

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - CAST( NULL AS SIGNED ) * + ( + 45 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( NULL AS INTEGER ) * + ( + 45 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col2 FROM tab2
----
93

query II rowsort
SELECT + col0 AS col0, + col2 * + - 39 FROM tab1
----
51
-3744
85
-2301
91
-2652

query I rowsort
SELECT DISTINCT + ( + + 96 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN - + 24 * ( + col1 ) AND + 67 - - col0 * col1
----

query II rowsort
SELECT ALL + col0, + 31 FROM tab1
----
51
31
85
31
91
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 73 col2, 93 FROM tab0
----
73
93
73
93
73
93

query I rowsort
SELECT ALL - ( 4 ) AS col1 FROM tab1 cor0
----
-4
-4
-4

query II rowsort
SELECT DISTINCT col2 AS col1, col1 * col2 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3594
SELECT * FROM tab0 cor0 WHERE NOT - 81 + CAST( NULL AS DECIMAL ) NOT BETWEEN col1 + - col0 AND - 87 * + 23 * + + col2
----

skipif mysql # not compatible
query III rowsort label-3594
SELECT * FROM tab0 cor0 WHERE NOT - 81 + CAST ( NULL AS REAL ) NOT BETWEEN col1 + - col0 AND - 87 * + 23 * + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3595
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 40 col0, + ( 38 ) AS col0 FROM tab2
----
40
38
40
38
40
38

query II rowsort
SELECT ALL col1 + 97 AS col2, - 45 * - col2 AS col1 FROM tab2
----
148
1035
164
2610
174
1800

query I rowsort
SELECT 98 * + 68 - 67 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 568c84c1cb7d4effda9fc974dc22e9fa

query I rowsort
SELECT ALL - col1 * - 76 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + MIN( col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3600
SELECT ALL + MIN ( col0 ) col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT 43 + - - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-662
-827
-9560

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - ( - - ( - + ( - - col1 ) ) ) * + 37 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + col2 ) ) + + + col2 + + col2 + ( + col0 ) col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 11 * + + 96 + col2 FROM tab1 AS cor0
----
1115
1124
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT 58 + + 77 + MAX( DISTINCT + CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-3605
SELECT 58 + + 77 + MAX ( DISTINCT + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
232

query III rowsort
SELECT * FROM tab0 cor0 WHERE 19 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + - 47 + - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-3608
SELECT + - 47 + - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL COUNT( * ) + + SUM( DISTINCT - 77 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL COUNT ( * ) + + SUM ( DISTINCT - 77 ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT + 90 * 80 AS col2 FROM tab1, tab0 AS cor0
----
7200

query III rowsort
SELECT * FROM tab1 WHERE - 84 = + 9
----

query I rowsort
SELECT DISTINCT - col0 - + col1 - + 40 FROM tab2
----
-137
-181
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT + 65 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 65 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + SUM( 50 ) - + 88 AS col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3614
SELECT + SUM ( 50 ) - + 88 AS col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT + MIN( DISTINCT - 52 ) - 66 FROM tab2 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-3615
SELECT + MIN ( DISTINCT - 52 ) - 66 FROM tab2 cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT + COUNT( * ) + - 0 AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + COUNT ( * ) + - 0 AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - col0 + + col1 * 94 - + + col0 FROM tab1 AS cor0
----
-1336
-3954
-6840

query I rowsort
SELECT - - ( + - col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 91, - COUNT( col1 ) + + ( + 6 ) AS col2 FROM tab2 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-3619
SELECT 91, - COUNT ( col1 ) + + ( + 6 ) AS col2 FROM tab2 AS cor0
----
91
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL - - col2 DIV - - 48 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - - col2 / - - 48 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( ( NOT - 58 > NULL ) ) )
----

query II rowsort
SELECT DISTINCT - col2, col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL - col1 AS col2, col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3624
SELECT * FROM tab0 WHERE NOT + 89 <> + + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3624
SELECT * FROM tab0 WHERE NOT + 89 <> + + CAST ( col0 AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT - COUNT( * ) DIV + 65 * + MAX( ALL + + 74 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT - COUNT ( * ) / + 65 * + MAX ( ALL + + 74 ) col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( col2 ) * - ( 19 ) FROM tab2
----
-1102
-437
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT col1 * - - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT col1 * - - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 57 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3629
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 - - - col1 < col2 / - - CAST( col1 AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-3629
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 - - - col1 < col2 / - - CAST ( col1 AS INTEGER ) + col0
----

query I rowsort
SELECT DISTINCT - col2 + - 34 * col0 FROM tab1 cor0
----
-1830
-2949
-3162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col2, + 44 * + + 62 - + 38 * 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0b6057ebc8ba714cf890306746f72218

query I rowsort
SELECT ( 25 ) FROM tab1
----
25
25
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 BETWEEN + col0 AND col1
----
15
81
47

query I rowsort
SELECT DISTINCT + col0 * + 40 AS col0 FROM tab0 AS cor0
----
3480
3880
600

query I rowsort
SELECT ALL 38 + + 41 * - 39 * + col0 * + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-155640226
-419168218
-674578087

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT 59 + + COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-3638
SELECT 59 + + COUNT ( * ) AS col2 FROM tab1
----
62

query I rowsort
SELECT + 88 + 88 FROM tab2
----
176
176
176

query III rowsort
SELECT * FROM tab0 WHERE - - col0 = - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) + 0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) + 0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + 70 * - 40 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN ( NULL ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 - - col2 + - + col0 + + - col1 AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE ( - col1 - + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3645
SELECT ALL - - 72 AS col1, COUNT( * ) FROM tab1 cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-3645
SELECT ALL - - 72 AS col1, COUNT ( * ) FROM tab1 cor0
----
72
3

query I rowsort
SELECT DISTINCT - col0 - + - ( + col1 ) AS col1 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT COUNT( DISTINCT - 3 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT COUNT ( DISTINCT - 3 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col1 * + + 39 FROM tab0
----
-3159
-39
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT 94 DIV col2 * - col0 FROM tab0
----
-30
-783
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT 94 / col2 * - col0 FROM tab0
----
-30
-783
0

query I rowsort
SELECT DISTINCT - + col2 * + + col2 * + 26 AS col0 FROM tab1 AS cor0
----
-120224
-239616
-90506

query I rowsort
SELECT - 27 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
1377
1809
2079

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 27 * col0 FROM tab2
----
1242
1728
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( - col1 ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3654
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( - col1 ) AS col1 FROM tab0
----
-3
3

query I rowsort
SELECT col1 + - 2 AS col0 FROM tab0
----
-1
19
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT - CAST( NULL AS SIGNED ) + ( - + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - CAST ( NULL AS INTEGER ) + ( - + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 + + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + 70 FROM tab2 AS cor0
----
-7
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT - + COUNT( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3660
SELECT - + COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT 45, COUNT( DISTINCT - col1 ) * - - 99 * COUNT( * ) AS col0 FROM tab2 cor0
----
45
891

skipif mysql # not compatible
query II rowsort label-3661
SELECT 45, COUNT ( DISTINCT - col1 ) * - - 99 * COUNT ( * ) AS col0 FROM tab2 cor0
----
45
891

onlyif mysql # DIV for integer division: 
query II rowsort label-3662
SELECT ALL - col2 * + col0 + + col1 AS col2, + 2 DIV - 66 * col0 * + + 96 AS col1 FROM tab1 AS cor0
----
-4882
0
-5010
0
-6141
0

skipif mysql # not compatible
query II rowsort label-3662
SELECT ALL - col2 * + col0 + + col1 AS col2, + 2 / - 66 * col0 * + + 96 AS col1 FROM tab1 AS cor0
----
-4882
0
-5010
0
-6141
0

query I rowsort
SELECT + col2 + + + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - 50 * - 7 + + + col1 AS col1 FROM tab1 AS cor0
----
355
364
397

query I rowsort
SELECT ALL + + 2 AS col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT col2 * + + 24 * - + 69 + + - 26 FROM tab2 AS cor0
----
-38114
-66266
-96074

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 34 + 10 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 / + col2 <= ( + col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col2 - + - 89 < + col1 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col1 AS col0, col2 FROM tab2 WHERE 4 BETWEEN ( + + 94 ) AND + ( - - 65 ) / - col1 * - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - COUNT( * ) * - - ( - - COUNT( * ) ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) * - - ( - - COUNT ( * ) ) AS col2 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL CAST( - 27 AS SIGNED ) FROM tab1
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL CAST ( - 27 AS INTEGER ) FROM tab1
----
-27
-27
-27

query I rowsort
SELECT + + col0 * + + 17 AS col2 FROM tab0 AS cor0
----
1479
1649
255

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 >= NULL
----

query II rowsort
SELECT ALL + 43 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
43
-59
43
-68
43
-96

query I rowsort
SELECT DISTINCT col0 * - 16 FROM tab0 AS cor0
----
-1392
-1552
-240

query I rowsort
SELECT + 47 * - 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9babbb4d3d127463a1345028bd2b5b30

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - MAX( - 97 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - MAX ( - 97 ) AS col0 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT 83 DIV 62 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT 83 / 62 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, + 62 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
59
62
68
62
96
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - COUNT( col2 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT - COUNT ( col2 ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - col1 + + - col2 - 3 * col2 * - + col1 AS col0 FROM tab0
----
11293
197
599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + - col2 col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) * - + ( 35 ) AS col0 FROM tab2
----
1610
2240
2625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= 47
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL ( - - col0 ) * + col2 + CAST( + col0 AS SIGNED ) + + + col0 FROM tab1 AS cor0
----
4998
5185
6370

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL ( - - col0 ) * + col2 + CAST ( + col0 AS INTEGER ) + + + col0 FROM tab1 AS cor0
----
4998
5185
6370

query I rowsort
SELECT DISTINCT - - 84 + - col0 FROM tab0 AS cor0
----
-13
-3
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT DISTINCT COUNT( * ) + COUNT( 76 ) - - ( - 18 ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 5
----
-18

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT COUNT ( * ) + COUNT ( 76 ) - - ( - 18 ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 5
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + + 81 - - + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + + 81 - - + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT + col1 / + - col2 AS col2 FROM tab1 AS cor0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT - col0 + col0 - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - COUNT( * ) + + + SUM( 47 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - COUNT ( * ) + + + SUM ( 47 ) FROM tab0
----
138

query I rowsort
SELECT 90 * + - col0 + + - col0 AS col0 FROM tab2
----
-4186
-5824
-6825

query I rowsort
SELECT + col0 * - + col2 + col1 AS col0 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT - 16 DIV - COUNT( * ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3698
SELECT - 16 / - COUNT ( * ) AS col0 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT + COUNT( - + 33 ) AS col1 FROM tab2 WHERE + 31 - - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT + COUNT ( - + 33 ) AS col1 FROM tab2 WHERE + 31 - - col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT DISTINCT + COUNT( + 10 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + COUNT ( + 10 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 97 * + 33 * col1 AS col0 FROM tab2 cor0
----
163251
214467
246477

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - + COUNT( * ) * 12 * - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 * 54 * - - col0 < 30
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - + COUNT ( * ) * 12 * - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 * 54 * - - col0 < 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - MAX( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( - col0 + - 73 + col1 + + 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + 79 + + col1 + + col2 * - 80 * + ( - col2 ) FROM tab0 AS cor0
----
173088
7231
776260

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL + - COUNT( * ) * - ( COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + - COUNT ( * ) * - ( COUNT ( * ) ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT DISTINCT 73 AS col2, MAX( DISTINCT 72 ) FROM tab1
----
73
72

skipif mysql # not compatible
query II rowsort label-3707
SELECT DISTINCT 73 AS col2, MAX ( DISTINCT 72 ) FROM tab1
----
73
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT - + COUNT( * ) * - MAX( DISTINCT - + col1 ) FROM tab1 WHERE NOT ( + col0 ) BETWEEN - col1 AND - col0
----
-15

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - + COUNT ( * ) * - MAX ( DISTINCT - + col1 ) FROM tab1 WHERE NOT ( + col0 ) BETWEEN - col1 AND - col0
----
-15

query I rowsort
SELECT col1 + - + 9 AS col0 FROM tab0
----
-8
12
72

query I rowsort
SELECT ALL 6 + + + ( + + col2 ) FROM tab2
----
29
46
64

query III rowsort
SELECT * FROM tab1 WHERE + 3 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND + - col2
----

query II rowsort
SELECT 81 AS col2, ( - + col1 ) FROM tab1 AS cor0
----
81
-14
81
-47
81
-5

query I rowsort
SELECT - 2 - 99 FROM tab0 AS cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL - SUM( + 50 ) FROM tab2, tab1 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - SUM ( + 50 ) FROM tab2, tab1 AS cor0
----
-450

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT + 44 AS col2, COUNT( * ) FROM tab1, tab0 AS cor0
----
44
9

skipif mysql # not compatible
query II rowsort label-3717
SELECT + 44 AS col2, COUNT ( * ) FROM tab1, tab0 AS cor0
----
44
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT ALL col2 - + col1 DIV + ( + - col2 ) col1 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3718
SELECT ALL col2 - + col1 / + ( + - col2 ) col1 FROM tab0 AS cor0
----
12
48
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT + col0 * + col1 DIV - + col1 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3719
SELECT + col0 * + col1 / - + col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT ALL - col2 DIV - - 29 + col0 AS col0 FROM tab0 AS cor0
----
14
87
94

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - col2 / - - 29 + col0 AS col0 FROM tab0 AS cor0
----
14
87
94

query I rowsort
SELECT DISTINCT - col1 * - col1 * 8 AS col0 FROM tab0 AS cor0
----
3528
52488
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT 46 DIV + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3722
SELECT 46 / + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT ALL + - col2 DIV - col1 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + - col2 / - col1 + + col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL - 79 AS col1, 8 FROM tab1
----
-79
8
-79
8
-79
8

onlyif mysql # DIV for integer division: 
query II rowsort label-3725
SELECT DISTINCT col0, col2 DIV col2 FROM tab0
----
15
1
87
1
97
1

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT col0, col2 / col2 FROM tab0
----
15
1
87
1
97
1

query I rowsort
SELECT 38 * + col2 * + col1 AS col2 FROM tab2
----
117040
147668
44574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 38 AS col1 FROM tab1
----
51
38
85
38
91
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( ( NULL ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT - ( + 6 ) * 66 FROM tab0 AS cor0
----
-396
-396
-396

query II rowsort
SELECT 20 * col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
1020
51
1340
67
1540
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + ( - 78 ) AS col0 FROM tab0 AS cor0 WHERE NULL < ( + col2 * + col0 )
----
-78

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + ( - 78 ) AS col0 FROM tab0 AS cor0 WHERE NULL < ( + col2 * + col0 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - MIN( - + col2 ) * + COUNT( + col1 ) FROM tab2 AS cor0 WHERE NOT - col2 + - - 41 NOT BETWEEN + - 38 + - - 95 + - 14 * + 14 AND - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - MIN ( - + col2 ) * + COUNT ( + col1 ) FROM tab2 AS cor0 WHERE NOT - col2 + - - 41 NOT BETWEEN + - 38 + - - 95 + - 14 * + 14 AND - 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT MAX( ALL 45 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
45
3

skipif mysql # not compatible
query II rowsort label-3735
SELECT MAX ( ALL 45 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
45
3

query I rowsort
SELECT ALL + + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT col2 / 63, col2 + - + 78 FROM tab1 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT COUNT( * ) + 8 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT COUNT ( * ) + 8 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
8

query I rowsort
SELECT DISTINCT - - col0 * 99 * col0 * 91 + col1 + + col1 FROM tab1 AS cor0
----
23432437
65090035
74603623

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * ( + ( + col1 ) ) * + 62 AS col0 FROM tab1
----
26350
265174
44268

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 57 * + ( ( + 3 ) ) + - + col2 FROM tab1 AS cor0
----
103
112
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT ALL col0 * - - CAST( + 72 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL col0 * - - CAST ( + 72 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 + + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 0 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 + col2 + - - col2 FROM tab0
----
108
182
286

query II rowsort
SELECT + 28, + col0 FROM tab2
----
28
46
28
64
28
75

query I rowsort
SELECT + col2 - + 79 FROM tab2
----
-21
-39
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT ALL + 27 DIV + 75 + - 17 FROM tab1 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + 27 / + 75 + - 17 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col1 * + 77 * col1 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-18261280
-20047816
-4606348

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL 56 * + + COUNT( * ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL 56 * + + COUNT ( * ) FROM tab0 AS cor0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 10, col0 col0 FROM tab0 AS cor0
----
-10
15
-10
87
-10
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + - ( ( - CAST( NULL AS SIGNED ) ) ) AND - - 69 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + - ( ( - CAST ( NULL AS INTEGER ) ) ) AND - - 69 * - col2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT - + MIN( - + ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3757
SELECT - + MIN ( - + ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + 9 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT - col0 - col2 * 30 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT - col0 - col2 * 30 IS NULL
----
NULL

query I rowsort
SELECT col2 * - 12 AS col2 FROM tab2
----
-276
-480
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + MIN( DISTINCT + 40 ) AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + MIN ( DISTINCT + 40 ) AS col0 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT DISTINCT - COUNT( ALL ( - 83 ) ) AS col2, - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3762
SELECT DISTINCT - COUNT ( ALL ( - 83 ) ) AS col2, - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3763
SELECT * FROM tab1 WHERE NOT + col2 * + + CAST( NULL AS SIGNED ) * + CAST( + ( - 95 ) AS SIGNED ) NOT BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3763
SELECT * FROM tab1 WHERE NOT + col2 * + + CAST ( NULL AS INTEGER ) * + CAST ( + ( - 95 ) AS INTEGER ) NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + 40 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
136
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT CAST( 8 AS SIGNED ) DIV SUM( ALL + ( - + 15 ) ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT DISTINCT CAST ( 8 AS INTEGER ) / SUM ( ALL + ( - + 15 ) ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + MIN( + col0 ) + SUM( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3768
SELECT + MIN ( + col0 ) + SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + MAX( col0 ) + + - COUNT( * ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3769
SELECT + MAX ( col0 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3770
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) = 88 * 55
----

skipif mysql # not compatible
query III rowsort label-3770
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = 88 * 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT - col0 * + 42 + col2 + + 44 * + CAST( NULL AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - col0 * + 42 + col2 + + 44 * + CAST ( NULL AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 / - col0 * - 84 AS col0 FROM tab0 AS cor0 WHERE + ( col0 ) + - col0 IS NULL
----

query I rowsort
SELECT ALL - col2 + + ( - 59 ) AS col2 FROM tab0
----
-106
-158
-69

query I rowsort
SELECT DISTINCT - 32 + 44 FROM tab2
----
12

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab1 WHERE - col2 <> NULL
----

query I rowsort
SELECT DISTINCT 80 * - ( + col1 ) AS col1 FROM tab1
----
-1120
-3760
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL - COUNT( * ) + - 59 AS col1 FROM tab2 WHERE + - col0 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - COUNT ( * ) + - 59 AS col1 FROM tab2 WHERE + - col0 IS NULL
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( 76 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( 76 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 5 - + - col0 AS col2 FROM tab1
----
56
90
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 88 - col2 IS NULL
----

query I rowsort
SELECT + col0 - 12 AS col0 FROM tab1 AS cor0
----
39
73
79

query I rowsort
SELECT DISTINCT + + ( - - ( col0 ) ) FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE NULL NOT BETWEEN + 48 AND NULL
----

query II rowsort
SELECT ALL col2 AS col2, 65 FROM tab0
----
10
65
47
65
99
65

query I rowsort
SELECT ALL - + 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query II rowsort
SELECT - + col1, + col0 * col1 + + col0 FROM tab0 AS cor0 WHERE NOT + 52 * col2 NOT BETWEEN ( NULL ) AND + col2
----

query II rowsort
SELECT - col0 AS col2, + ( 48 ) FROM tab0 AS cor0
----
-15
48
-87
48
-97
48

query I rowsort
SELECT ALL - - col2 * + 55 FROM tab1 AS cor0
----
3245
3740
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT + + SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + + SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT DISTINCT + 36 DIV 56 - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + 36 / 56 - + COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + + SUM( DISTINCT + ( + - 4 ) ) AS col0 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3791
SELECT + + SUM ( DISTINCT + ( + - 4 ) ) AS col0 FROM tab2 cor0
----
-4

query II rowsort
SELECT - 50 AS col1, col0 * - - col1 + - col2 + + col2 + + col1 * - 30 * + col1 AS col2 FROM tab0 AS cor0
----
-50
-11403
-50
-195615
-50
67

query I rowsort
SELECT DISTINCT - 67 * - col2 - + - col1 FROM tab1 AS cor0
----
3958
4603
6446

query I rowsort
SELECT ALL - 56 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 38 * - - col0 FROM tab0
----
3306
3686
570

query II rowsort
SELECT 46 AS col0, 89 * col0 FROM tab0
----
46
1335
46
7743
46
8633

query I rowsort
SELECT ALL - 99 * - 95 AS col1 FROM tab2
----
9405
9405
9405

query II rowsort
SELECT col1 AS col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3799
SELECT col1 DIV - + 73, col0 FROM tab0
----
-1
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-3799
SELECT col1 / - + 73, col0 FROM tab0
----
-1
15
0
87
0
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab1 cor0 WHERE - col2 * + 22 + - col0 BETWEEN col2 * + CAST( NULL AS SIGNED ) + - + 74 AND - 48
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab1 cor0 WHERE - col2 * + 22 + - col0 BETWEEN col2 * + CAST ( NULL AS INTEGER ) + - + 74 AND - 48
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT COUNT( * ) * + 88 AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-3802
SELECT COUNT ( * ) * + 88 AS col1 FROM tab1
----
264

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - - col1 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT + 68 * + COUNT( * ) col2 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3805
SELECT DISTINCT + 68 * + COUNT ( * ) col2 FROM tab1 AS cor0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT + col2 DIV - - col1 + col0 + - col2 - - - col2 - - - col2 FROM tab2 AS cor0
----
-23
-56
-99

skipif mysql # not compatible
query I rowsort label-3806
SELECT + col2 / - - col1 + col0 + - col2 - - - col2 - - - col2 FROM tab2 AS cor0
----
-23
-56
-99

query I rowsort
SELECT 70 - + col2 FROM tab2
----
12
30
47

query I rowsort
SELECT DISTINCT col1 + - col0 + - 52 FROM tab2
----
-39
-47
-60

query I rowsort
SELECT DISTINCT col0 + 71 AS col0 FROM tab1
----
122
156
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT col1 + - - col0 DIV - 92 col2 FROM tab0
----
0
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3810
SELECT col1 + - - col0 / - 92 col2 FROM tab0
----
0
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT + col2 DIV - CAST( - + 9 AS SIGNED ) + col2 AS col1 FROM tab1
----
106
65
75

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + col2 / - CAST ( - + 9 AS INTEGER ) + col2 AS col1 FROM tab1
----
106
65
75

query I rowsort
SELECT ALL col2 + + 96 FROM tab0
----
106
143
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT 45 DIV - - COUNT( * ) + - 98 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-3813
SELECT 45 / - - COUNT ( * ) + - 98 FROM tab2
----
-83

query I rowsort
SELECT DISTINCT col2 + - + 99 AS col1 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - + COUNT( * ) * COUNT( * ) FROM tab1 WHERE 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT - + COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE 11 IS NULL
----
0

query I rowsort
SELECT DISTINCT 90 - - 24 FROM tab2
----
114

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 - col1 IN ( - 98, 64 - - 2 )
----

query II rowsort
SELECT ALL col0 AS col1, + 64 FROM tab1 AS cor0
----
51
64
85
64
91
64

query I rowsort
SELECT ALL 78 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT - CAST( + AVG ( DISTINCT - 96 ) AS SIGNED ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
96

skipif mysql # not compatible
query I rowsort label-3820
SELECT - CAST ( + AVG ( DISTINCT - 96 ) AS INTEGER ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 20 <> NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - - 59 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0 AS cor0 WHERE col1 * - - col0 * - col0 IS NOT NULL
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 + - 33 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < + - 16 + - col0
----
51
14
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + CAST( NULL AS SIGNED ) + + 22
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + CAST ( NULL AS INTEGER ) + + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( - ( - ( - 93 ) ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3828
SELECT + CAST ( - ( - ( - 93 ) ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT MAX( + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3830
SELECT MAX ( + - col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + 38 * - col1 AS col2 FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT - 95 * - 15 FROM tab2
----
1425
1425
1425

query I rowsort
SELECT ALL + ( - - 93 ) * ( col1 ) + - col0 FROM tab0
----
-4
1866
7518

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + 45 * COUNT( * ) AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + 45 * COUNT ( * ) AS col1 FROM tab0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT - 11 DIV - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - 11 / - COUNT ( * ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT + col0 * 91 AS col0 FROM tab0 AS cor0 WHERE NULL < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 * col2 AS col2 FROM tab2
----
23
1173
40
3080
58
3886

query II rowsort
SELECT col1, col1 * ( + + 1 ) FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab2 cor0
----
-77

query II rowsort
SELECT DISTINCT 96 AS col2, - col0 FROM tab1 AS cor0
----
96
-51
96
-85
96
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-3843
SELECT + + col2 DIV + - col0 + - col0 + - - col0, col0 + + - 83 + + 87 AS col1 FROM tab0 AS cor0
----
-1
101
-3
19
0
91

skipif mysql # not compatible
query II rowsort label-3843
SELECT + + col2 / + - col0 + - col0 + - - col0, col0 + + - 83 + + 87 AS col1 FROM tab0 AS cor0
----
-1
101
-3
19
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT + COUNT( * ) * MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + COUNT ( * ) * MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-243

query I rowsort
SELECT 40 * col2 + - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + 98 + - MIN( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 98 + - MIN ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + + 26 + - col1 AS col2 FROM tab2 AS cor0
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - COUNT( + 70 ) col1 FROM tab2 AS cor0 WHERE col1 <= + col0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT - COUNT ( + 70 ) col1 FROM tab2 AS cor0 WHERE col1 <= + col0
----
-1

query I rowsort
SELECT DISTINCT - col0 * + - 21 * + 90 * col2 FROM tab1 AS cor0
----
11695320
9253440
9478350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( - col2 ) ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT ALL + 11 + + col1 + - - 93 DIV - - 44 FROM tab2
----
64
80
90

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL + 11 + + col1 + - - 93 / - - 44 FROM tab2
----
64
80
90

query III rowsort
SELECT ALL * FROM tab1 WHERE - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3853
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3854
SELECT DISTINCT col0 + + 65 AS col2, - col1 DIV col1 col2 FROM tab1
----
116
-1
150
-1
156
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3854
SELECT DISTINCT col0 + + 65 AS col2, - col1 / col1 col2 FROM tab1
----
116
-1
150
-1
156
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT CAST( NULL AS SIGNED ) * ( - - col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT CAST ( NULL AS INTEGER ) * ( - - col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3857
SELECT * FROM tab1 WHERE NOT - ( CAST( NULL AS DECIMAL ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3857
SELECT * FROM tab1 WHERE NOT - ( CAST ( NULL AS REAL ) ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3858
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT + 80, - ( + SUM( col0 ) ) AS col0 FROM tab1 AS cor0
----
80
-227

skipif mysql # not compatible
query II rowsort label-3859
SELECT + 80, - ( + SUM ( col0 ) ) AS col0 FROM tab1 AS cor0
----
80
-227

query II rowsort
SELECT 58, + col0 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
58
-107916
58
-315392
58
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - COUNT( ALL + 85 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3861
SELECT - COUNT ( ALL + 85 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT - SUM( ALL + CAST( + + 33 AS SIGNED ) ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - SUM ( ALL + CAST ( + + 33 AS INTEGER ) ) FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - - col2 + 42 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab0 cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + - col0 col0 FROM tab0
----
-19
-9
63

query III rowsort
SELECT * FROM tab0 WHERE NOT + 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 / + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 17 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT COUNT( * ) * + + 18 AS col1, + ( + 94 ) * - 8 FROM tab2
----
54
-752

skipif mysql # not compatible
query II rowsort label-3869
SELECT COUNT ( * ) * + + 18 AS col1, + ( + 94 ) * - 8 FROM tab2
----
54
-752

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col1 + 70 FROM tab2 AS cor0
----
121
137
147

query II rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col0, - ( - 10 ) AS col2 FROM tab0
----
162
10
2
10
42
10

query I rowsort
SELECT - 97 + - + col2 AS col0 FROM tab2
----
-120
-137
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - COUNT( * ) FROM tab0 WHERE NULL IN ( - + ( + 41 ) * - - col2 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT - COUNT ( * ) FROM tab0 WHERE NULL IN ( - + ( + 41 ) * - - col2 * + col2 )
----
0

query I rowsort
SELECT DISTINCT 12 + + 63 AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT + SUM( ALL 82 ) DIV - ( - - 45 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3876
SELECT + SUM ( ALL 82 ) / - ( - - 45 ) FROM tab0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT - CAST( NULL AS SIGNED ) / + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 + - + ( - 94 ) - + col1 + - 0 NOT BETWEEN - + col0 AND - + 0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 + - + ( - 94 ) - + col1 + - 0 NOT BETWEEN - + col0 AND - + 0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 60 - - + 89 FROM tab2 AS cor0
----
149
149
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 38 + - 52 col2 FROM tab0 AS cor0
----
-4
33
85

query I rowsort
SELECT ALL - + 69 * col2 - + 89 AS col1 FROM tab1 cor0
----
-4160
-4781
-6713

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 7 + col1 + - 81 < + col1 - + 4
----

query I rowsort
SELECT 31 AS col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT ALL + col1 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + col1 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT 34 + COUNT( - + 55 ) * + 92 / + + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT 34 + COUNT ( - + 55 ) * + 92 / + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3886
SELECT col0 + ( - - CAST( NULL AS DECIMAL ) ) * - 77 * - + col2 + 14 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT col0 + ( - - CAST ( NULL AS REAL ) ) * - 77 * - + col2 + 14 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 - - + col0, 59 AS col1 FROM tab2
----
141
59
142
59
97
59

query I rowsort
SELECT DISTINCT col2 * - 32 * - ( - col1 ) + + 51 FROM tab0
----
-121773
-3117
-6669

query I rowsort
SELECT ALL + col2 - - - col1 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - 83 col0, 26 * - col1 * - col1 + col2 * + - col1 * col0 FROM tab2
----
-19
-42966
-37
13668
-8
-174736

query II rowsort
SELECT ALL + col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT ALL + - col1 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + - col1 / + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + AVG ( ALL - col2 ) AS col1 FROM tab0 WHERE - 42 IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 53 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL + ( - MIN( ALL - - 74 ) ) AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + ( - MIN ( ALL - - 74 ) ) AS col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT ALL ( - col2 ) - + - col0 FROM tab2 AS cor0 WHERE col0 - + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 18 + + col0 + 32 AS col0 FROM tab1 AS cor0
----
101
135
141

query I rowsort
SELECT 23 - + 58 + - ( + - 48 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT col0 * - 1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( * ) * + + 45 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( * ) * + + 45 FROM tab2 AS cor0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3903
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - - MIN( ALL + + 68 ) AS col1 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3904
SELECT - - MIN ( ALL + + 68 ) AS col1 FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + + SUM( - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3905
SELECT + + SUM ( - - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT 93 - - 39 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
132
132
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT DISTINCT + col1 DIV + col0 - + 52 FROM tab2
----
-51
-52

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT + col1 / + col0 - + 52 FROM tab2
----
-51
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT + COUNT( * ) DIV MIN( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT + COUNT ( * ) / MIN ( + col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT - col0 DIV 8 FROM tab0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-3909
SELECT - col0 / 8 FROM tab0
----
-1
-10
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( + col1 * col2 )
----

query I rowsort
SELECT + 47 - - 51 AS col2 FROM tab1
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT + ( - COUNT( - col0 ) ) FROM tab0 WHERE col2 * col1 + + col0 IN ( + 51 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT + ( - COUNT ( - col0 ) ) FROM tab0 WHERE col2 * col1 + + col0 IN ( + 51 * - col0 )
----
0

query I rowsort
SELECT 16 * col2 AS col0 FROM tab2
----
368
640
928

query I rowsort
SELECT 16 + - 97 AS col0 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 22 * - COUNT( * ) col0 FROM tab0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT 22 * - COUNT ( * ) col0 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + COUNT( DISTINCT - ( col1 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3916
SELECT + COUNT ( DISTINCT - ( col1 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT - SUM( + 99 ) / - 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-3917
SELECT DISTINCT - SUM ( + 99 ) / - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col2 + col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + - col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MIN( ALL - 80 ) + COUNT( * ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-3921
SELECT MIN ( ALL - 80 ) + COUNT ( * ) FROM tab1
----
-77

query I rowsort
SELECT ALL + col2 * + 30 AS col1 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT col2 + + 97 AS col0 FROM tab0
----
107
144
196

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - 30 + + MAX( col1 + col2 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3925
SELECT - 30 + + MAX ( col1 + col2 ) FROM tab1
----
85

query I rowsort
SELECT ALL - col2 * - col1 - 36 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 19 + col2 FROM tab1
----
115
78
87

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + 69 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - 20 + - ( 46 ) FROM tab1
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3931
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3931
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab0 WHERE ( 6 * + ( - col0 ) - + 57 ) BETWEEN col2 AND 49
----

query I rowsort
SELECT DISTINCT col1 * - col0 - - col0 AS col2 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT - col0 / - col0 AS col0 FROM tab2 WHERE col1 + - col0 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT MAX( - col0 ) FROM tab1 WHERE NOT - ( 58 ) >= col2 * col2
----
-51

skipif mysql # not compatible
query I rowsort label-3936
SELECT MAX ( - col0 ) FROM tab1 WHERE NOT - ( 58 ) >= col2 * col2
----
-51

query I rowsort
SELECT - 27 * - 65 FROM tab2 cor0
----
1755
1755
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT ALL ( ( col1 ) ) DIV - 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL ( ( col1 ) ) / - 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 65 * + 11 FROM tab1 AS cor0
----
715
715
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
18

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND 94 * + 19
----

query I rowsort
SELECT 49 AS col1 FROM tab2 WHERE NOT 17 * + 71 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT + + CAST( 52 AS SIGNED ) * col1 FROM tab1 cor0
----
2444
260
728

skipif mysql # not compatible
query I rowsort label-3944
SELECT + + CAST ( 52 AS INTEGER ) * col1 FROM tab1 cor0
----
2444
260
728

query I rowsort
SELECT ALL - 86 FROM tab1 AS cor0 WHERE NOT + col2 + - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT COUNT( ALL col0 ) DIV 40 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( ALL col0 ) / 40 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( 12 ) NOT IN ( + col1 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( 12 ) NOT IN ( + col1 + col2 )
----
3

query I rowsort
SELECT ALL - 12 + 46 AS col1 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT + col0 + + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1230
1914
194

query I rowsort
SELECT + ( + 14 ) FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( - col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3952
SELECT SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT DISTINCT + col2 DIV 92 + + col2 AS col2 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + col2 / 92 + + col2 AS col2 FROM tab0 AS cor0
----
10
100
47

query I rowsort
SELECT ALL - 89 * col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT ALL 2 * - col2 + col1 FROM tab2 WHERE ( - col0 + 97 / + col2 ) > NULL
----

query I rowsort
SELECT ALL 13 + - - col0 FROM tab2
----
59
77
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( 59 ) BETWEEN - col0 AND + 19
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( 59 ) BETWEEN - col0 AND + 19
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / + 73 col1 FROM tab1 WHERE 95 * col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 * - 71 FROM tab1
----
-3764
-551
-6102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 70 IN ( col2 )
----

query I rowsort
SELECT ALL col0 + + + ( - ( + col2 ) ) AS col1 FROM tab0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + - col1 col2 FROM tab2
----
-150
-166
-176

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT + 77 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE col0 * 96 <= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 21 + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 26 + + col1 * + ( col2 ) ) NOT BETWEEN ( 46 + 2 ) AND col2 + 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE - 14 + col1 / + col0 IS NOT NULL AND NOT ( 22 + col2 ) = col2
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3969
SELECT ALL AVG ( col0 ) + + COUNT( * ) * ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL AVG ( col0 ) + + COUNT ( * ) * ( CAST ( NULL AS REAL ) ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + - 80 * + CAST( NULL AS SIGNED ) + col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + - 80 * + CAST ( NULL AS INTEGER ) + col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query II rowsort
SELECT col0 AS col1, + 80 * + 89 AS col1 FROM tab2
----
46
7120
64
7120
75
7120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT - col1 AS col1 FROM tab0 WHERE ( NULL ) < - CAST( NULL AS SIGNED ) * - col1 + 84
----

skipif mysql # not compatible
query I rowsort label-3973
SELECT - col1 AS col1 FROM tab0 WHERE ( NULL ) < - CAST ( NULL AS INTEGER ) * - col1 + 84
----

query I rowsort
SELECT ALL - col2 - 11 AS col0 FROM tab2 AS cor0
----
-34
-51
-69

query I rowsort
SELECT DISTINCT - col1 - - - 99 FROM tab2 AS cor0
----
-150
-166
-176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( - + col0 * 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 * - col1 ) = ( - col0 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3979
SELECT ALL - 84 AS col2, CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-3979
SELECT ALL - 84 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-84
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col0 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - + MIN( 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3981
SELECT - + MIN ( 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT + col0 * + 27 * - col1 AS col1 FROM tab1 cor0
----
-11475
-115479
-19278

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - - 55
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 85 ) = ( - 7 + col0 * 99 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + 56 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL MAX( ALL + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL MAX ( ALL + + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT COUNT( * ) + ( COUNT( * ) + - MIN( col1 + col0 * - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT COUNT ( * ) + ( COUNT ( * ) + - MIN ( col1 + col0 * - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT SUM( ALL - - ( - 0 ) ) * ( + 71 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT SUM ( ALL - - ( - 0 ) ) * ( + 71 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3989
SELECT ALL col0 * + col1, col2 - - col1 DIV 16 col2 FROM tab2
----
2346
26
4928
44
5025
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3989
SELECT ALL col0 * + col1, col2 - - col1 / 16 col2 FROM tab2
----
2346
26
4928
44
5025
62

query I rowsort
SELECT + col0 - - 49 FROM tab2 WHERE NOT - + 63 < ( - + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - - col0 * + col0 AS col0 FROM tab2
----
262144
421875
97336

query III rowsort
SELECT ALL * FROM tab1 WHERE 69 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT - 3 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT - 3 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab0 WHERE - - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3995
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / + col1 NOT BETWEEN - 0 AND col0
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab0 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 / + + col0 ) = ( ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 42 ) * - ( + - 13 ) AS col2 FROM tab2
----
-546

query I rowsort
SELECT - 76 * - + ( - + 95 ) AS col2 FROM tab1
----
-7220
-7220
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + COUNT( * ) * - 98 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + COUNT ( * ) * - 98 FROM tab2
----
-294

query I rowsort
SELECT ALL 95 * - 17 FROM tab1
----
-1615
-1615
-1615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 1 col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT NULL > ( 70 * - col1 * 74 + ( col0 ) * - col1 + col1 * col1 )
----

query II rowsort
SELECT + 83 AS col0, - 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 6f3577092463c4e65094a5da50f759d0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - 14 + - - SUM( - 11 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-113

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 14 + - - SUM ( - 11 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-113

query II rowsort
SELECT + - 58, 37 AS col1 FROM tab0 AS cor0
----
-58
37
-58
37
-58
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 98 NOT BETWEEN ( + col0 ) AND + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query III rowsort label-4010
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 DIV + col0 NOT BETWEEN - + ( ( 73 ) ) AND - col1 * + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4010
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / + col0 NOT BETWEEN - + ( ( 73 ) ) AND - col1 * + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT col2 + - 12 + - col2 + col2 * + - 78 * - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT col2 + - 12 + - col2 + col2 * + - 78 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, - col0 col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - - COUNT( * ) * 86 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT - - COUNT ( * ) * 86 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT col0 + + 56 * + - col2 + + - 64 + - 71 FROM tab1 AS cor0
----
-3354
-3852
-5460

query I rowsort
SELECT ALL + col1 + + ( 63 ) AS col0 FROM tab1 AS cor0
----
110
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT + CAST( NULL AS SIGNED ) + + 14 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT + CAST ( NULL AS INTEGER ) + + 14 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 82 * col2 ) IN ( 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT ALL col0 DIV + 47 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL col0 / + 47 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab0 WHERE + - ( - - 17 ) IS NOT NULL
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL col2 + 77 + + ( + 59 ) + + ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL col2 + 77 + + ( + 59 ) + + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 84 AS col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT DISTINCT col2 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT col2 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col2, - 8 FROM tab2
----
23
-8
40
-8
58
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4024
SELECT ALL + COUNT( ALL - col2 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + COUNT ( ALL - col2 ) + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4025
SELECT + CAST( NULL AS SIGNED ) * - SUM( - 95 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT + CAST ( NULL AS INTEGER ) * - SUM ( - 95 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL <= + 21 + + col1 )
----

query I rowsort
SELECT ALL + col2 - 88 FROM tab2 WHERE NOT ( + col1 * - - 79 + - col1 + - + col0 * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - COUNT( * ) * + 38 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-4028
SELECT - COUNT ( * ) * + 38 FROM tab0 AS cor0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col0 / + col2
----

query I rowsort
SELECT col0 - + - col0 * + 65 AS col1 FROM tab0 AS cor0
----
5742
6402
990

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 25 * - col2 AND 21
----

query I rowsort
SELECT + 81 + ( - - col2 ) AS col2 FROM tab2
----
104
121
139

query I rowsort
SELECT DISTINCT - 44 + - 73 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
45

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL > + 45
----

query II rowsort
SELECT - col0 * + - col0, + col1 AS col1 FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + + ( + SUM( ALL - - col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4037
SELECT + + ( + SUM ( ALL - - col1 ) ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < col1 / + col2 + + + col1 * - + 19 + - col1 + 14 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + - 32 * COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4039
SELECT + - 32 * COUNT ( * ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - 74 * 14 * MIN( DISTINCT col2 ) + COUNT( * ) + + 29 AS col0 FROM tab0 AS cor0
----
-10328

skipif mysql # not compatible
query I rowsort label-4040
SELECT - 74 * 14 * MIN ( DISTINCT col2 ) + COUNT ( * ) + + 29 AS col0 FROM tab0 AS cor0
----
-10328

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + COUNT( * ) * 49 AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + COUNT ( * ) * 49 AS col0 FROM tab1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - - SUM( ALL - col0 ) FROM tab0 WHERE NOT - 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - SUM ( ALL - col0 ) FROM tab0 WHERE NOT - 34 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( 81 ) AS col2 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT + + 90 * 48 * 79 + + col0 FROM tab2 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 63 ) AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT - col1 * 49 + + + 8 FROM tab2 AS cor0
----
-2491
-3275
-3765

query II rowsort
SELECT ALL + 45, - col2 AS col2 FROM tab0 cor0
----
45
-10
45
-47
45
-99

query I rowsort
SELECT DISTINCT 93 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
93

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT COUNT( - + col2 ) * - 99 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4050
SELECT DISTINCT COUNT ( - + col2 ) * - 99 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query II rowsort
SELECT DISTINCT ( + 53 ), col0 AS col0 FROM tab1
----
53
51
53
85
53
91

query III rowsort
SELECT * FROM tab1 WHERE NOT + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + - col2 DIV + col1 - - col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-4054
SELECT + - col2 / + col1 - - col0 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT MAX( ALL - 67 ) AS col1 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT MAX ( ALL - 67 ) AS col1 FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT + 92 + 50 - ( 22 ) + - COUNT( * ) + + COUNT( * ) * + 33 * - 57 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5526

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + 92 + 50 - ( 22 ) + - COUNT ( * ) + + COUNT ( * ) * + 33 * - 57 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5526

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) = NULL
----

query I rowsort
SELECT ALL + col0 + + 16 * col0 FROM tab2 cor0
----
1088
1275
782

query I rowsort
SELECT ALL + 95 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
95
95
95

query I rowsort
SELECT ALL - + 67 * - 21 AS col2 FROM tab2 cor0
----
1407
1407
1407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT + 58 + + 81 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT + 58 + + 81 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 86 + + 54 AS col0 FROM tab0
----
140
140
140

query I rowsort
SELECT 76 + - col1 FROM tab1
----
29
62
71

query II rowsort
SELECT DISTINCT col1 * - col1 + - 77, + col2 FROM tab2
----
-2678
23
-4566
58
-6006
40

query I rowsort
SELECT + 94 * col2 + + 24 AS col1 FROM tab1
----
5570
6416
9048

query I rowsort
SELECT ALL 5 * col1 FROM tab0
----
105
405
5

query I rowsort
SELECT DISTINCT + 5 - + ( + col1 ) AS col2 FROM tab1
----
-42
-9
0

query I rowsort
SELECT col2 - - - 37 FROM tab0 WHERE NULL IS NULL
----
-27
10
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT CAST( + col1 AS SIGNED ) * col1 + col0 DIV + + col2 FROM tab0
----
1
449
6561

skipif mysql # not compatible
query I rowsort label-4069
SELECT CAST ( + col1 AS INTEGER ) * col1 + col0 / + + col2 FROM tab0
----
1
449
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT - col2 + + 11 * 53 col1 FROM tab2 AS cor0 WHERE 79 + + + col2 * + col0 * - - CAST( NULL AS SIGNED ) = + col2 * col0 + - 99 / - - 88
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4070
SELECT - col2 + + 11 * 53 col1 FROM tab2 AS cor0 WHERE 79 + + + col2 * + col0 * - - CAST ( NULL AS INTEGER ) = + col2 * col0 + - 99 / - - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT ( - - CAST( + - col2 AS SIGNED ) ) * + ( - + 94 ) + + - col0 AS col2 FROM tab0 AS cor0
----
4403
853
9209

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT ( - - CAST ( + - col2 AS INTEGER ) ) * + ( - + 94 ) + + - col0 AS col2 FROM tab0 AS cor0
----
4403
853
9209

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT DISTINCT - col0 DIV - + 30 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - col0 / - + 30 AS col1 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT ALL - COUNT( * ) * 40 + + + 23 + - COUNT( * ) DIV 47 + + COUNT( * ) - + 92 * - 72 FROM tab2
----
6530

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - COUNT ( * ) * 40 + + + 23 + - COUNT ( * ) / 47 + + COUNT ( * ) - + 92 * - 72 FROM tab2
----
6530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT COUNT( * ) DIV + 69 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT COUNT ( * ) / + 69 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col0 ) * col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0, - 26 AS col1 FROM tab1 AS cor0
----
-51
-26
-85
-26
-91
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT col0 DIV - 65 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT col0 / - 65 AS col0 FROM tab1
----
-1
-1
0

query II rowsort
SELECT + col0 * col1, - col1 AS col0 FROM tab2
----
2346
-51
4928
-77
5025
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT 67 / - CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-4080
SELECT 67 / - CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT + 50 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT + 50 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - + col0 + - 8 * + 58 )
----

query I rowsort
SELECT DISTINCT + ( + 91 ) FROM tab0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT DISTINCT + CAST( 48 AS SIGNED ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + CAST ( 48 AS INTEGER ) AS col0 FROM tab2
----
48

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - - 22 * COUNT( * ) + + 98 FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NOT NULL )
----
164

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - - 22 * COUNT ( * ) + + 98 FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NOT NULL )
----
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 * col2 * col0 - - col1 col2 FROM tab2 AS cor0
----
-191923
-326183
-79299

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 79 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + - col2 col1 FROM tab0 AS cor0
----
-24
-76
13

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT ALL - + 92 + + 27 * col1 DIV + + 34 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-31
-40
-39
-58
-52
-23

skipif mysql # not compatible
query II rowsort label-4091
SELECT ALL - + 92 + + 27 * col1 / + + 34 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-31
-40
-39
-58
-52
-23

query I rowsort
SELECT ALL + 66 - + col0 + - 6 FROM tab1
----
-25
-31
9

query I rowsort
SELECT ALL + col2 * 24 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + COUNT( * ) FROM tab0 WHERE - + col1 <= + + 38
----
3

skipif mysql # not compatible
query I rowsort label-4094
SELECT + COUNT ( * ) FROM tab0 WHERE - + col1 <= + + 38
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4095
SELECT ALL - col1 DIV + col1 * col0 DIV + col0 AS col0, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL - col1 / + col1 * col0 / + col0 AS col0, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

query I rowsort
SELECT + 80 - + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
127
179
90

query I rowsort
SELECT - col0 / 35 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT SUM( ALL + 69 ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT SUM ( ALL + 69 ) FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - COUNT( * ) AS col1, 38 FROM tab0 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-4099
SELECT - COUNT ( * ) AS col1, 38 FROM tab0 AS cor0
----
-3
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) NOT IN ( + - col1, - 93, - 63 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT MIN( ALL 75 ) FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4102
SELECT MIN ( ALL 75 ) FROM tab0 cor0
----
75

query I rowsort
SELECT - col2 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

query II rowsort
SELECT col0 AS col1, + col2 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
51
4800
85
4956
91
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT SUM( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 46 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 63 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - MIN( + 85 ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - MIN ( + 85 ) FROM tab1
----
-85

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( + + col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 18 AS col2, - col1 FROM tab0
----
18
-1
18
-21
18
-81

query II rowsort
SELECT ALL ( - + col2 ), col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT 11 * + col0 + + - col2 * + 91 >= col0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4113
SELECT COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4114
SELECT ALL - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 88, - 73 * - 69, + 14 + - - col0, - col0 )
----

query I rowsort
SELECT + col2 + - - col1 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT - COUNT( ALL - ( + 61 ) ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4117
SELECT - COUNT ( ALL - ( + 61 ) ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT + 50 + + col2 DIV col0 FROM tab2 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4118
SELECT + 50 + + col2 / col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT ALL 20 * - col2 + + + ( - 8 ) FROM tab2
----
-1168
-468
-808

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT + COUNT( ALL + col1 ) AS col2, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-4120
SELECT + COUNT ( ALL + col1 ) AS col2, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT 86 * - - col1 FROM tab0
----
1806
6966
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT col2 / - CAST( NULL AS SIGNED ) * - col2 * 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT col2 / - CAST ( NULL AS INTEGER ) * - col2 * 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - col0 - + col2 + 13 FROM tab0 AS cor0
----
-2
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-4125
SELECT SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - 22 - + - COUNT( * ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - 22 - + - COUNT ( * ) FROM tab1
----
-19

query I rowsort
SELECT DISTINCT col1 + - + col2 * col2 + - + col2 AS col1 FROM tab2 WHERE col0 + - + col2 / - 66 * + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - col2 + col2 DIV col0 * - + col2 AS col0 FROM tab0
----
-10
-188
-198

skipif mysql # not compatible
query I rowsort label-4129
SELECT - col2 + col2 / col0 * - + col2 AS col0 FROM tab0
----
-10
-188
-198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4130
SELECT + col2 + + + CAST( NULL AS SIGNED ) + + 41 AS col2, - col2 DIV 50 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-4130
SELECT + col2 + + + CAST ( NULL AS INTEGER ) + + 41 AS col2, - col2 / 50 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4131
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV + col0 - + col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / + col0 - + col0 FROM tab0
----
-16
-88
-98

query I rowsort
SELECT + col1 + - col2 + - col2 FROM tab2
----
-3
-49
5

query I rowsort
SELECT DISTINCT - + 76 AS col1 FROM tab1 cor0
----
-76

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE - col2 + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT + 66 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 66 / - col2 FROM tab0 AS cor0
----
-1
-6
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE - - col1 * + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 17 / + - col1 - - 37 + - 91 + - col1 * col1 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4140
SELECT ALL CAST( NULL AS SIGNED ) / 55 - SUM( DISTINCT col1 ) AS col0, 91 FROM tab0 AS cor0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL CAST ( NULL AS INTEGER ) / 55 - SUM ( DISTINCT col1 ) AS col0, 91 FROM tab0 AS cor0
----
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT ALL + 95 DIV - col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + 95 / - col2 FROM tab0 AS cor0
----
-2
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT + col1 * - 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-4142
SELECT + col1 * - col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * ( + col0 ) * + ( + col2 ) + - + ( - + 51 ) - col1 FROM tab0 AS cor0
----
10545
75720
931541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT DISTINCT + CAST( - CAST( - - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + CAST ( - CAST ( - - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col1 * + - 26 FROM tab2
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT 67 + + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4146
SELECT 67 + + COUNT ( * ) FROM tab2
----
70

query I rowsort
SELECT - 56 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + ( - col0 ) * col2 - + - 50 + + - col1 AND ( + 94 )
----

query I rowsort
SELECT ALL - 58 + - + col0 - + + 48 + + - col2 + col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - 40 + - - 15 * + 76 / + 84 + + col0 AND NULL
----

query II rowsort
SELECT 10 AS col2, + col2 AS col0 FROM tab1
----
10
59
10
68
10
96

query I rowsort
SELECT ALL AVG ( ALL - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( ( col0 ) ) / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - - 35 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4153
SELECT ALL + ( + col1 ) DIV 25, 81 * + 91 AS col0 FROM tab1 cor0
----
0
7371
0
7371
1
7371

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + ( + col1 ) / 25, 81 * + 91 AS col0 FROM tab1 cor0
----
0
7371
0
7371
1
7371

query II rowsort
SELECT DISTINCT col1, 0 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + COUNT( * ) + - - MIN( - 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + COUNT ( * ) + - - MIN ( - 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT CAST( NULL AS SIGNED ) - - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4156
SELECT CAST ( NULL AS INTEGER ) - - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( + 37 ) FROM tab2 cor0
----
37

query II rowsort
SELECT DISTINCT - col0 + - 66 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-117
96
-151
59
-157
68

query I rowsort
SELECT - + 42 + col1 + + - 36 FROM tab2 AS cor0
----
-1
-11
-27

query I rowsort
SELECT - - 60 AS col0 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL MAX( + - 28 ) col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT ALL MAX ( + - 28 ) col2 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT col1 * + col1 * - col1 * col1 DIV - - ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
-531441
-9261

skipif mysql # not compatible
query I rowsort label-4162
SELECT col1 * + col1 * - col1 * col1 / - - ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
-531441
-9261

query II rowsort
SELECT ALL - 32, + col2 AS col1 FROM tab2 AS cor0
----
-32
23
-32
40
-32
58

query I rowsort
SELECT DISTINCT - col0 * + col2 * ( + col2 ) FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN + 8 AND + + 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 45 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col0 ) >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE + 56 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + 85 * - - 45 FROM tab2 AS cor0
----
3825
3825
3825

onlyif mysql # aggregate syntax: 
query II rowsort label-4171
SELECT + 42 AS col2, - COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
42
-6

skipif mysql # not compatible
query II rowsort label-4171
SELECT + 42 AS col2, - COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
42
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4172
SELECT DISTINCT - 74 AS col0, + 61 / + col0 * - CAST( NULL AS SIGNED ) + + + col2 FROM tab1 cor0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-4172
SELECT DISTINCT - 74 AS col0, + 61 / + col0 * - CAST ( NULL AS INTEGER ) + + + col2 FROM tab1 cor0
----
-74
NULL

query I rowsort
SELECT ALL + 64 * 61 FROM tab2 AS cor0
----
3904
3904
3904

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = + 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT ALL ( - col2 ) DIV col2 + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL ( - col2 ) / col2 + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT col1 * - 69 AS col0 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( DISTINCT + - col2 ) * + 97 AS col2 FROM tab2 WHERE - 67 NOT IN ( - 67 / col2 )
----
-2231

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( DISTINCT + - col2 ) * + 97 AS col2 FROM tab2 WHERE - 67 NOT IN ( - 67 / col2 )
----
-2231

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT col0 * - - 85 FROM tab0
----
1275
7395
8245

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + + col1 * col0
----

query II rowsort
SELECT DISTINCT col0 AS col1, ( - 76 ) AS col1 FROM tab1
----
51
-76
85
-76
91
-76

query I rowsort
SELECT DISTINCT + col2 * + 61 / - 79 + - col1 FROM tab0 AS cor0 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + MAX( 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + MAX ( 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT col1 * 85 AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + 67 * col0 - - col2, col0 + - 72 + - 8 * + + col0 * - - 97 )
----

query I rowsort
SELECT DISTINCT + + 10 + - - ( - 37 ) * 99 AS col2 FROM tab0 AS cor0
----
-3653

query II rowsort
SELECT DISTINCT + col2 + - - 97 + + + 32, - col0 + col0 + ( - - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
139
21
176
81
228
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4187
SELECT DISTINCT col0, + CAST( 13 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
13
87
13
97
13

skipif mysql # not compatible
query II rowsort label-4187
SELECT DISTINCT col0, + CAST ( 13 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
13
87
13
97
13

query I rowsort
SELECT DISTINCT + 11 + + col0 + + col1 FROM tab2 AS cor0
----
108
152
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - MAX( DISTINCT + col0 ) + - COUNT( * ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-4189
SELECT - MAX ( DISTINCT + col0 ) + - COUNT ( * ) AS col1 FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4190
SELECT + ( - 18 ) AS col2, - CAST( col1 AS SIGNED ) FROM tab0
----
-18
-1
-18
-21
-18
-81

skipif mysql # not compatible
query II rowsort label-4190
SELECT + ( - 18 ) AS col2, - CAST ( col1 AS INTEGER ) FROM tab0
----
-18
-1
-18
-21
-18
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT CAST( NULL AS SIGNED ) / + - col2 * + 11 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT CAST ( NULL AS INTEGER ) / + - col2 * + 11 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + 39 * - COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 39 * - COUNT ( * ) FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT col0 ) FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4194
SELECT * FROM tab1 WHERE NOT + + CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4194
SELECT * FROM tab1 WHERE NOT + + CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4195
SELECT DISTINCT - 65 AS col0, + MAX( - 4 ) * + ( + 78 ) DIV - 36 FROM tab0
----
-65
8

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT - 65 AS col0, + MAX ( - 4 ) * + ( + 78 ) / - 36 FROM tab0
----
-65
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + 38 IN ( + col2, + ( col0 ), - col1, - 4, - - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + 38 IN ( + col2, + ( col0 ), - col1, - 4, - - 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - COUNT( - 50 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - COUNT ( - 50 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col0, - col0 AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4199
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 97 AS col1, 48 * col0 FROM tab0 AS cor0
----
97
4176
97
4656
97
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT CAST( + - MIN( col2 ) AS SIGNED ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4202
SELECT CAST ( + - MIN ( col2 ) AS INTEGER ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT MIN( ALL - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT MIN ( ALL - - col1 ) FROM tab1
----
5

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 86 AND - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4206
SELECT - - 27 + - + ( - + CAST( + MIN( + col2 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4206
SELECT - - 27 + - + ( - + CAST ( + MIN ( + col2 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL 44 * + + col1 AS col1 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT + + col2 * col2 + - col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - 38 + - SUM( col2 ) col0 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT DISTINCT - 38 + - SUM ( col2 ) col0 FROM tab2 AS cor0
----
-159

query I rowsort
SELECT ALL + col1 + + + col0 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT - col1 * 82 + + + 40 FROM tab1
----
-1108
-370
-3814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 col0, 25 FROM tab0
----
-38
25
-38
25
-38
25

query I rowsort
SELECT - ( - - 59 ) FROM tab0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT MIN( - + 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-4214
SELECT MIN ( - + 52 ) FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4215
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) = col0 * - col1
----

skipif mysql # not compatible
query III rowsort label-4215
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) = col0 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4216
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4216
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col0 + col0 / + col0 * + 0
----

query I rowsort
SELECT 53 - + 39 AS col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL CAST( NULL AS SIGNED ) * + ( - - MAX( DISTINCT + col2 ) ) + - - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4219
SELECT ALL CAST ( NULL AS INTEGER ) * + ( - - MAX ( DISTINCT + col2 ) ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 >= NULL
----

query I rowsort
SELECT - 94 - + col0 AS col1 FROM tab0 AS cor0
----
-109
-181
-191

query I rowsort
SELECT DISTINCT - + col0 + col1 * + 80 - + col2 AS col0 FROM tab0 AS cor0
----
-116
1583
6418

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 * + + 16 AS col0 FROM tab0
----
1584
3360
60912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL - 25 * + - CAST( NULL AS SIGNED ) + COUNT( * ) + - 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 25 * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 66 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 IN ( + + col0, 49 * 33 * ( col1 ) * col2 + + col2 - + col1 * + + col0 * col0 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + 35, ( - 50 ), - 56 * - col2, - 96 + + 36, + col1 )
----

query I rowsort
SELECT + col1 * - col2 FROM tab1 AS cor0 WHERE 9 + - 99 / col1 - ( - 31 ) NOT BETWEEN + col0 - 27 AND NULL
----
-295
-3196

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT + - 99 * - - CAST( - ( - col1 ) AS SIGNED ) - col0 AS col0 FROM tab0 cor0
----
-196
-2166
-8034

skipif mysql # not compatible
query I rowsort label-4229
SELECT + - 99 * - - CAST ( - ( - col1 ) AS INTEGER ) - col0 AS col0 FROM tab0 cor0
----
-196
-2166
-8034

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - col2 DIV - col1 * - col2 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4230
SELECT - col2 / - col1 * - col2 / - col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + col0 * + col0
----

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab0, tab0 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL - + SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT - - MIN( + 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - - MIN ( + 87 ) FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 51 ) col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT - + col1 * - 80 AS col1 FROM tab0 AS cor0
----
1680
6480
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT 72 DIV - COUNT( * ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4239
SELECT 72 / - COUNT ( * ) AS col0 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL + ( - COUNT( ALL + - col2 ) ) AS col2 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + ( - COUNT ( ALL + - col2 ) ) AS col2 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

query I rowsort
SELECT - 88 * - + ( - col1 ) * - 82 AS col0 FROM tab1
----
101024
339152
36080

query II rowsort
SELECT DISTINCT + 97, col2 FROM tab0 cor0
----
97
10
97
47
97
99

query II rowsort
SELECT + - col0, 25 AS col2 FROM tab2 AS cor0
----
-46
25
-64
25
-75
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 col2, - col2, col1 FROM tab1 AS cor0
----
9 values hashing to 1ba8461b09bd789116e826587da4e742

query I rowsort
SELECT ALL + - ( - col2 ) * col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) + col0 + col1 + - 6 / - 54 IS NULL
----

query I rowsort
SELECT ALL 8 * col0 * + + col2 * col1 + - 34 * - col2 AS col1 FROM tab2 cor0
----
1578320
2333572
432446

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL MAX( - ( - col0 ) ) + - COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL MAX ( - ( - col0 ) ) + - COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IN ( col1, + col0 * - 31 * - col0, + 63, col2 + - col2 + col0 * + - col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 59 + - col1 * + + col0 FROM tab1
----
-366
-4218
-655

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT DISTINCT - col2 + + + col2 * col2 DIV + col1 AS col0 FROM tab2
----
-13
-20
-8

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - col2 + + + col2 * col2 / + col1 AS col0 FROM tab2
----
-13
-20
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 45 * + - 13 + - COUNT( * ) FROM tab1
----
-588

skipif mysql # not compatible
query I rowsort label-4254
SELECT 45 * + - 13 + - COUNT ( * ) FROM tab1
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL + 19 * - CAST( NULL AS SIGNED ) + - 12 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + 19 * - CAST ( NULL AS INTEGER ) + - 12 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT - ( col0 ) + - 98 DIV + ( - - col2 ) FROM tab0
----
-17
-96
-97

skipif mysql # not compatible
query I rowsort label-4256
SELECT - ( col0 ) + - 98 / + ( - - col2 ) FROM tab0
----
-17
-96
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ( - 11 ) + MAX( - 20 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-4257
SELECT ( - 11 ) + MAX ( - 20 ) FROM tab0
----
-31

query II rowsort
SELECT ALL - 29 + + + col0 * + - col0 * 3 * + col2 AS col1, col1 FROM tab0
----
-227099
21
-2794502
1
-31754
81

query I rowsort
SELECT DISTINCT - - ( + - col2 ) * + ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 96 * + col2 * + col2 FROM tab0 AS cor0
----
212064
940896
9600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col0 AS col2 FROM tab2 cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT COUNT( * ) * - + 37 AS col2 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT COUNT ( * ) * - + 37 AS col2 FROM tab2 AS cor0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT ALL 8 + 19 + - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > + col1
----
27

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 8 + 19 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > + col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL 26 DIV - + 50 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 26 / - + 50 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL - MAX( DISTINCT 15 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - MAX ( DISTINCT 15 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 92 * - col0 FROM tab0 AS cor0
----
-1380
-8004
-8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1 col2, 88 FROM tab1
----
-196
88
-2209
88
-25
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT + 65 DIV col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4270
SELECT + 65 / col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT COUNT( * ) * + + ( + + MAX( + + col2 ) ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( * ) * + + ( + + MAX ( + + col2 ) ) FROM tab2
----
174

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4273
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ), + COUNT( * ) col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4273
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ), + COUNT ( * ) col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + MIN( DISTINCT + + ( col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + MIN ( DISTINCT + + ( col1 ) ) AS col1 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4275
SELECT ALL + col1 DIV + 79 AS col2, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
1
81

skipif mysql # not compatible
query II rowsort label-4275
SELECT ALL + col1 / + 79 AS col2, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT ALL - + COUNT( * ) DIV 17 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - + COUNT ( * ) / 17 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4277
SELECT DISTINCT - - col0 + - 11 DIV - CAST( - col2 AS SIGNED ) + ( - col0 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT - - col0 + - 11 / - CAST ( - col2 AS INTEGER ) + ( - col0 ) FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL ( + 54 ) FROM tab2
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE col2 - 39 NOT BETWEEN - 95 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 AS col1, col0 * - col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT + 8 * + 42 + - SUM( - 32 ) AS col0 FROM tab2 cor0
----
432

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 8 * + 42 + - SUM ( - 32 ) AS col0 FROM tab2 cor0
----
432

query I rowsort
SELECT ALL + - 11 * - 76 FROM tab1 cor0
----
836
836
836

query I rowsort
SELECT ALL + col2 + + ( - - col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
107
109
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - COUNT( * ) - + - ( - MIN( - - col2 ) ) FROM tab2 cor0 WHERE + col0 BETWEEN + + 57 AND + col1 / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT - COUNT ( * ) - + - ( - MIN ( - - col2 ) ) FROM tab2 cor0 WHERE + col0 BETWEEN + + 57 AND + col1 / - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - 42 * MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - 42 * MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL 85 + 61 FROM tab1 AS cor0
----
146
146
146

query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT ALL col0 + - col0 - - 20 AS col0 FROM tab0
----
20
20
20

query II rowsort
SELECT + col2 AS col1, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT COUNT( * ) + + 94 AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT COUNT ( * ) + + 94 AS col2 FROM tab0
----
97

query I rowsort
SELECT - 63 FROM tab0 WHERE + col2 >= col1 - - col0
----
-63

query I rowsort
SELECT ALL col0 + 29 - + col2 + + 46 * + ( col1 ) * + 92 FROM tab2
----
215884
283590
325917

query I rowsort
SELECT + 46 FROM tab1 AS cor0 WHERE NULL IN ( + col1 + + col0 * + col1, 92 * - col2, + + col2 * - col2, + + ( - col2 ), + col1, - + col2 )
----

query I rowsort
SELECT ALL - 88 + - col0 FROM tab0 AS cor0
----
-103
-175
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 + + + 3 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 + + + 3 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL COUNT( ALL col2 ) * - 86 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL COUNT ( ALL col2 ) * - 86 FROM tab0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 24 col1 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT ALL + 72 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4299
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT - CAST ( NULL AS REAL ) / ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT + + ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT CAST( col2 AS SIGNED ) * 64 FROM tab2 AS cor0
----
1472
2560
3712

skipif mysql # not compatible
query I rowsort label-4301
SELECT CAST ( col2 AS INTEGER ) * 64 FROM tab2 AS cor0
----
1472
2560
3712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col0 FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT - - SUM( + + col1 ), - 18 AS col1 FROM tab0 AS cor0
----
103
-18

skipif mysql # not compatible
query II rowsort label-4303
SELECT - - SUM ( + + col1 ), - 18 AS col1 FROM tab0 AS cor0
----
103
-18

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - ( - + 77 ) * + COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - ( - + 77 ) * + COUNT ( * ) FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT ALL - 24 DIV ( - ( - col0 ) ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - 24 / ( - ( - col0 ) ) FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col2, - 33 AS col2 FROM tab0
----
10
-33
47
-33
99
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL - COUNT( * ) * - ( + 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - COUNT ( * ) * - ( + 88 ) FROM tab0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL - SUM( 7 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - SUM ( 7 ) FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT - + CAST( + - 61 AS SIGNED ) FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4310
SELECT - + CAST ( + - 61 AS INTEGER ) FROM tab0 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT - COUNT( * ) * + 37 + - COUNT( * ), 50 AS col1 FROM tab2 AS cor0
----
-114
50

skipif mysql # not compatible
query II rowsort label-4311
SELECT - COUNT ( * ) * + 37 + - COUNT ( * ), 50 AS col1 FROM tab2 AS cor0
----
-114
50

query I rowsort
SELECT DISTINCT + col2 * col0 - col2 + - col0 AS col2 FROM tab2 AS cor0
----
2456
4217
989

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT 42 * + col0 * + col0 + + + 6 DIV + 32 FROM tab2 AS cor0
----
172032
236250
88872

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 42 * + col0 * + col0 + + + 6 / + 32 FROM tab2 AS cor0
----
172032
236250
88872

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 85 < NULL
----

query I rowsort
SELECT - ( + - 20 ) FROM tab1
----
20
20
20

query II rowsort
SELECT + col0 * col1, col0 FROM tab2
----
2346
46
4928
64
5025
75

query II rowsort
SELECT DISTINCT ( - - 37 ), + col0 AS col0 FROM tab0
----
37
15
37
87
37
97

query I rowsort
SELECT - + col0 * + - col1 * + 50 * col0 * col0 FROM tab0 AS cor0
----
13668750
45633650
691428150

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT + + COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + + COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * col2 + 29 AS col0 FROM tab2 AS cor0
----
-1144
-3051
-3857

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + + 61 ) FROM tab1 WHERE col0 IS NULL AND col0 NOT IN ( 99 )
----
NULL

query I rowsort
SELECT ALL + 29 + + ( - 75 ) + - 23 + + 76 * - 46 AS col1 FROM tab2
----
-3565
-3565
-3565

query I rowsort
SELECT DISTINCT 2 - - + 16 FROM tab0
----
18

query I rowsort
SELECT ALL - 3 + - - col1 FROM tab1
----
11
2
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 58 - - 18 col2 FROM tab0
----
-5028
-5608
-852

query I rowsort
SELECT ALL + ( col1 ) + 78 FROM tab0
----
159
79
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 col2, col0 FROM tab1
----
-99
51
-99
85
-99
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT 14 - COUNT( * ) FROM tab2 WHERE - CAST( + 96 AS SIGNED ) / col0 - - + col1 + + 8 IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-4329
SELECT 14 - COUNT ( * ) FROM tab2 WHERE - CAST ( + 96 AS INTEGER ) / col0 - - + col1 + + 8 IS NULL
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT COUNT( * ) + - - MAX( + col2 ) + + 18 - + + 61 col2, COUNT( * ) FROM tab2
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4330
SELECT COUNT ( * ) + - - MAX ( + col2 ) + + 18 - + + 61 col2, COUNT ( * ) FROM tab2
----
18
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT DISTINCT + 11 + 99 DIV - col1 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + 11 + 99 / - col1 FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL + + 2 + - 62 - - + col0 FROM tab1 AS cor0
----
-9
25
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + COUNT( * ) * + 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4333
SELECT + COUNT ( * ) * + 38 FROM tab0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT ALL + CAST( - col1 AS SIGNED ) * - 69 FROM tab0
----
1449
5589
69

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + CAST ( - col1 AS INTEGER ) * - 69 FROM tab0
----
1449
5589
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT + CAST( - 52 AS SIGNED ) AS col0 FROM tab0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-4335
SELECT + CAST ( - 52 AS INTEGER ) AS col0 FROM tab0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / ( + 63 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT + MAX( + ( - CAST( col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + MAX ( + ( - CAST ( col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4338
SELECT DISTINCT + COUNT( * ) AS col2, + 8 / MIN( - col1 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT DISTINCT + COUNT ( * ) AS col2, + 8 / MIN ( - col1 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL 78 * + - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 78 * + - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-234

query I rowsort
SELECT + 53 * + col1 + - col0 FROM tab1 AS cor0
----
180
2400
691

query I rowsort
SELECT ALL - col0 * - col1 - + 81 * - 66 * + col2 + - - col2 + col0 AS col2 FROM tab1 AS cor0
----
315983
367964
514077

query I rowsort
SELECT - ( - col0 ) * ( + col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT 39 DIV - ( - col0 ) FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4343
SELECT 39 / - ( - col0 ) FROM tab0
----
0
0
2

query II rowsort
SELECT 57 * - + col1 AS col2, col1 AS col2 FROM tab1
----
-2679
47
-285
5
-798
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT COUNT( * ) DIV + + 71 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT COUNT ( * ) / + + 71 col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT col1 AS col0 FROM tab0 WHERE NOT - 70 - + - col1 + col1 + CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4346
SELECT col1 AS col0 FROM tab0 WHERE NOT - 70 - + - col1 + col1 + CAST ( + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - 1 * - COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 1 * - COUNT ( - col2 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + COUNT( * ) + - + 20 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + COUNT ( * ) + - + 20 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - 18 + - + col0 AS col2 FROM tab2
----
-64
-82
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col1 col0 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + MIN( 45 ) col1 FROM tab1 AS cor0 WHERE + col2 = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4354
SELECT + MIN ( 45 ) col1 FROM tab1 AS cor0 WHERE + col2 = NULL
----
NULL

query I rowsort
SELECT DISTINCT + 3 * 55 FROM tab0 AS cor0
----
165

query I rowsort
SELECT col1 + + + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL + - 16 + + - COUNT( ALL + ( 39 ) ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL + - 16 + + - COUNT ( ALL + ( 39 ) ) FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT ALL - MIN( + col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - MIN ( + col2 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT col1 * 62 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT DISTINCT + col2 * ( 94 ) + - col0 AS col1 FROM tab0
----
4403
853
9209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT + col1 + - CAST( - - col1 AS SIGNED ) + 40 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + col1 + - CAST ( - - col1 AS INTEGER ) + 40 FROM tab1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT DISTINCT col1 / + 69 * col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT col1 / + 69 * col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4363
SELECT - - col2 DIV + + col1 - - 90 + - + 38, 47 AS col2 FROM tab0 AS cor0
----
151
47
52
47
52
47

skipif mysql # not compatible
query II rowsort label-4363
SELECT - - col2 / + + col1 - - 90 + - + 38, 47 AS col2 FROM tab0 AS cor0
----
151
47
52
47
52
47

query I rowsort
SELECT 28 FROM tab1 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT + - ( - 29 ) * 93 AS col1 FROM tab2 AS cor0
----
2697
2697
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL SUM( DISTINCT - - 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL SUM ( DISTINCT - - 11 ) FROM tab1
----
11

query I rowsort
SELECT ( - 78 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4368
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = 33 + - CAST( + 54 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-4368
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = 33 + - CAST ( + 54 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 74 FROM tab1, tab0 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT ALL CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL - MAX( DISTINCT 97 ) AS col0 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - MAX ( DISTINCT 97 ) AS col0 FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT COUNT( + 74 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT COUNT ( + 74 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4373
SELECT ALL + col1 * - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + col1 * - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT + 96 + col0 + + ( - col0 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT + ( - 0 ) + + col2 + + - col1 * 8 < - col2
----

skipif mysql # not compatible
query I rowsort label-4374
SELECT + 96 + col0 + + ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT + ( - 0 ) + + col2 + + - col1 * 8 < - col2
----

query I rowsort
SELECT ALL 49 * col0 - + 48 + - ( + + 50 ) AS col1 FROM tab2 AS cor0
----
2156
3038
3577

query II rowsort
SELECT ALL col2 + - col2, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4377
SELECT DISTINCT + col0, + CAST( 32 AS SIGNED ) FROM tab0
----
15
32
87
32
97
32

skipif mysql # not compatible
query II rowsort label-4377
SELECT DISTINCT + col0, + CAST ( 32 AS INTEGER ) FROM tab0
----
15
32
87
32
97
32

query I rowsort
SELECT + col2 * + + 4 * - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col0, ( + 4 ) AS col1 FROM tab2
----
23
4
40
4
58
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - MIN( ALL + - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - MIN ( ALL + - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT SUM( - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT SUM ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 NOT BETWEEN NULL AND - - col1 * - + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT + CAST( 33 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + CAST ( 33 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL COUNT( * ) + 48 * - 5 AS col2 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL COUNT ( * ) + 48 * - 5 AS col2 FROM tab1
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL + ( + CAST( 66 AS SIGNED ) ) + - col2 AS col2 FROM tab0
----
-33
19
56

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + ( + CAST ( 66 AS INTEGER ) ) + - col2 AS col2 FROM tab0
----
-33
19
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT - COUNT( * ) * - 53 DIV - 50 AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4386
SELECT - COUNT ( * ) * - 53 / - 50 AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4387
SELECT DISTINCT col2 - + 37, + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-27
NULL
10
NULL
62
NULL

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT col2 - + 37, + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-27
NULL
10
NULL
62
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - 61
----

query I rowsort
SELECT + col0 * - + 73 - + - 57 AS col0 FROM tab0 AS cor0
----
-1038
-6294
-7024

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1 * - 88
----

query I rowsort
SELECT DISTINCT + 65 * - col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL - + COUNT( * ) * - 49 * 71 AS col2 FROM tab1 cor0
----
10437

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - + COUNT ( * ) * - 49 * 71 AS col2 FROM tab1 cor0
----
10437

query I rowsort
SELECT ALL - + col1 + 88 FROM tab0 AS cor0
----
67
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + - col0 col0 FROM tab1 AS cor0
----
-15
-21
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT - col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4395
SELECT - col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + col0 + + - 59 AS col1 FROM tab0
----
-44
28
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - + AVG ( ALL - 12 ) * MAX( 60 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - + AVG ( ALL - 12 ) * MAX ( 60 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + col0 * + + col1 AS col0 FROM tab1
----
340
4186
663

query I rowsort
SELECT ALL ( + col0 ) - + + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 7 + + - col0 FROM tab0
----
-104
-22
-94

query I rowsort
SELECT col2 + col2 - + - col2 FROM tab1
----
177
204
288

query I rowsort
SELECT + col2 * - col0 + + 61 * + col1 AS col2 FROM tab2
----
-263
2053
2137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col2 FROM tab0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + MIN( ALL - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + MIN ( ALL - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT DISTINCT + COUNT( * ) AS col1, + MAX( DISTINCT - + col1 ) AS col2 FROM tab1
----
3
-5

skipif mysql # not compatible
query II rowsort label-4405
SELECT DISTINCT + COUNT ( * ) AS col1, + MAX ( DISTINCT - + col1 ) AS col2 FROM tab1
----
3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + 83 + + col0 * + 19 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1052
1698
1812

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT - 33 ) * - COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT - 33 ) * - COUNT ( * ) FROM tab2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL CAST( NULL AS SIGNED ) + - 14 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL CAST ( NULL AS INTEGER ) + - 14 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT col1 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT col1 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + col2 ) < col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <= col1 * + 57
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * 43 col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 76 * - col0 + 97 FROM tab2
----
-3399
-4767
-5603

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT 63 + 62 * + ( - ( col1 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 47 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4417
SELECT - CAST( COUNT( * ) AS SIGNED ) * MAX( col2 DIV - col1 ) AS col2 FROM tab2 WHERE NOT col0 < ( ( - 14 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * MAX ( col2 / - col1 ) AS col2 FROM tab2 WHERE NOT col0 < ( ( - 14 ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4418
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * 9 - col1 * - col1 ) BETWEEN col1 AND CAST( NULL AS DECIMAL )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-4418
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * 9 - col1 * - col1 ) BETWEEN col1 AND CAST ( NULL AS REAL )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + COUNT( * ) * + 6 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4419
SELECT + COUNT ( * ) * + 6 AS col0 FROM tab2
----
18

query I rowsort
SELECT ALL ( - 96 ) FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 59 col0 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT DISTINCT - 80 * + col0 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT * FROM tab1 WHERE ( 93 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 17 * + ( col0 * - col1 ) AS col1 FROM tab2
----
-39882
-83776
-85425

query I rowsort
SELECT + col2 FROM tab2 WHERE - col0 NOT BETWEEN NULL AND - col2 + 68
----

query I rowsort
SELECT - 93 * + 98 + - col2 FROM tab1
----
-9173
-9182
-9210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT MIN( DISTINCT - CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT MIN ( DISTINCT - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT ALL col0 * 83 + col0 AS col2 FROM tab1
----
4284
7140
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + ( MIN( ALL + ( + col1 ) ) ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4430
SELECT + ( MIN ( ALL + ( + col1 ) ) ) col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col0 ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + 54 AS col1 FROM tab0 AS cor0
----
-45
44
7

query I rowsort
SELECT col2 * 64 FROM tab1 AS cor0 WHERE NULL < ( - 48 )
----

query I rowsort
SELECT DISTINCT 13 * + col2 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4437
SELECT COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT - col1 DIV ( 82 ) + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4438
SELECT - col1 / ( 82 ) + + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + 50 * 32 - + col2 FROM tab2
----
1542
1560
1577

query I rowsort
SELECT DISTINCT + col1 - - 90 FROM tab2
----
141
157
167

query I rowsort
SELECT ALL + 35 * - col1 - col1 AS col0 FROM tab1
----
-1692
-180
-504

query III rowsort
SELECT * FROM tab2 WHERE col2 + - col1 > ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT DISTINCT 19 DIV + 80 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT 19 / + 80 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 98 AS col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT - 71 AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN CAST( 15 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4446
SELECT - 71 AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN CAST ( 15 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + MIN( DISTINCT 44 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4447
SELECT + MIN ( DISTINCT 44 ) FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT ALL - 79 DIV - COUNT( - col0 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - 79 / - COUNT ( - col0 ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - col0 - + 23 AS col1 FROM tab2 AS cor0
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT + ( CAST( + col0 AS SIGNED ) ) + - col2 col1 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT DISTINCT + ( CAST ( + col0 AS INTEGER ) ) + - col2 col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - ( COUNT( * ) ) * - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4451
SELECT - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT DISTINCT 10 * 98 FROM tab1 AS cor0
----
980

query I rowsort
SELECT ALL - 19 / - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4454
SELECT + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col1 + + col0 <= 57 * - 19 + + col1
----
87
21
10
97
1
99

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( col0 ) > - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT CAST( - + 81 AS SIGNED ) * - MIN( DISTINCT - 10 ) AS col1 FROM tab0
----
-810

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT CAST ( - + 81 AS INTEGER ) * - MIN ( DISTINCT - 10 ) AS col1 FROM tab0
----
-810

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN 98 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ( MIN( ALL - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4459
SELECT ( MIN ( ALL - col1 ) ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4460
SELECT ALL CAST( col0 AS SIGNED ) DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL CAST ( col0 AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 71 + - 41 FROM tab1 AS cor0 WHERE NOT ( + 11 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 53 <> - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 - - col1 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IN ( + col1 + - col1 ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 55 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT col1 * + + col2 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL + 62 * - 28 AS col2 FROM tab1
----
-1736
-1736
-1736

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + ( SUM( - 88 ) ) AS col2 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4470
SELECT + ( SUM ( - 88 ) ) AS col2 FROM tab2 AS cor0
----
-264

query II rowsort
SELECT ALL + + col0 AS col2, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * - 44 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * - 44 IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE + col1 / - col2 IS NULL OR NOT NULL <> ( + 12 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 91 + 72 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
54

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 57 * col2 AS col1 FROM tab2 AS cor0
----
-1260
-2203
-3239

query I rowsort
SELECT DISTINCT 93 * col0 + col1 FROM tab2 AS cor0 WHERE 66 + - col0 <> col2 - 36 * - 75
----
4329
6029
7042

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN col1 AND + 46
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT MAX( ALL 75 ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4479
SELECT MAX ( ALL 75 ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + 83 * + MIN( 95 ) * - COUNT( * ) + 30 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-23625

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + 83 * + MIN ( 95 ) * - COUNT ( * ) + 30 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-23625

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ( - 97 ) + + COUNT( * ) * + COUNT( * ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-4482
SELECT ( - 97 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT - col2 + - + 50 + + - col2 DIV 73 AS col2 FROM tab1
----
-109
-118
-147

skipif mysql # not compatible
query I rowsort label-4483
SELECT - col2 + - + 50 + + - col2 / 73 AS col2 FROM tab1
----
-109
-118
-147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4484
SELECT 70 col2 FROM tab2 WHERE ( NULL ) <> + CAST( NULL AS DECIMAL ) * ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT 70 col2 FROM tab2 WHERE ( NULL ) <> + CAST ( NULL AS REAL ) * ( col2 )
----

query I rowsort
SELECT + col1 + 77 AS col1 FROM tab1
----
124
82
91

query III rowsort
SELECT * FROM tab0 WHERE col0 * - ( col0 ) * col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT 98 + - col1 + + col2 + + col2 + col2 DIV col0 AS col0 FROM tab1
----
187
211
277

skipif mysql # not compatible
query I rowsort label-4487
SELECT 98 + - col1 + + col2 + + col2 + col2 / col0 AS col0 FROM tab1
----
187
211
277

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4488
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( 52 DIV + col2 NOT BETWEEN NULL AND + CAST( col1 AS SIGNED ) - + col1 ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4488
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( 52 / + col2 NOT BETWEEN NULL AND + CAST ( col1 AS INTEGER ) - + col1 ) )
----
15
81
47
87
21
10

query I rowsort
SELECT + + 75 + + col0 FROM tab0 AS cor0
----
162
172
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + + 47 + - 69 + + + 50 * ( + col2 + + col2 * - col0 ) FROM tab0 AS cor0
----
-32841
-43001
-475221

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT - col0 + + col1 FROM tab0 WHERE NULL BETWEEN ( - + ( - col2 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT 41 - - 28 AS col0 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4496
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + - ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4496
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + - ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - col0 * + col2 - + col2 col0 FROM tab0
----
-26837
-33070
-365013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - + 66 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - + 66 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT ALL - COUNT( * ) AS col0, + 26 * + COUNT( * ) col1 FROM tab0 cor0
----
-3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4499
SELECT ALL - COUNT ( * ) AS col0, + 26 * + COUNT ( * ) col1 FROM tab0 cor0
----
-3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4500
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + - 33 - - col1 AS col0 FROM tab1 AS cor0
----
-19
-28
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 53 IN ( 53 + - 81 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4503
SELECT CAST( NULL AS SIGNED ), - 53 AS col2 FROM tab1
----
NULL
-53
NULL
-53
NULL
-53

skipif mysql # not compatible
query II rowsort label-4503
SELECT CAST ( NULL AS INTEGER ), - 53 AS col2 FROM tab1
----
NULL
-53
NULL
-53
NULL
-53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 48 NOT IN ( + ( + - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 AS col2, + col1 col0 FROM tab0
----
12
1
12
21
12
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * + + col0 col1 FROM tab0
----
-1020
-5916
-6596

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + - 66 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query II rowsort
SELECT - col2, - ( 98 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT COUNT( * ) * + + 50 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4511
SELECT COUNT ( * ) * + + 50 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - - col2 NOT BETWEEN NULL AND 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + MIN( - + col1 ) * - 54 AS col2 FROM tab1
----
2538

skipif mysql # not compatible
query I rowsort label-4513
SELECT + MIN ( - + col1 ) * - 54 AS col2 FROM tab1
----
2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT + CAST( + 32 AS SIGNED ) * col1 FROM tab2
----
1632
2144
2464

skipif mysql # not compatible
query I rowsort label-4514
SELECT + CAST ( + 32 AS INTEGER ) * col1 FROM tab2
----
1632
2144
2464

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT + + 78 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + 67 + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1125
2627
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT - 93 DIV + col0 + - + col2 + + - col2 FROM tab0 AS cor0
----
-100
-198
-21

skipif mysql # not compatible
query I rowsort label-4517
SELECT - 93 / + col0 + - + col2 + + - col2 FROM tab0 AS cor0
----
-100
-198
-21

query I rowsort
SELECT ALL - 97 FROM tab2 AS cor0 WHERE + ( 88 ) IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + + 67 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4520
SELECT ALL + - CAST( - - COUNT( * ) AS SIGNED ) + 79 + + COUNT( * ) FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + - CAST ( - - COUNT ( * ) AS INTEGER ) + 79 + + COUNT ( * ) FROM tab2 cor0
----
79

query II rowsort
SELECT DISTINCT - col1 + - col0, + col2 FROM tab1 AS cor0
----
-138
68
-65
96
-90
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT + + col2 DIV col0 + + - col0 + + - col2 * - col2 - - col0 AS col1 FROM tab0 AS cor0
----
100
2212
9802

skipif mysql # not compatible
query I rowsort label-4522
SELECT + + col2 / col0 + + - col0 + + - col2 * - col2 - - col0 AS col1 FROM tab0 AS cor0
----
100
2212
9802

query I rowsort
SELECT - - ( - 46 ) + - ( + 70 ) AS col2 FROM tab2 cor0
----
-116
-116
-116

query I rowsort
SELECT - col2 + + col2 + - + 61 FROM tab1 AS cor0
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 * 6 )
----

query I rowsort
SELECT - col2 + + - ( - col0 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 WHERE - - 12 * + col0 > NULL
----

query I rowsort
SELECT - col1 + - 6 + col1 + - 29 * col2 FROM tab1 WHERE ( - ( + 16 ) ) IS NOT NULL
----
-1717
-1978
-2790

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT ALL 5 DIV - + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL 5 / - + col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT DISTINCT + + col2 DIV col1 * + 41 - col0 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + + col2 / col1 * + 41 - col0 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND + - 39 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + 11 + - COUNT( * ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 11 + - COUNT ( * ) AS col1 FROM tab1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL + 13 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL - - ( - + ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 12 > ( - col0 + + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT + col0 ) * - + 44 AS col2 FROM tab2
----
-9900

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT + col0 ) * - + 44 AS col2 FROM tab2
----
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) * + COUNT( col0 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) * + COUNT ( col0 ) FROM tab1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4539
SELECT ALL 3 AS col2, - col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL
3
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-4539
SELECT ALL 3 AS col2, - col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL
3
NULL
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT SUM( DISTINCT 70 ) DIV SUM( 1 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4540
SELECT SUM ( DISTINCT 70 ) / SUM ( 1 ) FROM tab1
----
23

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT + 82 + + + col0 + col0 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - SUM( DISTINCT + 22 ) * + ( - 18 ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
1191

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - SUM ( DISTINCT + 22 ) * + ( - 18 ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
1191

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4543
SELECT CAST( - - col2 AS SIGNED ) DIV - ( - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT CAST ( - - col2 AS INTEGER ) / - ( - col1 ) FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 + - col2 * + 43 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL - ( - CAST( + col0 AS SIGNED ) ) * - col1 + - 3 FROM tab0 AS cor0 WHERE col2 * - col0 + - col1 - - - col0 + - CAST( + col0 AS SIGNED ) * + + 44 + 74 <= ( - col0 * 52 + 44 )
----
-100
-1218
-1830

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - ( - CAST ( + col0 AS INTEGER ) ) * - col1 + - 3 FROM tab0 AS cor0 WHERE col2 * - col0 + - col1 - - - col0 + - CAST ( + col0 AS INTEGER ) * + + 44 + 74 <= ( - col0 * 52 + 44 )
----
-100
-1218
-1830

query I rowsort
SELECT ALL col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - 83 + - - SUM( DISTINCT col2 ) FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 83 + - - SUM ( DISTINCT col2 ) FROM tab1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT ALL - COUNT( * ) AS col2, - 67 FROM tab2 AS cor0
----
-3
-67

skipif mysql # not compatible
query II rowsort label-4548
SELECT ALL - COUNT ( * ) AS col2, - 67 FROM tab2 AS cor0
----
-3
-67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 6 * col1 BETWEEN NULL AND - col1 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4550
SELECT - CAST( + + col2 AS SIGNED ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4550
SELECT - CAST ( + + col2 AS INTEGER ) / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT DISTINCT 66 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 66 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT col2 DIV 14 FROM tab0 AS cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-4552
SELECT col2 / 14 FROM tab0 AS cor0
----
0
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL ( + COUNT( - 78 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL ( + COUNT ( - 78 ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col1 + + - 72 AS col0 FROM tab2 cor0
----
-21
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + col1 col1 FROM tab2 WHERE - col1 * + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + COUNT( * ) + - + MAX( ALL - 40 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4557
SELECT + COUNT ( * ) + - + MAX ( ALL - 40 ) AS col2 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 0 + COUNT( - - ( + ( + 55 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4558
SELECT 0 + COUNT ( - - ( + ( + 55 ) ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT MAX( - ( + - col2 ) ) - + 21 AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT MAX ( - ( + - col2 ) ) - + 21 AS col1 FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL ( + + col2 ) AS col1, - 9 AS col2, - + ( + - col0 ) col2 FROM tab0
----
9 values hashing to fd5c7ea664d30e080605685e76a95a4a

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT COUNT( * ) + 36 + - - 54 col2 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4561
SELECT COUNT ( * ) + 36 + - - 54 col2 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT 42 DIV + - col0 - col1 col2 FROM tab0
----
-1
-21
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT 42 / + - col0 - col1 col2 FROM tab0
----
-1
-21
-83

query I rowsort
SELECT DISTINCT + ( + ( 56 ) ) AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT + + 84 AS col1 FROM tab0 AS cor0 WHERE NOT - 83 NOT BETWEEN NULL AND + col2 * - ( col0 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + + 84 AS col1 FROM tab0 AS cor0 WHERE NOT - 83 NOT BETWEEN NULL AND + col2 * - ( col0 ) + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT DISTINCT 11 AS col2, - COUNT( * ) FROM tab1
----
11
-3

skipif mysql # not compatible
query II rowsort label-4565
SELECT DISTINCT 11 AS col2, - COUNT ( * ) FROM tab1
----
11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + + MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4566
SELECT + + MIN ( + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT + COUNT( * ), + COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4567
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT COUNT( ALL 47 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT COUNT ( ALL 47 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT 56 * COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-4570
SELECT 56 * COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT COUNT( * ) * - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) * - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 60 col0 FROM tab2 WHERE NOT col1 IS NULL
----
2
20
37

query III rowsort
SELECT * FROM tab0 WHERE NOT + 55 <> + col1 + col2 / - - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col0 col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT + MIN( + - col0 ) + - MIN( DISTINCT - col1 ) * - CAST( - 37 AS SIGNED ) FROM tab2 AS cor0
----
2774

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + MIN ( + - col0 ) + - MIN ( DISTINCT - col1 ) * - CAST ( - 37 AS INTEGER ) FROM tab2 AS cor0
----
2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab0 AS cor0 WHERE NOT - col2 < + 69 * - + col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 + 65 IS NOT NULL
----

query I rowsort
SELECT ALL + 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT SUM( + col0 ) + - 77 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-4579
SELECT SUM ( + col0 ) + - 77 FROM tab2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL - + ( + - col2 ) * - + CAST( NULL AS SIGNED ) - - + 75 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - + ( + - col2 ) * - + CAST ( NULL AS INTEGER ) - - + 75 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 86 + + 45 * SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
8411

skipif mysql # not compatible
query I rowsort label-4581
SELECT 86 + + 45 * SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
8411

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4582
SELECT - - 96 FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) >= 87 / + + 82 + - + col2 + + - 59 - 51
----

skipif mysql # not compatible
query I rowsort label-4582
SELECT - - 96 FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) >= 87 / + + 82 + - + col2 + + - 59 - 51
----

query I rowsort
SELECT col1 + + 6 + - col0 FROM tab0 AS cor0
----
-60
-90
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col2 AND - 23
----

query I rowsort
SELECT - col0 * - - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL + 85 * - col1 FROM tab0 AS cor0
----
-1785
-6885
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) + - - col0 col0 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4588
SELECT ALL * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4588
SELECT ALL * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - 47 + + COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - 47 + + COUNT ( * ) FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + - + ( + - col1 ) col2 FROM tab1
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT ALL + col0 - col2 DIV + col0 col1 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4593
SELECT ALL + col0 - col2 / + col0 col1 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT 80 AS col1 FROM tab0 AS cor0 WHERE NULL = + 41 - - col0
----

query I rowsort
SELECT DISTINCT + col2 - - col2 + + col2 FROM tab2 AS cor0
----
120
174
69

query II rowsort
SELECT DISTINCT 53 AS col0, col2 + - 59 - col2 * + - col2 AS col0 FROM tab0 AS cor0
----
53
2197
53
51
53
9841

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + + COUNT( + - col2 ) + - COUNT( * ) AS col1 FROM tab0 WHERE - - col0 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + + COUNT ( + - col2 ) + - COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 * - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT DISTINCT - 15 DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - 15 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - ( + + SUM( - 6 ) ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4599
SELECT - ( + + SUM ( - 6 ) ) FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL col2 DIV + col0 * + 1 - col0 AS col2 FROM tab1 AS cor0 WHERE 50 + - - col1 IS NOT NULL
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL col2 / + col0 * + 1 - col0 AS col2 FROM tab1 AS cor0 WHERE 50 + - - col1 IS NOT NULL
----
-50
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL + 41 DIV + col1 + col1 * col0 + 48 AS col0 FROM tab2 AS cor0
----
2394
4976
5073

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + 41 / + col1 + col1 * col0 + 48 AS col0 FROM tab2 AS cor0
----
2394
4976
5073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col2 - - col0 NOT IN ( CAST( - col0 AS SIGNED ) + - col1 + - - col0 * + 42 )
----

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col2 - - col0 NOT IN ( CAST ( - col0 AS INTEGER ) + - col1 + - - col0 * + 42 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4604
SELECT - CAST( + + 21 AS SIGNED ) DIV + col2 * - col0 * 40 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT - CAST ( + + 21 AS INTEGER ) / + col2 * - col0 * 40 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT MAX( ALL - + 6 ) AS col2, - COUNT( * ) - - 4 FROM tab0, tab0 AS cor0
----
-6
-5

skipif mysql # not compatible
query II rowsort label-4605
SELECT MAX ( ALL - + 6 ) AS col2, - COUNT ( * ) - - 4 FROM tab0, tab0 AS cor0
----
-6
-5

query II rowsort
SELECT ALL - col2, - col0 + - 99 AS col2 FROM tab2 AS cor0
----
-23
-145
-40
-163
-58
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + + COUNT( DISTINCT - - 7 ) FROM tab1 cor0 WHERE - col2 * - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT + + COUNT ( DISTINCT - - 7 ) FROM tab1 cor0 WHERE - col2 * - - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4608
SELECT 29 * - COUNT( * ), + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
-87
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4608
SELECT 29 * - COUNT ( * ), + CAST ( NULL AS REAL ) col2 FROM tab1
----
-87
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + ( + 68 ) col1 FROM tab1 AS cor0
----
-2108
-2108
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL ( - + SUM( DISTINCT - col0 ) ) * - + ( MAX( - col1 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL ( - + SUM ( DISTINCT - col0 ) ) * - + ( MAX ( - col1 ) ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL - - ( + MAX( 58 ) ) * COUNT( * ) AS col2 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - - ( + MAX ( 58 ) ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
174

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 26 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + ( COUNT( * ) ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT + COUNT( * ) + - MIN( col0 ), - MAX( ALL + + col2 ) AS col2 FROM tab1
----
-48
-96

skipif mysql # not compatible
query II rowsort label-4614
SELECT + COUNT ( * ) + - MIN ( col0 ), - MAX ( ALL + + col2 ) AS col2 FROM tab1
----
-48
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - 31 * COUNT( * ) + SUM( + col1 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - 31 * COUNT ( * ) + SUM ( + col1 ) AS col1 FROM tab1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + - col2 BETWEEN + - col1 AND 9
----

query I rowsort
SELECT + ( - col1 ) * + - 1 * col2 AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE 86 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL - COUNT( * ) FROM tab0 WHERE + col2 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + col2 * col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT DISTINCT + col2 DIV - col2 - ( + 22 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + col2 / - col2 - ( + 22 ) FROM tab0
----
-23

query I rowsort
SELECT ALL - 85 - - col0 AS col2 FROM tab2
----
-10
-21
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL - MAX( ALL + + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - MAX ( ALL + + col1 ) FROM tab1 cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT DISTINCT - 77 AS col0, COUNT( * ) * 29 FROM tab0 cor0
----
-77
87

skipif mysql # not compatible
query II rowsort label-4624
SELECT DISTINCT - 77 AS col0, COUNT ( * ) * 29 FROM tab0 cor0
----
-77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 col0, col1 FROM tab2
----
-27
51
-27
67
-27
77

query I rowsort
SELECT 25 * + - 73 AS col0 FROM tab1
----
-1825
-1825
-1825

query I rowsort
SELECT - - ( + 53 ) AS col1 FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 5 + - 32 IS NOT NULL
----

query I rowsort
SELECT - 99 * - ( col0 ) - 50 AS col1 FROM tab2 cor0
----
4504
6286
7375

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - COUNT( * ) * + - COUNT( + col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( + col2 ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4631
SELECT + CAST( NULL AS SIGNED ) + - + col1 + - - col1, + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4631
SELECT + CAST ( NULL AS INTEGER ) + - + col1 + - - col1, + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col1 + - col0 + - + col2 AS col0 FROM tab2
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + COUNT( * ) * - - 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( * ) * - - 38 FROM tab0
----
114

query I rowsort
SELECT DISTINCT - 56 FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN col2 AND - + 41
----

query III rowsort
SELECT * FROM tab0 WHERE col1 - col1 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - - MAX( - 11 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - MAX ( - 11 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 54 * - col2 + + col0 AND col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60 AS col1, 69 FROM tab1 AS cor0
----
60
69

query I rowsort
SELECT + col2 * + + 83 * - + col1 - + + col1 FROM tab1 cor0
----
-111566
-24490
-265315

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL - SUM( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4641
SELECT ALL - SUM ( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - - 79 FROM tab0 AS cor0 WHERE NOT col1 * col2 + - + 24 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 54 * + 72
----

query I rowsort
SELECT + col1 - 59 AS col0 FROM tab2
----
-8
18
8

query II rowsort
SELECT + col1, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT + + CAST( - MIN( col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4646
SELECT + + CAST ( - MIN ( col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab2
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4648
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4648
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - ( - 61 ) * col0, + col2 FROM tab0
----
5307
10
5917
99
915
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT + 58 DIV - 83 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4650
SELECT + 58 / - 83 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 32 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL 48 * - - COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL 48 * - - COUNT ( * ) FROM tab0 AS cor0
----
144

query I rowsort
SELECT DISTINCT - 18 + - - col1 FROM tab1 AS cor0
----
-13
-4
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT DISTINCT + col1 DIV col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + col1 / col1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT ( + - ( - 41 ) ) + col0 - + 49 AS col0 FROM tab2
----
38
56
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT 77 DIV - - 41 col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4656
SELECT DISTINCT 77 / - - 41 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 - + col0 col0 FROM tab1
----
-112
-133
-139

query I rowsort
SELECT ( col0 ) + - 2 FROM tab2
----
44
62
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL + + SUM( - + 25 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + + SUM ( - + 25 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col1 + - 25 * - col2 * - ( - - col2 ) * - 50 FROM tab2 cor0
----
2000077
4205067
661301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT DISTINCT - 63 + - + col0 * - CAST( NULL AS SIGNED ) * 18 * - ( - - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - 63 + - + col0 * - CAST ( NULL AS INTEGER ) * 18 * - ( - - col0 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 46 AS col0, - 7 AS col0 FROM tab0 AS cor0
----
46
-7

query I rowsort
SELECT - + 18 * 36 AS col1 FROM tab0 AS cor0
----
-648
-648
-648

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 * - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= - col1 * - 85 - + col0
----
97
1
99

query I rowsort
SELECT - 52 - - col2 FROM tab1 AS cor0
----
16
44
7

query I rowsort
SELECT DISTINCT - + ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL - - col2 - + col2, 74 * - - col2 AS col0 FROM tab2 AS cor0
----
0
1702
0
2960
0
4292

query I rowsort
SELECT + ( + 13 ) + 41 + col0 FROM tab1 AS cor0
----
105
139
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT + COUNT( DISTINCT col0 ) * + + 37 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * + + 37 FROM tab2 AS cor0
----
111

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

query II rowsort
SELECT + col1, ( - 86 ) + + col2 AS col2 FROM tab0
----
1
13
21
-76
81
-39

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL + col2 * - + CAST( - - 71 AS SIGNED ) * 75 FROM tab1 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + col2 * - + CAST ( - - 71 AS INTEGER ) * 75 FROM tab1 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL - col0, 59 AS col1 FROM tab1
----
-51
59
-85
59
-91
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 91 * - col1 + - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + MIN( ALL - 52 ) FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4677
SELECT + MIN ( ALL - 52 ) FROM tab0 cor0
----
-52

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
82

query I rowsort
SELECT + + col0 + col2 + - ( + col2 ) * + - col1 + + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT - COUNT( * ) + + - 26 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-4680
SELECT - COUNT ( * ) + + - 26 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - - COUNT( + 82 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - - COUNT ( + 82 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 19 + + 40 + + - col2 FROM tab0 AS cor0
----
-26
-78
11

query I rowsort
SELECT - ( - - 87 ) + + col1 * ( col1 ) FROM tab2 AS cor0
----
2514
4402
5842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT + col2 + CAST( NULL AS SIGNED ) + + - 83 * + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT + col2 + CAST ( NULL AS INTEGER ) + + - 83 * + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + + COUNT( * ) * - + COUNT( * ) - + 47 AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + + COUNT ( * ) * - + COUNT ( * ) - + 47 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - 96 + + + col2 FROM tab1 AS cor0
----
-28
-37
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 57 + col0 + + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT - 89 * + - COUNT( * ) + - - MIN( ALL - 71 ) + + 71 AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - 89 * + - COUNT ( * ) + - - MIN ( ALL - 71 ) + + 71 AS col0 FROM tab1
----
267

query I rowsort
SELECT 96 * + - col2 AS col2 FROM tab0
----
-4512
-9504
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + MIN( ALL + + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4690
SELECT + MIN ( ALL + + col1 ) AS col0 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE - + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 25 * col0 + + - col1 FROM tab0
----
2154
2424
294

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT + 87 + + col2 AS col1, col1 AS col0 FROM tab1
----
146
5
155
47
183
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT DISTINCT - - MIN( DISTINCT col0 ), COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
3

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT - - MIN ( DISTINCT col0 ), COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL 77 DIV + 27 - - + 48 FROM tab0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL 77 / + 27 - - + 48 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT - 12 * 35 + 90 FROM tab0
----
-330

query I rowsort
SELECT col0 + - + col0 + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4703
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4703
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT DISTINCT - - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - - col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4705
SELECT COUNT( * ) DIV - MIN( - + ( - CAST( - col2 AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT COUNT ( * ) / - MIN ( - + ( - CAST ( - col2 AS INTEGER ) ) ) FROM tab1
----
0

query I rowsort
SELECT col0 * - - col2 * 77 AS col0 FROM tab1
----
376992
386155
476476

query II rowsort
SELECT DISTINCT col2, col2 * - 85 FROM tab1
----
59
-5015
68
-5780
96
-8160

query I rowsort
SELECT DISTINCT + 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4709
SELECT DISTINCT + 94 AS col2, + COUNT( * ) AS col1 FROM tab0
----
94
3

skipif mysql # not compatible
query II rowsort label-4709
SELECT DISTINCT + 94 AS col2, + COUNT ( * ) AS col1 FROM tab0
----
94
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT + 47 DIV 92 + col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4710
SELECT + 47 / 92 + col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + - COUNT( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4711
SELECT + - COUNT ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 26 * + - col2 FROM tab2 AS cor0
----
-1040
-1508
-598

query II rowsort
SELECT DISTINCT + col0 AS col2, - 94 FROM tab0 cor0
----
15
-94
87
-94
97
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL + COUNT( * ) * - + COUNT( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + COUNT ( * ) * - + COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT MIN( ALL + + ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4715
SELECT MIN ( ALL + + ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + + col1 * + col2 * - col1 + + col0 + 9 * + - col0 + col0 FROM tab0 AS cor0
----
-308472
-5019
-778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT ALL - col1 + + ( + 88 ) * - CAST( NULL AS SIGNED ) + ( + col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - col1 + + ( + 88 ) * - CAST ( NULL AS INTEGER ) + ( + col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 42 + + col0 + - - col0 AS col0 FROM tab2
----
134
170
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - 8 * + 63 + + COUNT( * ) AS col0 FROM tab2
----
-501

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 8 * + 63 + + COUNT ( * ) AS col0 FROM tab2
----
-501

query I rowsort
SELECT + col1 + - col1 + - - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - 42 * + - col0 + + + ( + col0 ) + + col2 AS col1 FROM tab0
----
3751
4270
692

query II rowsort
SELECT ALL col0 * - col2, + col1 AS col2 FROM tab2
----
-1058
51
-2560
77
-4350
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL MAX( - ( - - col1 ) ) * - 72 col0 FROM tab2
----
3672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4723
SELECT ALL MAX ( - ( - - col1 ) ) * - 72 col0 FROM tab2
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL COUNT( * ) + - 39 col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT ALL COUNT ( * ) + - 39 col1 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL <= - 48 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - - col2 = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT - COUNT( * ) + - 66 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - COUNT ( * ) + - 66 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT DISTINCT + 60 DIV col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + 60 / col0 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL - 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 36 col0 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT + 71 * MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 71 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4735
SELECT ALL COUNT( * ) AS col0, + CAST( + - 0 AS SIGNED ) * - COUNT( * ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL COUNT ( * ) AS col0, + CAST ( + - 0 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT + SUM( ALL + + col1 ) * ( - MIN( - col1 ) ) DIV 12 FROM tab2
----
1251

skipif mysql # not compatible
query I rowsort label-4736
SELECT + SUM ( ALL + + col1 ) * ( - MIN ( - col1 ) ) / 12 FROM tab2
----
1251

query II rowsort
SELECT - col0 AS col0, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - 11 FROM tab1 AS cor0
----
51
-11
85
-11
91
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ALL + MAX( DISTINCT - 13 ) AS col2, COUNT( + + col2 ) AS col2 FROM tab0 AS cor0
----
-13
3

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL + MAX ( DISTINCT - 13 ) AS col2, COUNT ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - MIN( ALL - + 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4740
SELECT - MIN ( ALL - + 32 ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NULL <> + col1
----
0

query II rowsort
SELECT ALL ( + col1 ) AS col2, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - - col1 * - 10 BETWEEN col1 * - col1 / - col1 + - col2 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - col0 * 18 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - col0 * 18 + + col1
----
0

query I rowsort
SELECT ( - col0 ) FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT + + 50 + - col2 + ( col0 ) + + CAST( NULL AS SIGNED ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT + + 50 + - col2 + ( col0 ) + + CAST ( NULL AS INTEGER ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4747
SELECT - + col2 * + 85 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT - + col2 * + 85 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + 25 FROM tab1 AS cor0
----
30
39
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 13 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT + col0 DIV 68 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4750
SELECT + col0 / 68 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + + 49 AS col2 FROM tab1 cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4752
SELECT DISTINCT + col0 + + col1 DIV col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-4752
SELECT DISTINCT + col0 + + col1 / col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT col0 + col2 * + 76 + + col0 AS col0 FROM tab2
----
1840
3168
4558

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( 18 ) * - col2 * - ( 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 - 32 * - + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 22 - - + 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT ( CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4757
SELECT ( CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 59 - + col2 + - 64, - col2 AS col2 FROM tab0 AS cor0
----
-133
-10
-170
-47
-222
-99

query II rowsort
SELECT + 41 - + col1 * col2, - 26 AS col0 FROM tab0 AS cor0
----
-169
-26
-3766
-26
-58
-26

query I rowsort
SELECT - col1 * + col0 + + col1 FROM tab1 cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - 54 + COUNT( * ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4762
SELECT - 54 + COUNT ( * ) FROM tab0 AS cor0
----
-51

query I rowsort
SELECT + 73 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT - + CAST( 9 AS SIGNED ) FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4764
SELECT - + CAST ( 9 AS INTEGER ) FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4765
SELECT - + CAST( - MIN( ALL + 67 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4765
SELECT - + CAST ( - MIN ( ALL + 67 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
67

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 57 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - + 56 ) FROM tab1
----
-56

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT ALL * FROM tab0 WHERE NOT + col2 + - col1 + + col1 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4770
SELECT ALL * FROM tab0 WHERE NOT + col2 + - col1 + + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT 1 * + + MIN( ALL - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 1 * + + MIN ( ALL - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL 19 * 32 FROM tab2
----
608
608
608

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT DISTINCT + 87 DIV + + col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT + 87 / + + col2 AS col1 FROM tab2
----
1
2
3

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-4775
SELECT - COUNT( * ) * + - ( + 8 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT - COUNT ( * ) * + - ( + 8 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 AS col1, col1 - + + col1 col0 FROM tab2
----
73
0
73
0
73
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4777
SELECT DISTINCT * FROM tab0 WHERE NULL < - - col1 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4777
SELECT DISTINCT * FROM tab0 WHERE NULL < - - col1 + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 20 * 6 AS col0 FROM tab2
----
-120
-120
-120

query I rowsort
SELECT + 86 * + 81 FROM tab2
----
6966
6966
6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT ALL - COUNT( * ) DIV + 5 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - COUNT ( * ) / + 5 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 47 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT - 91 * - col2 * + col1 - col0 - + + col2 + - CAST( - + col2 AS SIGNED ) * + ( CAST( + col1 AS SIGNED ) ) * col1 AS col0 FROM tab2 AS cor0
----
166497
517336
613855

skipif mysql # not compatible
query I rowsort label-4782
SELECT - 91 * - col2 * + col1 - col0 - + + col2 + - CAST ( - + col2 AS INTEGER ) * + ( CAST ( + col1 AS INTEGER ) ) * col1 AS col0 FROM tab2 AS cor0
----
166497
517336
613855

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + + SUM( ALL + 7 ) + - COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + + SUM ( ALL + 7 ) + - COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT - + col2 + CAST( - 48 AS SIGNED ) FROM tab0 AS cor0
----
-147
-58
-95

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT - + col2 + CAST ( - 48 AS INTEGER ) FROM tab0 AS cor0
----
-147
-58
-95

query I rowsort
SELECT ALL + col1 + - + 71 FROM tab2 cor0
----
-20
-4
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT - col0 + + col0 + + col0 + - + 89 * 54 - col2 DIV col1 AS col1 FROM tab2
----
-4731
-4742
-4760

skipif mysql # not compatible
query I rowsort label-4786
SELECT - col0 + + col0 + + col0 + - + 89 * 54 - col2 / col1 AS col1 FROM tab2
----
-4731
-4742
-4760

query I rowsort
SELECT col2 + - - 78 AS col1 FROM tab0
----
125
177
88

query I rowsort
SELECT DISTINCT 76 * + col1 - + col0 + + col0 AS col1 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT ALL col0 * ( - col1 ) * - col0 - - - ( + col1 ) FROM tab2
----
107865
315315
376808

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( DISTINCT + col0 ) + - + ( MIN( DISTINCT - + ( + col0 ) ) ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( DISTINCT + col0 ) + - + ( MIN ( DISTINCT - + ( + col0 ) ) ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT SUM( - - col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4791
SELECT DISTINCT SUM ( - - col0 ) col2 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4792
SELECT ALL * FROM tab1 WHERE NOT CAST( + col0 AS SIGNED ) * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4792
SELECT ALL * FROM tab1 WHERE NOT CAST ( + col0 AS INTEGER ) * + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + + 16 + - - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4794
SELECT + + 16 + - - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query II rowsort
SELECT ALL + ( - col1 ) * - 28 AS col2, ( - 57 ) FROM tab2
----
1428
-57
1876
-57
2156
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + SUM( ALL + 70 ) AS col2 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-4796
SELECT + SUM ( ALL + 70 ) AS col2 FROM tab2 AS cor0
----
210

query I rowsort
SELECT ALL - + 28 * + 95 FROM tab2 AS cor0
----
-2660
-2660
-2660

query I rowsort
SELECT DISTINCT + 10 * col2 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT + col1 * + 49 AS col0 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 63 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 63 / - col0 FROM tab1
----
-1
0
0

query II rowsort
SELECT ALL - 53 * + 21 AS col0, + col2 FROM tab0
----
-1113
10
-1113
47
-1113
99

query I rowsort
SELECT - 65 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * + ( + col2 ) FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT - 59 * col0, col0 FROM tab2
----
-2714
46
-3776
64
-4425
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 25 * - ( + col2 ) NOT IN ( + - 89 * - 3 + 17, - col2 )
----

query I rowsort
SELECT 28 FROM tab0 WHERE NOT NULL IS NOT NULL
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT ALL + 26 DIV - 88 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + 26 / - 88 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * + 55 + + col1 AS col0 FROM tab1 WHERE NOT + ( + col1 ) IN ( - - col2, - col0 * + col1 )
----
-2538
-270
-756

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 / + + col0 * + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT 82 DIV COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT 82 / COUNT ( * ) AS col1 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT + 18 DIV - col2 FROM tab1 WHERE ( NOT ( NOT ( + 8 * col0 NOT BETWEEN - 72 AND + 30 ) ) )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT + 18 / - col2 FROM tab1 WHERE ( NOT ( NOT ( + 8 * col0 NOT BETWEEN - 72 AND + 30 ) ) )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 + + 52 col1 FROM tab1 WHERE - col1 * + + 62 / + col1 IS NOT NULL
----
37
37
37

query I rowsort
SELECT - - 10 + - 42 + col2 + + col2 FROM tab0 AS cor0
----
-12
166
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT ALL - COUNT( * ), + COUNT( * ) - COUNT( * ) FROM tab1 cor0 WHERE NOT col0 * + - col2 / 51 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL - COUNT ( * ), + COUNT ( * ) - COUNT ( * ) FROM tab1 cor0 WHERE NOT col0 * + - col2 / 51 IS NOT NULL
----
0
0

query I rowsort
SELECT ALL - + col2 / - - 33 AS col0 FROM tab2 WHERE - + col1 * + col2 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN + 75 AND NULL
----

query I rowsort
SELECT DISTINCT - 58 FROM tab1 WHERE NULL < + + ( + col1 )
----

query I rowsort
SELECT - col0 - + + 87 * + col2 FROM tab0
----
-4104
-8710
-957

query I rowsort
SELECT ALL col0 + - 95 AS col2 FROM tab2
----
-20
-31
-49

query I rowsort
SELECT DISTINCT - 26 + + col2 * - col2 + + 65 + + col0 FROM tab1
----
-3357
-4494
-9126

query I rowsort
SELECT ALL + 93 - 15 AS col1 FROM tab0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT col2 * col0 * - + CAST( NULL AS SIGNED ) + + - col1 + col2 * + col2 * + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + 64 * - col2
----

skipif mysql # not compatible
query I rowsort label-4823
SELECT col2 * col0 * - + CAST ( NULL AS INTEGER ) + + - col1 + col2 * + col2 * + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + 64 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4824
SELECT ALL * 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-4824
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 73, 68 AS col1 FROM tab2 AS cor0
----
73
68
73
68
73
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4826
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = - 85
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 97 ) BETWEEN NULL AND + col2 / + ( - col0 ) + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT 68 * + MAX( DISTINCT + col0 ) FROM tab2 cor0
----
5100

skipif mysql # not compatible
query I rowsort label-4829
SELECT 68 * + MAX ( DISTINCT + col0 ) FROM tab2 cor0
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - + COUNT( + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - + COUNT ( + - col2 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 * 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 57 FROM tab0 AS cor0 WHERE NOT + 67 * - + col2 * + col0 / - col1 * col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT ALL col1 * + col0 - + col0 + 79 DIV - + 70 AS col2 FROM tab0 cor0
----
-1
1199
1739

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL col1 * + col0 - + col0 + 79 / - + 70 AS col2 FROM tab0 cor0
----
-1
1199
1739

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <> col2
----

query I rowsort
SELECT ALL col1 + col1 - + col0 * - col2 AS col0 FROM tab2 AS cor0
----
1160
2714
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + 54 * AVG ( 23 ) + - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 54 * AVG ( 23 ) + - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( + ( + + col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 95 * - 18 FROM tab1
----
-1710

query II rowsort
SELECT ( - 1 ) * - 11 AS col1, - ( - + col0 ) FROM tab1
----
11
51
11
85
11
91

query I rowsort
SELECT 74 * + - col0 FROM tab2
----
-3404
-4736
-5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + ( - - col0 ) ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + 91 + 78 AS col1 FROM tab1 AS cor0
----
169
169
169

query I rowsort
SELECT DISTINCT - col1 + - - col0 + 74 FROM tab1 cor0
----
111
118
154

query I rowsort
SELECT ALL 86 * col2 AS col0 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL COUNT( * ) + - 44 AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL COUNT ( * ) + - 44 AS col2 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 31 - + COUNT( * ) AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 31 - + COUNT ( * ) AS col1 FROM tab0
----
-34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 60 - 29 <> NULL
----

query I rowsort
SELECT ALL 36 / col0 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT MIN( + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4851
SELECT MIN ( + 79 ) FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) - + 15 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) - + 15 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col2 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL MIN( DISTINCT col1 ) * 17 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL MIN ( DISTINCT col1 ) * 17 FROM tab1
----
85

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) IN ( col0 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT + CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4856
SELECT + CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT ALL + col0 DIV col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + col0 / col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT + 83 FROM tab2 WHERE NULL NOT IN ( col2 + - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT 0 DIV col1 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT 0 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 - - 82 FROM tab2
----
133
149
159

query III rowsort
SELECT * FROM tab2 WHERE 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT - MIN( + 30 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - MIN ( + 30 ) FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 - 12 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 - 12 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 78 * - col1 + 46 AS col1 FROM tab2
----
-3932
-5180
-5960

query I rowsort
SELECT col2 * - 29 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + COUNT( * ) * - 10 AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4866
SELECT + COUNT ( * ) * - 10 AS col1 FROM tab0
----
-30

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 74 * 98 AS col2 FROM tab2
----
7252
7252
7252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT ALL col1 * col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + 92 * COUNT( * ) FROM tab0 WHERE NULL BETWEEN + ( 69 ) / 65 AND 49
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 92 * COUNT ( * ) FROM tab0 WHERE NULL BETWEEN + ( 69 ) / 65 AND 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - MIN( ALL - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - MIN ( ALL - col0 ) FROM tab2
----
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / + 13 BETWEEN ( + col1 + + 71 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - 9 * COUNT( * ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - 9 * COUNT ( * ) FROM tab2 cor0
----
-27

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 98 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 17 AND NULL
----

query I rowsort
SELECT - 19 * - col2 FROM tab2
----
1102
437
760

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * 67 + - col2 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 59 ) col1 FROM tab0 AS cor0 WHERE col0 + - col1 > ( + 58 - col0 )
----
59
59

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN + col2 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 29 / + MIN( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 29 / + MIN ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL - ( COUNT( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - ( COUNT ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + COUNT( * ) + + ( + MAX( - col2 ) ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4885
SELECT + COUNT ( * ) + + ( + MAX ( - col2 ) ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ALL - col0 + 88 AS col2 FROM tab1 AS cor0
----
-3
3
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT + + ( col0 ) * CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT + + ( col0 ) * CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - COUNT( * ) * 63 + + 27 AS col1 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4888
SELECT - COUNT ( * ) * 63 + + 27 AS col1 FROM tab0 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT 46 + + SUM( - 54 ) * COUNT( * ) AS col0 FROM tab2
----
-440

skipif mysql # not compatible
query I rowsort label-4889
SELECT 46 + + SUM ( - 54 ) * COUNT ( * ) AS col0 FROM tab2
----
-440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col2 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL 17 + + MAX( ALL col1 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL 17 + + MAX ( ALL col1 ) FROM tab0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < NULL OR + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4894
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST( NULL AS SIGNED ) * - ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-4894
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST ( NULL AS INTEGER ) * - ( + col2 )
----

query I rowsort
SELECT ALL - 51 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
3014
3515
4910

query I rowsort
SELECT ALL - + col0 * col1 - + 85 + + col1 AS col0 FROM tab0 AS cor0
----
-1219
-181
-1891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT ALL + 71 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + 71 * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT - 83 * COUNT( * ) * CAST( NULL AS SIGNED ) + 28 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 83 * COUNT ( * ) * CAST ( NULL AS INTEGER ) + 28 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + - 70 FROM tab1 AS cor0
----
-117
-75
-84

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 98 BETWEEN ( 0 ) AND - 63 + 83
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - col1 * - - col0 + 53 AS col1 FROM tab2 AS cor0
----
-2293
-4875
-4972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT + - 71 DIV COUNT( ALL - col0 ) * - 64 AS col0 FROM tab1 AS cor0
----
1472

skipif mysql # not compatible
query I rowsort label-4902
SELECT + - 71 / COUNT ( ALL - col0 ) * - 64 AS col0 FROM tab1 AS cor0
----
1472

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) <> 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + MIN( ALL - - col2 ) * 71 AS col0 FROM tab0 AS cor0
----
710

skipif mysql # not compatible
query I rowsort label-4904
SELECT + MIN ( ALL - - col2 ) * 71 AS col0 FROM tab0 AS cor0
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL - + 80 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL - + 80 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 15 ) * 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL 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-4907
SELECT ALL 76 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - + col1 col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT CAST( ( + 33 ) AS SIGNED ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT CAST ( ( + 33 ) AS INTEGER ) FROM tab0
----
33

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN ( + - 59 ) AND ( 53 * + col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL MIN( 14 ) FROM tab2 WHERE 70 IN ( - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL MIN ( 14 ) FROM tab2 WHERE 70 IN ( - 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4912
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL col0 * + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col2 * + col1 + - col1 ) AND ( - col1 / 39 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT + 48 * - COUNT( * ) AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + 48 * - COUNT ( * ) AS col1 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - COUNT( - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4915
SELECT - COUNT ( - col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4916
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST( 67 AS SIGNED ) BETWEEN + col2 + - col0 AND + col1 / col0 )
----

skipif mysql # not compatible
query III rowsort label-4916
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST ( 67 AS INTEGER ) BETWEEN + col2 + - col0 AND + col1 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ( + COUNT( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4917
SELECT ( + COUNT ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 22 / + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( - ( + + col0 ) * + ( + col1 ) )
----

query I rowsort
SELECT + 56 + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col0 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + col0 * - 97 AS col2 FROM tab2 AS cor0
----
-4462
-6208
-7275

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 96 <= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - MAX( ALL + - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT COUNT( ALL - + ( + 55 ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT COUNT ( ALL - + ( + 55 ) ) AS col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT + col1 + + 58 FROM tab2
----
109
125
135

query I rowsort
SELECT DISTINCT + ( - - 24 ) AS col1 FROM tab0
----
24

query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab2 WHERE + ( - col2 ) - col1 * - + col2 BETWEEN - col2 + - col0 AND ( col1 * col0 )
----
1600
3364
529

query I rowsort
SELECT DISTINCT col1 * - 43 + + ( - col1 ) FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT + ( col1 ) * ( - col2 ) + col1 AS col0 FROM tab0
----
-189
-3726
-98

query II rowsort
SELECT - col2 + col1, col2 * - - ( + - col1 ) + - 24 AS col0 FROM tab2
----
28
-1197
37
-3104
9
-3910

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( + 59 - + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 99 + + 89 AS col0 FROM tab1
----
188
188
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT - SUM( + + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - SUM ( + + col0 ) FROM tab2 cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL + col2 * col1 DIV + 56 FROM tab0 AS cor0
----
1
3
67

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + col2 * col1 / + 56 FROM tab0 AS cor0
----
1
3
67

query II rowsort
SELECT ALL - - 15, col1 FROM tab1 cor0
----
15
14
15
47
15
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT - 73, + 24 + SUM( DISTINCT - ( - col0 ) ) AS col1 FROM tab0 cor0
----
-73
223

skipif mysql # not compatible
query II rowsort label-4938
SELECT - 73, + 24 + SUM ( DISTINCT - ( - col0 ) ) AS col1 FROM tab0 cor0
----
-73
223

query I rowsort
SELECT ALL + 89 + - - col1 FROM tab2 cor0
----
140
156
166

query I rowsort
SELECT + 6 AS col0 FROM tab0 WHERE 83 > + col1 - + + 18
----
6
6
6

query I rowsort
SELECT - - 85 + + + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - - col0 col2 FROM tab1
----
101
135
141

query I rowsort
SELECT + col0 - + col0 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 14 AND - 12
----

query II rowsort
SELECT 99, + 35 * - - 6 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * - + 13 FROM tab1 AS cor0
----
-1248
-767
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 col1, + 39 col2 FROM tab0
----
-98
39
-98
39
-98
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT - 5 DIV + 43 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 5 / + 43 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4949
SELECT - CAST( + ( col0 ) AS SIGNED ) AS col2, col2 + ( col2 ) + - 64 FROM tab2
----
-46
-18
-64
16
-75
52

skipif mysql # not compatible
query II rowsort label-4949
SELECT - CAST ( + ( col0 ) AS INTEGER ) AS col2, col2 + ( col2 ) + - 64 FROM tab2
----
-46
-18
-64
16
-75
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4950
SELECT DISTINCT 6 * + COUNT( DISTINCT - - 88 ), + 70 * - - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
6
210

skipif mysql # not compatible
query II rowsort label-4950
SELECT DISTINCT 6 * + COUNT ( DISTINCT - - 88 ), + 70 * - - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
6
210

query I rowsort
SELECT ALL + 18 + + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
103
109
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4952
SELECT ALL * FROM tab1 WHERE NOT + CAST( - + col1 AS SIGNED ) / - - col1 * - col1 IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4952
SELECT ALL * FROM tab1 WHERE NOT + CAST ( - + col1 AS INTEGER ) / - - col1 * - col1 IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-4953
SELECT ALL * FROM tab0 WHERE NOT ( - + 1 DIV + - col1 + + + 10 ) <= col2
----

skipif mysql # not compatible
query III rowsort label-4953
SELECT ALL * FROM tab0 WHERE NOT ( - + 1 / + - col1 + + + 10 ) <= col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN - col2 + + + col0 AND - - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT MIN( col2 ) * + 41 FROM tab0
----
410

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT MIN ( col2 ) * + 41 FROM tab0
----
410

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + 98 * col0 BETWEEN - col1 AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN col2 * - 52 AND ( NULL )
----

query II rowsort
SELECT + - 29 AS col1, + 99 AS col1 FROM tab0 AS cor0
----
-29
99
-29
99
-29
99

query I rowsort
SELECT + col1 * + - col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-4961
SELECT ALL + COUNT( * ), 43 + + + 57 AS col1 FROM tab2 AS cor0
----
3
100

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL + COUNT ( * ), 43 + + + 57 AS col1 FROM tab2 AS cor0
----
3
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT col1 * + - col0 + 98 DIV + col1 AS col1 FROM tab1 AS cor0
----
-406
-4275
-707

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT col1 * + - col0 + 98 / + col1 AS col1 FROM tab1 AS cor0
----
-406
-4275
-707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4963
SELECT ALL CAST( NULL AS SIGNED ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4963
SELECT ALL CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT ALL 24 DIV + ( + 30 ) * + col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL 24 / + ( + 30 ) * + col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT - ( COUNT( * ) ) * COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - ( COUNT ( * ) ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - + + 66 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT - COUNT( + 68 ) + + 38 AS col0 FROM tab0 WHERE + col1 IS NULL
----
38

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - COUNT ( + 68 ) + + 38 AS col0 FROM tab0 WHERE + col1 IS NULL
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - + 14 AND - 13
----
3

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - + 14 AND - 13
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( - col2, + col2 * - - 25 )
----

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE 81 + - + col2 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / - 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + col0 * - + ( + 83 ) + - col2 FROM tab1 AS cor0
----
-215979
-599734
-687391

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL + COUNT( - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + COUNT ( - col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + MAX( - - col1 ) * + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + MAX ( - - col1 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT MIN( - + 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4975
SELECT MIN ( - + 14 ) FROM tab0
----
-14

query I rowsort
SELECT ALL - 81 + - col2 * - - 36 AS col2 FROM tab1
----
-2205
-2529
-3537

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 43
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( + col0, col2 / + col1 * + col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT COUNT( ( - + 69 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4979
SELECT COUNT ( ( - + 69 ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 + + - 63 * + + col2 col0 FROM tab0
----
-2907
-576
-6183

query I rowsort
SELECT + 16 * + 73 FROM tab2
----
1168
1168
1168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + - ( + + COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT DISTINCT + - ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 72 * + - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 72 * + - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - ( ( + col2 ) ) * col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col2 * 76 AS col1 FROM tab2 AS cor0
----
1748
3040
4408

query I rowsort
SELECT - col1 * - ( col1 ) * + 18 + 36 AS col2 FROM tab1 cor0
----
3564
39798
486

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4988
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 48 + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4988
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 48 + - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 41 <> ( + ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 col0 FROM tab2 AS cor0
----
2555
4414
5865

query I rowsort
SELECT DISTINCT - - 64 * + ( + + ( - col2 ) ) FROM tab0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-3008
-6336
-640

query III rowsort
SELECT * FROM tab0 WHERE NOT - 38 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - 38 FROM tab2
----
1938
2546
2926

query II rowsort
SELECT 70 + col2 + - col2 AS col2, col1 - + col2 * - 55 * + col0 FROM tab0 AS cor0
----
70
38856
70
47871
70
528166

query I rowsort
SELECT - + 37 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN + - col2 * col0 AND NULL
----

query I rowsort
SELECT 20 * - + col0 AS col1 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + + 60 * - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - 8
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT + + 60 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - 8
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT ( - col0 * ( + + col0 ) > - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL - CAST( + AVG ( - 48 ) AS SIGNED ) + 11 AS col0 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - CAST ( + AVG ( - 48 ) AS INTEGER ) + 11 AS col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL - 47 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - col0 * 69
----

query I rowsort
SELECT DISTINCT col0 + 57 * - - col0 AS col0 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT 94 * - 37 + col1 AS col1 FROM tab2
----
-3401
-3411
-3427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 82 col2 FROM tab0
----
-1
-61
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - 18 - + + ( 54 ) )
----

query I rowsort
SELECT col1 + ( + - 22 ) FROM tab1
----
-17
-8
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT COUNT( * ) * + COUNT( * ) + - - 60 * + + 32 AS col0 FROM tab2
----
1929

skipif mysql # not compatible
query I rowsort label-5007
SELECT COUNT ( * ) * + COUNT ( * ) + - - 60 * + + 32 AS col0 FROM tab2
----
1929

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 48 * + + 28 <= NULL
----

query I rowsort
SELECT ( - - 29 ) FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - + 20 AS col0 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 44 * ( + 63 ) * + col2 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 14 ) AS col2 FROM tab2 cor0
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 40 + 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 - col2 * col1 * 62 * col1 IS NOT NULL
----

query I rowsort
SELECT col0 * - 36 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 51 * col2 + - 74 - + col1 + 59 + - - col1 * - 30 + - + 43 + 54 + + + col0 + col2 * + col2 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5016
SELECT + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5016
SELECT + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT DISTINCT - + CAST( - - 29 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + + col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT - + CAST ( - - 29 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + + col0 = NULL
----

query I rowsort
SELECT col2 * - + ( + + 3 ) * + - col2 FROM tab2
----
10092
1587
4800

onlyif mysql # DIV for integer division: 
query II rowsort label-5019
SELECT 39 DIV - 44 AS col2, + 55 * col1 * - 62 AS col0 FROM tab1
----
0
-160270
0
-17050
0
-47740

skipif mysql # not compatible
query II rowsort label-5019
SELECT 39 / - 44 AS col2, + 55 * col1 * - 62 AS col0 FROM tab1
----
0
-160270
0
-17050
0
-47740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT DISTINCT + CAST( - - 57 AS SIGNED ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + CAST ( - - 57 AS INTEGER ) FROM tab2
----
57

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN ( col2 ) + - 51 + + - 39 * + - col0 + - col0 + - col2 / - - col0 AND + col1 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT SUM( ALL col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT SUM ( ALL col0 ) col1 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + - - col1 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 4 + + col2 + + col0 + + 9 * col2 col0 FROM tab0
----
1483
227
673

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT - col0 + col1 - - + col2 + - - col1 * + + ( 91 ) * + 29 * + col1 + - col1 FROM tab0 AS cor0
----
1163722
17314511
2641

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT + - COUNT( * ) + AVG ( DISTINCT - col0 ) * - - 0 AS col1 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + - COUNT ( * ) + AVG ( DISTINCT - col0 ) * - - 0 AS col1 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 2 + + col2 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT ALL 39 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5031
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * - CAST( NULL AS DECIMAL ) * - 21 > + + col0
----

skipif mysql # not compatible
query III rowsort label-5031
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * - CAST ( NULL AS REAL ) * - 21 > + + col0
----

query I rowsort
SELECT - col0 * + - 30 + - + col1 FROM tab1 AS cor0
----
1516
2545
2683

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 + - ( - + col1 ) * - 86 col0 FROM tab2 AS cor0
----
-4434
-5810
-6670

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT + COUNT( * ) + + - MIN( - col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + COUNT ( * ) + + - MIN ( - col0 ) FROM tab1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT CAST( MAX( + 69 ) AS SIGNED ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5036
SELECT CAST ( MAX ( + 69 ) AS INTEGER ) FROM tab0
----
69

query I rowsort
SELECT ALL col0 + - col0 * + col1 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - 68 ) + - 56 / - ( 33 ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 85 + - + col2 FROM tab2
----
27
45
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 - + 64 col1 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + 89 FROM tab0 cor0 WHERE NOT NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - 42 + COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 42 + COUNT ( * ) FROM tab1 AS cor0
----
-39

query I rowsort
SELECT - + col2 + - 38 AS col2 FROM tab1 AS cor0
----
-106
-134
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 * + col2 + - - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT ALL 78 * 28, COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
2184
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5045
SELECT ALL 78 * 28, COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
2184
0

query II rowsort
SELECT - 62 AS col2, col0 + ( - - col1 ) FROM tab2 AS cor0
----
-62
141
-62
142
-62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + COUNT( * ) * + 68 col2 FROM tab1
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5047
SELECT + COUNT ( * ) * + 68 col2 FROM tab1
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT ALL - 23 DIV - col1 + col1 * + - col0 * + + col1 FROM tab0 AS cor0
----
-38366
-74
-98415

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - 23 / - col1 + col1 * + - col0 * + + col1 FROM tab0 AS cor0
----
-38366
-74
-98415

query I rowsort
SELECT DISTINCT - ( + + 53 ) * - 3 FROM tab0 AS cor0
----
159

query I rowsort
SELECT + col1 * ( 59 ) AS col1 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT ( COUNT( * ) ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5051
SELECT ( COUNT ( * ) ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN - 90 * + - ( col2 ) AND - col1
----

query I rowsort
SELECT ALL + - ( + 38 ) AS col2 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - col2 * - - col2 + - col2 AS col0 FROM tab0 WHERE NOT - col1 + + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + - col1 + col1 col2 FROM tab1 WHERE NOT col0 * 4 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5056
SELECT DISTINCT col2 AS col2, 54 * - CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5056
SELECT DISTINCT col2 AS col2, 54 * - CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT MAX( ALL 43 ) + COUNT( * ) col1 FROM tab0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT MAX ( ALL 43 ) + COUNT ( * ) col1 FROM tab0
----
46

query I rowsort
SELECT + + col2 + 23 * - col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + COUNT( * ) + - - 30 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5059
SELECT + COUNT ( * ) + - - 30 AS col0 FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT 29 * - - col1 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - COUNT( * ) + MIN( + 73 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - COUNT ( * ) + MIN ( + 73 ) FROM tab2 AS cor0
----
70

query I rowsort
SELECT ALL 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL + ( + col2 ) * - col0 + + - 68 FROM tab1
----
-4964
-5083
-6256

query I rowsort
SELECT - ( 17 ) AS col2 FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5065
SELECT ALL col0 + - 36 DIV - col2 + col2 * ( - ( - CAST( + + col2 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
1664
3439
576

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL col0 + - 36 / - col2 + col2 * ( - ( - CAST ( + + col2 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
1664
3439
576

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT + SUM( - + 34 ) AS col2 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + SUM ( - + 34 ) AS col2 FROM tab2 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT * FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5067
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - 86 AS col0, - ( + col2 ) FROM tab1 AS cor0
----
-86
-59
-86
-68
-86
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5070
SELECT * FROM tab1 cor0 WHERE - col2 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5070
SELECT * FROM tab1 cor0 WHERE - col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - - col1 ) * + 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL 56 * + COUNT( * ) + - + COUNT( * ) + + ( + SUM( DISTINCT ( - col0 ) ) ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 56 * + COUNT ( * ) + - + COUNT ( * ) + + ( + SUM ( DISTINCT ( - col0 ) ) ) FROM tab2
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 - - + 81 col2 FROM tab1
----
148
148
148

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT + 52 DIV - MIN( + col2 ) * + + 70 + 34 DIV - COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 52 / - MIN ( + col2 ) * + + 70 + 34 / - COUNT ( * ) FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + 67 * - COUNT( * ) - - 8 FROM tab1 WHERE - 88 * - col1 + - 98 / + 8 IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 67 * - COUNT ( * ) - - 8 FROM tab1 WHERE - 88 * - col1 + - 98 / + 8 IS NULL
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + 1 + - - 10, + 57 col1 FROM tab1
----
102
57
62
57
96
57

query I rowsort
SELECT ALL 14 + ( + + col1 ) AS col0 FROM tab0
----
15
35
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - 92 col0, col0 FROM tab2
----
-2116
46
-3680
64
-5336
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT DISTINCT col0 * - col2 DIV col2 * - + 37 FROM tab1
----
1887
3145
3367

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT col0 * - col2 / col2 * - + 37 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query II rowsort
SELECT col1, + 74 FROM tab0
----
1
74
21
74
81
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT ALL + COUNT( * ), - 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-82

skipif mysql # not compatible
query II rowsort label-5083
SELECT ALL + COUNT ( * ), - 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL COUNT( * ) * 60 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL COUNT ( * ) * 60 FROM tab1
----
180

query II rowsort
SELECT ALL col2, col2 * - - col1 * - col2 FROM tab1
----
59
-17405
68
-217328
96
-129024

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT COUNT( * ) AS col0, 55 FROM tab2 AS cor0 WHERE NOT ( + 66 ) <= NULL
----
0
55

skipif mysql # not compatible
query II rowsort label-5086
SELECT COUNT ( * ) AS col0, 55 FROM tab2 AS cor0 WHERE NOT ( + 66 ) <= NULL
----
0
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5087
SELECT col0, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5087
SELECT col0, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - MAX( DISTINCT 79 ) FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - MAX ( DISTINCT 79 ) FROM tab1 AS cor0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT - - 51 DIV - + 98 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - - 51 / - + 98 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col2 AS col0, 7 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT + + CAST( + 54 AS SIGNED ) FROM tab1 cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-5091
SELECT + + CAST ( + 54 AS INTEGER ) FROM tab1 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT DISTINCT - - COUNT( * ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5092
SELECT DISTINCT - - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT + col2 + 82 AS col1 FROM tab2 AS cor0
----
105
122
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT 94 * + COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5095
SELECT 94 * + COUNT ( * ) FROM tab1 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL - ( + 57 ) + + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - ( + 57 ) + + COUNT ( * ) FROM tab2
----
-54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + 86 + col2 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT COUNT( * ) FROM tab0 WHERE - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5098
SELECT COUNT ( * ) FROM tab0 WHERE - + col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 71 + + col2, col0, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col1 * + ( 45 ) * + col0 col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( 66 - + + 87 + ( + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 48 <> 6 * - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 59 + - 24 + + col1 < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT DISTINCT + 2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT + 2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - 74 ) AS col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT col2 + + col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT DISTINCT - MAX( ALL col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 61 * - + col2 + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT - 55 - - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 55 - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL <= + 8
----

query II rowsort
SELECT + 88 * - - col0 - - + ( + col2 ) AS col1, - col0 FROM tab0
----
1367
-15
7666
-87
8635
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 21 < - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + 33 AS col0, - col2 FROM tab0 WHERE NOT 78 < NULL
----

query II rowsort
SELECT ALL + 43 AS col2, + col1 FROM tab2
----
43
51
43
67
43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT ( + COUNT( * ) ) col1, + MAX( DISTINCT + + col2 ) FROM tab2
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5117
SELECT ( + COUNT ( * ) ) col1, + MAX ( DISTINCT + + col2 ) FROM tab2
----
3
58

query I rowsort
SELECT ALL + + col1 * + 36 * + col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT DISTINCT 3 DIV - 12 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT 3 / - 12 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT + - col0 * - CAST( - 48 AS SIGNED ) FROM tab2 AS cor0
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-5120
SELECT + - col0 * - CAST ( - 48 AS INTEGER ) FROM tab2 AS cor0
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 + + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 + + col2 <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 45 <> 58
----

query II rowsort
SELECT DISTINCT - ( + col0 ) * 52 * + col1 + ( + col0 ) * + col1 AS col2, 71 AS col2 FROM tab2
----
-119646
71
-251328
71
-256275
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT - 58 DIV + + 39 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5124
SELECT - 58 / + + 39 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * - 36 AS col0 FROM tab2 AS cor0 WHERE - ( + 74 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + - MAX( DISTINCT ( + 63 ) ) col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT + - MAX ( DISTINCT ( + 63 ) ) col2 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT DISTINCT - ( - col1 ), col1 - + 0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - MAX( ALL 60 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5128
SELECT - MAX ( ALL 60 ) FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT + MAX( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT + MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL + - col2 + + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + - col2 + + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - COUNT( col0 ) + + - MAX( + + col1 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - COUNT ( col0 ) + + - MAX ( + + col1 ) FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - - col0 IN ( + col1, + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - - col0 IN ( + col1, + col0 )
----
3

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT + + col2 BETWEEN NULL AND 56 * - 70
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT DISTINCT 3 DIV 2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT 3 / 2 AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT DISTINCT 69 DIV + 69 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT 69 / + 69 AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - - 62 FROM tab1 WHERE CAST( - 3 AS SIGNED ) * + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5136
SELECT - - 62 FROM tab1 WHERE CAST ( - 3 AS INTEGER ) * + + col2 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + - 44 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5138
SELECT + - 44 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT ( 6 ) FROM tab0 AS cor0
----
6

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 4 * + 57 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT + col2 + - col2 + - 49 FROM tab2
----
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 - + - ( - 57 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col1 - - 15 FROM tab1 WHERE col2 + col0 - col0 + - col0 IS NOT NULL
----
-32
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT col0 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-5144
SELECT col0 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT col1 - - - col0 AS col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 40 NOT BETWEEN - col1 + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( - 85 ) FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT - 7 * + col1 FROM tab1
----
-329
-35
-98

query II rowsort
SELECT + col0, 90 * + 32 AS col1 FROM tab1
----
51
2880
85
2880
91
2880

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + - col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 88 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 85 * - col0 * - col1 + + 41 + + + 89 * + 22 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 + 37 - 1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT ALL COUNT( * ), + COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 21 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT 44 AS col1, + col0 * - + col1 * col1 * 32 * - + 82 FROM tab1 AS cor0
----
44
26229504
44
527473856
44
5576000

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5160
SELECT DISTINCT col1, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT col1, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 - col0 <> NULL
----

query I rowsort
SELECT ALL - 79 * - 62 FROM tab2
----
4898
4898
4898

query I rowsort
SELECT 83 * + + col2 AS col2 FROM tab2
----
1909
3320
4814

query I rowsort
SELECT 50 AS col1 FROM tab1 WHERE NOT + - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT col1 * - CAST( + 65 AS SIGNED ) AS col2 FROM tab0
----
-1365
-5265
-65

skipif mysql # not compatible
query I rowsort label-5165
SELECT col1 * - CAST ( + 65 AS INTEGER ) AS col2 FROM tab0
----
-1365
-5265
-65

query II rowsort
SELECT ALL + + col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - col1 + + ( + 62 ) FROM tab1 AS cor0
----
15
48
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> col1
----
0

query II rowsort
SELECT ALL + col1, - 58 FROM tab2 AS cor0
----
51
-58
67
-58
77
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + 58 + - 27 + + MIN( + - 98 ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + 58 + - 27 + + MIN ( + - 98 ) FROM tab2 AS cor0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * + - col2 * + col1 col2 FROM tab1
----
-13275
-143820
-60480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT DISTINCT + AVG ( - col0 ) * 36 AS col1 FROM tab0 WHERE NOT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) > + col1 * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + AVG ( - col0 ) * 36 AS col1 FROM tab0 WHERE NOT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) > + col1 * - - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT DISTINCT col2 + - - col2 DIV + 59 + + - 85 FROM tab0
----
-38
-75
15

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT col2 + - - col2 / + 59 + + - 85 FROM tab0
----
-38
-75
15

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5175
SELECT CAST( col1 AS SIGNED ) AS col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-5175
SELECT CAST ( col1 AS INTEGER ) AS col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + MIN( DISTINCT + 2 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + MIN ( DISTINCT + 2 ) AS col1 FROM tab1
----
2

query I rowsort
SELECT ALL - col1 * + col2 * col2 AS col0 FROM tab1 cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + COUNT( * ) + - - COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5178
SELECT + COUNT ( * ) + - - COUNT ( * ) FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL + + ( + - MIN( DISTINCT + CAST( 85 AS SIGNED ) ) ) * 39 * + 58 FROM tab1 AS cor0
----
-192270

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + + ( + - MIN ( DISTINCT + CAST ( 85 AS INTEGER ) ) ) * 39 * + 58 FROM tab1 AS cor0
----
-192270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + 27 col1 FROM tab0
----
-54
26
6

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab0, tab1 AS cor0
----
19

query I rowsort
SELECT DISTINCT col0 * + + col1 - ( + col0 ) FROM tab2
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - COUNT( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5183
SELECT - COUNT ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + SUM( ALL - 69 ) AS col0 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-5184
SELECT + SUM ( ALL - 69 ) AS col0 FROM tab0 AS cor0
----
-207

query II rowsort
SELECT DISTINCT col1, - 57 AS col2 FROM tab0 AS cor0
----
1
-57
21
-57
81
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL - - COUNT( * ) * - + 82 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - - COUNT ( * ) * - + 82 FROM tab2 AS cor0
----
-246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5187
SELECT ALL - col2 DIV CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - col2 / CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col2 * + 66 * + col0 - + ( - col1 ) + col1 * - + col2 * - 22 AS col1 FROM tab2 WHERE NOT + 67 IS NULL
----
236797
372659
95685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + MAX( 55 ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5192
SELECT + MAX ( 55 ) FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL + 4 AS col0 FROM tab1 cor0
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT ALL - COUNT( * ) DIV + - ( 84 ) + MIN( DISTINCT - col0 ) + + 24 AS col2 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - COUNT ( * ) / + - ( 84 ) + MIN ( DISTINCT - col0 ) + + 24 AS col2 FROM tab0
----
-73

query I rowsort
SELECT - 90 * + + 5 * + 52 AS col1 FROM tab2
----
-23400
-23400
-23400

query I rowsort
SELECT ALL - col0 * + 92 * + - 45 + + col2 AS col2 FROM tab2 AS cor0
----
190463
265000
310558

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col0, col0 * - col0, col1 + + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5198
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - + 97 - 34 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - + 97 - 34 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL - + MIN( ALL - col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5199
SELECT ALL - + MIN ( ALL - col0 ) col1 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5200
SELECT DISTINCT * FROM tab2 WHERE + col0 / CAST( NULL AS SIGNED ) / + 21 * col2 - - col0 + - - 94 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5200
SELECT DISTINCT * FROM tab2 WHERE + col0 / CAST ( NULL AS INTEGER ) / + 21 * col2 - - col0 + - - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + COUNT( * ) + - 61 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + COUNT ( * ) + - 61 FROM tab1
----
-58

query I rowsort
SELECT ALL - 12 + - 3 AS col1 FROM tab0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - 7 * COUNT( * ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - 7 * COUNT ( * ) AS col0 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT DISTINCT - COUNT( * ) AS col0, 66 FROM tab2
----
-3
66

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT - COUNT ( * ) AS col0, 66 FROM tab2
----
-3
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - col2 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT ( + 33 ) * + + SUM( ALL + col1 ) col0 FROM tab1
----
2178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT DISTINCT ( + 33 ) * + + SUM ( ALL + col1 ) col0 FROM tab1
----
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT ALL - col1 - + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - col1 - + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5208
SELECT * FROM tab2 AS cor0 WHERE - 64 * + col1 * + col1 + + + col0 - 69 + - + ( - + col1 ) / + + CAST( NULL AS SIGNED ) >= + 48 * col1
----

skipif mysql # not compatible
query III rowsort label-5208
SELECT * FROM tab2 AS cor0 WHERE - 64 * + col1 * + col1 + + + col0 - 69 + - + ( - + col1 ) / + + CAST ( NULL AS INTEGER ) >= + 48 * col1
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + - MIN( + 64 ) AS col0 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5210
SELECT + - MIN ( + 64 ) AS col0 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT DISTINCT + MAX( + col0 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + MAX ( + col0 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 * 78 AS col0, - col0 * + 90 col0 FROM tab1 cor0
----
-6552
-4590
-6552
-7650
-6552
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab1
----
32

query I rowsort
SELECT col0 * col0 * ( ( + + col1 ) ) FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5216
SELECT + COUNT( * ) DIV - 13 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT + COUNT ( * ) / - 13 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + ( COUNT( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5217
SELECT + ( COUNT ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col2 * 71 * + col1 col1 FROM tab1 cor0
----
51
95424
85
20945
91
226916

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT + 81 + 58 + - 98 * + 9 col2, - MIN( - col2 ) * + 38 FROM tab1
----
-743
3648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5220
SELECT + 81 + 58 + - 98 * + 9 col2, - MIN ( - col2 ) * + 38 FROM tab1
----
-743
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 * 35 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 + col2 - - - col1 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col1 * - col1 * - col1 * - + 74 FROM tab2 cor0
----
-22256462
-33783442
-9816174

query I rowsort
SELECT - 76 * - col0 * col2 FROM tab0 AS cor0
----
53580
66120
729828

query I rowsort
SELECT DISTINCT + - 15 * 41 FROM tab1 AS cor0
----
-615

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 + - 11 * col0 col1 FROM tab2
----
-546
-744
-865

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT + COUNT( * ), 14 AS col1 FROM tab0
----
3
14

skipif mysql # not compatible
query II rowsort label-5230
SELECT + COUNT ( * ), 14 AS col1 FROM tab0
----
3
14

query II rowsort
SELECT col2 AS col2, + 55 * + + ( col2 ) AS col2 FROM tab1
----
59
3245
68
3740
96
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT ALL 89 DIV col2 + - + ( + ( + col0 ) ) + - 34 AS col0 FROM tab2
----
-108
-77
-96

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 89 / col2 + - + ( + ( + col0 ) ) + - 34 AS col0 FROM tab2
----
-108
-77
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col2 FROM tab0 WHERE NOT NULL <= + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT + - COUNT( ALL - col1 ) FROM tab0 WHERE - 33 IS NULL AND NOT NULL = 53
----
0

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT + - COUNT ( ALL - col1 ) FROM tab0 WHERE - 33 IS NULL AND NOT NULL = 53
----
0

query I rowsort
SELECT ALL + 78 - col2 AS col0 FROM tab0
----
-21
31
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * + col1 + - + col0 col0 FROM tab2 AS cor0
----
1586
2069
2400

query I rowsort
SELECT DISTINCT + col2 - + 70 AS col0 FROM tab2 AS cor0
----
-12
-30
-47

query I rowsort
SELECT ALL 11 AS col0 FROM tab1 cor0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT DISTINCT + ( - - 2 ) DIV col1 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5240
SELECT DISTINCT + ( - - 2 ) / col1 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT + 62 * + CAST( + col2 AS SIGNED ) + - col2 + - - col2 - - - col1 * col2 AS col1 FROM tab0 AS cor0
----
-893
410
6039

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 62 * + CAST ( + col2 AS INTEGER ) + - col2 + - - col2 - - - col1 * col2 AS col1 FROM tab0 AS cor0
----
-893
410
6039

query I rowsort
SELECT - 16 * col2 + - col0 + - col0 FROM tab1 AS cor0
----
-1114
-1270
-1638

query I rowsort
SELECT DISTINCT - + 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 74 * 4 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col2 FROM tab0 AS cor0 WHERE ( NULL ) <> + 87
----

query I rowsort
SELECT ALL + col0 - + - col2 + - col0 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 * - col0 > 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - COUNT( * ) * - 5 * - + COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - COUNT ( * ) * - 5 * - + COUNT ( * ) FROM tab2 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + - col1 DIV - col1 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5248
SELECT DISTINCT + - col1 / - col1 col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 * - col2 + - + ( - 3 ) FROM tab2 cor0
----
-1170
-3077
-3883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5250
SELECT 81 AS col0, COUNT( * ) * - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) / + + ( + 29 ) * - 45 AS col0 FROM tab2 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5250
SELECT 81 AS col0, COUNT ( * ) * - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / + + ( + 29 ) * - 45 AS col0 FROM tab2 AS cor0
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) / - + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) / - + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - 64 ) * + col0 + + col1 col2 FROM tab0 cor0
----
116949
6209
77841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT + 47 * + + ( CAST( + CAST( + - SUM( DISTINCT 35 ) AS SIGNED ) AS SIGNED ) ) + + COUNT( DISTINCT - 23 ) + 10 FROM tab2 cor0
----
-1634

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 47 * + + ( CAST ( + CAST ( + - SUM ( DISTINCT 35 ) AS INTEGER ) AS INTEGER ) ) + + COUNT ( DISTINCT - 23 ) + 10 FROM tab2 cor0
----
-1634

query II rowsort
SELECT - col2, - 74 AS col0 FROM tab1 AS cor0
----
-59
-74
-68
-74
-96
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-5255
SELECT DISTINCT + 45 DIV + col2 AS col0, 9 col2 FROM tab2
----
0
9
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5255
SELECT DISTINCT + 45 / + col2 AS col0, 9 col2 FROM tab2
----
0
9
1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1, + col2 col0 FROM tab0
----
-1
99
-441
10
-6561
47

query I rowsort
SELECT ALL - 50 AS col2 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT + 4 + + - 16 AS col1 FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + MAX( ALL - - col0 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT + MAX ( ALL - - col0 ) col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT 60 + + COUNT( * ) FROM tab1 WHERE NULL >= 56
----
60

skipif mysql # not compatible
query I rowsort label-5260
SELECT 60 + + COUNT ( * ) FROM tab1 WHERE NULL >= 56
----
60

query I rowsort
SELECT - col2 * - - 40 AS col1 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col1 * + 84 + + ( + 16 ) FROM tab0 AS cor0
----
100
1780
6820

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - COUNT( * ) + - 6 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5263
SELECT - COUNT ( * ) + - 6 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-9

query I rowsort
SELECT ALL - AVG ( DISTINCT + ( - 65 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 78 IS NULL
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT col0, ( - - 5 ) + - col1 AS col0 FROM tab0 cor0
----
15
-76
87
-16
97
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT - SUM( + - col2 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - SUM ( + - col2 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
156

query I rowsort
SELECT DISTINCT col2 + + 66 AS col1 FROM tab2 cor0
----
106
124
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 29 + 65 - - - col2 * - col2 * - 67 AS col1 FROM tab2
----
-107106
-225294
-35349

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + + col2, 5, - col0, - - col2 * - - col1 - - col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT - 38 - + COUNT( * ) - MAX( DISTINCT + 11 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - 38 - + COUNT ( * ) - MAX ( DISTINCT + 11 ) FROM tab0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT - col2 / CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - col2 / CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 76 - - + col1 - - col2 FROM tab1
----
100
135
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + MAX( + - 23 ) + COUNT( * ) + + COUNT( * ) - + 44 AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-5275
SELECT + MAX ( + - 23 ) + COUNT ( * ) + + COUNT ( * ) - + 44 AS col2 FROM tab2
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + 28 * - 60
----

query I rowsort
SELECT ALL 28 * - + col1 * col2 FROM tab1
----
-37632
-8260
-89488

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT ALL col2 + - - col2 DIV 11 FROM tab2
----
25
43
63

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL col2 + - - col2 / 11 FROM tab2
----
25
43
63

query I rowsort
SELECT DISTINCT + col2 - + + col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT - COUNT( * ) DIV - MAX( DISTINCT - col0 ) + - 97 FROM tab1 AS cor0 WHERE NOT + col1 * col2 BETWEEN CAST( + ( - + col1 ) AS SIGNED ) * + col1 + + ( + - col2 ) * - col1 AND - + col0 + col0
----
-97

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - COUNT ( * ) / - MAX ( DISTINCT - col0 ) + - 97 FROM tab1 AS cor0 WHERE NOT + col1 * col2 BETWEEN CAST ( + ( - + col1 ) AS INTEGER ) * + col1 + + ( + - col2 ) * - col1 AND - + col0 + col0
----
-97

query I rowsort
SELECT ALL + - 60 FROM tab0 cor0
----
-60
-60
-60

query I rowsort
SELECT 21 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + + 68 AS col0 FROM tab2 AS cor0
----
-3128
-4352
-5100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + - 39 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 col1 FROM tab0 cor0
----
-26

query I rowsort
SELECT + col2 / 84 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT + 11 * + SUM( + + col0 ) FROM tab0
----
2189

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + 11 * + SUM ( + + col0 ) FROM tab0
----
2189

onlyif mysql # DIV for integer division: 
query II rowsort label-5292
SELECT + col2 AS col0, + col1 DIV + col1 AS col0 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-5292
SELECT + col2 AS col0, + col1 / + col1 AS col0 FROM tab1
----
59
1
68
1
96
1

query I rowsort
SELECT ALL + col2 * + - ( + col0 ) * col0 + + - 94 FROM tab2
----
-163934
-326344
-48762

query I rowsort
SELECT DISTINCT 74 * + 83 FROM tab2
----
6142

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + - ( + - col2 ) * + col0 IS NOT NULL AND NOT 35 = + col2 + - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + MAX( ALL + - col2 ) * - - 89 AS col2 FROM tab1
----
-5251

skipif mysql # not compatible
query I rowsort label-5296
SELECT + MAX ( ALL + - col2 ) * - - 89 AS col2 FROM tab1
----
-5251

query I rowsort
SELECT ALL + 17 * + ( col0 ) FROM tab2
----
1088
1275
782

query II rowsort
SELECT DISTINCT + col2, + col1 * - + 71 FROM tab1
----
59
-355
68
-3337
96
-994

query I rowsort
SELECT 12 * + ( - col0 ) * + 64 * + col0 AS col1 FROM tab1
----
-1997568
-5548800
-6359808

query I rowsort
SELECT DISTINCT - 84 * + 41 FROM tab1
----
-3444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - - col1 col0 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT ALL col1 DIV + + col2 * + 3 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL col1 / + + col2 * + 3 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT DISTINCT - col1 AS col0, + CAST( col0 AS SIGNED ) * - + 74 / ( + - 21 ) * + col1 FROM tab2 AS cor0 WHERE NOT ( + 77 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5303
SELECT DISTINCT - col1 AS col0, + CAST ( col0 AS INTEGER ) * - + 74 / ( + - 21 ) * + col1 FROM tab2 AS cor0 WHERE NOT ( + 77 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + 18 + + 97 + + COUNT( * ) FROM tab0 cor0
----
118

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + 18 + + 97 + + COUNT ( * ) FROM tab0 cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 66 * - - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5307
SELECT - + 82, col0 DIV 28 DIV + 19 AS col1 FROM tab1 AS cor0
----
-82
0
-82
0
-82
0

skipif mysql # not compatible
query II rowsort label-5307
SELECT - + 82, col0 / 28 / + 19 AS col1 FROM tab1 AS cor0
----
-82
0
-82
0
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT col2 + CAST( - col2 AS SIGNED ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5308
SELECT DISTINCT col2 + CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 * - - 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT - ( 8 ) col2, SUM( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-8
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5310
SELECT - ( 8 ) col2, SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-8
156

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT COUNT( * ) * + + ( MAX( - col0 ) ) AS col2, + 64 col2 FROM tab1 AS cor0 WHERE + col2 + - + col0 IS NULL
----
NULL
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5311
SELECT COUNT ( * ) * + + ( MAX ( - col0 ) ) AS col2, + 64 col2 FROM tab1 AS cor0 WHERE + col2 + - + col0 IS NULL
----
NULL
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - ( col1 ) ) col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT 38 DIV - 24 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5314
SELECT 38 / - 24 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL 75 + - COUNT( * ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 75 + - COUNT ( * ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT - 85 col1, - COUNT( * ) * - + 74 AS col0 FROM tab0
----
-85
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5316
SELECT DISTINCT - 85 col1, - COUNT ( * ) * - + 74 AS col0 FROM tab0
----
-85
222

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT + 21 DIV 39 - - col2 DIV + + 38 AS col2 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + 21 / 39 - - col2 / + + 38 AS col2 FROM tab1
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + + col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + - col0 - + - col2 FROM tab2
----
0
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL 24 * - SUM( 29 ) - - + 61 * 3 col2 FROM tab0
----
-1905

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5320
SELECT ALL 24 * - SUM ( 29 ) - - + 61 * 3 col2 FROM tab0
----
-1905

query I rowsort
SELECT - - col1 FROM tab2 WHERE + 82 IS NULL
----

query II rowsort
SELECT - 46, + col0 AS col0 FROM tab0 AS cor0
----
-46
15
-46
87
-46
97

query I rowsort
SELECT - col2 * col2 * - 82 AS col1 FROM tab2 AS cor0
----
131200
275848
43378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT + - SUM( col2 ) DIV - SUM( + col2 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT + - SUM ( col2 ) / - SUM ( + col2 ) FROM tab1 cor0
----
1

query I rowsort
SELECT col1 * - - 84 FROM tab0 cor0
----
1764
6804
84

query I rowsort
SELECT ALL - 55 - 15 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT CAST( NULL AS SIGNED ) + - 9 AS col1 FROM tab2 WHERE + 6 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5327
SELECT CAST ( NULL AS INTEGER ) + - 9 AS col1 FROM tab2 WHERE + 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT COUNT( * ) + 25 AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT COUNT ( * ) + 25 AS col1 FROM tab2
----
28

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL SUM( 93 ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL SUM ( 93 ) AS col2 FROM tab1
----
279

query I rowsort
SELECT ALL - col2 + 43 FROM tab0
----
-4
-56
33

query I rowsort
SELECT ALL 76 + col0 AS col2 FROM tab2
----
122
140
151

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col2 ) * col0 - col1 / 36 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT + CAST( NULL AS SIGNED ) - 99 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT + CAST ( NULL AS INTEGER ) - 99 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col2 FROM tab0
----
18

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <= ( - 81 )
----

query I rowsort
SELECT - 10 * - col1 + + col1 AS col1 FROM tab2
----
561
737
847

query I rowsort
SELECT - col1 + - 5 AS col2 FROM tab2
----
-56
-72
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 WHERE 41 * col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 WHERE 41 * col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT col1 * - 6 + + col2 * - 94 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) BETWEEN col2 AND + 52
----

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT col1 * - 6 + + col2 * - 94 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) BETWEEN col2 AND + 52
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 96 * col0 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT - ( + col1 ) * + col1 + - col2 DIV col2 AS col1 FROM tab2
----
-2602
-4490
-5930

skipif mysql # not compatible
query I rowsort label-5343
SELECT - ( + col1 ) * + col1 + - col2 / col2 AS col1 FROM tab2
----
-2602
-4490
-5930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * ( 31 ) FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - 23 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + col0 * 60 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + ( - col1 ) - col0 <> col1
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT 26 DIV col1 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5349
SELECT 26 / col1 + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col2 ) > NULL
----

query I rowsort
SELECT ALL 5 + + 80 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT + COUNT( * ) * 82 + - 46 FROM tab0 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + COUNT ( * ) * 82 + - 46 FROM tab0 AS cor0
----
200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5353
SELECT + col1 DIV col0 AS col1 FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) > - 37
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5353
SELECT + col1 / col0 AS col1 FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) > - 37
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + - 86 col2 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL COUNT( * ) + 68 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
68

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL COUNT ( * ) + 68 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= + col2
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT + col1 DIV 57 - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + col1 / 57 - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + MIN( col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5358
SELECT + MIN ( col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL - col1 * 21 FROM tab0 cor0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( 88 ) * col1 >= 33
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5360
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( 88 ) * col1 >= 33
----
0

query I rowsort
SELECT - col0 + 45 AS col0 FROM tab1 cor0
----
-40
-46
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 80 >= col1 + - col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - + COUNT( * ) + - 16 * COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5363
SELECT - + COUNT ( * ) + - 16 * COUNT ( * ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * col1 + col0 ) NOT IN ( + ( ( col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 76 AS col1 FROM tab0
----
-157
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL COUNT( - + 5 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL COUNT ( - + 5 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT col2 * - col1 FROM tab0 WHERE + col1 IN ( CAST( 11 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5367
SELECT col2 * - col1 FROM tab0 WHERE + col1 IN ( CAST ( 11 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 + - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 - 69 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT - MIN( ALL - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - MIN ( ALL - col2 ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 > col2
----
2

skipif mysql # not compatible
query I rowsort label-5371
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 > col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + 28 * COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 28 * COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT + COUNT( * ) + 88 * + COUNT( * ) FROM tab2 WHERE NOT - col2 * col1 >= 79 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + COUNT ( * ) + 88 * + COUNT ( * ) FROM tab2 WHERE NOT - col2 * col1 >= 79 * - col1
----
0

query I rowsort
SELECT col0 + ( 69 + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, 42 AS col2 FROM tab1 AS cor0
----
-51
42
-85
42
-91
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - 50 col0 FROM tab0 AS cor0
----
-29
-49
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 27 * - col1 IS NULL
----

query I rowsort
SELECT + 5 + - 34 FROM tab2 cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 11 col0 FROM tab1 AS cor0
----
107
70
79

query II rowsort
SELECT + + 17, col1 AS col2 FROM tab1 AS cor0
----
17
14
17
47
17
5

query I rowsort
SELECT ALL - col1 + + - 10 FROM tab0 AS cor0
----
-11
-31
-91

query I rowsort
SELECT + ( 91 ) AS col0 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + col0 AS col0 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5383
SELECT + col0 AS col0 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE col1 - - 97 <= ( col0 ) * + 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 + col0 )
----

query I rowsort
SELECT DISTINCT 46 * col2 * col1 FROM tab0 AS cor0
----
175122
4554
9660

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - 26 + + + SUM( DISTINCT 95 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5389
SELECT - 26 + + + SUM ( DISTINCT 95 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - 69 + - + col0 * + 68 AS col1 FROM tab1 AS cor0
----
-3537
-5849
-6257

query II rowsort
SELECT DISTINCT - 12 + ( - 13 ) AS col1, - 63 + - col1 FROM tab0
----
-25
-144
-25
-64
-25
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5392
SELECT * FROM tab0 WHERE CAST( + col1 AS DECIMAL ) >= 33
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5392
SELECT * FROM tab0 WHERE CAST ( + col1 AS REAL ) >= 33
----
15
81
47

query I rowsort
SELECT ALL - 29 * 22 - 0 - + 47 + + col0 FROM tab0 AS cor0
----
-588
-598
-670

query I rowsort
SELECT ALL - col2 * - col1 * - - col2 + col0 AS col1 FROM tab2 AS cor0
----
123264
225463
27025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5395
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( 75 AS SIGNED ) ) < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5395
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( 75 AS INTEGER ) ) < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + 43 * col2 - - col0 FROM tab2 AS cor0
----
132504
167173
50485

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + + 79 * - 68 + COUNT( * ) AS col0 FROM tab1 cor0
----
-5369

skipif mysql # not compatible
query I rowsort label-5397
SELECT + + 79 * - 68 + COUNT ( * ) AS col0 FROM tab1 cor0
----
-5369

query I rowsort
SELECT ALL + 99 * - - ( + 96 ) + col2 * + col1 + - 74 * col2 AS col2 FROM tab1 AS cor0
----
3744
5433
7668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - ( + col1 ) col2 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT DISTINCT col1 DIV + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT col1 / + - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - - col1 + + + 59 / + col1 + - 50 ) IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * + + col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + ( col2 ) ) < ( NULL )
----

query I rowsort
SELECT + + col0 * + 68 AS col2 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT 65 AS col2 FROM tab0 WHERE NOT ( + 44 - + CAST( - col2 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5405
SELECT 65 AS col2 FROM tab0 WHERE NOT ( + 44 - + CAST ( - col2 AS INTEGER ) ) >= NULL
----

query II rowsort
SELECT ALL - col1 AS col1, - 31 FROM tab1
----
-14
-31
-47
-31
-5
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5407
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5407
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab2 WHERE ( NOT ( - 3 * + + col2 ) IS NULL )
----
1600
3364
529

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-18
-18
-18

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / col0 * + 19 + - 33 NOT BETWEEN NULL AND - 33
----

query II rowsort
SELECT - ( col0 ) AS col0, col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE ( NULL < ( NULL ) )
----

query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab2 AS cor0 WHERE NOT ( ( + + 58 ) * - col2 * - 70 + + 99 ) NOT BETWEEN col2 AND ( - col1 )
----

query II rowsort
SELECT + col2 AS col1, 86 FROM tab0 AS cor0
----
10
86
47
86
99
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT ALL - + 34 / ( + 5 ) FROM tab0 AS cor0 WHERE NOT col2 <= + ( - 35 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - + 34 / ( + 5 ) FROM tab0 AS cor0 WHERE NOT col2 <= + ( - 35 ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5416
SELECT ALL - + ( - ( + CAST( + + col0 AS SIGNED ) ) ) DIV + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - + ( - ( + CAST ( + + col0 AS INTEGER ) ) ) / + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT + SUM( ALL + 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + SUM ( ALL + 44 ) FROM tab0 AS cor0
----
132

query I rowsort
SELECT DISTINCT 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT DISTINCT - - col1 * + 52 + ( ( - col1 ) ) * col2 AS col0 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND + + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - 30 + - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-5420
SELECT - 30 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

query II rowsort
SELECT - ( - + col1 ), 16 AS col0 FROM tab0
----
1
16
21
16
81
16

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NOT + 32 > ( + 87 )
----
78
78
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, - ( ( + col2 ) ) * - 39 * ( 48 * col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + 58 * 94 + + - COUNT( * ) * - - 50 FROM tab1 AS cor0
----
5302

skipif mysql # not compatible
query I rowsort label-5424
SELECT + 58 * 94 + + - COUNT ( * ) * - - 50 FROM tab1 AS cor0
----
5302

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL IN ( + col1 ) )
----

query II rowsort
SELECT + ( 45 ), + col2 FROM tab0 cor0
----
45
10
45
47
45
99

query I rowsort
SELECT - 28 / + - col1 FROM tab0 AS cor0 WHERE - col2 * + col1 - 13 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 44 > 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col2 col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - + col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col2 * - - col0 + + ( col1 ) AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) + + COUNT( * ) + 39 col2 FROM tab2
----
-3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5432
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) + + COUNT ( * ) + 39 col2 FROM tab2
----
-3
39

query II rowsort
SELECT col2 + + col0 + + col1, + 77 AS col2 FROM tab1
----
149
77
161
77
206
77

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 / - col1 AND ( + - col1 - + 22 * 80 * 64 * - 47 + col1 * col2 )
----

query I rowsort
SELECT col1 + + 21 + + col1 + 8 FROM tab2
----
131
163
183

query I rowsort
SELECT DISTINCT - 50 * col2 / - + 1 AS col0 FROM tab1 WHERE - - col1 - + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT COUNT( * ) - + 14 AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT COUNT ( * ) - + 14 AS col2 FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5438
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col0 + - col2, + col2 * + col0 * + col0 col2 FROM tab0
----
-752
10575
-880
75690
-9702
931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5438
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col0 + - col2, + col2 * + col0 * + col0 col2 FROM tab0
----
-752
10575
-880
75690
-9702
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT - 90 * + MIN( - ( - 21 ) ) AS col0 FROM tab2
----
-1890

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - 90 * + MIN ( - ( - 21 ) ) AS col0 FROM tab2
----
-1890

query I rowsort
SELECT - 33 + + - col0 AS col2 FROM tab1 AS cor0
----
-118
-124
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT - 18 + + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 64 + + 37 + + + col1 AND ( + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 18 + + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 64 + + 37 + + + col1 AND ( + - col0 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5442
SELECT + CAST( col0 AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE + 18 / - - 56 IN ( + - 86, col1, - 55 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-5442
SELECT + CAST ( col0 AS REAL ) AS col1 FROM tab2 cor0 WHERE + 18 / - - 56 IN ( + - 86, col1, - 55 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT CAST( NULL AS SIGNED ) - - col1 / + col0 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT CAST ( NULL AS INTEGER ) - - col1 / + col0 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 86 AS col2 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query I rowsort
SELECT ALL 17 * + 56 FROM tab0 AS cor0
----
952
952
952

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 74 <> NULL
----

query I rowsort
SELECT + 49 * 19 FROM tab1
----
931
931
931

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 33 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5450
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) + - + ( + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5450
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + - + ( + + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT col1 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT col1 / + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
48

query II rowsort
SELECT ALL - 67 * - col0 * - ( + 10 ) AS col0, + 96 AS col1 FROM tab1
----
-34170
96
-56950
96
-60970
96

query I rowsort
SELECT DISTINCT col2 + - col0 + col2 * col0 FROM tab1 AS cor0 WHERE 18 * - + ( - - 37 ) BETWEEN + + ( + + 67 ) AND - col1 + ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - + 62 ) ) col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE col0 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 + + col2 col0 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5458
SELECT - col1, CAST( - col0 AS SIGNED ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

skipif mysql # not compatible
query II rowsort label-5458
SELECT - col1, CAST ( - col0 AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 98 ) IN ( 9, + col2 + 99 + + ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 99 + + col1 AS col1 FROM tab2 AS cor0
----
150
166
176

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 AS cor0 WHERE col0 <> 48
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT COUNT( ALL - 10 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5463
SELECT COUNT ( ALL - 10 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT COUNT( * ) + + ( - 9 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT COUNT ( * ) + + ( - 9 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL + COUNT( * ) + - + COUNT( * ) * + 17 AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * + 17 AS col1 FROM tab1
----
-48

query I rowsort
SELECT ALL + col0 * - col2 + - col0 FROM tab0
----
-720
-957
-9700

query III rowsort
SELECT * FROM tab2 WHERE col0 >= ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5468
SELECT col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( 59, col0 * - - col1 * + + col1, + - 16 / + CAST( + CAST( + col0 AS DECIMAL ) AS SIGNED ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( 59, col0 * - - col1 * + + col1, + - 16 / + CAST ( + CAST ( + col0 AS REAL ) AS INTEGER ) )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT ALL + + CAST( 16 AS SIGNED ) - + 79 AS col0, col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL + + CAST ( 16 AS INTEGER ) - + 79 AS col0, col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + COUNT( * ) + + + MAX( - 37 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5470
SELECT + COUNT ( * ) + + + MAX ( - 37 ) FROM tab0 AS cor0
----
-34

query II rowsort
SELECT DISTINCT ( col2 ) AS col1, col1 FROM tab0 WHERE NOT - + col0 * col2 IS NULL
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - 41 * - - 14, - col2 + + col1 col1 FROM tab2
----
-497
37
-507
9
-523
28

query I rowsort
SELECT + 41 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5474
SELECT * FROM tab2 cor0 WHERE NOT - col0 + + - ( + + 51 ) + - CAST( NULL AS SIGNED ) * + + 50 * - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5474
SELECT * FROM tab2 cor0 WHERE NOT - col0 + + - ( + + 51 ) + - CAST ( NULL AS INTEGER ) * + + 50 * - col1 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT ALL col1, 5 FROM tab2 AS cor0
----
51
5
67
5
77
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + col2 * - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= - - col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT ALL 40 DIV + - ( - col2 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL 40 / + - ( - col2 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT - COUNT( * ) * - 54 + - 72 col0 FROM tab1 cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT - COUNT ( * ) * - 54 + - 72 col0 FROM tab1 cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 64 < - 97 * - - col0 AND NOT - 73 NOT BETWEEN 59 AND - col2
----

query I rowsort
SELECT + - col2 + + + ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT DISTINCT + ( CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + ( CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT col0 + - col1 + + 26 DIV - col2 AS col2 FROM tab2 AS cor0
----
-13
-6
8

skipif mysql # not compatible
query I rowsort label-5489
SELECT col0 + - col1 + + 26 / - col2 AS col2 FROM tab2 AS cor0
----
-13
-6
8

query I rowsort
SELECT ALL col1 + - - 79 AS col2 FROM tab1 AS cor0
----
126
84
93

query I rowsort
SELECT DISTINCT + ( 48 ) FROM tab2 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT - col0 * 92 + - CAST( + col0 AS SIGNED ) * col0 + + - 76 AS col1 FROM tab1 cor0
----
-15121
-16729
-7369

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT - col0 * 92 + - CAST ( + col0 AS INTEGER ) * col0 + + - 76 AS col1 FROM tab1 cor0
----
-15121
-16729
-7369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT DISTINCT - 78 + - + CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-63
19
9

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT - 78 + - + CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-63
19
9

query I rowsort
SELECT ALL 91 + + + col0 + - + col1 AS col0 FROM tab0 AS cor0
----
157
187
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT + col0 FROM tab2 WHERE CAST( 20 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + col0 FROM tab2 WHERE CAST ( 20 AS INTEGER ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 48 + - col1 * 43 * - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 48 + - col1 * 43 * - col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + MIN( DISTINCT + + col0 ) FROM tab1 WHERE ( 59 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT + MIN ( DISTINCT + + col0 ) FROM tab1 WHERE ( 59 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - 95 * - ( - col2 ) FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT 73 * + - 85 AS col0 FROM tab2
----
-6205
-6205
-6205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5500
SELECT DISTINCT + 23 AS col2, 49 + - ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-5500
SELECT DISTINCT + 23 AS col2, 49 + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + 24 + - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-5501
SELECT + 24 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
24

query II rowsort
SELECT DISTINCT + col2 AS col0, 25 FROM tab0 AS cor0
----
10
25
47
25
99
25

query II rowsort
SELECT DISTINCT + col1 AS col1, + col2 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
51
1196
67
3944
77
3120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL > + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT + 41 DIV + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 41 / + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL + + ( + col1 ), ( col2 ) AS col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT + col2, - col2 * 56 FROM tab1 AS cor0 WHERE NOT - col0 <= + - 23 + - col2
----
96
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT COUNT( * ) * + MIN( col2 ) col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT COUNT ( * ) * + MIN ( col2 ) col2 FROM tab2 AS cor0
----
69

query II rowsort
SELECT ALL - 98, - 96 * + col1 * 0 AS col1 FROM tab2
----
-98
0
-98
0
-98
0

query I rowsort
SELECT 16 * - + 61 FROM tab1
----
-976
-976
-976

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5512
SELECT - CAST( NULL AS SIGNED ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5512
SELECT - CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 + - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT DISTINCT 23, + 81 * - COUNT( * ) AS col0 FROM tab1
----
23
-243

skipif mysql # not compatible
query II rowsort label-5514
SELECT DISTINCT 23, + 81 * - COUNT ( * ) AS col0 FROM tab1
----
23
-243

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5515
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + + 23 AS DECIMAL ) + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5515
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + + 23 AS REAL ) + - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT - + col2 + + 98 AS col2 FROM tab2 cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT - MIN( ALL 42 ) FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5517
SELECT - MIN ( ALL 42 ) FROM tab2 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT 92 + + - COUNT( ALL col1 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-5518
SELECT 92 + + - COUNT ( ALL col1 ) FROM tab1
----
89

query I rowsort
SELECT + col1 + + - 54 * - col2 FROM tab0
----
2619
5347
561

query I rowsort
SELECT ( + 26 ) + 21 FROM tab2
----
47
47
47

query I rowsort
SELECT col2 + ( + - col2 ) * - col2 + + ( + ( - col0 ) ) FROM tab2 AS cor0
----
1576
3347
506

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= col0 / - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT - 77 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 77 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 * 47 * + col1 * + - col1 + + + col2 + - - 71 + - col0 AS col2 FROM tab1 AS cor0
----
469928
9447941
99920

query I rowsort
SELECT ALL - col2 + 12 AS col1 FROM tab1
----
-47
-56
-84

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 21 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - COUNT( * ) - 97 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5527
SELECT - COUNT ( * ) - 97 FROM tab0
----
-100

query I rowsort
SELECT ALL 95 - - + col2 FROM tab2
----
118
135
153

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5529
SELECT ALL - COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + COUNT( * ) + - 65 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + COUNT ( * ) + - 65 FROM tab2
----
-62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 > 88
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - 81 + - 95 * COUNT( + 23 ) AS col2 FROM tab1
----
-366

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 81 + - 95 * COUNT ( + 23 ) AS col2 FROM tab1
----
-366

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 62 IN ( 68 - + col1, col1 * - col1 * + - col2 + + col0 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL + COUNT( * ) - + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + COUNT ( * ) - + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + ( + 15 ) AS col0 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT - - 25 * + - 55 - col0 AS col1, + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
-1390
NULL
-1462
NULL
-1472
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5537
SELECT - - 25 * + - 55 - col0 AS col1, + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
-1390
NULL
-1462
NULL
-1472
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5538
SELECT col1 DIV col2, + col0 AS col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-5538
SELECT col1 / col2, + col0 AS col0 FROM tab2
----
1
64
1
75
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT 82 * - + COUNT( * ) * - 22 AS col1 FROM tab1, tab1 AS cor0
----
16236

skipif mysql # not compatible
query I rowsort label-5539
SELECT 82 * - + COUNT ( * ) * - 22 AS col1 FROM tab1, tab1 AS cor0
----
16236

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL - - COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - - COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( + 65 ) FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + col0 * + ( 50 ) AS col1 FROM tab1 AS cor0
----
2550
4250
4550

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN - 29 + + 26 + col2 AND ( 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL + 33 * + 8 * - - COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
792

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 33 * + 8 * - - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + + 52 + SUM( 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + + 52 + SUM ( 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL - - MIN( - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - - MIN ( - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT col1 DIV 45 * + 16 AS col1 FROM tab1
----
0
0
16

skipif mysql # not compatible
query I rowsort label-5547
SELECT col1 / 45 * + 16 AS col1 FROM tab1
----
0
0
16

query II rowsort
SELECT - 13 * - 36 + + 25 * + ( 59 ) * col1 + 83 AS col2, + col0 * + - col2 AS col0 FROM tab2
----
114126
-2560
75776
-1058
99376
-4350

query II rowsort
SELECT ALL - 7 + 16 AS col2, - ( - col1 ) AS col2 FROM tab0 AS cor0
----
9
1
9
21
9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT SUM( ALL col1 ) + COUNT( * ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT SUM ( ALL col1 ) + COUNT ( * ) FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + + SUM( ALL col2 ) FROM tab0 WHERE col1 * + col2 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-5551
SELECT + + SUM ( ALL col2 ) FROM tab0 WHERE col1 * + col2 IS NOT NULL
----
156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> NULL OR NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + ( 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 86 * - - 15 FROM tab1
----
1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ( CAST( NULL AS SIGNED ) ) - 64 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ( CAST ( NULL AS INTEGER ) ) - 64 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT + - MAX( ALL + 57 ) * + 39 AS col2 FROM tab2 cor0
----
-2223

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + - MAX ( ALL + 57 ) * + 39 AS col2 FROM tab2 cor0
----
-2223

query I rowsort
SELECT + col2 + - 91 AS col1 FROM tab2 AS cor0
----
-33
-51
-68

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 43 )
----

query I rowsort
SELECT - + col0 + - - 31 AS col2 FROM tab2 AS cor0
----
-15
-33
-44

query I rowsort
SELECT DISTINCT - col2 * + + col2 + - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT + COUNT( * ) * + 5 + - 47 DIV COUNT( * ) + - + COUNT( - - 53 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5561
SELECT + COUNT ( * ) * + 5 + - 47 / COUNT ( * ) + - + COUNT ( - - 53 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT * FROM tab0 WHERE NULL <= + 59 * CAST( - col0 AS SIGNED ) * - - col0
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT * FROM tab0 WHERE NULL <= + 59 * CAST ( - col0 AS INTEGER ) * - - col0
----

query I rowsort
SELECT DISTINCT + col2 * col1 - 46 FROM tab0
----
164
3761
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT SUM( col0 ) AS col0, ( - 94 ) FROM tab1
----
227
-94

skipif mysql # not compatible
query II rowsort label-5566
SELECT SUM ( col0 ) AS col0, ( - 94 ) FROM tab1
----
227
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT ALL - - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT ALL - - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL - MIN( ALL - 42 ) FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - MIN ( ALL - 42 ) FROM tab1 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT - SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT col1 DIV 12 AS col1 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-5570
SELECT col1 / 12 AS col1 FROM tab2
----
4
5
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL + - CAST( NULL AS SIGNED ) / - COUNT( ALL - CAST( NULL AS SIGNED ) ) + AVG ( + col1 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT ALL + - CAST ( NULL AS INTEGER ) / - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + AVG ( + col1 ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( + 90, col1 / - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 < - col2 * + col1 + - col2 + - col0 + + col1 + + col0 * + col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 29 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
1288
1792
2100

query II rowsort
SELECT - + 3, 20 AS col0 FROM tab0 AS cor0
----
-3
20
-3
20
-3
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + + col0 - - 28 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + + col0 - - 28 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + - 35 * + - col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT - AVG ( + - col2 ) + - - 76 AS col1 FROM tab1 WHERE - col0 + + CAST( NULL AS SIGNED ) NOT IN ( - col1, + col1 + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - AVG ( + - col2 ) + - - 76 AS col1 FROM tab1 WHERE - col0 + + CAST ( NULL AS INTEGER ) NOT IN ( - col1, + col1 + 13 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <= + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5582
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5582
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= + 98
----

query II rowsort
SELECT ALL - + col1, + col2 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-14
96
-47
68
-5
59

query II rowsort
SELECT ALL + 13 AS col2, - col2 AS col0 FROM tab2
----
13
-23
13
-40
13
-58

query II rowsort
SELECT DISTINCT + 54 AS col0, ( col2 ) FROM tab1
----
54
59
54
68
54
96

query I rowsort
SELECT ALL - 25 * + - col2 FROM tab0
----
1175
2475
250

query I rowsort
SELECT + 83 * - - col1 + col0 FROM tab1 AS cor0
----
1213
3992
500

query I rowsort
SELECT DISTINCT - 45 + + - 80 * + 90 FROM tab1 AS cor0
----
-7245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL - col0 * - col2 + - col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - col0 * - col2 + - col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - + MIN( DISTINCT 22 ) * + COUNT( * ) + + 80 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5591
SELECT - + MIN ( DISTINCT 22 ) * + COUNT ( * ) + + 80 FROM tab2 AS cor0
----
14

query I rowsort
SELECT col0 * ( + 93 ) + + ( col1 ) AS col0 FROM tab1 AS cor0
----
4757
7910
8510

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5593
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT + col1 + + - col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT + col1 + + - col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5595
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) = - + 40
----

skipif mysql # not compatible
query III rowsort label-5595
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) = - + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT ( - - COUNT( * ) ) * - 77 * - - 10 + 55 AS col1 FROM tab2
----
-2255

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT ( - - COUNT ( * ) ) * - 77 * - - 10 + 55 AS col1 FROM tab2
----
-2255

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT + + 59 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - ( 49 ) + - col0 AS col0 FROM tab1
----
-100
-134
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + - MAX( col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5599
SELECT + - MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + 85 * - + col1 - + col0 FROM tab2 AS cor0
----
-4381
-5770
-6609

query I rowsort
SELECT - ( - col0 ) * 24 AS col1 FROM tab1 AS cor0
----
1224
2040
2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 43 col0 FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT COUNT( DISTINCT col2 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT COUNT ( DISTINCT col2 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 < - col1 + - - col2 + + col2 + col1
----

query I rowsort
SELECT DISTINCT 88 * ( - col2 ) AS col2 FROM tab1
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL 15 * + - COUNT( * ) col1 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5606
SELECT ALL 15 * + - COUNT ( * ) col1 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT MAX( ALL + - 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5607
SELECT MAX ( ALL + - 12 ) FROM tab0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT ( + CAST( + + ( - COUNT( ALL + col0 ) ) AS SIGNED ) ) * - 87 + - + 48 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-5608
SELECT ( + CAST ( + + ( - COUNT ( ALL + col0 ) ) AS INTEGER ) ) * - 87 + - + 48 FROM tab0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + MAX( - col0 ) * + MIN( ALL + + col0 ) FROM tab2 AS cor0
----
-2116

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + MAX ( - col0 ) * + MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
-2116

query II rowsort
SELECT col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT COUNT( - 54 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT COUNT ( - 54 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 * + - ( 31 ) AS col2 FROM tab2 AS cor0
----
1240
1798
713

query I rowsort
SELECT 84 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5615
SELECT ALL col0 DIV - col2 col1, col1 FROM tab0
----
-8
21
0
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5615
SELECT ALL col0 / - col2 col1, col1 FROM tab0
----
-8
21
0
1
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT - col2 DIV + ( + - 70 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5616
SELECT - col2 / + ( + - 70 ) AS col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT DISTINCT - col1 + CAST( ( 81 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
60
80

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - col1 + CAST ( ( 81 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
60
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT ALL - + CAST( NULL AS SIGNED ) / - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - + CAST ( NULL AS INTEGER ) / - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT - col2 DIV - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5619
SELECT - col2 / - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
99

query I rowsort
SELECT - col2 * + - col2 + 3 FROM tab0 AS cor0
----
103
2212
9804

query I rowsort
SELECT DISTINCT - + 78 + + - col1 AS col0 FROM tab1 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + - MAX( DISTINCT + 55 ) FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5622
SELECT + - MAX ( DISTINCT + 55 ) FROM tab0 cor0
----
-55

query II rowsort
SELECT DISTINCT - col0 + ( + col0 ) * + col1 AS col2, - 58 AS col0 FROM tab1 AS cor0
----
340
-58
4186
-58
663
-58

query III rowsort
SELECT * FROM tab1 WHERE - + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 + - 7 col0 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT DISTINCT + + col0 * + 36 AS col2 FROM tab1 WHERE NULL < + - col2 * 36
----

query I rowsort
SELECT DISTINCT + col0 + - - 39 * 55 + - 9 + - 78 * - 96 + col2 + col0 FROM tab0
----
9701
9808
9917

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT col1 + - ( col1 ) DIV col2 AS col1 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-5628
SELECT col1 + - ( col1 ) / col2 AS col1 FROM tab0
----
1
19
80

query I rowsort
SELECT col1 + - col0 - - col2 FROM tab1
----
-21
24
59

query I rowsort
SELECT - 77 * + - 82 + col0 FROM tab1
----
6365
6399
6405

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT ALL - col1 DIV col2 * + 36 AS col1 FROM tab2
----
-36
-36
-72

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - col1 / col2 * + 36 AS col1 FROM tab2
----
-36
-36
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + + COUNT( * ) * + - 20 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5632
SELECT + + COUNT ( * ) * + - 20 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT + SUM( + - 70 ) * 90 - - 41 + + COUNT( * ) + + MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + SUM ( + - 70 ) * 90 - - 41 + + COUNT ( * ) + + MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE + col0 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - col2 - - 64 + + - 96 + - - 64 * - 56 col1 FROM tab0 AS cor0
----
-1799
-2448
-3618

query II rowsort
SELECT ALL col1 AS col2, + col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT col0 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT col0 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + col1 - + + 16 AS col2 FROM tab2 AS cor0
----
-1189
-3096
-3902

query I rowsort
SELECT + col0 + - - 28 AS col1 FROM tab1 AS cor0
----
113
119
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL ( - + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL ( - + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5640
SELECT ALL + - col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 44 * 82 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5640
SELECT ALL + - col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 44 * 82 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 47 >= + - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 47 * + + col2, col1 + - + 49 AS col1 FROM tab1
----
2773
-44
3196
-2
4512
-35

query I rowsort
SELECT col0 * + col0 * - - 23 AS col1 FROM tab0
----
174087
216407
5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5644
SELECT DISTINCT - ( COUNT( * ) ), MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5644
SELECT DISTINCT - ( COUNT ( * ) ), MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 90 * + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-5310
-6120
-8640

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE + 61 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( NOT - col2 + + col2 / + - col1 IS NOT NULL )
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL < col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL - CAST( - - col0 AS SIGNED ) + - col2 * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - CAST ( - - col0 AS INTEGER ) + - col2 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT MIN( DISTINCT 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5651
SELECT MIN ( DISTINCT 10 ) FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5652
SELECT ALL * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5652
SELECT ALL * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, - col2 * col2 * col0 AS col2 FROM tab2 AS cor0
----
23
-24334
40
-102400
58
-252300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5654
SELECT ALL - CAST( NULL AS DECIMAL ) + - + SUM( col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - CAST ( NULL AS REAL ) + - + SUM ( col0 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * - + col2 + + 54 * + col1 FROM tab2
----
2225
254
2558

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT MAX( DISTINCT 4 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT MAX ( DISTINCT 4 ) AS col1 FROM tab1
----
4

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) * + - 70 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 60 FROM tab0 WHERE NULL IS NULL
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT ALL + col0 - ( + col1 ) DIV + col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + col0 - ( + col1 ) / + col1 FROM tab1
----
50
84
90

query I rowsort
SELECT ALL - + col2 * - - 34 + + col0 - - ( + col2 ) + + col0 + + col0 + col2 FROM tab0 WHERE NOT - + 31 IS NOT NULL
----

query I rowsort
SELECT - col2 + - col1 - + + ( + + col2 ) * col0 FROM tab2 AS cor0
----
-1132
-2677
-4475

query I rowsort
SELECT ALL col1 + + 97 FROM tab0 AS cor0
----
118
178
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT DISTINCT + col2 - - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT DISTINCT + col2 - - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT DISTINCT + - 36 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + - 36 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + 75 - + + SUM( + col2 ) AS col1 FROM tab1
----
-148

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + 75 - + + SUM ( + col2 ) AS col1 FROM tab1
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5666
SELECT + 72 AS col0, col2 + + col0 AS col2, - + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9 values hashing to 77f3d7a54e9f1a5e02ef481f6fb176f8

skipif mysql # not compatible
query III rowsort label-5666
SELECT + 72 AS col0, col2 + + col0 AS col2, - + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9 values hashing to 77f3d7a54e9f1a5e02ef481f6fb176f8

query I rowsort
SELECT DISTINCT + - 81 * - - 43 * + col1 FROM tab0 AS cor0
----
-282123
-3483
-73143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT - 73 * - - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT - 73 * - - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 10 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT + MIN( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + MIN ( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT DISTINCT 49 AS col2, - col0 FROM tab1 AS cor0
----
49
-51
49
-85
49
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT MAX( - col0 ) + + 21 FROM tab1 cor0 WHERE NOT col0 + + - col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT MAX ( - col0 ) + + 21 FROM tab1 cor0 WHERE NOT col0 + + - col1 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT - col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5673
SELECT - col0 / - col1 AS col0 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL - ( + + COUNT( + 4 ) ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - ( + + COUNT ( + 4 ) ) FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT 16 * - col2 AS col1 FROM tab1
----
-1088
-1536
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT SUM( DISTINCT col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5676
SELECT SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
103

query II rowsort
SELECT - col0 AS col1, col0 * + col1 * - + ( + 9 ) AS col0 FROM tab1 AS cor0
----
-51
-6426
-85
-3825
-91
-38493

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + - 37 OR NOT NULL NOT BETWEEN col0 AND - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT - MAX( ALL - 7 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - MAX ( ALL - 7 ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT + 90 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT 54 * - CAST( - + col0 AS SIGNED ) FROM tab1
----
2754
4590
4914

skipif mysql # not compatible
query I rowsort label-5681
SELECT 54 * - CAST ( - + col0 AS INTEGER ) FROM tab1
----
2754
4590
4914

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 37 < - col1
----
15
81
47

query I rowsort
SELECT ALL 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL COUNT( ALL ( + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL COUNT ( ALL ( + col0 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT + 92 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + 92 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL + col2 + + col2 + - ( ( + - col1 ) ) * col0 * + 47 * - - 83 FROM tab0 AS cor0
----
378595
4739809
7127147

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 * - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col2 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 13 + 63 + - col1 FROM tab2
----
-1
25
9

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( ( + 97 ) ) + + col2 FROM tab0
----
107
144
196

query I rowsort
SELECT + 75 * + + 94 + ( - - col0 ) + - - col1 AS col1 FROM tab2
----
7147
7191
7192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT - CAST( NULL AS SIGNED ) / - 59 + + + col1 + + 40 + + 46 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - CAST ( NULL AS INTEGER ) / - 59 + + + col1 + + 40 + + 46 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 - + - ( col2 ), col2 + - + col0 AS col0 FROM tab1
----
0
-23
0
-26
0
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT 30 * - COUNT( * ) AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5696
SELECT 30 * - COUNT ( * ) AS col1 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5697
SELECT col0 AS col2, + 45 / + - ( CAST( NULL AS SIGNED ) ) / ( + 42 ) - 80 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5697
SELECT col0 AS col2, + 45 / + - ( CAST ( NULL AS INTEGER ) ) / ( + 42 ) - 80 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT - 44 * COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-5698
SELECT - 44 * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT + ( col0 ) + col0 / - CAST( NULL AS SIGNED ) + - 69 * + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + ( col0 ) + col0 / - CAST ( NULL AS INTEGER ) + - 69 * + col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 49 + - col0 AS col1 FROM tab0 AS cor0
----
-38
-48
34

query I rowsort
SELECT ALL - 74 + col1 + 28 AS col0 FROM tab0
----
-25
-45
35

query I rowsort
SELECT DISTINCT 69 * - 16 + - + col1 AS col0 FROM tab2
----
-1155
-1171
-1181

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL + MAX( + 44 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + MAX ( + 44 ) FROM tab1
----
44

query I rowsort
SELECT DISTINCT - - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL COUNT( 18 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL COUNT ( 18 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - + 10 + - AVG ( DISTINCT - 4 ) * + + 81 AS col0 FROM tab1 WHERE + - 64 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT col1 DIV - 3 FROM tab0 AS cor0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT col1 / - 3 FROM tab0 AS cor0
----
-27
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL + 48 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 48 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT ALL - 90 * - CAST( NULL AS SIGNED ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL - 90 * - CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT 88 DIV - + 93 * col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT 88 / - + 93 * col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT MAX( DISTINCT + 80 ) DIV - 60 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5711
SELECT MAX ( DISTINCT + 80 ) / - 60 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT + MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT - COUNT( DISTINCT + + col2 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - COUNT ( DISTINCT + + col2 ) AS col1 FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 88, - 81 * - 79 col0 FROM tab0 AS cor0
----
-88
6399
-88
6399
-88
6399

query I rowsort
SELECT DISTINCT + + 1 AS col1 FROM tab2 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT DISTINCT 78 DIV + col1 + - - 35 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT 78 / + col1 + - - 35 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT + col1 * + 46 + col0 / - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT + col1 * + 46 + col0 / - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + col1 * - col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL + MIN( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + MIN ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + + col2 * + - 40 AS col0 FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT DISTINCT col2 + - 8 AS col2 FROM tab1 AS cor0
----
51
60
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT DISTINCT - - CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-196
-297
-3822

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-196
-297
-3822

query II rowsort
SELECT DISTINCT col2 * + - col2 + - + col2 * - col0, + 62 + + + 36 AS col2 FROM tab1 AS cor0
----
-4320
98
1534
98
1564
98

query I rowsort
SELECT - col2 * + 10 + - - col0 + + col2 + 73 * + col1 * + 29 AS col1 FROM tab1 AS cor0
----
10139
28825
98978

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT - 26 + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - 26 + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + + ( col2 ) - - col1 * - 78 * 90 * col1 * + col2, col0, 18 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col1 BETWEEN col2 AND col1
----
1

query I rowsort
SELECT - 62 * 35 - col1 - + ( + - 56 ) + + + col1 * + ( + - col0 ) FROM tab1
----
-2544
-2842
-6438

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + + 33
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5731
SELECT ALL * FROM tab0 WHERE CAST( - col0 AS SIGNED ) * 39 / 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5731
SELECT ALL * FROM tab0 WHERE CAST ( - col0 AS INTEGER ) * 39 / 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + + col2 * - col0 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * - col0 col0 FROM tab2
----
2438
3392
3975

query III rowsort
SELECT * FROM tab1 WHERE + 25 = - + 36 * + ( - + col2 ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col1 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT - - ( + MAX( DISTINCT - + col0 ) ) - + 14 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - - ( + MAX ( DISTINCT - + col0 ) ) - + 14 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT ALL + ( + 17 ) * col1 * + 10 FROM tab0 AS cor0
----
13770
170
3570

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + col2 + - 2 / - ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * 24 + - - 16 * col1 * col0 col1 FROM tab0 AS cor0
----
21408
31200
3520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 > - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT DISTINCT + + col0 DIV - col2 - col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + + col0 / - col2 - col2 FROM tab2 AS cor0
----
-25
-41
-59

query II rowsort
SELECT col2, + 46 AS col0 FROM tab1 AS cor0
----
59
46
68
46
96
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT - - col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - 48 * col0 + - - 79 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-2383
-4006
-4336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT - CAST( NULL AS SIGNED ) * - 31 * + - SUM( ALL + 18 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT - CAST ( NULL AS INTEGER ) * - 31 * + - SUM ( ALL + 18 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + + col1 * + col2 AS col2 FROM tab2
----
-123200
-225388
-26979

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 57 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col0 + col0 NOT BETWEEN - + col0 AND 77 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + + 41 FROM tab1 AS cor0
----
126
132
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL 70 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL 70 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT DISTINCT + 30 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 / 3 * + CAST( + col2 AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + 30 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 / 3 * + CAST ( + col2 AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 34 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - 84 AS col1 FROM tab1
----
-1176
-3948
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT DISTINCT - 3 - - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - 3 - - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - COUNT( * ) + + + 23 + - ( - - 38 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5757
SELECT - COUNT ( * ) + + + 23 + - ( - - 38 ) AS col1 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL + + ( - + col1 ) + col2 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <= - 4
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5760
SELECT ALL + 90 DIV - 22 + + SUM( ALL + - 4 ) AS col1 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + 90 / - 22 + + SUM ( ALL + - 4 ) AS col1 FROM tab0
----
-16

query I rowsort
SELECT DISTINCT - col0 + - col0 + + col1 - + + col1 * - col1 * + ( + col0 ) + col1 AS col2 FROM tab0
----
-95
38235
98547

query I rowsort
SELECT DISTINCT 93 - col0 FROM tab2
----
18
29
47

query I rowsort
SELECT ALL ( + 75 ) - + col1 FROM tab2
----
-2
24
8

query I rowsort
SELECT DISTINCT + 92 - col0 FROM tab1
----
1
41
7

query III rowsort
SELECT * FROM tab0 WHERE - - 85 = + 28
----

query I rowsort
SELECT ALL col2 * + ( + col2 ) * - 44 FROM tab1
----
-153164
-203456
-405504

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 40 + + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 AS col1, col1 col2 FROM tab0
----
55
1
55
21
55
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5770
SELECT 73 * 2 DIV - - 85 AS col2, col1 + - + col1 + - col2 FROM tab2
----
1
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-5770
SELECT 73 * 2 / - - 85 AS col2, col1 + - + col1 + - col2 FROM tab2
----
1
-23
1
-40
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT MIN( ALL + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-5771
SELECT MIN ( ALL + 8 ) FROM tab0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + MIN( ALL - + CAST( NULL AS SIGNED ) ) * - - SUM( - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * - - SUM ( - col0 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT - 42 * + + COUNT( * ) AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - 42 * + + COUNT ( * ) AS col0 FROM tab2
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 67 col1 FROM tab2
----
3417
4489
5159

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * 8 > + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL COUNT( col2 ) col1 FROM tab2 WHERE NOT + col0 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL COUNT ( col2 ) col1 FROM tab2 WHERE NOT + col0 <= NULL
----
0

query II rowsort
SELECT + - 46 AS col1, 57 AS col2 FROM tab2 AS cor0
----
-46
57
-46
57
-46
57

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE + col0 * + - 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + COUNT( DISTINCT + ( col0 ) ) FROM tab0 WHERE NOT + 28 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT + COUNT ( DISTINCT + ( col0 ) ) FROM tab0 WHERE NOT + 28 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT MIN( DISTINCT - 8 ) * COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5780
SELECT MIN ( DISTINCT - 8 ) * COUNT ( * ) FROM tab2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT DISTINCT 44 * col1 - - 42 DIV - col0 AS col2 FROM tab2
----
2244
2948
3388

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT 44 * col1 - - 42 / - col0 AS col2 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT 5 * + col0 AS col2 FROM tab0
----
435
485
75

query I rowsort
SELECT 74 * col1 AS col1 FROM tab0
----
1554
5994
74

query I rowsort
SELECT ALL 56 * - col1 AS col1 FROM tab1
----
-2632
-280
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT col0 * + col2 AS col1 FROM tab0 WHERE 13 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5785
SELECT col0 * + col2 AS col1 FROM tab0 WHERE 13 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + col1 * col2 col1 FROM tab2
----
1192
3099
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + SUM( ALL 50 ) AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-5788
SELECT + SUM ( ALL 50 ) AS col1 FROM tab0
----
150

query I rowsort
SELECT ALL 8 * col0 AS col2 FROM tab1
----
408
680
728

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / + col0 IN ( ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + ( - SUM( + 11 ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5792
SELECT + ( - SUM ( + 11 ) ) FROM tab2
----
-33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) <= - 33 - - 69
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT - col0 * + 85 + col2 AS col0 FROM tab0
----
-1228
-7385
-8146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5796
SELECT CAST( NULL AS DECIMAL ) / MIN( DISTINCT + 51 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT CAST ( NULL AS REAL ) / MIN ( DISTINCT + 51 ) FROM tab0
----
NULL

query I rowsort
SELECT - 71 * - col0 + - col2 FROM tab0
----
1018
6167
6788

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT - col1 DIV + 73 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5798
SELECT - col1 / + 73 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN col2 AND - ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT COUNT( * ) DIV - 14 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT COUNT ( * ) / - 14 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) IN ( - col1 + - 42 * + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT ALL col2 DIV - 8 FROM tab0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL col2 / - 8 FROM tab0
----
-1
-12
-5

query I rowsort
SELECT - 51 FROM tab2 WHERE + 74 < ( col1 )
----
-51

query I rowsort
SELECT ALL col1 * ( + col1 ) AS col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 12 * col2 AS col2 FROM tab0
----
1188
120
564

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col0 * col2
----

query I rowsort
SELECT - col0 + + 56 FROM tab2
----
-19
-8
10

query I rowsort
SELECT + col0 + 41 AS col2 FROM tab2
----
105
116
87

query I rowsort
SELECT col2 * 41 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT + MIN( + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT + MIN ( + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL COUNT( ALL + col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL COUNT ( ALL + col0 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL ( - 73 ) FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT col0 * CAST( 46 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2116
2944
3450

skipif mysql # not compatible
query I rowsort label-5813
SELECT col0 * CAST ( 46 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2116
2944
3450

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 79 NOT IN ( col1 * 68 + 91 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( 16 * col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * col1 col2 FROM tab2 AS cor0
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL SUM( ALL - 14 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL SUM ( ALL - 14 ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + SUM( ALL - 6 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5818
SELECT + SUM ( ALL - 6 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL + 30 * CAST( + 26 AS SIGNED ) AS col2 FROM tab1
----
780
780
780

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + 30 * CAST ( + 26 AS INTEGER ) AS col2 FROM tab1
----
780
780
780

query I rowsort
SELECT DISTINCT - 55 + col0 FROM tab0 WHERE - col1 NOT IN ( - 82 * + col0 )
----
-40
32
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < 11
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5822
SELECT DISTINCT CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 19 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 76 * + 93 FROM tab1 AS cor0
----
-7068

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5825
SELECT + - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 74 + + 42 FROM tab2 AS cor0
----
116

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 98 + - col0 * col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT DISTINCT 69 DIV - ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT 69 / - ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-6
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 - col0 NOT BETWEEN ( + 31 * 52 ) AND - col0 + col1
----

query I rowsort
SELECT DISTINCT - - 44 + + 62 FROM tab2 AS cor0
----
106

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 46 + + 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + col0 * - col0 - col1 ) AND NULL
----

query I rowsort
SELECT col0 * + col2 + - col2 AS col1 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + MIN( ALL col0 ) AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT + MIN ( ALL col0 ) AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 95 * - col0 AS col1 FROM tab2
----
-4370
-6080
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col1 col2 FROM tab0
----
528
6576
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 / col1 ) NOT IN ( col0 * - 24 )
----

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 WHERE NOT - 0 > - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT 90 + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5839
SELECT 90 + COUNT ( * ) FROM tab1
----
93

query I rowsort
SELECT - 55 * + col0 + ( + 32 ) FROM tab0
----
-4753
-5303
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT + SUM( 26 ) * 73 + + 8 AS col2 FROM tab0
----
5702

skipif mysql # not compatible
query I rowsort label-5841
SELECT + SUM ( 26 ) * 73 + + 8 AS col2 FROM tab0
----
5702

query I rowsort
SELECT ALL + col1 + - 8 AS col0 FROM tab0 cor0
----
-7
13
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 >= col0
----

query I rowsort
SELECT DISTINCT col0 / - col1 - col2 / col1 FROM tab0 AS cor0 WHERE + col1 / - col0 - col2 IS NULL
----

query I rowsort
SELECT + 89 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query III rowsort
SELECT * FROM tab1 WHERE 56 IN ( - 46 )
----

query I rowsort
SELECT col2 * - col0 * + col1 - - col1 AS col0 FROM tab2
----
-197043
-291383
-53907

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 + - col2 + 86 ) = col0
----

query I rowsort
SELECT DISTINCT - - 90 * ( - 48 ) * col0 AS col1 FROM tab0 AS cor0
----
-375840
-419040
-64800

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT - 95 + + col0 DIV - ( 8 ) + + col1 FROM tab2 cor0
----
-26
-37
-49

skipif mysql # not compatible
query I rowsort label-5850
SELECT - 95 + + col0 / - ( 8 ) + + col1 FROM tab2 cor0
----
-26
-37
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) < ( - col0 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) < ( - col0 * - col0 )
----
0

query I rowsort
SELECT ( - ( + col1 ) ) + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL - COUNT( * ) * - 87 FROM tab1 AS cor0 WHERE NULL = NULL OR NOT col0 IS NULL
----
261

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - COUNT ( * ) * - 87 FROM tab1 AS cor0 WHERE NULL = NULL OR NOT col0 IS NULL
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT + col0 FROM tab0 cor0 WHERE ( - 81 + + + col2 ) BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5854
SELECT + col0 FROM tab0 cor0 WHERE ( - 81 + + + col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL ( COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5855
SELECT ALL ( COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 * col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT col0 DIV + 66 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5856
SELECT col0 / + 66 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT + SUM( ALL col0 ), 34 AS col1 FROM tab0
----
199
34

skipif mysql # not compatible
query II rowsort label-5858
SELECT + SUM ( ALL col0 ), 34 AS col1 FROM tab0
----
199
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT - MAX( - 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT - MAX ( - 91 ) FROM tab0
----
91

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( + + col1 ) NOT BETWEEN 12 / + col2 AND NULL
----

query I rowsort
SELECT - ( + - 9 ) FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - 45 AS col0 FROM tab0 cor0
----
-45
-45
-45

query I rowsort
SELECT + + col0 * + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT ALL COUNT( * ) AS col1, COUNT( ALL - ( 0 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5864
SELECT ALL COUNT ( * ) AS col1, COUNT ( ALL - ( 0 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT + 81 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + 81 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL MIN( DISTINCT - 71 ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL MIN ( DISTINCT - 71 ) AS col1 FROM tab1
----
-71

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > + 94 / + col1 - col0
----

query I rowsort
SELECT ALL + + col1 + 7 + col0 AS col0 FROM tab2 cor0
----
104
148
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col2 + 96 col0 FROM tab2 AS cor0 WHERE col2 < + 5
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - SUM( + 55 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5872
SELECT - SUM ( + 55 ) FROM tab2 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + 85 * + + SUM( DISTINCT + - 77 ) FROM tab2
----
-6545

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 85 * + + SUM ( DISTINCT + - 77 ) FROM tab2
----
-6545

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 43 + + col1 / + 72 < + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col1 + - 67 AS col2 FROM tab1
----
-20
-53
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5876
SELECT DISTINCT - MIN( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 34 * - - col2 * + col0 IN ( + col1 * 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5879
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5879
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col0 IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + - 35 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT ALL col0 DIV - - col2 AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL col0 / - - col2 AS col0 FROM tab0 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - col1 + 16 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT DISTINCT - + col0 DIV 38 AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT - + col0 / 38 AS col0 FROM tab0 AS cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - COUNT( * ) * + 45 * + 3 + - + ( - - 46 ) AS col1 FROM tab1 AS cor0
----
-451

skipif mysql # not compatible
query I rowsort label-5885
SELECT - COUNT ( * ) * + 45 * + 3 + - + ( - - 46 ) AS col1 FROM tab1 AS cor0
----
-451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT col2 * - + CAST( - 19 AS SIGNED ) FROM tab0 AS cor0
----
1881
190
893

skipif mysql # not compatible
query I rowsort label-5886
SELECT col2 * - + CAST ( - 19 AS INTEGER ) FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL - 91 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5888
SELECT col0 * 9 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT col0 * 9 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + ( + col2 ) NOT IN ( col2, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT DISTINCT 28, + COUNT( * ) AS col2 FROM tab0
----
28
3

skipif mysql # not compatible
query II rowsort label-5890
SELECT DISTINCT 28, + COUNT ( * ) AS col2 FROM tab0
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT + 51 * - + MIN( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + 51 * - + MIN ( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 36 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 WHERE 26 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 WHERE 26 IS NOT NULL
----
3

query II rowsort
SELECT ALL 52, col0 FROM tab1
----
52
51
52
85
52
91

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 / + col1 + + 1 NOT BETWEEN ( + + col0 ) AND 39
----

query I rowsort
SELECT + ( + 8 ) FROM tab1
----
8
8
8

query II rowsort
SELECT 29 * + 30 * + 63 AS col1, + 55 FROM tab0 AS cor0
----
54810
55
54810
55
54810
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - + ( + MIN( ALL col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - + ( + MIN ( ALL col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
5

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 23 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col2 * 37 * + col2 FROM tab1
----
128797
171088
340992

query I rowsort
SELECT - 56 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5906
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + + col2, col2 * + col1 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5906
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + + col2, col2 * + col1 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT - 68 DIV + COUNT( 78 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 68 / + COUNT ( 78 ) FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT - col2 FROM tab0 AS cor0 WHERE 58 - + 98 * + + col0 * + - col0 - + CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5908
SELECT - col2 FROM tab0 AS cor0 WHERE 58 - + 98 * + + col0 * + - col0 - + CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 41 ) <= - col1
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - MIN( ALL - col1 ) + + + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5912
SELECT - MIN ( ALL - col1 ) + + + COUNT ( * ) FROM tab2
----
80

query III rowsort
SELECT * FROM tab1 WHERE - 35 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT - COUNT( + col2 ) * - COUNT( * ) + - 30 * + 1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) < ( col1 )
----
-30

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( + col2 ) * - COUNT ( * ) + - 30 * + 1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) < ( col1 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL - 58 AS col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - 58 AS col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col0 * - 69 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT ALL + ( + 36 ) * + - 64 AS col0 FROM tab2
----
-2304
-2304
-2304

query I rowsort
SELECT ALL - col2 * + col0 * + 44 * col1 FROM tab0 cor0
----
-2512620
-422532
-803880

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT + 75 * COUNT( * ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT + 75 * COUNT ( * ) FROM tab0 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 >= NULL
----

query I rowsort
SELECT ALL + 16 * 4 + + col1 FROM tab2 WHERE NULL IS NULL
----
115
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + SUM( - 84 ) + - + 51 AS col2 FROM tab2
----
-303

skipif mysql # not compatible
query I rowsort label-5922
SELECT + SUM ( - 84 ) + - + 51 AS col2 FROM tab2
----
-303

query I rowsort
SELECT DISTINCT + col2 * + 87 + - col0 AS col2 FROM tab0 AS cor0
----
4074
783
8516

query I rowsort
SELECT ALL + ( + ( - - 29 ) ) AS col2 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL + + COUNT( + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL + + COUNT ( + - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - - 11 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5927
SELECT - - 11 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5928
SELECT ALL 7 * - col1 AS col1, + 99 DIV - col2 AS col2 FROM tab1
----
-329
-1
-35
-1
-98
-1

skipif mysql # not compatible
query II rowsort label-5928
SELECT ALL 7 * - col1 AS col1, + 99 / - col2 AS col2 FROM tab1
----
-329
-1
-35
-1
-98
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5929
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) AS col0, + COUNT( + col0 ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT 35 * - COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT 35 * - COUNT ( * ) FROM tab0
----
-105

query I rowsort
SELECT ALL 74 * - 56 AS col1 FROM tab1
----
-4144
-4144
-4144

query I rowsort
SELECT ( + - 51 ) FROM tab1
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 * col0 * col0 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 * col0 * col0 NOT BETWEEN NULL AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 64 col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3008
320
896

onlyif mysql # DIV for integer division: 
query II rowsort label-5935
SELECT ALL - col1 DIV - col1 + col1 AS col0, col2 FROM tab0 cor0
----
2
99
22
10
82
47

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL - col1 / - col1 + col1 AS col0, col2 FROM tab0 cor0
----
2
99
22
10
82
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL col2 DIV - col1 FROM tab0 cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL col2 / - col1 FROM tab0 cor0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab0
----
-47
-47
-47

query II rowsort
SELECT DISTINCT col2, col0 * - col1 FROM tab0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - + col2 + 39 AS col1 FROM tab1 AS cor0
----
-20
-29
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT DISTINCT - 81 + + + AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - 81 + + + AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT MIN( ALL + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT MIN ( ALL + col0 ) FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 82 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 82 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 + col1 * 60 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5946
SELECT ALL 65 + - + 78, col1 + - + col0 * + CAST( NULL AS SIGNED ) * col0 * - 44 col0 FROM tab0
----
-13
NULL
-13
NULL
-13
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5946
SELECT ALL 65 + - + 78, col1 + - + col0 * + CAST ( NULL AS INTEGER ) * col0 * - 44 col0 FROM tab0
----
-13
NULL
-13
NULL
-13
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 * - - 8 col0, - 73 FROM tab2
----
736
-73
736
-73
736
-73

query I rowsort
SELECT - col2 + col1 FROM tab1 WHERE NULL <= ( + col0 / + - col0 * + col1 )
----

query I rowsort
SELECT + col2 - + - col1 AS col0 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 12, ( + + col0 ) * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5951
SELECT DISTINCT - 69 - - col0 + + - 96 * - + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - 69 - - col0 + + - 96 * - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5952
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( - 45, col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5952
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( - 45, col0, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT + COUNT( * ) - - 36 * COUNT( * ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + COUNT ( * ) - - 36 * COUNT ( * ) FROM tab0 AS cor0
----
111

query I rowsort
SELECT - - 12 + - + 55 FROM tab0 AS cor0
----
-43
-43
-43

query II rowsort
SELECT col1, + col0 AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5956
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5956
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 * + 5 FROM tab2
----
-230
-320
-375

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + SUM( DISTINCT + 76 ) AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5959
SELECT + SUM ( DISTINCT + 76 ) AS col2 FROM tab1 AS cor0
----
76

query II rowsort
SELECT - 69 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query I rowsort
SELECT DISTINCT - 14 * col1 AS col2 FROM tab0 AS cor0
----
-1134
-14
-294

query II rowsort
SELECT DISTINCT col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT + + 71 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
71
-46
71
-64
71
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 39 * + col0 * - col0 <> NULL
----

query I rowsort
SELECT - 63 - ( + ( ( + col0 ) ) ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL + 36 * + - COUNT( ALL - - col2 ) AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 36 * + - COUNT ( ALL - - col2 ) AS col1 FROM tab1
----
-108

query I rowsort
SELECT ALL - col2 * + col0 * - col1 AS col0 FROM tab0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col2 FROM tab2
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT DISTINCT col0 DIV + 54 col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5969
SELECT DISTINCT col0 / + 54 col2 FROM tab2 cor0
----
0
1

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col0 FROM tab0 cor0 WHERE col2 * + 50 IS NULL
----

query I rowsort
SELECT DISTINCT + 14 + col2 FROM tab2 cor0
----
37
54
72

query I rowsort
SELECT - 43 + - + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT 2 + COUNT( * ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT 2 + COUNT ( * ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT COUNT( + - 96 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5974
SELECT COUNT ( + - 96 ) FROM tab1
----
3

query II rowsort
SELECT col1 * + 66 AS col1, col0 FROM tab0
----
1386
87
5346
15
66
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col1 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT + col0 * col2 * - + 83 + + col1 FROM tab1 AS cor0
----
-406354
-416240
-513557

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 * col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5978
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 * col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 79 AS col1 FROM tab2 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + MIN( DISTINCT + 98 ) + + + COUNT( * ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5980
SELECT + MIN ( DISTINCT + 98 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
101

query I rowsort
SELECT ALL + 48 * - 6 + - + 80 FROM tab0 AS cor0
----
-368
-368
-368

query I rowsort
SELECT ALL + 31 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
1538
3070
331

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + COUNT( * ) + ( 7 ) * - COUNT( * ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-5983
SELECT + COUNT ( * ) + ( 7 ) * - COUNT ( * ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT 65 + + + col0 AS col0 FROM tab0
----
152
162
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT COUNT( * ) * - 46 * COUNT( * ) + 34 AS col1 FROM tab0
----
-380

skipif mysql # not compatible
query I rowsort label-5986
SELECT COUNT ( * ) * - 46 * COUNT ( * ) + 34 AS col1 FROM tab0
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT COUNT( * ) * - ( - + 76 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-5987
SELECT COUNT ( * ) * - ( - + 76 ) FROM tab0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 4 col1 FROM tab0 WHERE ( NULL ) BETWEEN - 69 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL - ( - MAX( DISTINCT 60 ) ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - ( - MAX ( DISTINCT 60 ) ) AS col1 FROM tab2
----
60

query I rowsort
SELECT DISTINCT - 0 * + 43 - col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - MIN( ALL - + ( + + 32 ) ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5991
SELECT - MIN ( ALL - + ( + + 32 ) ) FROM tab2
----
32

query II rowsort
SELECT DISTINCT + 36 AS col2, col2 FROM tab0 AS cor0
----
36
10
36
47
36
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE + 81 + - CAST( NULL AS SIGNED ) + + col0 / + + ( + 72 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE + 81 + - CAST ( NULL AS INTEGER ) + + col0 / + + ( + 72 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5994
SELECT - CAST( + COUNT( * ) AS DECIMAL ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT - CAST ( + COUNT ( * ) AS REAL ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT - SUM( ALL + + 50 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - SUM ( ALL + + 50 ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT + + 56 * + 27 AS col2 FROM tab1 AS cor0
----
1512
1512
1512

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 38 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL + - MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + - MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL col0 * + - 52 AS col0 FROM tab1 cor0
----
-2652
-4420
-4732

query I rowsort
SELECT - 87 * + + 65 AS col0 FROM tab2 AS cor0
----
-5655
-5655
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT SUM( 87 ) AS col0 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT SUM ( 87 ) AS col0 FROM tab1 AS cor0
----
261

query II rowsort
SELECT ALL 77, + col0 FROM tab0
----
77
15
77
87
77
97

query II rowsort
SELECT 19, ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT - COUNT( ALL - - 59 ) * - + 24 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - COUNT ( ALL - - 59 ) * - + 24 FROM tab0
----
72

query I rowsort
SELECT + 5 FROM tab2 WHERE NOT - col0 * + + col1 * + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL + + col1 * - + 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + - 79 FROM tab1 AS cor0 WHERE 72 * + - col0 IS NULL
----

query I rowsort
SELECT col0 + col0 * + col2 AS col2 FROM tab0
----
720
957
9700

query I rowsort
SELECT ALL col2 + - col1 * + 8 * - ( + 49 ) FROM tab2
----
20015
26322
30224

query I rowsort
SELECT DISTINCT + 33 + 96 AS col0 FROM tab1 AS cor0
----
129

query II rowsort
SELECT - + 50 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT - col1 - + col0 DIV - + col1 AS col2 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-6013
SELECT - col1 - + col0 / - + col1 AS col2 FROM tab2
----
-51
-66
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT ( + CAST( NULL AS SIGNED ) ) - + 13 * MIN( ALL - col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT ( + CAST ( NULL AS INTEGER ) ) - + 13 * MIN ( ALL - col1 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6015
SELECT 85 - + col2 AS col2, + CAST( + 46 AS SIGNED ) AS col1 FROM tab1
----
-11
46
17
46
26
46

skipif mysql # not compatible
query II rowsort label-6015
SELECT 85 - + col2 AS col2, + CAST ( + 46 AS INTEGER ) AS col1 FROM tab1
----
-11
46
17
46
26
46

query II rowsort
SELECT col0 - + 15, col1 FROM tab2
----
31
51
49
77
60
67

query I rowsort
SELECT ALL + col0 + - col2 + col2 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT - - 60 * - ( - COUNT( * ) ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT - - 60 * - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT ALL + 38 DIV + col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + 38 / + col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # DIV for integer division: 
query III rowsort label-6020
SELECT + 27 DIV col1, + 45 AS col1, - - col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to b0e9329e3c0fe0ee1824c77500c5f82f

skipif mysql # not compatible
query III rowsort label-6020
SELECT + 27 / col1, + 45 AS col1, - - col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to b0e9329e3c0fe0ee1824c77500c5f82f

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + 45 + - col0 BETWEEN NULL AND + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT DISTINCT - ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 WHERE NOT + col0 IS NULL
----
-3

query II rowsort
SELECT col0 AS col1, + col1 * - - 57 FROM tab1 AS cor0
----
51
798
85
285
91
2679

query I rowsort
SELECT - + ( + 22 ) FROM tab2 cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * - + AVG ( ALL col2 ) col1 FROM tab0 AS cor0 WHERE NOT - 81 BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6026
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + 19 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 19 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT 54, COUNT( + col0 ) * MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
54
69

skipif mysql # not compatible
query II rowsort label-6029
SELECT 54, COUNT ( + col0 ) * MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
54
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL COUNT( * ) + MIN( 50 ) AS col0 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL COUNT ( * ) + MIN ( 50 ) AS col0 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6031
SELECT ALL * FROM tab2 WHERE NOT 19 NOT BETWEEN + CAST( - col1 AS SIGNED ) AND - - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6031
SELECT ALL * FROM tab2 WHERE NOT 19 NOT BETWEEN + CAST ( - col1 AS INTEGER ) AND - - ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / col2 IS NOT NULL
----

query I rowsort
SELECT + 49 * - col2 + + col0 AS col1 FROM tab1
----
-2806
-3241
-4653

query I rowsort
SELECT 81 + - col2 * - - col0 + + + col0 * + + 74 FROM tab0
----
-2344
486
5649

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT 0 + - COUNT( * ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6035
SELECT 0 + - COUNT ( * ) col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT + MAX( DISTINCT - col1 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + MAX ( DISTINCT - col1 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT - COUNT( * ) DIV COUNT( * ) + - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-6037
SELECT - COUNT ( * ) / COUNT ( * ) + - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 * - - col1 - + + col2 col0 FROM tab0
----
-190
-1921
-7418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT + - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT + - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col1 * - 66 IS NOT NULL ) )
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT ALL - 15 DIV + 29 * + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - 15 / + 29 * + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT ALL - COUNT( * ) * + - 12 + - 87 AS col0, - MIN( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-51
58

skipif mysql # not compatible
query II rowsort label-6044
SELECT ALL - COUNT ( * ) * + - 12 + - 87 AS col0, - MIN ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-51
58

query I rowsort
SELECT 57 + - col1 AS col1 FROM tab0 AS cor0
----
-24
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + MAX( DISTINCT + col2 ) + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + MAX ( DISTINCT + col2 ) + COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT ALL + 66 * + - ( + col0 ) FROM tab2
----
-3036
-4224
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT 62 * - - 51 * - ( COUNT( col1 ) ) AS col2 FROM tab0
----
-9486

skipif mysql # not compatible
query I rowsort label-6048
SELECT 62 * - - 51 * - ( COUNT ( col1 ) ) AS col2 FROM tab0
----
-9486

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL + SUM( ALL + + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + SUM ( ALL + + col0 ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT SUM( - 5 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6050
SELECT SUM ( - 5 ) col1 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + + 89 * - + 51 FROM tab2 AS cor0
----
-4539

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT + 34 DIV - + 55 AS col0, 38 * 99 FROM tab1
----
0
3762
0
3762
0
3762

skipif mysql # not compatible
query II rowsort label-6052
SELECT + 34 / - + 55 AS col0, 38 * 99 FROM tab1
----
0
3762
0
3762
0
3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NOT ( - - col0 ) IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NOT ( - - col0 ) IS NOT NULL )
----
NULL
NULL
NULL

query II rowsort
SELECT + 58 * - 28 * 6 AS col0, + ( - 8 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 5c36eec4cce754f3a369e755859b7128

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - + COUNT( * ) * + + 69 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-6055
SELECT - + COUNT ( * ) * + + 69 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-621

query I rowsort
SELECT ALL + col2 * + + col1 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT COUNT( * ) DIV + 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT COUNT ( * ) / + 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) <= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT ALL + - col1 DIV - - 86 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + - col1 / - - 86 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + MAX( - ( - + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6061
SELECT + MAX ( - ( - + col0 ) ) FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 56 + - + col0 + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - - 72 AS col1 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + COUNT( DISTINCT - + ( - + 33 ) ) AS col0 FROM tab0 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6064
SELECT + COUNT ( DISTINCT - + ( - + 33 ) ) AS col0 FROM tab0 WHERE col2 <> NULL
----
0

query I rowsort
SELECT ALL 91 FROM tab0 WHERE NOT 82 + col1 IS NULL
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6066
SELECT DISTINCT - 45, CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-45
15
-45
87
-45
97

skipif mysql # not compatible
query II rowsort label-6066
SELECT DISTINCT - 45, CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-45
15
-45
87
-45
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + - 12 IS NULL )
----

query I rowsort
SELECT + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT - COUNT( * ) * + 2 + + 59 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - COUNT ( * ) * + 2 + + 59 FROM tab0 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + 76 * - col2 col0 FROM tab1
----
-4695
2741
3113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6071
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND + 38 / + 19 * + col0
----

skipif mysql # not compatible
query III rowsort label-6071
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND + 38 / + 19 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT + - 90 * - 92 - - - col2 FROM tab2 AS cor0
----
8222
8240
8257

query I rowsort
SELECT + col1 - + ( + 22 ) FROM tab1 AS cor0
----
-17
-8
25

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT ( 62 ) DIV + 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT ( 62 ) / + 66 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL 6 * col2 * - col2 AS col0, - col2 AS col1 FROM tab1
----
-20886
-59
-27744
-68
-55296
-96

query II rowsort
SELECT - col1 AS col1, + 31 AS col2 FROM tab2 cor0
----
-51
31
-67
31
-77
31

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 > NULL
----

query I rowsort
SELECT + + 82 + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba887a18b86a2c64d4b2c70e5cbb32da

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + 25 * + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 25 * + COUNT ( * ) FROM tab1 AS cor0
----
75

query II rowsort
SELECT DISTINCT - - col1, col2 + + + 86 AS col1 FROM tab1 AS cor0
----
14
182
47
154
5
145

query II rowsort
SELECT DISTINCT + col2, col0 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
59
-426275
68
-563108
96
-249696

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 56 + - col1 * - + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL - 49 + - ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - 49 + - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 + - + 6 col0 FROM tab2
----
-11
-19
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * - ( - 29 ) + + col0 + + - col0 NOT BETWEEN + - col1 * + - col1 AND + 7
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6091
SELECT ALL * FROM tab0 WHERE NOT + + col0 BETWEEN col1 AND - + 86 - + - CAST( - col2 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6091
SELECT ALL * FROM tab0 WHERE NOT + + col0 BETWEEN col1 AND - + 86 - + - CAST ( - col2 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL SUM( ALL + ( 74 ) ) * COUNT( * ) AS col1 FROM tab2
----
666

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL SUM ( ALL + ( 74 ) ) * COUNT ( * ) AS col1 FROM tab2
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 17 + + MAX( col1 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 17 + + MAX ( col1 ) AS col1 FROM tab2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ( + col0 ) + - col1 DIV + + col2 AS col0 FROM tab0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-6094
SELECT ( + col0 ) + - col1 / + + col2 AS col0 FROM tab0
----
14
85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + MIN( ALL 99 ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + MIN ( ALL 99 ) AS col2 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT - col0 + - - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT - col0 + - - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6097
SELECT - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col2 + - + col2 - + + col1 FROM tab1 AS cor0 WHERE NULL > + 51 + + + 95
----

query I rowsort
SELECT ALL col2 - - 58 FROM tab1
----
117
126
154

query I rowsort
SELECT - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= + - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col2 AND col2
----

query I rowsort
SELECT + col1 * - + col1 FROM tab1 cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + col2 + + col1 col2 FROM tab1 AS cor0
----
-59
64
-68
115
-96
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - + col1, + col0 col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT - 89 * - - col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT COUNT( 56 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6107
SELECT COUNT ( 56 ) FROM tab2
----
3

query I rowsort
SELECT - col0 * + col1 * - + 27 AS col0 FROM tab2
----
133056
135675
63342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 77 ) col2 FROM tab0
----
-77

query I rowsort
SELECT ALL + + 99 * 39 + + col1 AS col0 FROM tab2 AS cor0
----
3912
3928
3938

query I rowsort
SELECT DISTINCT + 93 * - + col2 AS col1 FROM tab1
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL MIN( ALL col2 ) * - 42 + - 3 FROM tab0 cor0
----
-423

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL MIN ( ALL col2 ) * - 42 + - 3 FROM tab0 cor0
----
-423

query I rowsort
SELECT DISTINCT + - ( + 51 ) AS col2 FROM tab0 cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6114
SELECT ALL - 25, + CAST( NULL AS DECIMAL ) * 6 AS col0 FROM tab2 AS cor0
----
-25
NULL
-25
NULL
-25
NULL

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL - 25, + CAST ( NULL AS REAL ) * 6 AS col0 FROM tab2 AS cor0
----
-25
NULL
-25
NULL
-25
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6115
SELECT - - col1, - 47 * col1 DIV - 67 AS col0 FROM tab1 AS cor0
----
14
9
47
32
5
3

skipif mysql # not compatible
query II rowsort label-6115
SELECT - - col1, - 47 * col1 / - 67 AS col0 FROM tab1 AS cor0
----
14
9
47
32
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL - COUNT( * ) + 36 AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - COUNT ( * ) + 36 AS col1 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT + MAX( DISTINCT + ( 33 ) ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6118
SELECT + MAX ( DISTINCT + ( 33 ) ) FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6119
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT 9, 96 AS col1 FROM tab1
----
9
96
9
96
9
96

query I rowsort
SELECT DISTINCT 81 + - col2 AS col0 FROM tab2
----
23
41
58

query I rowsort
SELECT ALL 8 + - col1 AS col0 FROM tab1
----
-39
-6
3

query I rowsort
SELECT ( + col0 ) + - ( + col1 ) + - - col0 FROM tab0 AS cor0
----
-51
153
193

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 66 AND - + col0 * - col1
----

query I rowsort
SELECT + 9 + + col0 * - + col1 + + ( + 44 ) AS col0 FROM tab1 AS cor0
----
-372
-4224
-661

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE 21 * - + col1 + + - col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT 88 AS col1 FROM tab1 cor0
----
88
88
88

query I rowsort
SELECT - 74 * + col0 * - 4 * + col1 AS col0 FROM tab0 cor0
----
28712
359640
540792

query I rowsort
SELECT ALL col0 * + col1 * - col0 AS col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT - 98 * + 97 FROM tab0
----
-9506
-9506
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col2 * + - ( + 58 ) FROM tab1
----
-3422
-3944
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL - CAST( NULL AS SIGNED ) * + + col2 * - + col1 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-6133
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col2 * - + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT + COUNT( ALL - + col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT + COUNT ( ALL - + col2 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT 7, COUNT( * ) AS col0 FROM tab0 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-6135
SELECT 7, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7
3

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 + - col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT - ( - + col2 ) * - + col2 + + col0 * - col1 FROM tab1
----
-3906
-8901
-9930

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT 56 * SUM( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
12488

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT 56 * SUM ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
12488

query I rowsort
SELECT - + 34 * + 21 + + - col0 FROM tab1 AS cor0
----
-765
-799
-805

query I rowsort
SELECT DISTINCT 92 * - 56 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 + + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT + COUNT( * ) + + - 65 * + 38 FROM tab1 cor0
----
-2467

skipif mysql # not compatible
query I rowsort label-6142
SELECT + COUNT ( * ) + + - 65 * + 38 FROM tab1 cor0
----
-2467

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND + 95
----

query II rowsort
SELECT - + ( col0 ) + + + col2 + col0 AS col1, 1 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 * + 3 + - + col2 + - + col2 - + + col1 * + - col0 col0 FROM tab2 AS cor0
----
2075
4623
4684

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - 10 BETWEEN 27 AND + - 30 * - + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - COUNT( * ) FROM tab0 WHERE + ( 80 ) + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6147
SELECT - COUNT ( * ) FROM tab0 WHERE + ( 80 ) + col0 IS NOT NULL
----
-3

query I rowsort
SELECT 43 * - 91 + + col1 FROM tab0
----
-3832
-3892
-3912

query I rowsort
SELECT + + 65 * 90 FROM tab2 WHERE + col2 + - + ( + 16 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 10 * - col2 AS col2 FROM tab0
----
-13
-455
-893

query I rowsort
SELECT - 5 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 28 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT - 10 * + - col2 FROM tab1 AS cor0
----
590
680
960

query II rowsort
SELECT DISTINCT - 72 + col2 * 31, - col1 AS col0 FROM tab2 AS cor0
----
1168
-77
1726
-67
641
-51

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 79 / - + col2 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, 80 FROM tab2 cor0
----
23
80
40
80
58
80

query I rowsort
SELECT - - ( + 78 ) AS col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT 12 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
12
-3

skipif mysql # not compatible
query II rowsort label-6160
SELECT 12 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
12
-3

query I rowsort
SELECT ALL + - 33 * - col0 * col0 + col1 FROM tab0 WHERE col1 / - + 55 * 67 + - - col0 * + + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - MIN( ALL - - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6162
SELECT - MIN ( ALL - - 10 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col0 * + + ( + col1 ) * + col1 AS col0 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT DISTINCT col2 + 61 FROM tab0 AS cor0
----
108
160
71

query I rowsort
SELECT - + col1 + - 20 * - col2 FROM tab2 AS cor0
----
1093
409
723

query I rowsort
SELECT col2 + - + 18 - - ( 63 ) AS col0 FROM tab1
----
104
113
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT - col0 DIV col0 + - col1 + + col0 FROM tab0
----
-67
65
95

skipif mysql # not compatible
query I rowsort label-6167
SELECT - col0 / col0 + - col1 + + col0 FROM tab0
----
-67
65
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6168
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-6168
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 > NULL
----

query I rowsort
SELECT ALL 42 - col2 + - col2 / - col1 FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col0 - - col2
----

query I rowsort
SELECT - ( + col2 ) * - col2 * 53 AS col1 FROM tab2 AS cor0
----
178292
28037
84800

query I rowsort
SELECT ALL 6 - - + col2 + - + ( - col0 ) FROM tab1 AS cor0 WHERE ( - 62 IS NOT NULL )
----
150
153
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL - 8 + + 48 - + - MIN( DISTINCT 0 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 8 + + 48 - + - MIN ( DISTINCT 0 ) FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + + MIN( 39 ) * + ( - 64 ) FROM tab2 AS cor0
----
-2496

skipif mysql # not compatible
query I rowsort label-6175
SELECT + + MIN ( 39 ) * + ( - 64 ) FROM tab2 AS cor0
----
-2496

query I rowsort
SELECT ( + - 40 ) FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + - col0 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - col2 + 82 AS col0 FROM tab2 AS cor0
----
24
42
59

query II rowsort
SELECT ALL col0 + + + col0, ( col2 ) AS col2 FROM tab1
----
102
96
170
59
182
68

query I rowsort
SELECT DISTINCT + col2 + col2 + + ( - + col0 ) FROM tab1
----
141
33
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6181
SELECT CAST( + col2 AS SIGNED ) * - - col0 + - + col2 - 32 + col0 DIV + 25 FROM tab0
----
626
831
9475

skipif mysql # not compatible
query I rowsort label-6181
SELECT CAST ( + col2 AS INTEGER ) * - - col0 + - + col2 - 32 + col0 / + 25 FROM tab0
----
626
831
9475

query I rowsort
SELECT ALL + col2 + - col0 * + 99 FROM tab1
----
-4953
-8356
-8941

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COUNT( * ) + - ( - - COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) + - ( - - COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 14 * - 67 - col1 * ( 39 ) AS col0 FROM tab2
----
-2927
-3551
-3941

query I rowsort
SELECT ALL 89 * - + 39 - + + col0 - - + ( col1 ) + + + 57 FROM tab2
----
-3401
-3409
-3422

query I rowsort
SELECT + - col2 + - 53 AS col0 FROM tab1 AS cor0
----
-112
-121
-149

query I rowsort
SELECT DISTINCT + 63 * + + 19 AS col2 FROM tab0 AS cor0
----
1197

query I rowsort
SELECT + col0 + + - 96 AS col1 FROM tab0 AS cor0
----
-81
-9
1

query I rowsort
SELECT DISTINCT - 82 * + + 50 AS col1 FROM tab0
----
-4100

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT DISTINCT + 55 DIV + - col0 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6190
SELECT DISTINCT + 55 / + - col0 col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT + + COUNT( DISTINCT + + 68 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT + + COUNT ( DISTINCT + + 68 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT + - COUNT( * ) col1, + COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6192
SELECT + - COUNT ( * ) col1, + COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL > - 31 * - col2
----

query I rowsort
SELECT - col2 * + + 56 FROM tab2 AS cor0
----
-1288
-2240
-3248

query I rowsort
SELECT + 19 * + 7 AS col0 FROM tab2 AS cor0
----
133
133
133

query I rowsort
SELECT - col0 * + col1 FROM tab1 WHERE NOT - col0 * + 83 * - 64 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6197
SELECT DISTINCT + 33 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-6197
SELECT DISTINCT + 33 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
33
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6199
SELECT - ( - 38 ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT - ( - 38 ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 59 * col2 FROM tab1
----
-3481
-4012
-5664

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 = + col1 * - col2 / - 44 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + + col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * - 1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL + - SUM( DISTINCT + col1 ) + - 39 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + - SUM ( DISTINCT + col1 ) + - 39 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT - 71 + + ( + 87 ) FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col2 + + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
141
33
45

query II rowsort
SELECT 59, - col2 AS col0 FROM tab2 AS cor0
----
59
-23
59
-40
59
-58

query I rowsort
SELECT DISTINCT + ( + + 52 ) AS col1 FROM tab1 AS cor0
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 6 * - col0 IS NULL
----

query I rowsort
SELECT ALL - + col1 * - col1 * + col1 FROM tab1 AS cor0
----
103823
125
2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT 24 + + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT 24 + + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 58 + - col1 AS col1 FROM tab1 AS cor0
----
11
44
53

query I rowsort
SELECT ALL + - col0 + - ( + col1 ) AS col0 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT + + ( - + 59 ) FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + SUM( + + col1 ) + - 57 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6216
SELECT + SUM ( + + col1 ) + - 57 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT + 67 + - col1 FROM tab1 cor0
----
20
53
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6218
SELECT DISTINCT COUNT( * ) + - 53 FROM tab0 AS cor0 WHERE - 35 = - - CAST( NULL AS DECIMAL )
----
-53

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT COUNT ( * ) + - 53 FROM tab0 AS cor0 WHERE - 35 = - - CAST ( NULL AS REAL )
----
-53

query I rowsort
SELECT DISTINCT + + 92 AS col2 FROM tab1 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + col1 + - 34 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT DISTINCT col2 * + col1 DIV - col1 - + 70 AS col1 FROM tab1
----
-129
-138
-166

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT col2 * + col1 / - col1 - + 70 AS col1 FROM tab1
----
-129
-138
-166

query II rowsort
SELECT 64, col0 * + col1 * - col0 + + col0 AS col0 FROM tab0
----
64
-158862
64
-18210
64
-9312

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab1 AS cor0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 21 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL COUNT( DISTINCT - CAST( - 85 AS SIGNED ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL COUNT ( DISTINCT - CAST ( - 85 AS INTEGER ) ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT SUM( col2 ) + + 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT SUM ( col2 ) + + 78 FROM tab0
----
234

query I rowsort
SELECT col1 * + ( + 74 * col2 ) FROM tab0 WHERE NOT 96 + col2 >= - col2 / col0 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 12 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 * - col0 + col1 ) AND col2
----

query I rowsort
SELECT DISTINCT ( 97 ) AS col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT MAX( ALL + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6233
SELECT MAX ( ALL + col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 0 ) NOT IN ( col2 * 28 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT MIN( ALL 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6235
SELECT MIN ( ALL 72 ) FROM tab2
----
72

query I rowsort
SELECT - 23 + - col0 AS col0 FROM tab0
----
-110
-120
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE + 24 < ( NULL )
----

query I rowsort
SELECT ( + ( + 47 ) ) + col1 AS col1 FROM tab2
----
114
124
98

query I rowsort
SELECT ALL - col0 + + 87 * col2 FROM tab2 WHERE col2 BETWEEN col1 * - 68 + 5 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT CAST( + ( col0 ) AS SIGNED ) + 67 * col0 FROM tab0
----
1020
5916
6596

skipif mysql # not compatible
query I rowsort label-6240
SELECT CAST ( + ( col0 ) AS INTEGER ) + 67 * col0 FROM tab0
----
1020
5916
6596

query I rowsort
SELECT ALL - 31 + col1 AS col0 FROM tab1
----
-17
-26
16

query I rowsort
SELECT - 20 + - col0 AS col1 FROM tab1
----
-105
-111
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + 37 + MAX( col1 ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 37 + MAX ( col1 ) AS col2 FROM tab1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT DISTINCT MAX( - col2 ) / - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 99 + - 20 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT MAX ( - col2 ) / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 99 + - 20 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - 57 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 33 * col2 FROM tab2 WHERE NOT ( col1 ) = col2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6247
SELECT * FROM tab2 WHERE CAST( 82 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6247
SELECT * FROM tab2 WHERE CAST ( 82 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1
----
-93
-93
-93

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 WHERE NULL IS NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT - 52 * + SUM( ALL - 66 ) + 65 * 77 AS col2 FROM tab1 cor0
----
15301

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - 52 * + SUM ( ALL - 66 ) + 65 * 77 AS col2 FROM tab1 cor0
----
15301

query I rowsort
SELECT - 95 AS col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT + 41 AS col1 FROM tab2 AS cor0 WHERE ( col0 * col2 + 94 ) IS NULL
----

query I rowsort
SELECT - 90 * col2 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 46 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 4 AS col0 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT ALL + CAST( 58 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + CAST ( 58 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL MAX( ALL + 3 ) / + MIN( DISTINCT - 81 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( 34 + 43 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT ALL MAX ( ALL + 3 ) / + MIN ( DISTINCT - 81 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( 34 + 43 )
----
NULL

query I rowsort
SELECT - + 99 - 31 * 39 AS col2 FROM tab0 AS cor0
----
-1308
-1308
-1308

query I rowsort
SELECT - + 85 - - col1 FROM tab2 AS cor0
----
-18
-34
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - col0 BETWEEN NULL AND ( + col0 * ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT ALL - col2 DIV col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - col2 / col0 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT - 54 DIV + 89 - ( col0 + - ( col1 + - col2 ) ) AS col2 FROM tab0 AS cor0
----
-195
-76
19

skipif mysql # not compatible
query I rowsort label-6263
SELECT - 54 / + 89 - ( col0 + - ( col1 + - col2 ) ) AS col2 FROM tab0 AS cor0
----
-195
-76
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col2 * + 97 + col2 ) AND - 3
----

query I rowsort
SELECT + + 15 - col2 AS col0 FROM tab2 AS cor0
----
-25
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - COUNT( * ) - + 92 AS col2 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-6266
SELECT - COUNT ( * ) - + 92 AS col2 FROM tab1
----
-95

query I rowsort
SELECT DISTINCT 95 + + col0 + col0 * - col0 FROM tab1
----
-2455
-7045
-8095

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - COUNT( * ) - + COUNT( * ) + MIN( col1 ) * 86 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-6269
SELECT - COUNT ( * ) - + COUNT ( * ) + MIN ( col1 ) * 86 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT MIN( 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6270
SELECT MIN ( 8 ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL - MAX( + col1 ) * - 13 + - COUNT( * ) AS col1 FROM tab2 WHERE col2 / col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - MAX ( + col1 ) * - 13 + - COUNT ( * ) AS col1 FROM tab2 WHERE col2 / col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - 45 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT - - 86 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT ALL 0 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL 0 / - col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - 84 col1 FROM tab1
----
14
-84
47
-84
5
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL MAX( DISTINCT col0 ) + + MAX( DISTINCT - 74 ) FROM tab0 AS cor0 WHERE + 7 - - - col2 + 10 BETWEEN col1 AND + 72 * + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL MAX ( DISTINCT col0 ) + + MAX ( DISTINCT - 74 ) FROM tab0 AS cor0 WHERE + 7 - - - col2 + 10 BETWEEN col1 AND + 72 * + col2 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + SUM( 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6278
SELECT + SUM ( 96 ) FROM tab2 AS cor0
----
288

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col0 >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT CAST( + col2 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 <= + col0 + - ( 33 )
----

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 <= + col0 + - ( 33 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN 96 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT + COUNT( - 17 ) + 10 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + COUNT ( - 17 ) + 10 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL ( COUNT( * ) ) + + 90 AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL ( COUNT ( * ) ) + + 90 AS col0 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT ALL + CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + 38 + + ( COUNT( * ) ) - ( + 59 ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + 38 + + ( COUNT ( * ) ) - ( + 59 ) AS col2 FROM tab0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
138
65
90

query I rowsort
SELECT DISTINCT + 88 * - 3 * + col0 FROM tab2
----
-12144
-16896
-19800

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - ( + MIN( - + col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - ( + MIN ( - + col1 ) ) AS col0 FROM tab0
----
81

query II rowsort
SELECT ALL - ( + + col2 ) AS col2, 78 AS col2 FROM tab0
----
-10
78
-47
78
-99
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + COUNT( * ) + COUNT( * ) + + 99 * ( - SUM( + col2 ) ) FROM tab0
----
-15438

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + 99 * ( - SUM ( + col2 ) ) FROM tab0
----
-15438

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + 62 + MIN( col2 ) col1 FROM tab1 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6291
SELECT + 62 + MIN ( col2 ) col1 FROM tab1 AS cor0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6292
SELECT + - ( - - col2 ) + col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT + - ( - - col2 ) + col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT BETWEEN + 72 * - col1 + + col1 * 79 + col1 AND + col1 + + col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + col2 ) = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL + + 33 + - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + + 33 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT - - 22 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT - - 22 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab2 WHERE NOT + + 37 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6298
SELECT - CAST( NULL AS SIGNED ) AS col2, - MIN( ALL - - ( + - col2 ) ) AS col0 FROM tab0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6298
SELECT - CAST ( NULL AS INTEGER ) AS col2, - MIN ( ALL - - ( + - col2 ) ) AS col0 FROM tab0
----
NULL
99

query I rowsort
SELECT ALL ( + + col0 ) AS col0 FROM tab0 WHERE + col0 NOT IN ( - - col0 )
----

query II rowsort
SELECT - 37, - col1 AS col2 FROM tab0
----
-37
-1
-37
-21
-37
-81

query II rowsort
SELECT ALL + col1 AS col2, ( + 35 ) FROM tab2
----
51
35
67
35
77
35

query I rowsort
SELECT DISTINCT + + 18 FROM tab0 cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 16 + col0 IS NOT NULL
----

query I rowsort
SELECT - ( - - col1 ) + + col1 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT 33 > col0
----
0
420

query I rowsort
SELECT - col1 * + + col2 + - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT COUNT( * ) * 87 col2 FROM tab0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6306
SELECT COUNT ( * ) * 87 col2 FROM tab0
----
261

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - col0 + + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IN ( 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + ( - COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + ( - COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
67

query I rowsort
SELECT DISTINCT + 78 * - 26 + - col0 FROM tab0 AS cor0
----
-2043
-2115
-2125

query I rowsort
SELECT + 35 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 + + - 32 col0, + col0 AS col1 FROM tab2 AS cor0
----
-9
46
26
75
8
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 col1 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL + COUNT( ALL col0 ) + + 27 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + COUNT ( ALL col0 ) + + 27 AS col0 FROM tab1 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 WHERE ( - - 8 + - ( + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 76, - 6 AS col1 FROM tab2
----
-76
-6
-76
-6
-76
-6

query I rowsort
SELECT 10 * - col1 FROM tab1
----
-140
-470
-50

query I rowsort
SELECT - ( 38 ) AS col0 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL + col1 + + 21 AS col1 FROM tab0
----
102
22
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 22 + col0 / col0 + 33 IN ( + col2 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 51 * - - COUNT( * ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-6323
SELECT 51 * - - COUNT ( * ) AS col0 FROM tab1
----
153

query I rowsort
SELECT 69 * col2 AS col2 FROM tab2
----
1587
2760
4002

query III rowsort
SELECT * FROM tab1 WHERE - 4 / + ( - ( + col1 ) ) + col2 / - + col1 * + col1 >= 83
----

query I rowsort
SELECT 83 + col2 * - col0 + + 52 + - - col0 AS col0 FROM tab1 cor0
----
-4710
-4795
-5962

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT COUNT( DISTINCT - 58 ) * + COUNT( ALL - col2 ) FROM tab2 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6327
SELECT COUNT ( DISTINCT - 58 ) * + COUNT ( ALL - col2 ) FROM tab2 WHERE - col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 28 + col2 - col0 AS col0 FROM tab2
----
11
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT - ( - SUM( DISTINCT - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6329
SELECT - ( - SUM ( DISTINCT - col0 ) ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6330
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-6330
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

query I rowsort
SELECT + + 60 * col2 - + + col0 FROM tab1 AS cor0
----
3455
3989
5709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6332
SELECT ALL 10 DIV - - 83 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 10 / - - 83 * COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 90 * + col1 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT + col2 DIV + + col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT + col2 / + + col1 AS col2 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT col1, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - COUNT( - - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - COUNT ( - - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL MIN( + 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL MIN ( + 67 ) FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT 36 + + col2 AS col1 FROM tab2 WHERE NOT + - CAST( 32 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6338
SELECT 36 + + col2 AS col1 FROM tab2 WHERE NOT + - CAST ( 32 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT 87 * - 35 FROM tab2
----
-3045

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6341
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - CAST( - - 99 AS SIGNED ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6341
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - CAST ( - - 99 AS INTEGER ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - - COUNT( * ) * - 65 AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6342
SELECT - - COUNT ( * ) * - 65 AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - COUNT( + 52 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - COUNT ( + 52 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT 29 AS col1, - 7 FROM tab0
----
29
-7
29
-7
29
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-6345
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6346
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6346
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT DISTINCT + 90 * 58 DIV 55 AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + 90 * 58 / 55 AS col1 FROM tab0 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> 99 * + - 38 * + 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 61 col0 FROM tab1 cor0
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL + MIN( ALL col2 ) + - - ( - ( - 49 ) ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + MIN ( ALL col2 ) + - - ( - ( - 49 ) ) AS col1 FROM tab2 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6351
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + CAST( + 67 AS SIGNED ) * - - 66 * - - col0 + col1 IS NULL AND ( NOT ( NULL < ( + col2 - col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-6351
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + CAST ( + 67 AS INTEGER ) * - - 66 * - - col0 + col1 IS NULL AND ( NOT ( NULL < ( + col2 - col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT CAST( NULL AS SIGNED ) + - 20 * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6352
SELECT CAST ( NULL AS INTEGER ) + - 20 * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT 82 + + CAST( 79 AS SIGNED ) * - col1 FROM tab2 cor0
----
-3947
-5211
-6001

skipif mysql # not compatible
query I rowsort label-6353
SELECT 82 + + CAST ( 79 AS INTEGER ) * - col1 FROM tab2 cor0
----
-3947
-5211
-6001

query I rowsort
SELECT DISTINCT 26 + col0 AS col1 FROM tab2 AS cor0
----
101
72
90

query I rowsort
SELECT + col1 * col1 + + + 66 FROM tab0
----
507
6627
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6356
SELECT col0 * ( col1 ) * col0 + 44 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT col0 * ( col1 ) * col0 + 44 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 72 * - col1, - col1, + + col1 )
----

query I rowsort
SELECT 87 * - 49 * 94 AS col2 FROM tab1 AS cor0
----
-400722
-400722
-400722

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL - ( - 70 ) * - COUNT( * ) FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - ( - 70 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-210

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / col0 * - col2 * + 5 * + + 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - + 8 - - - COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6361
SELECT - + 8 - - - COUNT ( * ) FROM tab0 AS cor0
----
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 2 ) <= + col2 * - col0 * + col0 * 75
----

query I rowsort
SELECT DISTINCT ( col1 ) + + 92 FROM tab1 AS cor0
----
106
139
97

query IIIIII rowsort
SELECT * FROM tab0 cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL < NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6365
SELECT + col0 - + col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT + col0 - + col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 18 / 79 IS NULL AND NOT 95 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col2 - 92 * - col2 <> NULL )
----

query I rowsort
SELECT - - col2 * + 34 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - SUM( ALL 11 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - SUM ( ALL 11 ) FROM tab2 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6371
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6371
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
3

query II rowsort
SELECT - - col0 AS col2, 61 * - col2 * + + col1 AS col2 FROM tab1 AS cor0
----
51
-81984
85
-17995
91
-194956

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL 92 * + - COUNT( * ) FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL 92 * + - COUNT ( * ) FROM tab1 AS cor0
----
-276

query I rowsort
SELECT 63 * - - col2 * - 74 AS col2 FROM tab1
----
-275058
-317016
-447552

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT NULL < + + col1
----

query I rowsort
SELECT ALL + 54 * ( - col0 ) FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT + + col2 * col0 FROM tab2 WHERE NOT NULL >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT COUNT( * ) / + + CAST( NULL AS SIGNED ) * + + 49 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * + + 49 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT DISTINCT + col1 DIV + - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT + col1 / + - col2 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - MIN( + col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6380
SELECT - MIN ( + col2 ) AS col2 FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 69 NOT IN ( + col2 * - - col0 * - col1, 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6382
SELECT DISTINCT - 58 DIV - SUM( DISTINCT - - 47 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - 58 / - SUM ( DISTINCT - - 47 ) FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 90 )
----

query II rowsort
SELECT DISTINCT col1, - 1 + - col0 * - + col1 AS col2 FROM tab2 cor0 WHERE 85 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 37 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT - ( + + MAX( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - ( + + MAX ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6387
SELECT + MAX( DISTINCT 73 ) DIV COUNT( * ) * - 90 FROM tab1 AS cor0
----
-2160

skipif mysql # not compatible
query I rowsort label-6387
SELECT + MAX ( DISTINCT 73 ) / COUNT ( * ) * - 90 FROM tab1 AS cor0
----
-2160

query I rowsort
SELECT + col0 * - 19 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT ( + + CAST( - 73 AS SIGNED ) ) - - + col2 - - col1 FROM tab1
----
-9
37
42

skipif mysql # not compatible
query I rowsort label-6389
SELECT ( + + CAST ( - 73 AS INTEGER ) ) - - + col2 - - col1 FROM tab1
----
-9
37
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT col1 DIV + + col0 - 95 AS col2 FROM tab2
----
-94
-94
-95

skipif mysql # not compatible
query I rowsort label-6390
SELECT col1 / + + col0 - 95 AS col2 FROM tab2
----
-94
-94
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT + col1 / - + CAST( NULL AS SIGNED ) + - ( col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + col1 / - + CAST ( NULL AS INTEGER ) + - ( col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 50 + - col0 * - - 59 AS col0 FROM tab2 AS cor0
----
-2664
-3726
-4375

query I rowsort
SELECT ALL 35 * col2 + + 23 FROM tab0 AS cor0
----
1668
3488
373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + 34 * - col2 AS col1 FROM tab0 cor0
----
-1598
-3366
-340

query I rowsort
SELECT DISTINCT 75 * + ( + - 61 ) AS col0 FROM tab2
----
-4575

query I rowsort
SELECT DISTINCT + col0 * 68 * - col0 AS col2 FROM tab2
----
-143888
-278528
-382500

query I rowsort
SELECT + ( + 2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT - 20 * - SUM( 81 ) AS col0 FROM tab1 AS cor0
----
4860

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 20 * - SUM ( 81 ) AS col0 FROM tab1 AS cor0
----
4860

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT ALL 76 DIV + 29 FROM tab0 AS cor0 WHERE - ( - ( col1 ) ) IS NOT NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL 76 / + 29 FROM tab0 AS cor0 WHERE - ( - ( col1 ) ) IS NOT NULL
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 88 ) col0 FROM tab2 AS cor0 WHERE NOT 79 <= + - col1
----
-88
-88
-88

query I rowsort
SELECT - 76 * + col0 * + - 53 * + col1 AS col1 FROM tab2 AS cor0
----
19849984
20240700
9449688

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + MAX( ALL + 52 ) col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6403
SELECT + MAX ( ALL + 52 ) col0 FROM tab0 AS cor0
----
52

query I rowsort
SELECT ALL - col1 * ( - col0 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6405
SELECT ALL + CAST( - col1 AS SIGNED ) AS col0, - 8 AS col0 FROM tab1 AS cor0
----
-14
-8
-47
-8
-5
-8

skipif mysql # not compatible
query II rowsort label-6405
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0, - 8 AS col0 FROM tab1 AS cor0
----
-14
-8
-47
-8
-5
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT col1 - - CAST( NULL AS SIGNED ) + - 29 AS col2 FROM tab0 WHERE NOT col0 * - ( col2 ) <= + + col2 * + - col1 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6406
SELECT col1 - - CAST ( NULL AS INTEGER ) + - 29 AS col2 FROM tab0 WHERE NOT col0 * - ( col2 ) <= + + col2 * + - col1 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + 96 + col1 + - - col2 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col1 * - - 4 * + col2, + 60 AS col1 FROM tab1
----
1180
60
12784
60
5376
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + COUNT( * ) + 8 AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6410
SELECT + COUNT ( * ) + 8 AS col0 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - + COUNT( ALL - col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6411
SELECT - + COUNT ( ALL - col1 ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 31 + - 99 - + - 59, + col2 AS col1 FROM tab2 AS cor0
----
-9
23
-9
40
-9
58

query I rowsort
SELECT DISTINCT + 22 + - - col0 FROM tab1 AS cor0
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + ( - + MIN( ALL - + 91 ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + ( - + MIN ( ALL - + 91 ) ) AS col2 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6415
SELECT DISTINCT 87 DIV + col1 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
1
-81
4
-21
87
-1

skipif mysql # not compatible
query II rowsort label-6415
SELECT DISTINCT 87 / + col1 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
1
-81
4
-21
87
-1

query I rowsort
SELECT col1 * + col2 + - - col1 + - + col2 FROM tab0 AS cor0
----
1
221
3841

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT + 67 + - COUNT( * ) col1, + 27 FROM tab0 AS cor0
----
64
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6417
SELECT + 67 + - COUNT ( * ) col1, + 27 FROM tab0 AS cor0
----
64
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - COUNT( * ) + + MAX( + 81 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6418
SELECT - COUNT ( * ) + + MAX ( + 81 ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL + col0 + - + col2 + 16 FROM tab0 AS cor0
----
-16
14
93

query I rowsort
SELECT col1 + - col2 + - ( - + 29 ) * - - col1 AS col1 FROM tab0 AS cor0
----
-69
2383
620

query I rowsort
SELECT DISTINCT col0 + - 73 FROM tab2
----
-27
-9
2

query I rowsort
SELECT DISTINCT col2 + + 18 AS col1 FROM tab1
----
114
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT + - 37 + - 88 AS col2 FROM tab0 WHERE - col0 NOT IN ( - col0 * - col1 / col1, - CAST( - col1 AS SIGNED ) )
----
-125
-125
-125

skipif mysql # not compatible
query I rowsort label-6423
SELECT + - 37 + - 88 AS col2 FROM tab0 WHERE - col0 NOT IN ( - col0 * - col1 / col1, - CAST ( - col1 AS INTEGER ) )
----
-125
-125
-125

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + - col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6425
SELECT CAST( NULL AS SIGNED ), - col1 * 53 - + col0 AS col1 FROM tab0
----
NULL
-1200
NULL
-150
NULL
-4308

skipif mysql # not compatible
query II rowsort label-6425
SELECT CAST ( NULL AS INTEGER ), - col1 * 53 - + col0 AS col1 FROM tab0
----
NULL
-1200
NULL
-150
NULL
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT - SUM( ALL col0 ) * COUNT( * ) + + + ( + MIN( - col0 ) ) AS col2 FROM tab2
----
-630

skipif mysql # not compatible
query I rowsort label-6426
SELECT - SUM ( ALL col0 ) * COUNT ( * ) + + + ( + MIN ( - col0 ) ) AS col2 FROM tab2
----
-630

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 WHERE ( NULL ) <> col1 + 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT 17 DIV + 68 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT 17 / + 68 FROM tab0
----
0
0
0

query I rowsort
SELECT 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT ( + ( 81 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 90 FROM tab0
----
-1350
-7830
-8730

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 * + 17 * - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col0 * + + 72 FROM tab2 AS cor0
----
3312
4608
5400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 87 BETWEEN - col0 AND col0 + 55 + + + col2 - + col1 + col1 / - 79 * - col1 + + + 76
----

query I rowsort
SELECT ALL - 99 * 17 FROM tab2 cor0
----
-1683
-1683
-1683

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 >= + col2 * + 8 + col1 + + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + + 72 * + 70 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 13 / - col0 / 15 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 67 col1 FROM tab1
----
-3149
-335
-938

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 * + 86 IS NOT NULL
----

query I rowsort
SELECT - ( - - 75 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 14, 39 + + 34 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT + COUNT( * ) DIV - + 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT + COUNT ( * ) / - + 64 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6445
SELECT + + 98 * - + col1 * + ( col0 ) + + col2 + - - 8 - - + col1 DIV CAST( 14 AS SIGNED ) + col1 - - col1 FROM tab1 cor0
----
-41573
-418973
-69839

skipif mysql # not compatible
query I rowsort label-6445
SELECT + + 98 * - + col1 * + ( col0 ) + + col2 + - - 8 - - + col1 / CAST ( 14 AS INTEGER ) + col1 - - col1 FROM tab1 cor0
----
-41573
-418973
-69839

query I rowsort
SELECT - col0 + - - col1 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL 59 AS col2 FROM tab2 WHERE NOT NULL = col2
----

query I rowsort
SELECT DISTINCT - col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab0 cor0
----
88

query II rowsort
SELECT ALL 45, 20 AS col2 FROM tab2 AS cor0
----
45
20
45
20
45
20

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + ( + col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 49 * - 33 AS col2 FROM tab1 AS cor0
----
1617
1617
1617

query I rowsort
SELECT 28 - col1 FROM tab0 cor0
----
-53
27
7

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + - 90 IS NOT NULL
----
1
21
81

query II rowsort
SELECT - col0 - + - col2 AS col0, 78 FROM tab0
----
-77
78
2
78
32
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + MIN( ALL ( + 71 ) ) FROM tab1, tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + MIN ( ALL ( + 71 ) ) FROM tab1, tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT + SUM( col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - - 81 FROM tab1 AS cor0 WHERE NOT NULL <= col0 * - col0
----

query I rowsort
SELECT 45 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - MAX( DISTINCT + - 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6460
SELECT - MAX ( DISTINCT + - 78 ) FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 6 * + col0 AND - + 15 * - - 97
----
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 6 * + col0 AND - + 15 * - - 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6462
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6462
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL COUNT( DISTINCT col0 ) - + 49 col1 FROM tab1 AS cor0 WHERE - col2 * 26 IS NULL
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6463
SELECT ALL COUNT ( DISTINCT col0 ) - + 49 col1 FROM tab1 AS cor0 WHERE - col2 * 26 IS NULL
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT ALL + ( - CAST( + 19 AS SIGNED ) ) FROM tab2 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL + ( - CAST ( + 19 AS INTEGER ) ) FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT DISTINCT + COUNT( * ) + + MIN( DISTINCT - 17 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + COUNT ( * ) + + MIN ( DISTINCT - 17 ) FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + SUM( DISTINCT ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6466
SELECT + SUM ( DISTINCT ( col0 ) ) FROM tab0
----
199

query II rowsort
SELECT + 11 AS col0, - col1 AS col0 FROM tab1
----
11
-14
11
-47
11
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6468
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL col0, - 8 FROM tab0
----
15
-8
87
-8
97
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 32 + COUNT( * ) AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-6470
SELECT 32 + COUNT ( * ) AS col0 FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, 25 col1 FROM tab2 WHERE NOT NULL BETWEEN - col1 * ( col1 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT 72 + - - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6472
SELECT 72 + - - COUNT ( * ) FROM tab2
----
75

query II rowsort
SELECT col1 AS col0, col0 * + col0 FROM tab2 AS cor0
----
51
2116
67
5625
77
4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 1 AS col1 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL 76 + + + col1 + + ( CAST( + col1 AS SIGNED ) ) FROM tab0 cor0
----
118
238
78

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL 76 + + + col1 + + ( CAST ( + col1 AS INTEGER ) ) FROM tab0 cor0
----
118
238
78

query I rowsort
SELECT DISTINCT + 46 + - col1 * + col2 AS col0 FROM tab2
----
-1127
-3034
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT COUNT( * ) * + 89 AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-6478
SELECT COUNT ( * ) * + 89 AS col0 FROM tab1
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT ALL col1 * CAST( NULL AS SIGNED ) - + col2 + col1 FROM tab0 WHERE NOT NULL > 87 + 43
----

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL col1 * CAST ( NULL AS INTEGER ) - + col2 + col1 FROM tab0 WHERE NOT NULL > 87 + 43
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 cor0 WHERE NOT + col1 + col1 = col1
----
10
47
99

query I rowsort
SELECT ALL + - 54 * + + col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 + + 78 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 + + 78 >= NULL
----

query I rowsort
SELECT + - col1 + + 99 FROM tab0 cor0
----
18
78
98

query I rowsort
SELECT DISTINCT + col2 + 4 FROM tab1 cor0
----
100
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL + col0 + CAST( + col0 AS SIGNED ) + - 48 AS col2 FROM tab0
----
-18
126
146

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + col0 + CAST ( + col0 AS INTEGER ) + - 48 AS col2 FROM tab0
----
-18
126
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 WHERE - 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 WHERE - 63 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col1 - - 67, 98 )
----

query II rowsort
SELECT col1, + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT - MIN( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE + 3 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE + 3 IS NOT NULL
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75, 45 col1 FROM tab2
----
75
45

query I rowsort
SELECT DISTINCT col2 * - 40 AS col2 FROM tab1
----
-2360
-2720
-3840

query II rowsort
SELECT ALL col2 AS col2, 18 AS col2 FROM tab1
----
59
18
68
18
96
18

query II rowsort
SELECT - col0 AS col0, - col2 AS col0 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT col0 * + 22 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT ALL - - 46 * - col0 FROM tab0 AS cor0
----
-4002
-4462
-690

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 * + + col0 * 12 + 99 + col1 * col0, + col1, - - col0 * - col1 + - 43 )
----

query I rowsort
SELECT ALL - - col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT - 45 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT - 45 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT - 21 - col0 - + col1 + + - col2 * + 2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col1 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT ALL - + MIN( ALL col2 ), COUNT( * ) AS col1 FROM tab1 cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-6501
SELECT ALL - + MIN ( ALL col2 ), COUNT ( * ) AS col1 FROM tab1 cor0
----
-59
3

query I rowsort
SELECT ALL - ( ( + - 40 ) ) FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + col0 - - col2 col2 FROM tab2 AS cor0
----
113
142
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - ( - - col1 ) * + + 24 - - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, 55 AS col1 FROM tab2 cor0 WHERE NOT - col2 NOT IN ( - col0 * + 0, 87, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + MIN( DISTINCT - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6508
SELECT + MIN ( DISTINCT - + col2 ) FROM tab0
----
-99

query II rowsort
SELECT + col0 AS col1, ( + col0 ) AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - col0 * 71 FROM tab1
----
-3621
-6035
-6461

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> + 79
----
0

skipif mysql # not compatible
query I rowsort label-6512
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT 98 - COUNT( * ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT 98 - COUNT ( * ) FROM tab2
----
95

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE + 15 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL 83 - COUNT( * ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL 83 - COUNT ( * ) AS col2 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT + COUNT( * ) - - MIN( + 79 ) AS col2 FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + COUNT ( * ) - - MIN ( + 79 ) AS col2 FROM tab0 cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, 57 FROM tab1 AS cor0
----
14
57
47
57
5
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT - CAST( NULL AS SIGNED ) + + col2 + - - 98 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 IN ( + col1, col1 * col1 / + CAST( NULL AS SIGNED ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT - CAST ( NULL AS INTEGER ) + + col2 + - - 98 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 IN ( + col1, col1 * col1 / + CAST ( NULL AS INTEGER ) )
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + - 65 AS col1 FROM tab2 cor0
----
1495
2600
3770

query II rowsort
SELECT - + col2 AS col1, 30 + 77 FROM tab0 AS cor0
----
-10
107
-47
107
-99
107

query I rowsort
SELECT DISTINCT 16 * + col2 FROM tab0
----
1584
160
752

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT - 71 DIV col1 + - col0 AS col1 FROM tab1 WHERE NOT + col2 > + col2
----
-56
-92
-99

skipif mysql # not compatible
query I rowsort label-6523
SELECT - 71 / col1 + - col0 AS col1 FROM tab1 WHERE NOT + col2 > + col2
----
-56
-92
-99

query I rowsort
SELECT ( + 59 ) * 27 - + col2 FROM tab0 AS cor0
----
1494
1546
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + COUNT( * ) * + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-6526
SELECT + COUNT ( * ) * + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-468

query I rowsort
SELECT ALL 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6528
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST( NULL AS DECIMAL ) - - + 30 * col0 / - col2
----

skipif mysql # not compatible
query III rowsort label-6528
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST ( NULL AS REAL ) - - + 30 * col0 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL MIN( col1 ) * COUNT( * ) * 81 col2 FROM tab0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6529
SELECT ALL MIN ( col1 ) * COUNT ( * ) * 81 col2 FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT DISTINCT - 51 DIV + col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT - 51 / + col0 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6532
SELECT - + COUNT( - col0 ) * + 19 * + + CAST( NULL AS SIGNED ) + ( + - 66 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT - + COUNT ( - col0 ) * + 19 * + + CAST ( NULL AS INTEGER ) + ( + - 66 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - + MIN( ALL 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6533
SELECT - + MIN ( ALL 93 ) FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + COUNT( * ) + - 77 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + COUNT ( * ) + - 77 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + - col2 col0 FROM tab2 AS cor0
----
23
41
58

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 IN ( + 9 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < col2 + - col1 * + col2 + col1 * - + 46
----

query I rowsort
SELECT ALL + ( + col0 ) + 8 + 66 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT - 75 + + - 96 FROM tab1
----
-171
-171
-171

query I rowsort
SELECT ALL - col0 + + 53 AS col1 FROM tab2
----
-11
-22
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT - col2 * col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-6542
SELECT - col2 * col0 / + col1 AS col2 FROM tab1 AS cor0
----
-1003
-131
-349

query I rowsort
SELECT ALL - col2 + 18 FROM tab1 AS cor0
----
-41
-50
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab0 AS cor0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * 91 > NULL
----

query I rowsort
SELECT ALL 81 - - col1 * + col1 FROM tab0
----
522
6642
82

query I rowsort
SELECT ALL col2 * - + 17 - + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1247
-1683

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE 21 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - ( col0 ) col0 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT ( 44 ) DIV + + SUM( + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT ( 44 ) / + + SUM ( + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab0 cor0
----
14

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT col0 * + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6553
SELECT col0 * + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 23 col0 FROM tab0
----
15
23
87
23
97
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT + COUNT( * ) * + + 58 * CAST( - - MAX( ( - col2 ) ) AS SIGNED ) FROM tab1
----
-10266

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COUNT ( * ) * + + 58 * CAST ( - - MAX ( ( - col2 ) ) AS INTEGER ) FROM tab1
----
-10266

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT 94 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6556
SELECT 94 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + 79 * - - 81 AS col0 FROM tab1
----
6399

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6558
SELECT DISTINCT - col1 AS col0, - col2 - - + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT - col1 AS col0, - col2 - - + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - 42 * + - MIN( ALL col0 ) * + MAX( + col2 ) FROM tab0 AS cor0
----
62370

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 42 * + - MIN ( ALL col0 ) * + MAX ( + col2 ) FROM tab0 AS cor0
----
62370

query I rowsort
SELECT DISTINCT col0 + + 46 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 71 AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6561
SELECT DISTINCT + 24 DIV + col1 AS col0, 15 + + col0 AS col2 FROM tab0
----
0
30
1
102
24
112

skipif mysql # not compatible
query II rowsort label-6561
SELECT DISTINCT + 24 / + col1 AS col0, 15 + + col0 AS col2 FROM tab0
----
0
30
1
102
24
112

query I rowsort
SELECT 40 + 26 AS col1 FROM tab1
----
66
66
66

query I rowsort
SELECT DISTINCT - 36 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + + ( - 86 ) + + SUM( col2 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + + ( - 86 ) + + SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL ( - col1 ) + - + 53 + col0 + - col2 FROM tab1 cor0
----
-112
-32
-77

query I rowsort
SELECT DISTINCT - col1 + - col1 / - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col0 + - - col1 + - + col2 AND 71 * + col2 * 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - COUNT( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6568
SELECT - COUNT ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT SUM( ALL - 81 ) AS col1 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6569
SELECT SUM ( ALL - 81 ) AS col1 FROM tab2 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ( - COUNT( + col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6570
SELECT ( - COUNT ( + col0 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col2 * - + col1 * + col1 + - 68 AS col1 FROM tab2
----
-237228
-260430
-59891

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT MAX( DISTINCT - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6572
SELECT MAX ( DISTINCT - + col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab1 WHERE - ( - col0 ) + - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6573
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab1 WHERE - ( - col0 ) + - col2 IS NOT NULL
----
3

query I rowsort
SELECT - col0 - 18 FROM tab2
----
-64
-82
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT - col0 + - CAST( - col2 AS SIGNED ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6575
SELECT - col0 + - CAST ( - col2 AS INTEGER ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL COUNT( DISTINCT - - 32 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COUNT ( DISTINCT - - 32 ) FROM tab2
----
1

query I rowsort
SELECT 42 * + col1 FROM tab1 WHERE col2 IS NOT NULL
----
1974
210
588

onlyif mysql # DIV for integer division: 
query II rowsort label-6578
SELECT - + col1 DIV - col2 * + - 47, + col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-6578
SELECT - + col1 / - col2 * + - 47, + col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 * - col1 * + 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN - - col2 * + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * ( 97 ) FROM tab2 AS cor0
----
4462
6208
7275

query I rowsort
SELECT ALL + - 52 AS col1 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - COUNT( - - 83 ) * + 43 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6583
SELECT - COUNT ( - - 83 ) * + 43 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT COUNT( * ) DIV + 80 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT COUNT ( * ) / + 80 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 18 * - - col0 FROM tab0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT - col1 * - CAST( NULL AS SIGNED ) * + + ( + + col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT - col1 * - CAST ( NULL AS INTEGER ) * + + ( + + col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - COUNT( + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( + col0 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 83 + + col0 * + col1 * + + 95 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col1 col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL - 77 * - CAST( - + 2 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
-205
-239
-245

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - 77 * - CAST ( - + 2 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-205
-239
-245

query I rowsort
SELECT ALL + 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - SUM( DISTINCT - col1 ) * - ( + - COUNT( * ) ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-6592
SELECT - SUM ( DISTINCT - col1 ) * - ( + - COUNT ( * ) ) FROM tab2
----
585

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6593
SELECT - ( - CAST( NULL AS SIGNED ) ) + - + ( + CAST( NULL AS DECIMAL ) ), CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6593
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - + ( + CAST ( NULL AS REAL ) ), CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - + col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - ( + 57 ) + + col0 + col1 + col1 FROM tab2 AS cor0
----
152
161
91

query I rowsort
SELECT ALL 61 * - col1 AS col0 FROM tab1 AS cor0
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT 50 * + ( + MIN( 62 ) ) AS col2 FROM tab0, tab2 AS cor0
----
3100

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 50 * + ( + MIN ( 62 ) ) AS col2 FROM tab0, tab2 AS cor0
----
3100

query I rowsort
SELECT ALL ( + - col1 ) + + + col2 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT ( - 25 ) - + 70 + + col1 * + + col2 * - 27 AS col1 FROM tab1
----
-36383
-8060
-86387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6600
SELECT DISTINCT + 78 * 44 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + 78 * 44 / CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - SUM( DISTINCT - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT - SUM ( DISTINCT - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 70 * + - 80 + - + ( - 56 ) + + col2 - - 16 + - + col2 + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 70 * + - 80 + - + ( - 56 ) + + col2 - - 16 + - + col2 + + col1 IS NULL
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * col0 + + 78 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6604
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

query I rowsort
SELECT - col1 * + - col1 FROM tab1 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT - 66 BETWEEN NULL AND ( - - col2 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - COUNT( * ) * + 44 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6607
SELECT - COUNT ( * ) * + 44 FROM tab0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1 AS col0, - 8 col0 FROM tab0
----
1
-8
441
-8
6561
-8

query I rowsort
SELECT 86 * col1 * col0 FROM tab1
----
36550
367822
61404

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + MAX( ALL + 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6610
SELECT + MAX ( ALL + 43 ) FROM tab0
----
43

query I rowsort
SELECT - 21 * col2 FROM tab1
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ( - + COUNT( - + col0 ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6612
SELECT ( - + COUNT ( - + col0 ) ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL COUNT( ( - col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL COUNT ( ( - col2 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT + col1 + + + 16 AS col1 FROM tab0 AS cor0
----
17
37
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6615
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9
9

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE col0 >= - - 18 + + col2
----
21

query I rowsort
SELECT DISTINCT + - 4 * + 80 AS col1 FROM tab2 cor0
----
-320

query I rowsort
SELECT + - 20 * - ( + col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
179
1979
859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * + ( - + col1 ), 91 col1 FROM tab1 AS cor0
----
-196
91
-2209
91
-25
91

query I rowsort
SELECT - 11 * 25 FROM tab0 AS cor0
----
-275
-275
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - 55 + + COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6621
SELECT - 55 + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-52

query II rowsort
SELECT ALL + 47 + col2 * col2, - col1 AS col2 FROM tab0 AS cor0
----
147
-21
2256
-81
9848
-1

query I rowsort
SELECT 12 * + + col1 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL + - 69 * + col1 * 26 + - CAST( NULL AS SIGNED ) - 89 - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + - 69 * + col1 * 26 + - CAST ( NULL AS INTEGER ) - 89 - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6625
SELECT * FROM tab0 AS cor0 WHERE + CAST( + - col0 AS SIGNED ) + - 3 NOT IN ( 2 - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6625
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + - col0 AS INTEGER ) + - 3 NOT IN ( 2 - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - 67 + + col1 AS col2 FROM tab1
----
-3
43
48

query I rowsort
SELECT ALL - 19 - + 43 AS col2 FROM tab1
----
-62
-62
-62

query I rowsort
SELECT DISTINCT col2 + col0 * + + col0 - col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL MIN( - 99 ) + - 33 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL MIN ( - 99 ) + - 33 FROM tab0
----
-132

query III rowsort
SELECT * FROM tab0 WHERE 54 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT + MAX( ALL + col1 ) + + MAX( + col1 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6631
SELECT + MAX ( ALL + col1 ) + + MAX ( + col1 ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - 17 - + - COUNT( * ) col2 FROM tab1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6632
SELECT ALL - 17 - + - COUNT ( * ) col2 FROM tab1
----
-14

query I rowsort
SELECT DISTINCT col1 * + + 76 AS col1 FROM tab1
----
1064
3572
380

query I rowsort
SELECT DISTINCT - 68 * - - col1 AS col2 FROM tab0
----
-1428
-5508
-68

query II rowsort
SELECT ( - - col2 ), col0 * col1 AS col0 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT ALL + CAST( SUM( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + CAST ( SUM ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT + + 26 DIV + 84 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT + + 26 / + 84 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - ( + col0 ), + col1 + - - col2 AS col1 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT ALL CAST( - col2 AS SIGNED ) + + 12 AS col2 FROM tab0 WHERE NOT - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL CAST ( - col2 AS INTEGER ) + + 12 AS col2 FROM tab0 WHERE NOT - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - - SUM( col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - - SUM ( col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( + + ( col2 ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT MAX( ( + col1 ) ) + - + 71 AS col1, 6 FROM tab0
----
10
6

skipif mysql # not compatible
query II rowsort label-6646
SELECT MAX ( ( + col1 ) ) + - + 71 AS col1, 6 FROM tab0
----
10
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 - - - 99 + - ( - col1 ) + - col2 + - 85 * - ( + + 46 ) + + + col0 BETWEEN 46 AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 13 ) + col2 AS col0 FROM tab0 AS cor0
----
112
23
60

query I rowsort
SELECT DISTINCT + + 35 + + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
132
231
97

query I rowsort
SELECT DISTINCT col1 * 69 FROM tab1
----
3243
345
966

query III rowsort
SELECT * FROM tab0 WHERE NOT 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6652
SELECT col2 DIV CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6652
SELECT col2 / CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 83 - col2 FROM tab0
----
-16
36
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL MAX( ALL 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL MAX ( ALL 25 ) FROM tab1
----
25

query I rowsort
SELECT ALL - col2 * ( + col0 * + col2 ) + - 34 AS col1 FROM tab0
----
-33169
-8734
-950731

query III rowsort
SELECT * FROM tab1 WHERE - 35 + 49 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL MIN( DISTINCT - 52 ) + - 36 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL MIN ( DISTINCT - 52 ) + - 36 FROM tab2
----
-88

query I rowsort
SELECT - col0 * 30 FROM tab0
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - COUNT( * ) * 5 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6659
SELECT - COUNT ( * ) * 5 FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + COUNT( * ) * ( + COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6660
SELECT + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE - col2 NOT IN ( - col0 * col1 )
----
14
47
5

query I rowsort
SELECT - 83 * col1 AS col0 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT - col1 * col1 + 77 * col0 FROM tab1 WHERE + col1 < ( col0 )
----
3731
4798
6520

query I rowsort
SELECT DISTINCT 62 * col0 AS col2 FROM tab0
----
5394
6014
930

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col1 * 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT COUNT( * ) * - 52 AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT COUNT ( * ) * - 52 AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT + col1 DIV - 37 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + col1 / - 37 AS col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL col1 DIV - 51 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL col1 / - 51 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 AND col1 / col1
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col0 BETWEEN - col1 AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 * 76 IN ( 98 )
----

query I rowsort
SELECT col1 * col0 FROM tab1 WHERE NOT + col1 <> + col1 * + col2
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN col2 AND ( col1 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + COUNT( + ( 34 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6677
SELECT + COUNT ( + ( 34 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 74 * + col1 + - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 1 AND - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * AVG ( ALL col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * AVG ( ALL col0 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 34 + + col0 FROM tab2 WHERE ( 93 ) <> - col1
----
109
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + 18 - COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + 18 - COUNT ( * ) AS col2 FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT col2 + col0 DIV 80 AS col2 FROM tab0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-6683
SELECT col2 + col0 / 80 AS col2 FROM tab0
----
100
11
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT col2 DIV - ( 5 * - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6684
SELECT col2 / - ( 5 * - col1 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * 75 NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 5 FROM tab0 AS cor0
----
435
485
75

query I rowsort
SELECT ALL 99 - + 24 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 * - col2 NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * - 25 + 40 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 85 * col2 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6691
SELECT DISTINCT - col0 DIV CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - col0 / CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL - CAST( 98 AS SIGNED ) AS col0 FROM tab1 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - CAST ( 98 AS INTEGER ) AS col0 FROM tab1 cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 76 * - 16 <> NULL
----

query I rowsort
SELECT ALL col2 + - col2 + col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL 93 - - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 WHERE NOT 88 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL 93 - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT 88 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 1 * - + col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 col2 FROM tab1
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab1
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT 27 * + - COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-6701
SELECT 27 * + - COUNT ( * ) FROM tab2
----
-81

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab0 WHERE NOT NULL IN ( + 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col0 col1 FROM tab0
----
3915
4365
675

query I rowsort
SELECT ( + 68 ) * col1 FROM tab0
----
1428
5508
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT - 74 DIV - - col2 col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6705
SELECT DISTINCT - 74 / - - col2 col2 FROM tab2
----
-1
-3

query I rowsort
SELECT ( col1 ) * 43 FROM tab1
----
2021
215
602

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 88 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 56 + 73 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT - - col2 DIV - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-6709
SELECT - - col2 / - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-12
-87
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL - col0 * - + 6 + + col1 + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - col0 * - + 6 + + col1 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + + ( + col1 ) + + 13 AS col2 FROM tab2 AS cor0
----
1186
3093
3899

query I rowsort
SELECT ALL + 52 + col0 + + col0 FROM tab0 AS cor0
----
226
246
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 86 + 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 121b64fd841a20f87520daa7774d37c9

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + ( - 98 ) * + - SUM( + ( - 12 ) ) AS col0 FROM tab0
----
-3528

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + ( - 98 ) * + - SUM ( + ( - 12 ) ) AS col0 FROM tab0
----
-3528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6717
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 73 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT 9 + 45 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( 70 ) OR + col1 + 71 = NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( + 39 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col2 * col0 * - - 93 * + 2 AS col1 FROM tab0 AS cor0
----
-131130
-161820
-1786158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 AS col2, 66 * - + col2 col0 FROM tab1 AS cor0
----
55
-3894
55
-4488
55
-6336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 19 + + 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6725
SELECT DISTINCT + 57 AS col0, 36 DIV - - col0 FROM tab0 cor0
----
57
0
57
2

skipif mysql # not compatible
query II rowsort label-6725
SELECT DISTINCT + 57 AS col0, 36 / - - col0 FROM tab0 cor0
----
57
0
57
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + COUNT( * ) - - 46 AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6726
SELECT + COUNT ( * ) - - 46 AS col2 FROM tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - col0 * - col2 )
----

query I rowsort
SELECT - + col2 - - col1 FROM tab1 cor0
----
-21
-54
-82

query II rowsort
SELECT ALL col0 + - col1 AS col0, ( - ( col2 ) ) AS col2 FROM tab0
----
-66
-47
66
-10
96
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - MIN( ALL + + col0 ) * + - 30 FROM tab2
----
1380

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - MIN ( ALL + + col0 ) * + - 30 FROM tab2
----
1380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col1 FROM tab1 WHERE 28 IN ( + 53 )
----

query I rowsort
SELECT DISTINCT + ( + 22 ) FROM tab1 WHERE - - col1 * + + col1 * + col2 > ( - col1 + - 76 )
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col1 + - col0 + 62 )
----

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 67 )
----

query I rowsort
SELECT - - 2 * 58 FROM tab0 AS cor0
----
116
116
116

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT + 93 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6737
SELECT + 93 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT 16 * + COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT 16 * + COUNT ( * ) AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6739
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 IN ( + col0 * + 46 * - col1 - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 19 * - 0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL col1 + - CAST( - 40 AS SIGNED ) * 71 FROM tab1 AS cor0
----
2845
2854
2887

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL col1 + - CAST ( - 40 AS INTEGER ) * 71 FROM tab1 AS cor0
----
2845
2854
2887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL CAST( NULL AS SIGNED ) * - 73 + + - 8 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL CAST ( NULL AS INTEGER ) * - 73 + + - 8 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT + + col2 DIV - 55 + + - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-6744
SELECT + + col2 / - 55 + + - col1 FROM tab2 AS cor0
----
-51
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 58 + col1 * col1 + - col1 - col0 * - 9 ) <= ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 58 + col1 * col1 + - col1 - col0 * - 9 ) <= ( + col1 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 + + 94 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT col2 * - col2 + - CAST( - 72 AS SIGNED ) * - col1 AS col2 FROM tab1
----
-10224
-3841
-8008

skipif mysql # not compatible
query I rowsort label-6748
SELECT col2 * - col2 + - CAST ( - 72 AS INTEGER ) * - col1 AS col2 FROM tab1
----
-10224
-3841
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT + SUM( - + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + SUM ( - + col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-16

query I rowsort
SELECT col2 * - 55 + col1 FROM tab0 WHERE ( ( + col1 ) * + col1 + col1 * + col0 BETWEEN NULL AND - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * + + col1 col2 FROM tab1 AS cor0
----
201019
2125
9996

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 NOT IN ( + 59 )
----

query II rowsort
SELECT + - 3, - col2 AS col1 FROM tab0 AS cor0
----
-3
-10
-3
-47
-3
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6755
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - + col2 AS SIGNED ) + - col2 IN ( + col1 * + col2 * 85 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6755
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - + col2 AS INTEGER ) + - col2 IN ( + col1 * + col2 * 85 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * 37 FROM tab0 AS cor0
----
-3219
-3589
-555

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col2 IS NOT NULL
----

query II rowsort
SELECT 43, 96 AS col2 FROM tab1 AS cor0
----
43
96
43
96
43
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL + col2 + - CAST( - col1 AS SIGNED ) + col0 FROM tab0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + col2 + - CAST ( - col1 AS INTEGER ) + col0 FROM tab0
----
118
143
197

query I rowsort
SELECT + col1 * - col0 - 69 AS col2 FROM tab2
----
-2415
-4997
-5094

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 91 + - col2 DIV - 86 - col2 AS col0 FROM tab1
----
-4
23
32

skipif mysql # not compatible
query I rowsort label-6761
SELECT 91 + - col2 / - 86 - col2 AS col0 FROM tab1
----
-4
23
32

query I rowsort
SELECT - col2 * col1 + + col0 + ( - + col2 ) AS col2 FROM tab0
----
-101
-133
-3839

query I rowsort
SELECT 55 * - col1 * - 0 + + 33 FROM tab2
----
33
33
33

query I rowsort
SELECT DISTINCT + + col2 * 13 AS col2 FROM tab0 AS cor0 WHERE NOT + 97 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + + 26 * - SUM( - col2 ) + 88 AS col2 FROM tab0 cor0
----
4144

skipif mysql # not compatible
query I rowsort label-6765
SELECT + + 26 * - SUM ( - col2 ) + 88 AS col2 FROM tab0 cor0
----
4144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6766
SELECT * FROM tab2 AS cor0 WHERE 19 + - col1 <= + CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6766
SELECT * FROM tab2 AS cor0 WHERE 19 + - col1 <= + CAST ( + - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6767
SELECT ALL col2 AS col0, 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + + - 28 * - col1
----

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL col2 AS col0, 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + + - 28 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT MAX( - 31 ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT MAX ( - 31 ) AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT DISTINCT col0 + - CAST( - col0 AS SIGNED ) + - + 41 col2 FROM tab0 AS cor0
----
-11
133
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT DISTINCT col0 + - CAST ( - col0 AS INTEGER ) + - + 41 col2 FROM tab0 AS cor0
----
-11
133
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT ALL 47 * + + 51 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL 47 * + + 51 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + - 82 + + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + - 82 + + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, + 45 AS col2 FROM tab1
----
59
45
68
45
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT 18 + COUNT( * ) col0 FROM tab0 WHERE NOT ( - + 67 ) IS NULL
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6774
SELECT 18 + COUNT ( * ) col0 FROM tab0 WHERE NOT ( - + 67 ) IS NULL
----
21

query II rowsort
SELECT DISTINCT + col1, + 19 FROM tab1
----
14
19
47
19
5
19

query II rowsort
SELECT - ( + + ( col2 ) ) AS col1, col1 AS col2 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - ( + ( + COUNT( * ) ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6777
SELECT - ( + ( + COUNT ( * ) ) ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 29, col1 AS col1 FROM tab2 cor0
----
29
51
29
67
29
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 17 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT SUM( ALL - 14 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT SUM ( ALL - 14 ) AS col0 FROM tab0
----
-42

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 17 BETWEEN NULL AND - col1 * - col1
----

query I rowsort
SELECT DISTINCT + col1 * + + col1 * col0 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + 27 AND - col2 * + col0 * - col2 + col2 + - - 17 * - - 99 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6785
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - 10 AND CAST( NULL AS SIGNED ) * + + 74 / 64
----

skipif mysql # not compatible
query III rowsort label-6785
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - 10 AND CAST ( NULL AS INTEGER ) * + + 74 / 64
----

query II rowsort
SELECT ALL col1 + - col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-8
75
13
64
5
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6788
SELECT * FROM tab2 WHERE - col2 + - + CAST( NULL AS SIGNED ) + - 75 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6788
SELECT * FROM tab2 WHERE - col2 + - + CAST ( NULL AS INTEGER ) + - 75 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 + - col1 col2 FROM tab0
----
-1
-61
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT + CAST( + + col1 AS SIGNED ) * col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6790
SELECT + CAST ( + + col1 AS INTEGER ) * col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col2 + - - col1 - + 53 AS col1 FROM tab2
----
-16
-25
-44

query II rowsort
SELECT 26 AS col1, 95 * col2 FROM tab0
----
26
4465
26
9405
26
950

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL - COUNT( + 69 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - COUNT ( + 69 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col0 + 19 FROM tab2 cor0
----
-27
-45
-56

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE NOT ( col0 < NULL )
----

query I rowsort
SELECT - 57 + col0 AS col2 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT col0 + - + ( col1 ) - - - col0 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL col0 * + col2 * + col1 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL col0 * + col2 * + col1 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 71 + - col0 FROM tab2 AS cor0
----
1587
2776
4043

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2, CAST( 32 AS SIGNED ), + 30 * - col2 - + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2, CAST ( 32 AS INTEGER ), + 30 * - col2 - + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT + 46 FROM tab1 AS cor0 WHERE NOT + col0 * CAST( + col1 AS SIGNED ) - col0 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT + 46 FROM tab1 AS cor0 WHERE NOT + col0 * CAST ( + col1 AS INTEGER ) - col0 IS NULL
----
46

query II rowsort
SELECT ALL - + col2 AS col1, - col0 + col0 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 + + col1 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6804
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6804
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT DISTINCT - - 26 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
26
-3

skipif mysql # not compatible
query II rowsort label-6805
SELECT DISTINCT - - 26 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
26
-3

query II rowsort
SELECT ( - - 54 ) AS col2, - col0 AS col2 FROM tab0
----
54
-15
54
-87
54
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab1 WHERE NOT ( NOT NULL <= 32 )
----

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab1, tab1 AS cor0
----
-78

query I rowsort
SELECT ALL - 46 * - col2 AS col1 FROM tab0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT ( - ( - COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 47
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE col2 IN ( - + 84 )
----

query I rowsort
SELECT DISTINCT 54 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL - 52 AS col2 FROM tab2 WHERE NOT 49 NOT BETWEEN ( - ( + 39 ) / 47 * col0 - 52 / + - col1 - - col0 + + + 63 * + col2 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - 52 AS col2 FROM tab2 WHERE NOT 49 NOT BETWEEN ( - ( + 39 ) / 47 * col0 - 52 / + - col1 - - col0 + + + 63 * + col2 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + col0 <> - + col2 + + 66
----
51
85
91

query II rowsort
SELECT 50 AS col0, + 65 + col2 + - - 70 * + col1 FROM tab2
----
50
3658
50
4813
50
5495

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT MAX( DISTINCT - + col0 ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6817
SELECT MAX ( DISTINCT - + col0 ) col0 FROM tab1
----
-51

query I rowsort
SELECT + 98 + - + 45 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT DISTINCT COUNT( * ), 3 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6819
SELECT DISTINCT COUNT ( * ), 3 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col0 col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - - col1 + ( + col1 ) FROM tab2 cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + col0 ) + 85 col2 FROM tab1 AS cor0
----
-6
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 6 + col1 col2 FROM tab2 AS cor0
----
-163
-281
-87

query I rowsort
SELECT ALL + col0 * + - 51 AS col1 FROM tab1 AS cor0
----
-2601
-4335
-4641

query I rowsort
SELECT ALL + 40 + - - col0 FROM tab0 cor0
----
127
137
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT - 90 + - COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT - 90 + - COUNT ( * ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT + 91 * + SUM( ALL col1 ) * 88 + + 53 FROM tab2 AS cor0
----
1561613

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT + 91 * + SUM ( ALL col1 ) * 88 + + 53 FROM tab2 AS cor0
----
1561613

query III rowsort
SELECT * FROM tab1 WHERE - + 32 * col2 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT CAST( NULL AS SIGNED ) - - ( - 69 ) + 30 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT CAST ( NULL AS INTEGER ) - - ( - 69 ) + 30 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT ALL + 74 * - CAST( + 63 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4662
-4662
-4662

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + 74 * - CAST ( + 63 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4662
-4662
-4662

query I rowsort
SELECT ALL + col1 * + 69 FROM tab1 AS cor0
----
3243
345
966

query II rowsort
SELECT - 40 AS col2, col2 FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > 82 / + + 55 * ( col1 ) * + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT ALL - col2 DIV 53 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - col2 / 53 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * + - 50 ) < ( ( - col0 ) )
----

query I rowsort
SELECT + col1 * 70 AS col1 FROM tab2 AS cor0
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6838
SELECT + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT col0 * - col1 * - - col0 * - - col1 FROM tab2
----
-24285184
-25250625
-5503716

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT 80 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6840
SELECT 80 / + col2 FROM tab2
----
1
2
3

query II rowsort
SELECT 1 AS col1, 21 AS col2 FROM tab1
----
1
21
1
21
1
21

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6843
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT - 88 DIV + COUNT( * ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 88 / + COUNT ( * ) FROM tab2
----
-29

query II rowsort
SELECT DISTINCT 93 AS col0, col1 AS col2 FROM tab1
----
93
14
93
47
93
5

query I rowsort
SELECT - col0 + - + ( + 2 ) FROM tab0
----
-17
-89
-99

query I rowsort
SELECT - col1 + - + col2 * col1 FROM tab2
----
-1224
-3157
-3953

query III rowsort
SELECT * FROM tab0 cor0 WHERE 48 + - + col0 IN ( 87, - 77 * - col1 - + col2, - - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6849
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - CAST( + + 50 AS DECIMAL ) + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6849
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - CAST ( + + 50 AS REAL ) + + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT - col0 DIV 17 + col0 FROM tab2 AS cor0
----
44
61
71

skipif mysql # not compatible
query I rowsort label-6850
SELECT - col0 / 17 + col0 FROM tab2 AS cor0
----
44
61
71

query I rowsort
SELECT DISTINCT - 29 - + col2 FROM tab2
----
-52
-69
-87

query II rowsort
SELECT col2 - - 26 + - col0 + + 91 AS col0, col0 + + col0 AS col1 FROM tab0
----
119
194
149
30
40
174

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT + 49 DIV - - col2 - col2 FROM tab2
----
-21
-39
-58

skipif mysql # not compatible
query I rowsort label-6853
SELECT + 49 / - - col2 - col2 FROM tab2
----
-21
-39
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT DISTINCT - col2 + + col0 - + + 47 DIV + - col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - col2 + + col0 - + + 47 / + - col2 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 + + col1 col0 FROM tab0 AS cor0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + 94 * - COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + 94 * - COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL - CAST( + ( - 72 ) AS SIGNED ) FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - CAST ( + ( - 72 ) AS INTEGER ) FROM tab2
----
72
72
72

query I rowsort
SELECT ALL + ( + 20 ) * col0 FROM tab0 AS cor0
----
1740
1940
300

query I rowsort
SELECT DISTINCT 88 FROM tab2 cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT col2 DIV col1 + + 31 FROM tab0 AS cor0
----
130
31

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT col2 / col1 + + 31 FROM tab0 AS cor0
----
130
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - + 68 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6862
SELECT - + 68 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL ) > NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6864
SELECT ALL col2 AS col0, col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT ALL col2 AS col0, col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + col1 * + 65 AS col1 FROM tab1
----
3055
325
910

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col0 ) < + + 14 + - + col0
----

query I rowsort
SELECT 49 + col1 FROM tab2
----
100
116
126

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - 0 + - col0 * - 11 + + 16 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6869
SELECT + 66 DIV + - COUNT( * ) + ( - COUNT( * ) ) AS col2, MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-25
96

skipif mysql # not compatible
query II rowsort label-6869
SELECT + 66 / + - COUNT ( * ) + ( - COUNT ( * ) ) AS col2, MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-25
96

query I rowsort
SELECT - col0 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6871
SELECT DISTINCT + 77 DIV + + CAST( col2 AS SIGNED ) + col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + 77 / + + CAST ( col2 AS INTEGER ) + col1 FROM tab1
----
14
48
6

query I rowsort
SELECT DISTINCT + 20 * - ( 34 ) - + col1 FROM tab0
----
-681
-701
-761

query III rowsort
SELECT * FROM tab1 WHERE - + 43 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 75 - - col1 * col0 AS col1 FROM tab2
----
2271
4853
4950

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT MIN( + 70 ) + - COUNT( * ) AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT MIN ( + 70 ) + - COUNT ( * ) AS col0 FROM tab2
----
67

query II rowsort
SELECT ALL col0 - 1 AS col2, col1 + - - 78 AS col2 FROM tab1
----
50
92
84
83
90
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6878
SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 17 + ( col0 ) NOT BETWEEN ( + - col2 ) AND NULL
----

query I rowsort
SELECT ALL + - col2 * + col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-64

query II rowsort
SELECT + + col0 AS col0, col1 * col0 FROM tab0 cor0
----
15
1215
87
1827
97
97

query I rowsort
SELECT - ( + + col1 ) * + 54 * + col0 FROM tab2
----
-126684
-266112
-271350

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT SUM( DISTINCT ( - 67 ) ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-6884
SELECT SUM ( DISTINCT ( - 67 ) ) AS col2 FROM tab1
----
-67

query I rowsort
SELECT DISTINCT - 81 + + - 16 FROM tab0
----
-97

query I rowsort
SELECT ALL + col1 * - - col1 * + 8 AS col0 FROM tab2
----
20808
35912
47432

query I rowsort
SELECT 90 - + col2 * col0 + + - col0 + - col1 FROM tab0 WHERE + - ( + col0 ) BETWEEN NULL AND col0 * - col0 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 + + - col1 * + 76 col0 FROM tab0
----
-1528
-6088
-8

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 < col0
----
15
81
47

query I rowsort
SELECT ( + 17 ) FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + ( 70 ) IS NOT NULL )
----

query I rowsort
SELECT 56 - col0 AS col0 FROM tab2 cor0
----
-19
-8
10

query I rowsort
SELECT + - 63 - + col0 + - ( 8 ) AS col1 FROM tab1 AS cor0
----
-122
-156
-162

query I rowsort
SELECT - col1 - + 48 AS col1 FROM tab2 cor0
----
-115
-125
-99

query I rowsort
SELECT - - 99 - + - col1 AS col1 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT - 47 - + - col2 + - col1 AS col2 FROM tab0
----
-58
-81
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT SUM( DISTINCT col2 ) - + 34 AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT SUM ( DISTINCT col2 ) - + 34 AS col2 FROM tab1
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6899
SELECT ALL - 48 + - - ( - 29 ) + 84 / + + CAST( - + COUNT( * ) AS SIGNED ) * + CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - 48 + - - ( - 29 ) + 84 / + + CAST ( - + COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * col0 - - col2 + + + 90 FROM tab1
----
4435
574
900

query I rowsort
SELECT + 14 * - + 91 + col2 AS col2 FROM tab1
----
-1178
-1206
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL COUNT( DISTINCT - 27 ) - - - 92 - - + COUNT( * ) - - COUNT( DISTINCT - - 45 ) * - ( 64 ) AS col1 FROM tab0
----
-152

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL COUNT ( DISTINCT - 27 ) - - - 92 - - + COUNT ( * ) - - COUNT ( DISTINCT - - 45 ) * - ( 64 ) AS col1 FROM tab0
----
-152

query II rowsort
SELECT DISTINCT + col1, 84 AS col0 FROM tab1 AS cor0
----
14
84
47
84
5
84

query II rowsort
SELECT col2, 30 FROM tab1 cor0
----
59
30
68
30
96
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + COUNT( * ) * - MAX( DISTINCT + ( + + col2 ) ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6905
SELECT + COUNT ( * ) * - MAX ( DISTINCT + ( + + col2 ) ) FROM tab0 AS cor0
----
-297

query II rowsort
SELECT + col2 AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT MAX( 46 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6907
SELECT MAX ( 46 ) AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT col1 * + col1 + + + 71 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
11
216
2189

query I rowsort
SELECT DISTINCT - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-26

query I rowsort
SELECT ALL - 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + ( - ( - 88 ) ) AS col2 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT 53 * - 27 + - col1 FROM tab1
----
-1436
-1445
-1478

query II rowsort
SELECT DISTINCT 66 AS col0, - ( - col1 ) + 81 * + col0 + col1 + 80 * + col1 AS col0 FROM tab0
----
66
7857
66
7939
66
8769

query I rowsort
SELECT + col2 + 72 AS col1 FROM tab2
----
112
130
95

query I rowsort
SELECT ALL - 15 * + - 47 AS col1 FROM tab1
----
705
705
705

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - 72 + + col0 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6918
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN - + 11 + - - 60 + - - 85 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6918
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN - + 11 + - - 60 + - - 85 AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - col2 - 69
----

query I rowsort
SELECT ALL ( + ( + + col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 77 + + 43 FROM tab2 AS cor0
----
120
120
120

query I rowsort
SELECT + col1 * + 27 + + - 34 * + col2 * + - col0 AS col2 FROM tab1 cor0
----
166842
170645
211661

query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6924
SELECT * FROM tab2 AS cor0 WHERE - col0 / + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6924
SELECT * FROM tab2 AS cor0 WHERE - col0 / + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL col2 + + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 23 + - col1 AS col2 FROM tab2
----
-28
-44
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT DISTINCT + 36 - - col1 + + col1 DIV - col0 AS col0 FROM tab1
----
41
50
83

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + 36 - - col1 + + col1 / - col0 AS col0 FROM tab1
----
41
50
83

query III rowsort
SELECT * FROM tab2 WHERE + 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT col0 + col1 DIV - col0 - + + 98 AS col2 FROM tab1
----
-13
-47
-7

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT col0 + col1 / - col0 - + + 98 AS col2 FROM tab1
----
-13
-47
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT ALL CAST( NULL AS SIGNED ) - col1 + - 99 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL CAST ( NULL AS INTEGER ) - col1 + - 99 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 54 + + 50 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6932
SELECT - col0 + + col0 AS col1, CAST( NULL AS SIGNED ) * ( + - 30 ) FROM tab0 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6932
SELECT - col0 + + col0 AS col1, CAST ( NULL AS INTEGER ) * ( + - 30 ) FROM tab0 cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 37 * col0 * col1 col1 FROM tab1 AS cor0
----
-15720
-158202
-26404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 31 + + + col2 AS col1 FROM tab1 cor0
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - + MIN( col0 ) FROM tab1 cor0 WHERE - 45 * col1 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-6937
SELECT - + MIN ( col0 ) FROM tab1 cor0 WHERE - 45 * col1 IS NOT NULL
----
-51

query I rowsort
SELECT col0 * + + col1 - + + col1 AS col0 FROM tab0 AS cor0 WHERE + ( + 95 ) IS NOT NULL
----
1134
1806
96

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE - ( 4 ) > - 5
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL - 31 * ( + COUNT( * ) ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - 31 * ( + COUNT ( * ) ) FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT + CAST( + col1 AS SIGNED ) DIV 48 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) / 48 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 28 - + 9 + - col0 NOT IN ( - col1, ( + + col2 ) )
----

query I rowsort
SELECT DISTINCT + 32 * - col1 * + + col1 * ( + col2 ) AS col0 FROM tab0 cor0
----
-141120
-3168
-9867744

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + COUNT( ALL col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6944
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT MAX( ALL + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT MAX ( ALL + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT 24 + - COUNT( * ) * - MAX( col1 ) col0 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6946
SELECT 24 + - COUNT ( * ) * - MAX ( col1 ) col0 FROM tab0
----
267

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 15 * + col0 AS col1 FROM tab1
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL + col1, 5 FROM tab2 cor0
----
51
5
67
5
77
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 34 + + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 34 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
34
-46
34
-64
34
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT + COUNT( * ) col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6953
SELECT + COUNT ( * ) col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * + col1 >= + + col0
----
3

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * + col1 >= + + col0
----
3

query II rowsort
SELECT DISTINCT + col2, 60 AS col1 FROM tab2 AS cor0
----
23
60
40
60
58
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 col0 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL 56 + + 14 + - col2 FROM tab0
----
-29
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6958
SELECT CAST( NULL AS SIGNED ) * col2 AS col0, + 68 AS col2 FROM tab1
----
NULL
68
NULL
68
NULL
68

skipif mysql # not compatible
query II rowsort label-6958
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0, + 68 AS col2 FROM tab1
----
NULL
68
NULL
68
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - SUM( DISTINCT + 85 ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-6959
SELECT - SUM ( DISTINCT + 85 ) FROM tab1
----
-85

query I rowsort
SELECT - 34 + - col0 + - col0 AS col2 FROM tab2
----
-126
-162
-184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6961
SELECT ALL - COUNT( - - col1 ) + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - COUNT ( - - col1 ) + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT 67 + - col1, 52 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 88 - + col1 FROM tab1
----
41
74
83

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 18 - - + col1 AS col1 FROM tab2 cor0
----
69
85
95

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * - - 62 / + col1 * ( + - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT - - ( col0 ) DIV - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - - ( col0 ) / - col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT - col1 * + + 55 AS col2 FROM tab0 cor0
----
-1155
-4455
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT + 9 DIV - - ( col1 ) AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + 9 / - - ( col1 ) AS col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 >= - col0 * + 6 + - col0 + + ( + col0 ) / + col0 + - col0
----

query II rowsort
SELECT ALL + + 85, - 25 * - col1 AS col2 FROM tab2 AS cor0
----
85
1275
85
1675
85
1925

query II rowsort
SELECT + 61 * ( + - 44 ) AS col0, col0 FROM tab1 AS cor0
----
-2684
51
-2684
85
-2684
91

query I rowsort
SELECT 94 * + col2 FROM tab2
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL - MAX( DISTINCT + - 32 ) col2 FROM tab1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6974
SELECT ALL - MAX ( DISTINCT + - 32 ) col2 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab0 WHERE 39 * - col2 - - + col1 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( 44 ), col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + - 14 + ( - col0 ) AND + - col1
----
3

skipif mysql # not compatible
query I rowsort label-6977
SELECT + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + - 14 + ( - col0 ) AND + - col1
----
3

query I rowsort
SELECT ALL col1 * + 81 * - + col1 FROM tab0 cor0
----
-35721
-531441
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col1 FROM tab2 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + COUNT( * ) * 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-6980
SELECT + COUNT ( * ) * 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT 35 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 35 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + SUM( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6982
SELECT + SUM ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT 93 * 76 + 68 AS col1, + col0 AS col0 FROM tab1 AS cor0 WHERE + 19 IS NOT NULL
----
7136
51
7136
85
7136
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT COUNT( ALL + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6984
SELECT COUNT ( ALL + + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * + + col1 + 41 * 10 FROM tab1 AS cor0
----
2619
435
606

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT DISTINCT - 16 DIV - + col0 + + col2 AS col0 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - 16 / - + col0 + + col2 AS col0 FROM tab0
----
10
48
99

query I rowsort
SELECT ALL 0 * - + col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + 68 - 81 col1 FROM tab2 AS cor0
----
-1509
-1509
-1509

query I rowsort
SELECT ALL col2 * + col1 + - + 91 - - col2 + + - 66 FROM tab2 cor0
----
1039
2963
3787

query I rowsort
SELECT DISTINCT col1 * - ( - 64 ) + col0 FROM tab2
----
3310
4363
4992

query II rowsort
SELECT ALL + col0 + - - 15 - - col0 + - col1 - + col1 AS col0, 8 + - col0 AS col1 FROM tab1
----
103
-83
175
-77
89
-43

query II rowsort
SELECT + + ( - col2 ) AS col0, - col1 + 56 AS col1 FROM tab1 cor0
----
-59
51
-68
9
-96
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 84 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + 66 * - 3 * 76 AS col2 FROM tab0 AS cor0
----
15048
15048
15048

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - ( - 16 ) + 30 - - + 78 * - - 73 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + ( MIN( col2 ) ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6997
SELECT + ( MIN ( col2 ) ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 AS cor0 WHERE NOT + 19 > col0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-6999
SELECT - + col0 * + + col2, + col2 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-705
46
-870
9
-9603
98

skipif mysql # not compatible
query II rowsort label-6999
SELECT - + col0 * + + col2, + col2 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
-705
46
-870
9
-9603
98

query I rowsort
SELECT - col0 * - 38 FROM tab2
----
1748
2432
2850

query I rowsort
SELECT ALL + 4 * + + 6 AS col0 FROM tab1
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7002
SELECT + col1, CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7002
SELECT + col1, CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7003
SELECT ALL + COUNT( * ) AS col1, + MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL + COUNT ( * ) AS col1, + MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7004
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 / + col1 * 70 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 / + col1 * 70 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 62 AS col2, + col1 * - col0 FROM tab2 AS cor0
----
62
-2346
62
-4928
62
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL - CAST( + + 89 AS SIGNED ) + + - 9 + + col0 AS col1 FROM tab1 AS cor0
----
-13
-47
-7

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - CAST ( + + 89 AS INTEGER ) + + - 9 + + col0 AS col1 FROM tab1 AS cor0
----
-13
-47
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT + COUNT( * ) DIV + MAX( - 30 ) + - - ( 16 ) * - ( - 62 ) AS col1 FROM tab2, tab0 AS cor0
----
992

skipif mysql # not compatible
query I rowsort label-7007
SELECT + COUNT ( * ) / + MAX ( - 30 ) + - - ( 16 ) * - ( - 62 ) AS col1 FROM tab2, tab0 AS cor0
----
992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT - col0 * + 74 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - col0 * + 74 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL - 8 * 79 AS col1, 92 * - col0 * col1 * col1 - - col0, - col0 AS col1 FROM tab2
----
9 values hashing to 2fd875726a4b1f00f97c169da6c1b052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7010
SELECT + + COUNT( * ) DIV - + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT + + COUNT ( * ) / - + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT DISTINCT + MIN( ALL CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT + MIN ( ALL CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col1 * + col1 - col2 FROM tab1 AS cor0
----
-2277
-292
-84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 + - - col0 + - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + + 16 NOT BETWEEN col0 + 1 AND - 46 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - + 78 ) + - col2 FROM tab2
----
-101
-118
-136

query I rowsort
SELECT ALL 9 + + col2 FROM tab1
----
105
68
77

query I rowsort
SELECT ALL + col2 + - 44 AS col0 FROM tab1
----
15
24
52

query I rowsort
SELECT col1 * col0 - 62 AS col2 FROM tab1
----
363
4215
652

query I rowsort
SELECT col2 * - 99 / col0 + + 86 + - - 16 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 82 AS col1 FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT - col0 + col1 + col2 * + 54 + + + col2 FROM tab1 AS cor0
----
3165
3696
5243

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( NULL = + 41 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT MAX( DISTINCT + + col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7023
SELECT MAX ( DISTINCT + + col0 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT + col0 DIV + - col2 - col1 * + + 18 AS col0 FROM tab2 AS cor0
----
-1207
-1387
-920

skipif mysql # not compatible
query I rowsort label-7024
SELECT + col0 / + - col2 - col1 * + + 18 AS col0 FROM tab2 AS cor0
----
-1207
-1387
-920

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 87 * + 9 + - 83 < 81 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 93 AS col1, 55 - - 10 AS col2 FROM tab1 AS cor0
----
-93
65
-93
65
-93
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, + 19 col1 FROM tab2 AS cor0
----
46
19
64
19
75
19

query I rowsort
SELECT + - ( 94 ) FROM tab2 cor0
----
-94
-94
-94

query I rowsort
SELECT ALL 27 * 89 AS col0 FROM tab1 AS cor0
----
2403
2403
2403

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col0 / - - 56 <= NULL
----

query II rowsort
SELECT - - 70 AS col0, col0 FROM tab0 WHERE NOT ( + col0 IS NULL )
----
70
15
70
87
70
97

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab1 WHERE + + col0 IS NOT NULL
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL = 57 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL = 57 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT + COUNT( ALL 30 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + COUNT ( ALL 30 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col0 FROM tab0 WHERE + + col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - + col2
----

query I rowsort
SELECT - 4 AS col2 FROM tab2 WHERE NULL IS NULL
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT ALL ( col2 ) DIV - - col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL ( col2 ) / - - col1 FROM tab0
----
0
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 AS col0, + col1 col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + - col0 + + 25 AS col2 FROM tab0 AS cor0
----
-62
-72
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= - - col1 + - - col1 * - - ( - 76 ) * - 53 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 9 + - + col0 * + - 1 FROM tab2 AS cor0
----
55
73
84

query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab2 AS cor0 WHERE col0 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 67 / 48 IS NULL )
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE col0 BETWEEN - - ( + + col2 ) AND NULL
----

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
47
47
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 62 + - 52 / + col2 ) AND col2
----

query I rowsort
SELECT + + ( - - col1 ) + + col1 - col0 FROM tab0 WHERE NULL IS NULL
----
-45
-95
147

query III rowsort
SELECT * FROM tab0 WHERE + + col0 - + 77 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + 16 + - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 30 col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + ( - + col0 ) * col0 AS col0 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT + 71 * - 96 FROM tab1
----
-6816
-6816
-6816

query I rowsort
SELECT + + col2 * - + 57 + + + 49 - ( - col2 ) FROM tab0 AS cor0
----
-2583
-511
-5495

query I rowsort
SELECT DISTINCT - ( - + 98 ) AS col2 FROM tab2 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT + col1 + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL col2 * - + col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col0 * + + 48 AS col1 FROM tab2
----
-2208
-3072
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * + 0 col2 FROM tab2
----
0

query I rowsort
SELECT + ( 2 ) AS col1 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL - MAX( - 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - MAX ( - 51 ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - SUM( ALL col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT - SUM ( ALL col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - COUNT( ALL + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7064
SELECT - COUNT ( ALL + col0 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT + COUNT( + col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7066
SELECT DISTINCT + COUNT ( + col0 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - MAX( ALL - - 82 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7067
SELECT - MAX ( ALL - - 82 ) FROM tab0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ( MIN( - col2 ) ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7068
SELECT ( MIN ( - col2 ) ) col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7069
SELECT ALL COUNT( * ) AS col2, CAST( 53 AS SIGNED ) FROM tab0 cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL COUNT ( * ) AS col2, CAST ( 53 AS INTEGER ) FROM tab0 cor0
----
3
53

query I rowsort
SELECT DISTINCT + col1 + - 5 AS col2 FROM tab2 cor0
----
46
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT ALL + 23 + - 96 DIV - + col1 AS col1 FROM tab1 AS cor0
----
25
29
42

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + 23 + - 96 / - + col1 AS col1 FROM tab1 AS cor0
----
25
29
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) < NULL
----

query I rowsort
SELECT + 41 + + + ( - - 67 ) FROM tab0 AS cor0
----
108
108
108

query II rowsort
SELECT ALL - col2, col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT + col0 + - - 80 AS col0, - 28 DIV - col0 FROM tab2
----
126
0
144
0
155
0

skipif mysql # not compatible
query II rowsort label-7075
SELECT + col0 + - - 80 AS col0, - 28 / - col0 FROM tab2
----
126
0
144
0
155
0

query I rowsort
SELECT ALL + 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - ( col1 ) * - - 18 * ( + col0 ) - + 16 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + + + 6 + + - col0 * + 34 AND NULL
----

query II rowsort
SELECT - 9 AS col1, - 42 * - col1 + - 39 AS col2 FROM tab1 cor0 WHERE col1 <> + 55 / ( col2 ) - - col2
----
-9
171
-9
1935
-9
549

query I rowsort
SELECT DISTINCT - col1 + + 55 + + col2 FROM tab2 AS cor0
----
18
27
46

query I rowsort
SELECT + col0 - + col2 + - - col0 - - - 9 + - col0 * - col2 FROM tab0 AS cor0
----
1025
679
9689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) / + - 33 IS NULL AND NULL <> + col1
----

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / + - 33 IS NULL AND NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - COUNT( * ) + + COUNT( * ) * 38 AS col2 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-7082
SELECT - COUNT ( * ) + + COUNT ( * ) * 38 AS col2 FROM tab0
----
111

query I rowsort
SELECT DISTINCT 2 + + + col0 AS col1 FROM tab0
----
17
89
99

query I rowsort
SELECT col0 * 55 + + col1 + + - col1 * + col1 FROM tab1
----
2623
2843
4655

query I rowsort
SELECT DISTINCT + col2 + col1 * - ( col0 ) * + col1 + col2 * - - col0 FROM tab0
----
-37487
-97663
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT - 75 - - COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - 75 - - COUNT ( * ) FROM tab2
----
-72

query II rowsort
SELECT col0 + + 31 - - col2 * + + col2 AS col2, - col2 FROM tab0
----
218
-10
2255
-47
9929
-99

query I rowsort
SELECT ALL + 82 - + 71 AS col2 FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT + 75 * + - col2 AS col1 FROM tab1 AS cor0
----
-4425
-5100
-7200

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + + 87 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + 5 * - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) > ( NULL )
----

query I rowsort
SELECT 73 AS col1 FROM tab2 WHERE NOT + col1 = - col1
----
73
73
73

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7094
SELECT ALL col2 DIV - ( ( + 21 ) ) FROM tab1 WHERE + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) IS NULL
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL col2 / - ( ( + 21 ) ) FROM tab1 WHERE + CAST ( CAST ( NULL AS REAL ) AS REAL ) IS NULL
----
-2
-3
-4

query I rowsort
SELECT - col2 * - col1 - + ( col2 - - 34 ) AS col1 FROM tab2
----
1116
3006
3794

query I rowsort
SELECT ALL col0 + - 25 FROM tab2
----
21
39
50

query I rowsort
SELECT ALL 83 + - 29 FROM tab1
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 97 BETWEEN ( col2 + + ( col0 + ( - col2 + + col1 ) * - col2 ) ) AND + col0 / 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - MIN( DISTINCT 17 ) + COUNT( * ) col2 FROM tab2
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT - MIN ( DISTINCT 17 ) + COUNT ( * ) col2 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT CAST( 70 AS SIGNED ) AS col1 FROM tab0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7100
SELECT CAST ( 70 AS INTEGER ) AS col1 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - ( col0 ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - ( col0 ) NOT IN ( col2 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - ( - col0 ) BETWEEN ( ( - col1 ) ) AND ( 2 + - col1 * + col0 )
----

query I rowsort
SELECT ALL - col1 + col0 * col1 FROM tab2 WHERE NOT ( col0 + 51 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * col0 ) BETWEEN ( ( col1 ) * - col1 ) AND 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT ALL CAST( NULL AS SIGNED ) * 83 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL CAST ( NULL AS INTEGER ) * 83 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 73 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - CAST( NULL AS SIGNED ) + + col0 / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT - CAST ( NULL AS INTEGER ) + + col0 / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 12 FROM tab1
----
168
564
60

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( 8 * col1 ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL - col1 DIV col1 + - col1 AS col0 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - col1 / col1 + - col1 AS col0 FROM tab2
----
-52
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7114
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 ) * + ( col0 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL + COUNT( + col1 ) + 73 AS col0 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + COUNT ( + col1 ) + 73 AS col0 FROM tab0 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND ( - 20 + + 66 * col2 )
----

query I rowsort
SELECT ALL - col1 * col1 + - 42 AS col0 FROM tab2 AS cor0
----
-2643
-4531
-5971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 15 col1 FROM tab0
----
114
25
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 + col0 col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT - 89 + 5 DIV - col2 AS col0 FROM tab2 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-7121
SELECT - 89 + 5 / - col2 AS col0 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT col1 + 50 FROM tab2 cor0 WHERE col2 <= ( - 54 * col2 )
----

query I rowsort
SELECT - 93 + col0 * col2 FROM tab1 AS cor0
----
4803
4922
6095

query I rowsort
SELECT DISTINCT + - col1 * + 17 AS col0 FROM tab2 AS cor0
----
-1139
-1309
-867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7125
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - ( + col0 ) * CAST( NULL AS SIGNED ) ) AND 61
----

skipif mysql # not compatible
query III rowsort label-7125
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - ( + col0 ) * CAST ( NULL AS INTEGER ) ) AND 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - MIN( ALL + col0 ) * MIN( - 0 + col0 ) AS col1 FROM tab2 AS cor0
----
-2116

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - MIN ( ALL + col0 ) * MIN ( - 0 + col0 ) AS col1 FROM tab2 AS cor0
----
-2116

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 IN ( - 14 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( ( - col0 ) * 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 60 + - col2 * col0 col1 FROM tab0 cor0
----
-2130
-5565
-9663

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 IN ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT - COUNT( * ) * - 92 + 46 AS col1 FROM tab0 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT - COUNT ( * ) * - 92 + 46 AS col1 FROM tab0 AS cor0
----
322

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) >= 26
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab2 WHERE 92 * 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 1 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL + 65 - + CAST( - 90 AS SIGNED ) col1 FROM tab0
----
155
155
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7137
SELECT ALL + 65 - + CAST ( - 90 AS INTEGER ) col1 FROM tab0
----
155
155
155

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT + COUNT( + 49 ) * COUNT( + col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT + COUNT ( + 49 ) * COUNT ( + col2 ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT DISTINCT + col1 DIV + + col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + col1 / + + col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 25 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN ( col0 ) AND 57 * col2 + + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7145
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7145
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS REAL ) + col0 IS NOT NULL
----

query II rowsort
SELECT + 4 AS col0, col0 AS col2 FROM tab1 AS cor0
----
4
51
4
85
4
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + 46 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7148
SELECT DISTINCT + 37 + - col0 + col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + 37 + - col0 + col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col0 ) * 83 + - ( col0 ) <= ( + col0 )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + 8 NOT IN ( + - col2 )
----
10
47
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT + 60 * col0 AS col1 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT ALL 28 + - CAST( + - CAST( - 74 AS SIGNED ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL 28 + - CAST ( + - CAST ( - 74 AS INTEGER ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - - col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + MAX( col1 ) col0 FROM tab1 WHERE NOT ( + col1 * - col1 * 27 + - col1 ) BETWEEN + col1 AND 57 * - col1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7155
SELECT + MAX ( col1 ) col0 FROM tab1 WHERE NOT ( + col1 * - col1 * 27 + - col1 ) BETWEEN + col1 AND 57 * - col1
----
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN ( NULL ) AND - col1 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + col2 + + 25 IN ( - 22 / 87 + + col0 / 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 67 col1 FROM tab2
----
3082
4288
5025

query I rowsort
SELECT - col1 * - 64 FROM tab2 WHERE col1 * 61 * + col1 BETWEEN ( + 95 / - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT + col2 * - 38 + 86 AS col0 FROM tab0 WHERE - + CAST( + 45 AS SIGNED ) IS NOT NULL
----
-1700
-294
-3676

skipif mysql # not compatible
query I rowsort label-7160
SELECT + col2 * - 38 + 86 AS col0 FROM tab0 WHERE - + CAST ( + 45 AS INTEGER ) IS NOT NULL
----
-1700
-294
-3676

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - SUM( - col2 ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
226

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - SUM ( - col2 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7162
SELECT ALL - + COUNT( * ) DIV COUNT( ALL + col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL - + COUNT ( * ) / COUNT ( ALL + col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NULL ) = col2 * 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT ALL CAST( NULL AS SIGNED ) + + 66 + - 21 * + 15 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL CAST ( NULL AS INTEGER ) + + 66 + - 21 * + 15 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7165
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) > - + col2
----

skipif mysql # not compatible
query III rowsort label-7165
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > - + col2
----

query I rowsort
SELECT col1 + + col1 * ( + 44 ) + + - col0 FROM tab1
----
140
2024
579

query I rowsort
SELECT DISTINCT 94 * 94 FROM tab1 AS cor0 WHERE NOT + col2 - 34 - - col0 BETWEEN ( + col1 * - col2 + col2 * + col2 ) AND + 76 + - col1
----
8836

query I rowsort
SELECT + + 69 * - col0 - + 7 FROM tab2 AS cor0
----
-3181
-4423
-5182

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 + 70 BETWEEN + col2 AND + 66 AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 + 70 BETWEEN + col2 AND + 66 AND NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL - MAX( + 56 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - MAX ( + 56 ) FROM tab2 cor0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT ALL 73, COUNT( * ) * COUNT( * ) AS col2 FROM tab0 cor0
----
73
9

skipif mysql # not compatible
query II rowsort label-7171
SELECT ALL 73, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 cor0
----
73
9

query I rowsort
SELECT - col1 * col0 - - col0 + - col0 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NULL > - col0 * col0 * - col2
----

query I rowsort
SELECT ALL - + 42 + + + col0 - + col0 * - - 84 * col0 * - col2 FROM tab1 AS cor0
----
20974473
35807143
47301121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 * col0 ) AND NULL
----

query I rowsort
SELECT ALL + ( col2 ) AS col2 FROM tab1 WHERE NOT - col2 + + 55 / + col0 * + 85 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - SUM( + + col1 ) * 8 AS col2 FROM tab0
----
-824

skipif mysql # not compatible
query I rowsort label-7177
SELECT - SUM ( + + col1 ) * 8 AS col2 FROM tab0
----
-824

query I rowsort
SELECT ALL - 65 AS col1 FROM tab2 WHERE col2 > ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT DISTINCT - 64 AS col2, - COUNT( * ) * 52 AS col0 FROM tab0
----
-64
-156

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT - 64 AS col2, - COUNT ( * ) * 52 AS col0 FROM tab0
----
-64
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT ALL - - CAST( NULL AS SIGNED ) + 69 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 14 - - + ( - 30 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - - CAST ( NULL AS INTEGER ) + 69 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 14 - - + ( - 30 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + - 64, - ( + + 1 ) + - 32 AS col2 FROM tab0 AS cor0
----
-64
-33
-64
-33
-64
-33

query I rowsort
SELECT DISTINCT 77 * + col0 AS col2 FROM tab1 AS cor0
----
3927
6545
7007

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR + col2 NOT BETWEEN + ( + + col1 ) AND ( + col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT + col2 / - 24 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 * + - 68 + + col2 + col1 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab2 cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - + col1 >= + 59
----

query I rowsort
SELECT DISTINCT col1 * col0 + col1 * + col0 FROM tab1
----
1428
850
8554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 56 ) col1 FROM tab0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab1 WHERE + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 63 + 81 > - col2
----

query I rowsort
SELECT 61 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT 82 DIV + 4 + + - 53 + 86 AS col1 FROM tab2 cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-7194
SELECT 82 / + 4 + + - 53 + 86 AS col1 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL - - 8 + + MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - - 8 + + MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 8 ) col2 FROM tab2
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT - 99 DIV col0 * + + ( - 10 ) + - col1 AS col0 FROM tab2 AS cor0
----
-31
-57
-67

skipif mysql # not compatible
query I rowsort label-7199
SELECT - 99 / col0 * + + ( - 10 ) + - col1 AS col0 FROM tab2 AS cor0
----
-31
-57
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT + 50 * 9 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
375
386
404

skipif mysql # not compatible
query I rowsort label-7200
SELECT + 50 * 9 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
375
386
404

query I rowsort
SELECT ALL - - 30 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7203
SELECT - - 87 * col0 * - + col0 * + - col2 col0, CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
14254080
NULL
28383750
NULL
4234116
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7203
SELECT - - 87 * col0 * - + col0 * + - col2 col0, CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
14254080
NULL
28383750
NULL
4234116
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 >= - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - 38 ) + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 83 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 * - + col1 * - col2 - col1 + - col2 - - 25 * + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 34 * - 82 * + col0 FROM tab0
----
-1965540
-2425560
-26773164

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT COUNT( * ) * + 43 * 15 AS col2 FROM tab2
----
1935

skipif mysql # not compatible
query I rowsort label-7209
SELECT COUNT ( * ) * + 43 * 15 AS col2 FROM tab2
----
1935

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7210
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + + - col0 * - - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7210
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + + - col0 * - - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT MAX( ALL + - 5 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT MAX ( ALL + - 5 ) AS col2 FROM tab1
----
-5

query II rowsort
SELECT + col0 AS col1, - ( + col2 ) FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL + SUM( DISTINCT 90 ) col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7213
SELECT ALL + SUM ( DISTINCT 90 ) col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT + MAX( + col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT + MAX ( + col1 ) AS col0 FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT + - 65 * 71 AS col2 FROM tab1 AS cor0
----
-4615

query I rowsort
SELECT col2 * - - 43 FROM tab0 cor0
----
2021
4257
430

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL = + + 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT CAST( + + 75 AS SIGNED ) FROM tab2
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7218
SELECT CAST ( + + 75 AS INTEGER ) FROM tab2
----
75
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT + - 83 DIV - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7219
SELECT + - 83 / - COUNT ( * ) FROM tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + - col2 - + + 65 col1 FROM tab2 AS cor0
----
-107
-72
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL - + col0 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - + col0 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL SUM ( ALL col1 ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * + - 74 * + 65 IN ( + + col2, + 24, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT MAX( 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7224
SELECT MAX ( 14 ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL + COUNT( * ) + - AVG ( DISTINCT col2 ) FROM tab2 WHERE NOT + + col2 / + + 6 + - - col2 + + - col2 * - col2 + + col0 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + COUNT ( * ) + - AVG ( DISTINCT col2 ) FROM tab2 WHERE NOT + + col2 / + + 6 + - - col2 + + - col2 * - col2 + + col0 * + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT + col0 DIV 13 - col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-20
-36
-53

skipif mysql # not compatible
query I rowsort label-7226
SELECT + col0 / 13 - col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-20
-36
-53

query I rowsort
SELECT DISTINCT 50 * + col0 + - col0 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT DISTINCT - + 75 + col1 AS col2 FROM tab1 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 15 * col0 AS col2 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL COUNT( * ) * - ( - + 45 ) AS col0 FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL COUNT ( * ) * - ( - + 45 ) AS col0 FROM tab1 cor0
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7231
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) col2, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7231
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT ALL col0 + 36 DIV - - 93 + + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL col0 + 36 / - - 93 + + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT + CAST( NULL AS SIGNED ) AS col2, ( - - COUNT( * ) ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7233
SELECT + CAST ( NULL AS INTEGER ) AS col2, ( - - COUNT ( * ) ) FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - 31 * - + ( + MAX( ALL col2 ) ) FROM tab0
----
3069

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - 31 * - + ( + MAX ( ALL col2 ) ) FROM tab0
----
3069

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 9 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7236
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) * + 15 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7236
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * + 15 FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT + - COUNT( ALL + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + - COUNT ( ALL + - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT ALL COUNT( * ), - 4 AS col1 FROM tab0 AS cor0
----
3
-4

skipif mysql # not compatible
query II rowsort label-7240
SELECT ALL COUNT ( * ), - 4 AS col1 FROM tab0 AS cor0
----
3
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT col0 * - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - col1 / + col2 AND 29 + + col2 + - - 21
----

skipif mysql # not compatible
query I rowsort label-7241
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - col1 / + col2 AND 29 + + col2 + - - 21
----

query II rowsort
SELECT 46 AS col2, col2 AS col2 FROM tab1 cor0
----
46
59
46
68
46
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT - - MIN( 26 ) * - 42 FROM tab2 AS cor0
----
-1092

skipif mysql # not compatible
query I rowsort label-7243
SELECT - - MIN ( 26 ) * - 42 FROM tab2 AS cor0
----
-1092

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7244
SELECT ALL + - col2, ( - 79 ) * CAST( + col1 AS DECIMAL ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7244
SELECT ALL + - col2, ( - 79 ) * CAST ( + col1 AS REAL ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT ALL + + ( + 41 ) AS col0 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT + ( col0 ) * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT SUM( 55 ) AS col0 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-7247
SELECT SUM ( 55 ) AS col0 FROM tab2 cor0
----
165

query II rowsort
SELECT - col1, 75 AS col2 FROM tab1 AS cor0 WHERE NOT 82 * + + 65 IS NULL
----
-14
75
-47
75
-5
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7249
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) * - 41
----

skipif mysql # not compatible
query III rowsort label-7249
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) * - 41
----

query I rowsort
SELECT ALL + 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT DISTINCT 93 DIV - 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT 93 / - 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 20 IN ( + 28 + + + 40, 72 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + MIN( + col2 ) + + 10 FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-7253
SELECT + MIN ( + col2 ) + + 10 FROM tab0 cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7254
SELECT ALL - 20 * col0 - col1 + - col1 + 83 - + col0 * - + CAST( - ( - col1 ) AS SIGNED ) * 62 DIV - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1228
-7072
-7872

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - 20 * col0 - col1 + - col1 + 83 - + col0 * - + CAST ( - ( - col1 ) AS INTEGER ) * 62 / - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1228
-7072
-7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT DISTINCT + - col1 * col1 * - CAST( + 70 AS SIGNED ) + - + col0 AS col2 FROM tab1 AS cor0
----
13669
154539
1665

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + - col1 * col1 * - CAST ( + 70 AS INTEGER ) + - + col0 AS col2 FROM tab1 AS cor0
----
13669
154539
1665

query I rowsort
SELECT DISTINCT - + ( col2 ) * col0 * - col1 + - col2 FROM tab2 cor0 WHERE ( 86 ) NOT BETWEEN NULL AND 5
----
197080
291392
53935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT + ( - - 2 ) + - col1 + - + col0 * col1 + + ( 40 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + ( - - 2 ) + - col1 + - + col0 * col1 + + ( 40 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7258
SELECT DISTINCT - COUNT( * ) + - + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - COUNT ( * ) + - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7259
SELECT + col0 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT + col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL col2 + + 93 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL col2 + + 93 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7261
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7261
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 < + - 14
----
91
47
68

query I rowsort
SELECT ALL col0 - + + 57 AS col2 FROM tab1
----
-6
28
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7264
SELECT COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7265
SELECT ALL col0 DIV - - 25 - + col0, + col2 * 99 AS col2 FROM tab1
----
-49
9504
-82
5841
-88
6732

skipif mysql # not compatible
query II rowsort label-7265
SELECT ALL col0 / - - 25 - + col0, + col2 * 99 AS col2 FROM tab1
----
-49
9504
-82
5841
-88
6732

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = + col1
----

query I rowsort
SELECT DISTINCT - - ( - - ( - - col2 ) ) * + col1 AS col1 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT MAX( DISTINCT - 59 ) * ( MIN( ALL - 41 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
2419

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT MAX ( DISTINCT - 59 ) * ( MIN ( ALL - 41 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
2419

query I rowsort
SELECT ALL + col0 * - + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col2 * + - col1 * - - 65 * - + 52 * + col0 FROM tab0 cor0
----
193014900
32458140
61752600

query I rowsort
SELECT ALL - - 68 * + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3468
5780
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT ALL - col2 DIV + 97 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - col2 / + 97 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT - MIN( + col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - MIN ( + col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT SUM( ALL - + 6 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT SUM ( ALL - + 6 ) AS col0 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - MAX( - 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-7275
SELECT - MAX ( - 88 ) FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT MAX( - + ( 3 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7276
SELECT MAX ( - + ( 3 ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT - 94 + COUNT( * ) + + 72 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT - 94 + COUNT ( * ) + + 72 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
125

query II rowsort
SELECT ALL + 75, col0 AS col1 FROM tab2 AS cor0
----
75
46
75
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query I rowsort
SELECT - + col0 * 1 * - ( + + 56 ) + - 21 + - - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
2931
4798
5143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT DISTINCT - col1 * - col1 + + 95 + - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - col1 * - col1 + + 95 + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 11 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + + ( + COUNT( + col2 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7284
SELECT + + ( + COUNT ( + col2 ) ) AS col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 cor0 WHERE ( ( NOT + col0 IS NULL ) )
----
1
21
81

query I rowsort
SELECT col0 - + col0 + - + 32 * - + col2 FROM tab2 AS cor0
----
1280
1856
736

query I rowsort
SELECT 16 - + + 32 AS col1 FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL 5 + COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL 5 + COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT + col2 + - 49 FROM tab1
----
10
19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL - - 89 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7290
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL - - 89 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT COUNT( * ) - - 63 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT COUNT ( * ) - - 63 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL 4 * COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL 4 * COUNT ( * ) AS col2 FROM tab2
----
12

query I rowsort
SELECT + + ( - + col2 ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - ( - col0 ) + + + 66 FROM tab2 AS cor0
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - MIN( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7295
SELECT - MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 89 * + + col0 AS col1 FROM tab0
----
-1335
-7743
-8633

query I rowsort
SELECT - + 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query II rowsort
SELECT col2, col2 + + 87 * - - 32 FROM tab0
----
10
2794
47
2831
99
2883

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col1 AND + 18 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT DISTINCT - + col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT - + col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 39 * - col2 AS col0 FROM tab1 AS cor0
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7304
SELECT + 39 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-7304
SELECT + 39 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
39
NULL
39
NULL
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - + COUNT( + 71 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7305
SELECT - + COUNT ( + 71 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - 4 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 40 / - 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - ( + 31 ) AS col2 FROM tab2 cor0
----
23
-31
40
-31
58
-31

query I rowsort
SELECT DISTINCT + col0 * + ( - 71 ) * + col0 * + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - + col1, 93 )
----

query I rowsort
SELECT ALL + col1 * + 92 AS col0 FROM tab1
----
1288
4324
460

query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab2 WHERE NOT NULL IN ( + + col2, col1 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7312
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ), COUNT( * ) col2 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7312
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) col2 FROM tab2
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col1 col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT DISTINCT + MIN( DISTINCT - col1 ) DIV + MAX( + - ( + + col0 ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7314
SELECT DISTINCT + MIN ( DISTINCT - col1 ) / + MAX ( + - ( + + col0 ) ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT + col0 * - + CAST( col2 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7315
SELECT + col0 * - + CAST ( col2 AS INTEGER ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT + + CAST( + 43 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7316
SELECT + + CAST ( + 43 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT DISTINCT - COUNT( - col1 ) + 8 - + CAST( SUM( ALL - 42 ) AS SIGNED ) FROM tab1 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT - COUNT ( - col1 ) + 8 - + CAST ( SUM ( ALL - 42 ) AS INTEGER ) FROM tab1 AS cor0
----
131

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query II rowsort
SELECT ALL col1, - 79 FROM tab0
----
1
-79
21
-79
81
-79

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT - - col1 NOT BETWEEN - 73 AND NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7322
SELECT + ( 95 ) + + 74, 20 DIV 9 AS col0 FROM tab0 AS cor0
----
169
2
169
2
169
2

skipif mysql # not compatible
query II rowsort label-7322
SELECT + ( 95 ) + + 74, 20 / 9 AS col0 FROM tab0 AS cor0
----
169
2
169
2
169
2

query I rowsort
SELECT + - col0 * - + col0 + - col0 AS col2 FROM tab0 cor0
----
210
7482
9312

query I rowsort
SELECT DISTINCT - + col0 + 10 AS col1 FROM tab2 cor0 WHERE col1 * + 76 NOT IN ( - col0 + - col1, col1, col1 )
----
-36
-54
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + + COUNT( DISTINCT + col1 ) + - MIN( ALL - col0 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7325
SELECT + + COUNT ( DISTINCT + col1 ) + - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 12 * + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab0 cor0 WHERE + col1 <> col0 / - - col2
----
1
21
81

query I rowsort
SELECT ALL 53 * col1 FROM tab0 WHERE NULL = - 83 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL col0 - + col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL col0 - + col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - - 26 - col0 + col1 FROM tab2
----
-1191
-1651
-1958

query I rowsort
SELECT ALL 80 + col2 AS col1 FROM tab0
----
127
179
90

query III rowsort
SELECT ALL * FROM tab1 WHERE + 38 IS NULL
----

query I rowsort
SELECT + 99 - ( ( 35 ) ) + + col2 AS col1 FROM tab1 WHERE + ( + col0 ) * + col0 < NULL
----

query I rowsort
SELECT ALL col0 - - 53 - col1 + + 18 AS col0 FROM tab1
----
108
115
151

query I rowsort
SELECT 36 - + col2 + + 49 AS col1 FROM tab1
----
-11
17
26

query I rowsort
SELECT ALL col2 - 28 AS col0 FROM tab0
----
-18
19
71

query I rowsort
SELECT + 76 * + 87 * - col1 FROM tab0 AS cor0
----
-138852
-535572
-6612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col0 + + 91 / - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col0 + + 91 / - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT - COUNT( * ) * + 24 * 85 col2 FROM tab0
----
-6120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7339
SELECT DISTINCT - COUNT ( * ) * + 24 * 85 col2 FROM tab0
----
-6120

query I rowsort
SELECT ALL col0 * + col2 * + + col0 AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL col1 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE 55 BETWEEN + 94 - + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL col1 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE 55 BETWEEN + 94 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT - + MAX( - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - + MAX ( - col1 ) FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT + CAST( - 4 AS SIGNED ) AS col2 FROM tab1 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7343
SELECT + CAST ( - 4 AS INTEGER ) AS col2 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT + 39 + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + 39 + - COUNT ( * ) FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6 * col1 AS col2, - col2 col0 FROM tab2
----
306
-23
402
-58
462
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + col2 ) AS col2, - col0 col2 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT col1 DIV + 43 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7347
SELECT col1 / + 43 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT DISTINCT 71 DIV + + 88 * + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT 71 / + + 88 * + col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL COUNT( * ) * + + MIN( col1 ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL COUNT ( * ) * + + MIN ( col1 ) AS col1 FROM tab1
----
15

query I rowsort
SELECT - 73 * + - ( 41 ) AS col2 FROM tab1
----
2993
2993
2993

query I rowsort
SELECT ALL + ( + 20 ) AS col1 FROM tab2
----
20
20
20

query I rowsort
SELECT col2 * - 50 * + col2 FROM tab1
----
-174050
-231200
-460800

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE + ( + 52 ) > NULL
----

query I rowsort
SELECT + col0 + 6 + + col2 + - col2 * col0 FROM tab2 AS cor0
----
-2450
-4211
-983

query I rowsort
SELECT ALL + + 70 * - - col1 + + col2 AS col1 FROM tab1 cor0
----
1076
3358
409

query I rowsort
SELECT ALL + col0 + - 72 * + col1 + col1 FROM tab1
----
-270
-3246
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT 69 * - 45 * - + col2 + - - 77 DIV + 70 FROM tab0
----
145936
307396
31051

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 69 * - 45 * - + col2 + - - 77 / + 70 FROM tab0
----
145936
307396
31051

query I rowsort
SELECT col0 * + + col2 * - 22 AS col0 FROM tab1
----
-107712
-110330
-136136

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - 96 * - + COUNT( * ) AS col2 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
288

skipif mysql # not compatible
query I rowsort label-7360
SELECT - 96 * - + COUNT ( * ) AS col2 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT DISTINCT SUM( ALL CAST( + 49 AS SIGNED ) ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT SUM ( ALL CAST ( + 49 AS INTEGER ) ) FROM tab2 AS cor0
----
147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 70 * - col0 * + + 62 < NULL
----

query I rowsort
SELECT + - 95 - - col2 * + + col1 FROM tab0 AS cor0
----
115
3712
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL CAST( NULL AS SIGNED ) * - 29 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL CAST ( NULL AS INTEGER ) * - 29 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 8 - - + col2 AS col2 FROM tab1 AS cor0
----
51
60
88

query I rowsort
SELECT ALL 61 * col1 / col2 + col1 * + ( - ( - + col1 ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + 18 - - + 28 FROM tab0 cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 41 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL + - COUNT( * ) * 55 * - + 35 + + - 31 FROM tab2 AS cor0
----
5744

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + - COUNT ( * ) * 55 * - + 35 + + - 31 FROM tab2 AS cor0
----
5744

query I rowsort
SELECT 57 + - col1 AS col0 FROM tab1
----
10
43
52

query I rowsort
SELECT + col2 + ( col0 ) * + col2 FROM tab0
----
752
880
9702

query II rowsort
SELECT ALL + 73 + + + col1 * - - 42 + - col2, + col1 FROM tab1
----
1979
47
224
5
565
14

query I rowsort
SELECT ( + ( - col0 ) ) * + col1 + - 80 FROM tab2
----
-2426
-5008
-5105

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + + 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 81 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL + SUM( DISTINCT 4 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + SUM ( DISTINCT 4 ) AS col1 FROM tab2
----
4

query I rowsort
SELECT DISTINCT - 15 * + - col0 + + + col1 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT + 1 col2, - COUNT( * ) FROM tab2 AS cor0
----
1
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7378
SELECT + 1 col2, - COUNT ( * ) FROM tab2 AS cor0
----
1
-3

query II rowsort
SELECT ALL - col1 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7380
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) + - col2 NOT BETWEEN + 3 + + col2 / - - CAST( NULL AS SIGNED ) AND + col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-7380
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) + - col2 NOT BETWEEN + 3 + + col2 / - - CAST ( NULL AS INTEGER ) AND + col0 * + col1
----

query II rowsort
SELECT - col0 * + col1 AS col1, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query III rowsort
SELECT * FROM tab2 WHERE NOT 16 * - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + - COUNT( * ) AS col0 FROM tab1 WHERE NOT - - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7383
SELECT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - col0 IS NULL
----
-3

query I rowsort
SELECT ALL - + 93 FROM tab2 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - COUNT( - col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT - COUNT ( - col0 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT - - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT - - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MIN( DISTINCT + col1 ) col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7388
SELECT MIN ( DISTINCT + col1 ) col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + + COUNT( * ) * + + COUNT( * ) * - 85 AS col2 FROM tab0 AS cor0
----
-765

skipif mysql # not compatible
query I rowsort label-7389
SELECT + + COUNT ( * ) * + + COUNT ( * ) * - 85 AS col2 FROM tab0 AS cor0
----
-765

query I rowsort
SELECT DISTINCT + col0 + - 92 FROM tab2 AS cor0
----
-17
-28
-46

query II rowsort
SELECT DISTINCT col1 * - col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query II rowsort
SELECT ALL + + col1 * - + col1, col2 FROM tab1 cor0
----
-196
96
-2209
68
-25
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - + COUNT( * ) + 86 AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7393
SELECT - + COUNT ( * ) + 86 AS col2 FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col1 * col1 + - - 18 AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT DISTINCT + 40 DIV - col1 AS col0 FROM tab1
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + 40 / - col1 AS col0 FROM tab1
----
-2
-8
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT ( - - COUNT( * ) ), + COUNT( * ) FROM tab2, tab1 cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-7396
SELECT ( - - COUNT ( * ) ), + COUNT ( * ) FROM tab2, tab1 cor0
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7397
SELECT - 72 + + ( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE + 41 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 72 + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE + 41 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 97 * + col0 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT 4 * + - 36 AS col0 FROM tab2
----
-144
-144
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL - COUNT( * ) + - - 93 AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL - COUNT ( * ) + - - 93 AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + MAX( DISTINCT 45 ) AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7401
SELECT + MAX ( DISTINCT 45 ) AS col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab2 AS cor0 WHERE + col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT + SUM( 25 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + SUM ( 25 ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - COUNT( ALL + + col0 ) + + 50 col1 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7404
SELECT - COUNT ( ALL + + col0 ) + + 50 col1 FROM tab2
----
47

query I rowsort
SELECT col1 * - + 58 * 50 + - col2 FROM tab0
----
-234947
-2999
-60910

query I rowsort
SELECT - col0 + + + ( - - col0 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT DISTINCT - 67 * - col0 * col0 * + col0 DIV + col0 FROM tab1 AS cor0
----
174267
484075
554827

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - 67 * - col0 * col0 * + col0 / + col0 FROM tab1 AS cor0
----
174267
484075
554827

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT + 97 - + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT + 97 - + COUNT ( * ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * ( - 94 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col0 / - ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT - ( - CAST( col1 AS SIGNED ) ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT - ( - CAST ( col1 AS INTEGER ) ) FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 * + col2 + - 12 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7413
SELECT ALL 88 DIV - col2 * - 24 DIV - col0 DIV - col0 AS col0, - 91 col1 FROM tab0
----
0
-91
0
-91
0
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7413
SELECT ALL 88 / - col2 * - 24 / - col0 / - col0 AS col0, - 91 col1 FROM tab0
----
0
-91
0
-91
0
-91

query I rowsort
SELECT 83 FROM tab0 WHERE NOT NULL IS NOT NULL
----
83
83
83

query I rowsort
SELECT 88 * + + col1 * - - col0 FROM tab1
----
37400
376376
62832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( - + 10 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL BETWEEN - 52 AND NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT 64 * MIN( - col1 ) FROM tab2
----
-4928

skipif mysql # not compatible
query I rowsort label-7420
SELECT 64 * MIN ( - col1 ) FROM tab2
----
-4928

query II rowsort
SELECT ALL + col2 AS col0, ( + - col1 ) * + - 9 + + col1 + + - 15 AS col1 FROM tab1 AS cor0
----
59
35
68
455
96
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 91 ) col0 FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < + - col0
----

query I rowsort
SELECT ALL + col0 + + col1 * 85 AS col2 FROM tab1 AS cor0
----
1241
4086
510

query I rowsort
SELECT ALL - col0 + + 49 AS col0 FROM tab0 AS cor0
----
-38
-48
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT DISTINCT + + 18 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + + 18 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + col1 AS col0, col2 col0 FROM tab2
----
141
40
142
58
97
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7428
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col0, + 22 FROM tab2
----
23
22
40
22
58
22

skipif mysql # not compatible
query II rowsort label-7428
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col0, + 22 FROM tab2
----
23
22
40
22
58
22

query I rowsort
SELECT col1 + + + col1 AS col0 FROM tab0
----
162
2
42

query II rowsort
SELECT col0 + + col2 AS col0, 35 * + 60 FROM tab2
----
104
2100
133
2100
69
2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * col2 col1 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT + col0 + + - 78 AS col1 FROM tab1 AS cor0
----
-27
13
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab2
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + COUNT( * ) + + + 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
37

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + COUNT ( * ) + + + 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
37

query I rowsort
SELECT ALL - col0 - + ( + - ( + 56 ) ) AS col1 FROM tab2 cor0
----
-19
-8
10

query I rowsort
SELECT DISTINCT - + 10 * + col2 AS col1 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + ( - - COUNT( * ) ) * - 52 AS col1 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7437
SELECT + ( - - COUNT ( * ) ) * - 52 AS col1 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT DISTINCT 73 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT 73 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT col0 DIV - col2 AS col0 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT col0 / - col2 AS col0 FROM tab0 cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + + 56 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( ( - 12 ) ) * + col1 AS col1 FROM tab2 AS cor0
----
-612
-804
-924

query I rowsort
SELECT ALL + - ( ( - col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT 98 * + - SUM( ALL col2 ) AS col2 FROM tab0
----
-15288

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT 98 * + - SUM ( ALL col2 ) AS col2 FROM tab0
----
-15288

query II rowsort
SELECT + col1 AS col1, col2 * + 19 * 0 AS col1 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NOT ( - + col0 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NOT ( - + col0 IS NULL ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7446
SELECT ALL - col2 + - + CAST( NULL AS DECIMAL ) * - col1 / CAST( + 6 AS SIGNED ) / col2 + - col0 AS col1 FROM tab0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - col2 + - + CAST ( NULL AS REAL ) * - col1 / CAST ( + 6 AS INTEGER ) / col2 + - col0 AS col1 FROM tab0 WHERE + col2 IS NULL
----

query II rowsort
SELECT ALL - col2 * - - col1 AS col2, 3 FROM tab0 AS cor0
----
-210
3
-3807
3
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + 43 * - COUNT( * ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7448
SELECT + 43 * - COUNT ( * ) FROM tab1 AS cor0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT ALL - col2 DIV - - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - col2 / - - col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - COUNT( DISTINCT - 73 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - COUNT ( DISTINCT - 73 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT DISTINCT - - col1 + - + 39 FROM tab1 cor0
----
-25
-34
8

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 WHERE NOT + - 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( - col1 ) * - ( - - col1 ) AS col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT - - col1 AS col2 FROM tab1 WHERE - - col0 + - 90 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( - ( + col0 ) ) + col1 <> NULL
----

query I rowsort
SELECT ALL 4 + - 2 * - col0 + - ( + + col2 ) FROM tab2
----
73
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT MIN( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7458
SELECT MIN ( ALL + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - COUNT( * ) * COUNT( DISTINCT - col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7459
SELECT - COUNT ( * ) * COUNT ( DISTINCT - col2 ) FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * + col1 - - + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7461
SELECT ALL + 60 AS col1, + SUM( + 54 ) DIV - - MIN( col2 ) AS col2 FROM tab2
----
60
7

skipif mysql # not compatible
query II rowsort label-7461
SELECT ALL + 60 AS col1, + SUM ( + 54 ) / - - MIN ( col2 ) AS col2 FROM tab2
----
60
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + + SUM( - - col0 ) * - 76 AS col2 FROM tab0 AS cor0
----
-15124

skipif mysql # not compatible
query I rowsort label-7462
SELECT + + SUM ( - - col0 ) * - 76 AS col2 FROM tab0 AS cor0
----
-15124

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT - - 18 DIV + + 28 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT - - 18 / + + 28 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT MIN( ALL ( 60 ) ) + + COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-7464
SELECT MIN ( ALL ( 60 ) ) + + COUNT ( * ) FROM tab2
----
63

query I rowsort
SELECT + 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + col1 + 28 AS col0 FROM tab2 WHERE 62 = NULL
----

query I rowsort
SELECT ALL + 73 * - 63 FROM tab1 AS cor0
----
-4599
-4599
-4599

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT + 43 DIV col1 col0 FROM tab0 AS cor0
----
0
2
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7468
SELECT DISTINCT + 43 / col1 col0 FROM tab0 AS cor0
----
0
2
43

query I rowsort
SELECT DISTINCT col0 * + + col1 * + col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + + col2 * + col0 + + col0 * - col0 + 68 IS NOT NULL
----

query I rowsort
SELECT col2 - - - 79 AS col0 FROM tab0 WHERE NOT - 26 > - col2 * - + col2
----
-32
-69
20

query I rowsort
SELECT DISTINCT 95 * - 67 AS col2 FROM tab1
----
-6365

onlyif mysql # DIV for integer division: 
query II rowsort label-7473
SELECT DISTINCT - 29 DIV + ( + - col1 ) AS col0, + col2 FROM tab0
----
0
47
1
10
29
99

skipif mysql # not compatible
query II rowsort label-7473
SELECT DISTINCT - 29 / + ( + - col1 ) AS col0, + col2 FROM tab0
----
0
47
1
10
29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + - ( + MIN( col1 ) ) AS col1 FROM tab0 WHERE NOT + col2 BETWEEN 28 * col2 AND + col1
----
-1

skipif mysql # not compatible
query I rowsort label-7474
SELECT + - ( + MIN ( col1 ) ) AS col1 FROM tab0 WHERE NOT + col2 BETWEEN 28 * col2 AND + col1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * + - ( - col0 ) col2 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT ALL + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NOT col2 - + col2 > NULL )
----

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NOT col2 - + col2 > NULL )
----

query II rowsort
SELECT + - 21, - col0 AS col0 FROM tab0 AS cor0
----
-21
-15
-21
-87
-21
-97

query I rowsort
SELECT 23 + - col0 FROM tab0
----
-64
-74
8

query I rowsort
SELECT col0 + col1 + - ( col0 ) * + col0 FROM tab1
----
-2536
-7135
-8143

query I rowsort
SELECT 44 * - + 44 + col2 * 18 * col0 FROM tab2
----
17108
44144
76364

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - col0 + + ( + col2 )
----

query I rowsort
SELECT col1 * - - ( - col1 ) AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL - 85 + COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - 85 + COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE col1 / col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT ALL - col1 DIV col0 - + + col2 * - 59 + - col2 FROM tab2 cor0
----
1333
2319
3364

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL - col1 / col0 - + + col2 * - 59 + - col2 FROM tab2 cor0
----
1333
2319
3364

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 19 AND 81
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 >= + col0
----

query I rowsort
SELECT DISTINCT + col1 + ( + - col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT + 87 AS col1 FROM tab0 AS cor0 WHERE + col1 >= - ( col2 ) * 14
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL 35 + + + MIN( - 46 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 35 + + + MIN ( - 46 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT + + col0 DIV col0 + - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-103
-132
-68

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT + + col0 / col0 + - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-103
-132
-68

query I rowsort
SELECT DISTINCT col2 + + 31 + + col1 FROM tab0
----
131
159
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7496
SELECT - 29 * - AVG ( DISTINCT + 29 ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT - 29 * - AVG ( DISTINCT + 29 ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 + col0 + + col0 * + 92 + col2 * - + col1 AS col1 FROM tab0
----
-2365
7891
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT + 52 + COUNT( * ) AS col0 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 52 + COUNT ( * ) AS col0 FROM tab1
----
55

query I rowsort
SELECT DISTINCT col0 - 57 AS col2 FROM tab1
----
-6
28
34

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + COUNT( - 21 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7503
SELECT + COUNT ( - 21 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7504
SELECT + col1 AS col2, - 53 DIV - col0 AS col1 FROM tab1
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7504
SELECT + col1 AS col2, - 53 / - col0 AS col1 FROM tab1
----
14
1
47
0
5
0

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7506
SELECT + col1 AS col0, + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-7506
SELECT + col1 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT SUM( DISTINCT + - 53 ) col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7507
SELECT DISTINCT SUM ( DISTINCT + - 53 ) col0 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT - - 67 * - col1 FROM tab1 AS cor0
----
-3149
-335
-938

query I rowsort
SELECT + ( col2 ) * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - ( + col0 ) * + - ( + + ( + col0 ) ) + - 88 AS col2 FROM tab0 AS cor0
----
137
7481
9321

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT + - 13 * - 53 FROM tab2 cor0
----
689
689
689

query I rowsort
SELECT - col2 * + 67 * - - 93 AS col2 FROM tab2
----
-143313
-249240
-361398

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT + col1 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT + MIN( - ( - col0 ) ) * + CAST( 44 AS SIGNED ) FROM tab2
----
2024

skipif mysql # not compatible
query I rowsort label-7515
SELECT + MIN ( - ( - col0 ) ) * + CAST ( 44 AS INTEGER ) FROM tab2
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT - 6 * MAX( - 85 ) AS col1 FROM tab0
----
510

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - 6 * MAX ( - 85 ) AS col1 FROM tab0
----
510

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + col2 * + + col2 * - 40 + - 56 AS col2, col0 + - col2 FROM tab1 AS cor0
----
-139296
26
-185016
23
-368696
-45

query I rowsort
SELECT + col2 * + 28 AS col1 FROM tab0 cor0
----
1316
2772
280

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT - - CAST( - 88 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-7521
SELECT - - CAST ( - 88 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - + col2 + 90 AS col0 FROM tab2 AS cor0
----
32
50
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - COUNT( ALL + 80 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - COUNT ( ALL + 80 ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7524
SELECT col0 DIV ( - col2 ) + - - col0 AS col1 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-7524
SELECT col0 / ( - col2 ) + - - col0 AS col1 FROM tab1 AS cor0
----
51
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT DISTINCT 33 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT 33 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - SUM( DISTINCT + 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - SUM ( DISTINCT + 52 ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT 67 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7527
SELECT 67 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL + COUNT( * ) * - + 16 col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7528
SELECT ALL + COUNT ( * ) * - + 16 col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL - 69 + - col2 FROM tab0 AS cor0
----
-116
-168
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT col1 - - col1 - + CAST( NULL AS SIGNED ) - + - col0 AS col2 FROM tab0 cor0 WHERE 71 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT col1 - - col1 - + CAST ( NULL AS INTEGER ) - + - col0 AS col2 FROM tab0 cor0 WHERE 71 * col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT 86 + - COUNT( * ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT 86 + - COUNT ( * ) FROM tab1 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7532
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7532
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + - col0 col0 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT DISTINCT col0 + - col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT col0 + - col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 IS NULL
----

query I rowsort
SELECT ALL + 0 - - + col2 + + - col1 AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT - col2 - + CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - col2 - + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL col0 + - 28 + - col1 + CAST( NULL AS SIGNED ) * 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL col0 + - 28 + - col1 + CAST ( NULL AS INTEGER ) * 0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col2, col0 * col1 AS col2 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7540
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + + - col0 * - 44 > - col1 * col1 + + 29 - col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-7540
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + + - col0 * - 44 > - col1 * col1 + + 29 - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT ALL 13 AS col0, COUNT( * ) FROM tab2
----
13
3

skipif mysql # not compatible
query II rowsort label-7541
SELECT ALL 13 AS col0, COUNT ( * ) FROM tab2
----
13
3

query I rowsort
SELECT ALL - 73 - - 25 - - 20 AS col1 FROM tab2
----
-28
-28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT COUNT( * ) + - COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT COUNT ( * ) + - COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + 46 + - 37 AS col2 FROM tab0 AS cor0
----
3965
4425
653

query I rowsort
SELECT 70 * - 84 FROM tab0 AS cor0
----
-5880
-5880
-5880

query I rowsort
SELECT ALL 65 * - col0 AS col2 FROM tab2 cor0
----
-2990
-4160
-4875

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 * col1 AS col1 FROM tab0 AS cor0
----
-10
210
-47
3807
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT - COUNT( * ) + 9 col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7550
SELECT DISTINCT - COUNT ( * ) + 9 col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT + MIN( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7552
SELECT + MIN ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT + - col1 * ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 40 * + 82 * + 37 NOT BETWEEN 14 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7553
SELECT + - col1 * ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 40 * + 82 * + 37 NOT BETWEEN 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT ALL - CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT ALL - CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 + 14 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + 14 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + - 75 FROM tab0
----
-1575
-6075
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 - + + ( col1 ) * + col0 IS NOT NULL )
----

query I rowsort
SELECT col0 * + + 29 FROM tab1
----
1479
2465
2639

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT + col1 DIV + - col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7560
SELECT + col1 / + - col1 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col0 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + SUM( DISTINCT - - col1 ) * 62 FROM tab1
----
4092

skipif mysql # not compatible
query I rowsort label-7562
SELECT + SUM ( DISTINCT - - col1 ) * 62 FROM tab1
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT COUNT( ALL col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7563
SELECT DISTINCT COUNT ( ALL col0 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - COUNT( * ) * 36 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-7564
SELECT - COUNT ( * ) * 36 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL + - COUNT( * ) + - - 82 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + - COUNT ( * ) + - - 82 FROM tab0 cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + 35 * MIN( ALL - col0 ) FROM tab0
----
-3395

skipif mysql # not compatible
query I rowsort label-7566
SELECT + 35 * MIN ( ALL - col0 ) FROM tab0
----
-3395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT + CAST( NULL AS SIGNED ) * ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT + CAST ( NULL AS INTEGER ) * ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 70 + col2 * + 70 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( ALL + col2 ) * 38 AS col0 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( ALL + col2 ) * 38 AS col0 FROM tab1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL COUNT( * ) * - ( MIN( ALL col0 ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL COUNT ( * ) * - ( MIN ( ALL col0 ) ) FROM tab1
----
-153

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 54 * - col1 + 62 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 15 + 44 * ( 89 ) AS col2 FROM tab2 WHERE NOT ( + col2 + col2 ) <= + col2 - + col1
----
3901

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( 60 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 <> col2 * ( col1 * + ( + 33 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - - 51 AS col2 FROM tab2
----
109
74
91

query I rowsort
SELECT DISTINCT ( + 61 ) * 42 FROM tab1
----
2562

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN ( NULL ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE - 46 + - col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT 36 * + 66 FROM tab1
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7580
SELECT * FROM tab0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7580
SELECT * FROM tab0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 1 + 67 FROM tab0
----
66
66
66

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL < ( col0 )
----

query I rowsort
SELECT ALL + col1 + 71 AS col1 FROM tab0
----
152
72
92

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 41 ) BETWEEN ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + COUNT( * ) + - 44 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-7585
SELECT + COUNT ( * ) + - 44 FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7586
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT col2 * col2 - + 72 AS col0 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-7587
SELECT col2 * col2 - + 72 AS col0 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7588
SELECT * FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) NOT IN ( 23 )
----

skipif mysql # not compatible
query III rowsort label-7588
SELECT * FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) NOT IN ( 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT ALL - col0 DIV + col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - col0 / + col2 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab0 WHERE NOT ( NULL ) <> ( col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + col0 * col2 col0 FROM tab0 WHERE NOT ( - col2 ) <= NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( + col2 * 11 ) = ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 89 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT + MAX( DISTINCT col1 ) * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + MAX ( DISTINCT col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 86 FROM tab2 AS cor0 WHERE ( col2 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT COUNT( * ) * 54 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT COUNT ( * ) * 54 FROM tab1 AS cor0
----
162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL ( + MIN( 59 ) ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL ( + MIN ( 59 ) ) FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT ALL col0 FROM tab1 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN + 22 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL col0 FROM tab1 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN + 22 AND ( col0 )
----

query I rowsort
SELECT + ( + 85 ) FROM tab1
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT + COUNT( + 2 ) + - 66 DIV 90 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-7603
SELECT + COUNT ( + 2 ) + - 66 / 90 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col2 FROM tab1 WHERE 68 * + col2 - col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - ( + 61 ) AS col0 FROM tab2 AS cor0 WHERE NULL > ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col2 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - MIN( + 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7608
SELECT - MIN ( + 33 ) FROM tab2 AS cor0
----
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT col2 * 81 AS col2 FROM tab1 AS cor0
----
4779
5508
7776

query I rowsort
SELECT DISTINCT + + col0 + - col2 * col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT + col0 * col0 + - col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - 96
----
2505
7166
8213

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT + 64 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT - + 73 DIV col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT - + 73 / col2 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - SUM( ALL 59 ) AS col1 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7615
SELECT - SUM ( ALL 59 ) AS col1 FROM tab1 cor0
----
-177

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 IN ( + col1 - + ( 15 ) )
----

query I rowsort
SELECT ALL + + 30 + col2 AS col1 FROM tab0 AS cor0
----
129
40
77

query I rowsort
SELECT col2 * + 34 FROM tab2
----
1360
1972
782

query III rowsort
SELECT * FROM tab1 WHERE ( 2 ) <> - col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 97 * col2 + ( - col2 + - col2 ) = col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) <= ( + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - - 69 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - + col0 + col1 + - col2 * - col2 FROM tab2 AS cor0
----
1613
3356
534

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 90 AND NULL
----

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18

query I rowsort
SELECT - col2 + + ( ( - col0 ) ) + + col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 66 * + col2 FROM tab2 AS cor0
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + - MAX( DISTINCT + col2 ) + - + ( + 39 ) AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-7630
SELECT + - MAX ( DISTINCT + col2 ) + - + ( + 39 ) AS col1 FROM tab0 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT DISTINCT + 4 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + 4 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 50 * - 78 + col0 * - 20 FROM tab1 AS cor0
----
2080
2200
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 + col1 + 25 col2 FROM tab1 AS cor0
----
-2562
-7195
-8209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + COUNT( * ) - CAST( - 60 AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + COUNT ( * ) - CAST ( - 60 AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-177

query I rowsort
SELECT DISTINCT + col2 + + 51 * + + col1 * col0 FROM tab2 AS cor0
----
119669
251368
256333

query I rowsort
SELECT DISTINCT - 80 + + col1 * - 81 AS col0 FROM tab2 AS cor0
----
-4211
-5507
-6317

query I rowsort
SELECT ALL col2 - col1 + col0 FROM tab0
----
-19
195
76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 - - + 71 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 34 * 68 + 16 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + MIN( ALL - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7640
SELECT DISTINCT + MIN ( ALL - col2 ) col2 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT 22 * + + col1 AS col2 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + MIN( ALL + 11 ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-7642
SELECT + MIN ( ALL + 11 ) FROM tab2 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - + 90 * - SUM( + - 43 ) FROM tab0 AS cor0
----
-11610

skipif mysql # not compatible
query I rowsort label-7643
SELECT - + 90 * - SUM ( + - 43 ) FROM tab0 AS cor0
----
-11610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * 81 * col2 * + - 11 col2 FROM tab0
----
418770
882090
89100

query I rowsort
SELECT DISTINCT + 67 * - 94 FROM tab0
----
-6298

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT col0 DIV 81 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT col0 / 81 FROM tab0
----
0
1
1

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * 54 <= 6 / - 16
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - MAX( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + SUM( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7649
SELECT + SUM ( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT - 55 + COUNT( * ) - - 42 + - + 86 AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - 55 + COUNT ( * ) - - 42 + - + 86 AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + 45 + - ( - col0 ) + + 6 FROM tab0 AS cor0
----
138
148
66

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + 99 AS col2 FROM tab2 AS cor0
----
46
150
64
176
75
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - 23 * COUNT( * ) + - 33 + + 53 AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7653
SELECT - 23 * COUNT ( * ) + - 33 + + 53 AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT - + ( + + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - SUM( DISTINCT + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT col0 + - + col0 AS col1 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col0, col2 * + + 2 AS col2 FROM tab2
----
46
46
64
80
75
116

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 27 + col0 ) = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT DISTINCT - 10, - COUNT( * ) AS col1 FROM tab2
----
-10
-3

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT - 10, - COUNT ( * ) AS col1 FROM tab2
----
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + SUM( col0 ) + + 8 FROM tab0 WHERE NOT ( NOT ( - + col0 + - col2 * - col0 IS NOT NULL ) )
----
207

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + SUM ( col0 ) + + 8 FROM tab0 WHERE NOT ( NOT ( - + col0 + - col2 * - col0 IS NOT NULL ) )
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT col0 + + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT col0 + + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col1 FROM tab2 WHERE ( NOT 58 IS NULL )
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL - CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + MIN( ALL 9 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + MIN ( ALL 9 ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT col2 * + 57 - + + CAST( - col0 AS SIGNED ) + - col2 / + + ( col1 ) * CAST( NULL AS SIGNED ) + + 8 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT col2 * + 57 - + + CAST ( - col0 AS INTEGER ) + - col2 / + + ( col1 ) * CAST ( NULL AS INTEGER ) + + 8 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + + COUNT( * ) col1 FROM tab1 WHERE + ( + 14 ) <> + + 2 * col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7669
SELECT + + COUNT ( * ) col1 FROM tab1 WHERE + ( + 14 ) <> + + 2 * col0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7670
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - 34 / + + col1 * col0 IS NOT NULL
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - 34 / + + col1 * col0 IS NOT NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL COUNT( * ) col0 FROM tab2 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-7671
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col1, 33 )
----

query I rowsort
SELECT ( - - col1 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col2 * + col0 * + col2 FROM tab1 cor0
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + - MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + - MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT 83 * + 42 * 86 FROM tab2
----
299796
299796
299796

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + MAX( DISTINCT - + 9 ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT + MAX ( DISTINCT - + 9 ) col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL COUNT( * ) * + 91 AS col2 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL COUNT ( * ) * + 91 AS col2 FROM tab2
----
273

query II rowsort
SELECT + 42 AS col2, col1 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT - ( - - 16 ) FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT COUNT( * ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7682
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7683
SELECT ALL CAST( NULL AS DECIMAL ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL CAST ( NULL AS REAL ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab1 AS cor0 WHERE NOT - 82 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 74 * + - col1 * - col1 FROM tab0 AS cor0 WHERE + 69 IS NOT NULL
----
32634
485514
74

query II rowsort
SELECT - + 18, col2 FROM tab2 AS cor0
----
-18
23
-18
40
-18
58

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT - - col2 - - col0 <= + 63 + + + col1
----
-67

query I rowsort
SELECT DISTINCT 34 * 48 FROM tab2
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT ALL 18 DIV + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL 18 / + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT - ( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7690
SELECT - ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT DISTINCT + CAST( + + 50 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2350
4950
500

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + CAST ( + + 50 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2350
4950
500

query I rowsort
SELECT DISTINCT + 77 + - - 18 AS col0 FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT CAST( 55 AS SIGNED ) * col2 * + ( + col0 ) col1 FROM tab2 AS cor0
----
140800
239250
58190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7693
SELECT CAST ( 55 AS INTEGER ) * col2 * + ( + col0 ) col1 FROM tab2 AS cor0
----
140800
239250
58190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7694
SELECT - CAST( NULL AS SIGNED ) + + - 33 AS col2, + 41 col0 FROM tab0 cor0
----
NULL
41
NULL
41
NULL
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7694
SELECT - CAST ( NULL AS INTEGER ) + + - 33 AS col2, + 41 col0 FROM tab0 cor0
----
NULL
41
NULL
41
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT + 15 DIV - col2 + col1 col0 FROM tab0 AS cor0
----
1
20
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7695
SELECT + 15 / - col2 + col1 col0 FROM tab0 AS cor0
----
1
20
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT + 65 * col1 + + ( + ( + + CAST( + 62 AS SIGNED ) ) ) FROM tab1 AS cor0
----
3117
387
972

skipif mysql # not compatible
query I rowsort label-7696
SELECT + 65 * col1 + + ( + ( + + CAST ( + 62 AS INTEGER ) ) ) FROM tab1 AS cor0
----
3117
387
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + MIN( - 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + MIN ( - 86 ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL col1 + - 56 AS col0 FROM tab0 AS cor0
----
-35
-55
25

query I rowsort
SELECT col0 + 57 + - + col1 + - col0 * + - col0 * + col0 FROM tab0 AS cor0 WHERE + ( col2 ) + + + col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT col0 + col2 * + CAST( + + col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
150303
1560
18867

skipif mysql # not compatible
query I rowsort label-7702
SELECT col0 + col2 * + CAST ( + + col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
150303
1560
18867

query I rowsort
SELECT + 52 + 79 AS col0 FROM tab2
----
131
131
131

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 >= 82
----

query I rowsort
SELECT + 10 * + col0 AS col2 FROM tab0
----
150
870
970

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - col2 = NULL
----

query I rowsort
SELECT - + 13 FROM tab1 WHERE + + col1 IS NOT NULL
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + col1 col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 64 IN ( - + col2 * col1 + - col0 + - 69 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT 55 * 4 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, col1 + ( 60 ) FROM tab0 AS cor0
----
1
61
21
81
81
141

query I rowsort
SELECT - col2 - - 67 AS col0 FROM tab2 AS cor0
----
27
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT - - COUNT( 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - - COUNT ( 37 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 * 85 - - col0 AS col1 FROM tab0 AS cor0
----
4010
8512
937

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 cor0 WHERE col0 BETWEEN NULL AND ( + col2 * col0 )
----

query I rowsort
SELECT + col1 * + - 93 FROM tab2 AS cor0
----
-4743
-6231
-7161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
50

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < col1 * + col0 * + col2 + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL MIN( DISTINCT - 71 ) col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7722
SELECT ALL MIN ( DISTINCT - 71 ) col1 FROM tab2 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 36 * + 48 * - col0 col0, - 50 FROM tab1
----
146880
-50
157248
-50
88128
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7724
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7724
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL + SUM( + 58 ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + SUM ( + 58 ) AS col2 FROM tab0
----
174

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IN ( + + 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( + ( + - col2 ) ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col2 / + - 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 14 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT - COUNT( * ) * 69 AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - COUNT ( * ) * 69 AS col2 FROM tab1 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + - + 18 col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL - 8 * - - 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT - - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + + 91 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + + 91 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7735
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 42 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT + CAST ( NULL AS REAL ) + 42 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT - col1 * + 28 + + - col0 + - + col1 DIV 33 * - - col1 FROM tab1 AS cor0
----
-1454
-225
-443

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - col1 * + 28 + + - col0 + - + col1 / 33 * - - col1 FROM tab1 AS cor0
----
-1454
-225
-443

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 16 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab2 WHERE + + col2 * + col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 68 + + col1 AS col0 FROM tab0
----
149
69
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - CAST( NULL AS SIGNED ) + - 73 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT - CAST ( NULL AS INTEGER ) + - 73 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 37 + + 21 AS col1 FROM tab1
----
-1866
-3124
-3346

query I rowsort
SELECT ALL ( + - col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT - col0 - - - ( + CAST( + CAST( CAST( - 78 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0
----
-19
-9
63

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - col0 - - - ( + CAST ( + CAST ( CAST ( - 78 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0
----
-19
-9
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * 80 >= - - 92 * + 72 * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + + ( + col1 ) * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT - MAX( ALL - + 51 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7749
SELECT DISTINCT - MAX ( ALL - + 51 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 + + + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - 64 * + COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7754
SELECT - 64 * + COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 76 AS col0, col1 FROM tab1
----
76
14
76
47
76
5

query I rowsort
SELECT ALL + - col1 * 49 AS col1 FROM tab2 WHERE - 97 + + 92 BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT - 21 DIV - + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT - 21 / - + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( + + col2 ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT MIN( DISTINCT - 67 ) AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7760
SELECT MIN ( DISTINCT - 67 ) AS col0 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7761
SELECT + col0 AS col1, - ( - + CAST( NULL AS SIGNED ) ) + col2 AS col0, + 21 FROM tab1 AS cor0
----
9 values hashing to 419eff98ec8890ad6190a21946f7e6a0

skipif mysql # not compatible
query III rowsort label-7761
SELECT + col0 AS col1, - ( - + CAST ( NULL AS INTEGER ) ) + col2 AS col0, + 21 FROM tab1 AS cor0
----
9 values hashing to 419eff98ec8890ad6190a21946f7e6a0

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL - - MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( + 0 NOT BETWEEN ( + - col0 ) AND + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - - MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( + 0 NOT BETWEEN ( + - col0 ) AND + 55 )
----
NULL

query I rowsort
SELECT DISTINCT - + 69 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-69

query I rowsort
SELECT DISTINCT col2 + - - 32 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
100
128
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 < + + col0
----

query I rowsort
SELECT - + col0 + - 88 AS col2 FROM tab2 cor0
----
-134
-152
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - - ( + 5 ) + + COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7767
SELECT - - ( + 5 ) + + COUNT ( * ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT + col0 + 82 * col0 + + col0 FROM tab0 AS cor0
----
1260
7308
8148

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN - col2 * + - 35 AND col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - - COUNT( * ) col2 FROM tab2 AS cor0 WHERE col1 + col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7770
SELECT - - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col1 + col0 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7771
SELECT DISTINCT 66 + + col0 - 78 AS col0, col2 DIV - 42 FROM tab1
----
39
-2
73
-1
79
-1

skipif mysql # not compatible
query II rowsort label-7771
SELECT DISTINCT 66 + + col0 - 78 AS col0, col2 / - 42 FROM tab1
----
39
-2
73
-1
79
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT COUNT( * ) + + 46 FROM tab2, tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7772
SELECT COUNT ( * ) + + 46 FROM tab2, tab2 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( col1 ) + + - 71 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( col1 ) + + - 71 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + + col0 / - - ( + 16 ) * + + 73 + - col2 - - col0 )
----

query I rowsort
SELECT DISTINCT ( 51 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col1 + 95 AS col1 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL + COUNT( * ) * - 15 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL + COUNT ( * ) * - 15 FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT ALL col1 DIV - 84 * - + ( - col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL col1 / - 84 * - + ( - col0 ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT ALL + - COUNT( * ) DIV 57 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + - COUNT ( * ) / 57 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT - MIN( + ( + - 48 ) ), COUNT( DISTINCT - ( ( - col2 ) ) ) AS col0 FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-7781
SELECT - MIN ( + ( + - 48 ) ), COUNT ( DISTINCT - ( ( - col2 ) ) ) AS col0 FROM tab0
----
48
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 6 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT CAST( - col2 AS SIGNED ) * - col1 * col1 FROM tab0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-7784
SELECT CAST ( - col2 AS INTEGER ) * - col1 * col1 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND + col0 + - col0 + ( col2 )
----

query I rowsort
SELECT DISTINCT - col0 - - col1 - - ( ( + col1 ) ) * + + col1 AS col2 FROM tab1 WHERE NOT + col0 - - - col2 IS NULL
----
-55
159
2165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT + col2 * + - CAST( NULL AS SIGNED ) / 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT + col2 * + - CAST ( NULL AS INTEGER ) / 91 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT ALL 36 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 36 / + col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT - 50 * + - col1 = col1
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT SUM( ALL 65 ) AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7790
SELECT SUM ( ALL 65 ) AS col2 FROM tab1 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <> + col1 + + col2 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT COUNT( * ) + - 84 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7792
SELECT DISTINCT COUNT ( * ) + - 84 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * + + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7793
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 + + col0 ) AND col2
----

query II rowsort
SELECT ALL - 71, - col1 AS col0 FROM tab2 cor0
----
-71
-51
-71
-67
-71
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL - 1 * - SUM( DISTINCT - col2 ) * - 77 * - - 48 + + ( - + 98 ) AS col1 FROM tab1 AS cor0
----
824110

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - 1 * - SUM ( DISTINCT - col2 ) * - 77 * - - 48 + + ( - + 98 ) AS col1 FROM tab1 AS cor0
----
824110

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( + + col2 ) ) + - + 95 + + col0 <> - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT + + ( + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 68 ) + + 27 - - SUM( DISTINCT - col1 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT + + ( + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 68 ) + + 27 - - SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7800
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN 40 AND - - 90
----

skipif mysql # not compatible
query III rowsort label-7800
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN 40 AND - - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7801
SELECT - - CAST( - 62 AS SIGNED ), + 55 FROM tab2 cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7801
SELECT - - CAST ( - 62 AS INTEGER ), + 55 FROM tab2 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 73 + + - col0 - 46 + - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
2582
4441
5892

query I rowsort
SELECT 2 + col1 + + - col1 AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT + col2 + + 6 * - - col1 FROM tab1
----
180
350
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + 58 + - 90 + + 33 + + COUNT( * ) * - - COUNT( ALL col0 ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 58 + - 90 + + 33 + + COUNT ( * ) * - - COUNT ( ALL col0 ) AS col1 FROM tab1
----
10

query I rowsort
SELECT ALL col1 * col0 * 5 - + 4 FROM tab0
----
481
6071
9131

query I rowsort
SELECT ALL - 85 FROM tab2 WHERE - 15 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 23 IN ( + - ( + col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) * + ( AVG ( ALL + col2 ) ) col1 FROM tab1 WHERE NOT + 1 * + - 54 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7809
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + ( AVG ( ALL + col2 ) ) col1 FROM tab1 WHERE NOT + 1 * + - 54 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT + + ( 98 ) - + CAST( NULL AS SIGNED ) / - 27 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + + ( 98 ) - + CAST ( NULL AS INTEGER ) / - 27 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7811
SELECT CAST( NULL AS DECIMAL ) * - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( NULL AS REAL ) * - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL - CAST( col2 AS SIGNED ) * - 21 + col1 col0 FROM tab2 WHERE NULL < - + col0 + + ( - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7813
SELECT ALL - CAST ( col2 AS INTEGER ) * - 21 + col1 col0 FROM tab2 WHERE NULL < - + col0 + + ( - col2 )
----

query I rowsort
SELECT + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + ( - - ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + + 96, col1 FROM tab1 cor0
----
96
14
96
47
96
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7817
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

skipif mysql # not compatible
query II rowsort label-7817
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col1 ) col0, 76 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 83 AND - - col0 + + col1
----

query II rowsort
SELECT + col0 AS col1, + 1 AS col1 FROM tab1 AS cor0
----
51
1
85
1
91
1

query II rowsort
SELECT - 58, + 59 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-58
59
-58
59
-58
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col1 col2 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7822
SELECT ALL + + 18, col0 / + CAST( NULL AS SIGNED ) + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL + + 18, col0 / + CAST ( NULL AS INTEGER ) + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
18
NULL
18
NULL
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - + MIN( ALL + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7824
SELECT - - 79 * + ( + col0 ) AS col1, CAST( + col1 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
1185
96
6873
108
7663
98

skipif mysql # not compatible
query II rowsort label-7824
SELECT - - 79 * + ( + col0 ) AS col1, CAST ( + col1 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
1185
96
6873
108
7663
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7825
SELECT + + 10 * + ( + + col1 ), - CAST( - ( + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
140
96
470
68
50
59

skipif mysql # not compatible
query II rowsort label-7825
SELECT + + 10 * + ( + + col1 ), - CAST ( - ( + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
140
96
470
68
50
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT col0 * - + CAST( - + 73 AS SIGNED ) AS col1 FROM tab1
----
3723
6205
6643

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT col0 * - + CAST ( - + 73 AS INTEGER ) AS col1 FROM tab1
----
3723
6205
6643

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 30 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 = + - 84 - 33 * + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 88 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT 21 DIV col1 * + - 53 FROM tab0
----
-1113
-53
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT 21 / col1 * + - 53 FROM tab0
----
-1113
-53
0

query I rowsort
SELECT ALL + + 80 * col0 FROM tab0 WHERE - 16 IS NOT NULL
----
1200
6960
7760

query I rowsort
SELECT DISTINCT + col0 + + col1 * - 89 AS col0 FROM tab0 AS cor0
----
-1782
-7194
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT - CAST( 55 AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7833
SELECT - CAST ( 55 AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT + - 10 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + - 10 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 + + 21 AS col1 FROM tab0 AS cor0
----
-26
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT - COUNT( ALL 16 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - COUNT ( ALL 16 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - 89
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + col1 ) > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - 58 - - COUNT( * ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 58 - - COUNT ( * ) AS col0 FROM tab2
----
-55

query I rowsort
SELECT 12 - + col2 AS col0 FROM tab0
----
-35
-87
2

query I rowsort
SELECT + col0 * + 36 - - - col0 AS col2 FROM tab0
----
3045
3395
525

query I rowsort
SELECT ( - col0 ) * + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT + - 72 * + - col0 AS col2 FROM tab2 WHERE NOT - - 89 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT 43 * - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT 43 * - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col0, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT ALL + + 58 AS col2, + ( SUM( ALL - 65 ) ) AS col2 FROM tab1 cor0
----
58
-195

skipif mysql # not compatible
query II rowsort label-7847
SELECT ALL + + 58 AS col2, + ( SUM ( ALL - 65 ) ) AS col2 FROM tab1 cor0
----
58
-195

query I rowsort
SELECT ALL - 83 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query II rowsort label-7849
SELECT DISTINCT MAX( + col0 ) AS col0, + 28 FROM tab0 AS cor0
----
97
28

skipif mysql # not compatible
query II rowsort label-7849
SELECT DISTINCT MAX ( + col0 ) AS col0, + 28 FROM tab0 AS cor0
----
97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT - - 89 + + 1 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - - 89 + + 1 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( - col0 + - - ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - col1 >= - col1 * - + col0 * - 51 + - 32
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> col0
----

query I rowsort
SELECT DISTINCT col2 * - 89 FROM tab1
----
-5251
-6052
-8544

query I rowsort
SELECT ALL ( - 35 ) * col2 * - + ( - + col0 ) FROM tab0
----
-24675
-30450
-336105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7856
SELECT * FROM tab0 WHERE + ( - + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7856
SELECT * FROM tab0 WHERE + ( - + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 58 * 58 AS col2 FROM tab0
----
3364
3364
3364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7858
SELECT DISTINCT - col0 AS col1, ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7858
SELECT DISTINCT - col0 AS col1, ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT + 76 * + - col0 AS col2 FROM tab0
----
-1140
-6612
-7372

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IS NOT NULL AND col0 + - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT + col1 DIV - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + col1 / - col0 AS col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL - COUNT( * ) + - - 95 AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - COUNT ( * ) + - - 95 AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - + COUNT( * ) + + 27 FROM tab1 WHERE NULL < col1
----
27

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + COUNT ( * ) + + 27 FROM tab1 WHERE NULL < col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT + + MAX( + 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT + + MAX ( + 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab2 WHERE + ( - col1 ) > ( NULL )
----

query I rowsort
SELECT + 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT ALL - 11 AS col0, col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < col0 AND - col1 * col1 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + + MIN( + ( + 44 ) ) + - COUNT( * ) + + ( - 67 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7870
SELECT + + MIN ( + ( + 44 ) ) + - COUNT ( * ) + + ( - 67 ) FROM tab1 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT DISTINCT + col2 + + 81 + + + col1 DIV + + col1 FROM tab0 AS cor0
----
129
181
92

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + col2 + + 81 + + + col1 / + + col1 FROM tab0 AS cor0
----
129
181
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL - + COUNT( * ) + + - 50 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - + COUNT ( * ) + + - 50 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT - - col2 + - - 44 + + col0 + col2 - + col0 * col0 FROM tab2 AS cor0
----
-1980
-3908
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT ( - col1 ) * + - col0 / - - col2 * + 8 + CAST( NULL AS SIGNED ) / - + 40 + + + 43 col1 FROM tab1 WHERE + 67 - - + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT ( - col1 ) * + - col0 / - - col2 * + 8 + CAST ( NULL AS INTEGER ) / - + 40 + + + 43 col1 FROM tab1 WHERE + 67 - - + col1 IS NULL
----

query I rowsort
SELECT + col0 + + + 5 FROM tab1
----
56
90
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab0 WHERE ( NOT col2 IS NULL )
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT MIN( ALL - - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7879
SELECT MIN ( ALL - - col1 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7880
SELECT DISTINCT - col2, CAST( NULL AS DECIMAL ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7880
SELECT DISTINCT - col2, CAST ( NULL AS REAL ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT DISTINCT 6 + 6 DIV col2 * col2 * + - 32 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT 6 + 6 / col2 * col2 * + - 32 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NULL
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab2 AS cor0
----
89

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT - col2 * - - 32 / + col2 >= - - col2
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, ( + col2 ) AS col2 FROM tab1 cor0
----
59
59
59
68
59
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col1 * + col1 col2 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL + COUNT( ALL col1 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + COUNT ( ALL col1 ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT 19 * - 64 FROM tab2
----
-1216
-1216
-1216

query II rowsort
SELECT DISTINCT + + col2, + col0 AS col0 FROM tab1 AS cor0 WHERE 71 * - + col1 IS NOT NULL
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT - + MAX( ALL + + CAST( + - 48 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-7889
SELECT - + MAX ( ALL + + CAST ( + - 48 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7890
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 + - CAST( NULL AS DECIMAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7890
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 + - CAST ( NULL AS REAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * 64 FROM tab0 AS cor0 WHERE col0 <> - 24 + 6 * - col1
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + 79 + - MAX( col1 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7892
SELECT + 79 + - MAX ( col1 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 * + col0 * + col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT ALL + + col1 * - - 33 + col1 FROM tab0 AS cor0
----
2754
34
714

query I rowsort
SELECT DISTINCT + col2 + - col0 - col2 * + col2 * - - col1 - - col1 FROM tab1 AS cor0
----
-128965
-17426
-217304

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - COUNT( * ) + + + 58 AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7897
SELECT - COUNT ( * ) + + + 58 AS col1 FROM tab2
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 + 70 col1 FROM tab0
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT + MIN( ALL CAST( + + ( + col2 ) AS SIGNED ) ) + MAX( DISTINCT + col2 ) + 91 + MAX( ALL + col1 ) FROM tab0
----
281

skipif mysql # not compatible
query I rowsort label-7899
SELECT + MIN ( ALL CAST ( + + ( + col2 ) AS INTEGER ) ) + MAX ( DISTINCT + col2 ) + 91 + MAX ( ALL + col1 ) FROM tab0
----
281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7901
SELECT - ( + + COUNT( * ) ) DIV + - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7901
SELECT - ( + + COUNT ( * ) ) / + - COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT - CAST( COUNT( ALL + + 10 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7903
SELECT - CAST ( COUNT ( ALL + + 10 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL ( 32 ) * - - col1, col1 * col0 AS col2 FROM tab0 AS cor0
----
2592
1215
32
97
672
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - - SUM( ALL - - ( - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - - SUM ( ALL - - ( - col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT + - col0 col1 FROM tab0 AS cor0 WHERE + col1 * CAST( + - col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7907
SELECT + - col0 col1 FROM tab0 AS cor0 WHERE + col1 * CAST ( + - col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT + + col0 * 74 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT ALL + 47 * + 49 AS col1 FROM tab1 AS cor0
----
2303
2303
2303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT DISTINCT + - CAST( - 38 AS SIGNED ) FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + - CAST ( - 38 AS INTEGER ) FROM tab0 cor0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 * - - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT ALL + col0 DIV 51 * - ( + col2 ) FROM tab0 cor0
----
-10
-99
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + col0 / 51 * - ( + col2 ) FROM tab0 cor0
----
-10
-99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT 98 DIV col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT 98 / col2 AS col1 FROM tab2
----
1
2
4

query I rowsort
SELECT + 18 AS col1 FROM tab1 WHERE NOT + 49 - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 69 <> col2 + - - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 50 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + ( - ( + 99 ) ) AS col1 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT ALL - ( 19 ) * + col2 * - + col0 * col0 FROM tab1
----
10699052
4744224
8099225

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > + - col0 + + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT 40 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT 40 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab1 cor0
----
-44

query I rowsort
SELECT ALL + + 78 + - col2 - - + 60 FROM tab1 AS cor0
----
42
70
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - col1 * - ( col2 ) + + col0 NOT BETWEEN ( - + col2 ) AND + 71 * - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 13 * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7925
SELECT DISTINCT - 27, + col2 DIV - ( col1 ) AS col0 FROM tab0
----
-27
-99
-27
0

skipif mysql # not compatible
query II rowsort label-7925
SELECT DISTINCT - 27, + col2 / - ( col1 ) AS col0 FROM tab0
----
-27
-99
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT SUM( - 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7926
SELECT SUM ( - 20 ) FROM tab1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * col0 + - + col2 col2 FROM tab0
----
3383
3684
538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL ( - 29 ) * + CAST( - - COUNT( * ) AS SIGNED ) - + 60 AS col1 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL ( - 29 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) - + 60 AS col1 FROM tab2
----
-147

query I rowsort
SELECT 65 + + - col2 AS col2 FROM tab0
----
-34
18
55

query III rowsort
SELECT * FROM tab0 WHERE - - col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( - 96 ) / + col0 BETWEEN NULL AND - col2 * 98 / col0 + 77 * - col0 + + 85 + + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( - col1 ) ) IN ( - 73, + col1, col0 * + - col1 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 36 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + + MAX( 25 ) + + 99 AS col0 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + + MAX ( 25 ) + + 99 AS col0 FROM tab1 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + MIN( ( - 95 ) ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-7935
SELECT + MIN ( ( - 95 ) ) FROM tab0
----
-95

query III rowsort
SELECT * FROM tab1 WHERE NULL < col0 + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT DISTINCT + col2 * - + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + col2 * - + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 + - ( - - col0 ) * col2 = NULL
----

query I rowsort
SELECT ALL - col1 * - 98 AS col2 FROM tab1 AS cor0
----
1372
4606
490

query II rowsort
SELECT + col2 * col1, - 52 - - col2 * - + 46 + + - col0 * - 13 AS col0 FROM tab0 AS cor0
----
210
619
3807
-2019
99
-3345

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + MAX( + + 65 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + MAX ( + + 65 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - MIN( - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - MIN ( - - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + + col1 * - ( + 11 ) FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7944
SELECT + 30 DIV + 21 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-7944
SELECT + 30 / + 21 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
1
3

query I rowsort
SELECT ALL - + AVG ( + col1 ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 33 col1 FROM tab1
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT COUNT( - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7947
SELECT COUNT ( - col2 ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT DISTINCT col2 DIV - + 77 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT col2 / - + 77 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7949
SELECT CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col0, 39 + col0 AS col0 FROM tab0 AS cor0
----
15
54
87
126
97
136

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL ( + - MAX( - 62 ) ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL ( + - MAX ( - 62 ) ) FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL + 30 AS col0, - 6 FROM tab0 AS cor0
----
30
-6
30
-6
30
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + MAX( + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + MAX ( + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - COUNT( * ) + - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7955
SELECT - COUNT ( * ) + - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT + - 77 * + CAST( NULL AS SIGNED ) + + + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT + - 77 * + CAST ( NULL AS INTEGER ) + + + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT ALL 51 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT CAST( 64 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT CAST ( 64 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - MAX( DISTINCT + 92 ) + - 22 FROM tab1 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-7960
SELECT - MAX ( DISTINCT + 92 ) + - 22 FROM tab1 cor0
----
-114

query I rowsort
SELECT + 59 * + col0 + - - 84 AS col0 FROM tab2 AS cor0
----
2798
3860
4509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL CAST( + 11 AS SIGNED ) + 98 * - SUM( - ( + col2 ) ) * + + 92 AS col0 FROM tab0
----
1406507

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL CAST ( + 11 AS INTEGER ) + 98 * - SUM ( - ( + col2 ) ) * + + 92 AS col0 FROM tab0
----
1406507

query I rowsort
SELECT DISTINCT ( + - ( - col2 ) ) * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT + ( + - col2 ), 66 AS col2 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
-59
66
-68
66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 65 ) / + - 56 <> + col2 * - col0
----

query I rowsort
SELECT 34 * - col1 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT DISTINCT + + MAX( - col1 ) * + COUNT( * ), + 9 * - 31 AS col1 FROM tab2 AS cor0
----
-153
-279

skipif mysql # not compatible
query II rowsort label-7967
SELECT DISTINCT + + MAX ( - col1 ) * + COUNT ( * ), + 9 * - 31 AS col1 FROM tab2 AS cor0
----
-153
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col2 - - + col1 + + 64 FROM tab0 cor0
----
164
192
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 - - col0 col2 FROM tab2 cor0
----
131
149
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL 32 * + COUNT( * ) * + 84 AS col2 FROM tab1
----
8064

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL 32 * + COUNT ( * ) * + 84 AS col2 FROM tab1
----
8064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL CAST( + + COUNT( 89 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL CAST ( + + COUNT ( 89 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + 11, - col0 - + + 63 - - col0 AS col1 FROM tab1 AS cor0
----
11
-63

query I rowsort
SELECT ALL - 82 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT + SUM( + + col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + SUM ( + + col1 ) AS col2 FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT - 53 * - 37 AS col1 FROM tab1 AS cor0
----
1961

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - - 93 NOT BETWEEN NULL AND 86
----

query I rowsort
SELECT col1 * + - 23 AS col0 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - + MIN( + + 88 ) FROM tab0 WHERE NOT col2 * + 22 + + 29 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - + MIN ( + + 88 ) FROM tab0 WHERE NOT col2 * + 22 + + 29 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT col0 < ( col0 ) * + - col0
----
51
85
91

query II rowsort
SELECT DISTINCT - 18 * + col0 AS col1, col0 + - col0 FROM tab2
----
-1152
0
-1350
0
-828
0

query II rowsort
SELECT ALL col2 * - ( + - col2 ), + col0 AS col2 FROM tab2
----
1600
64
3364
75
529
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT MIN( DISTINCT col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7985
SELECT MIN ( DISTINCT col0 ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE NOT + ( + col0 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7987
SELECT DISTINCT + 91 DIV + MAX( ALL - col2 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + 91 / + MAX ( ALL - col2 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 AS cor0 WHERE - 75 IS NULL
----

query I rowsort
SELECT ALL col0 * - 87 + + col2 * + + col2 AS col2 FROM tab1 cor0
----
-3293
-3914
4779

query I rowsort
SELECT + - col0 + - col0 * + col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query II rowsort
SELECT ALL - col1, 99 AS col2 FROM tab1
----
-14
99
-47
99
-5
99

query I rowsort
SELECT col0 * + - 38 AS col0 FROM tab2 WHERE - col0 NOT BETWEEN - 7 AND + col1 + - + 2
----
-1748
-2432
-2850

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT ALL col2 DIV + col0 * ( - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL col2 / + col0 * ( - col0 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL COUNT( * ) AS col0 FROM tab1 cor0 WHERE col1 NOT BETWEEN + + col2 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE col1 NOT BETWEEN + + col2 * - col1 AND NULL
----
0

query I rowsort
SELECT ALL 13 * col1 * - + 49 + + 45 + + + col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-3106
-32035
-8973

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT - - 43 * + col1 + - + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
2020
214
602

skipif mysql # not compatible
query I rowsort label-7996
SELECT - - 43 * + col1 + - + col0 / + col2 AS col1 FROM tab1 AS cor0
----
2020
214
602

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT DISTINCT MAX( 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT MAX ( 58 ) FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT - 49 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - 49 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT - - 6 AS col1 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8000
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 NOT BETWEEN CAST( - - 13 AS SIGNED ) AND + 25 * col2
----

skipif mysql # not compatible
query III rowsort label-8000
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 NOT BETWEEN CAST ( - - 13 AS INTEGER ) AND + 25 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 35 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
34
69
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT CAST( NULL AS SIGNED ) * - - ( - col2 ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT CAST ( NULL AS INTEGER ) * - - ( - col2 ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - MAX( 27 ) - - 84 * - COUNT( * ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8004
SELECT - MAX ( 27 ) - - 84 * - COUNT ( * ) FROM tab0 AS cor0
----
-279

query I rowsort
SELECT DISTINCT col0 + - 81 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT ALL + 24 + + - col1 * + col2 AS col2 FROM tab0
----
-186
-3783
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT - col0 + - col2 DIV - col2 AS col1 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-8007
SELECT - col0 + - col2 / - col2 AS col1 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT 24 + + 33 + + + ( - MAX( - col0 ) ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-8008
SELECT 24 + + 33 + + + ( - MAX ( - col0 ) ) FROM tab1
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8009
SELECT 65 + CAST( NULL AS DECIMAL ), 35 AS col1 FROM tab1
----
NULL
35
NULL
35
NULL
35

skipif mysql # not compatible
query II rowsort label-8009
SELECT 65 + CAST ( NULL AS REAL ), 35 AS col1 FROM tab1
----
NULL
35
NULL
35
NULL
35

query I rowsort
SELECT ALL col2 - col1 * + - col1 FROM tab1
----
2277
292
84

query I rowsort
SELECT - col2 * + col0 * + col1 AS col0 FROM tab2 cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT + COUNT( - col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8012
SELECT DISTINCT + COUNT ( - col2 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8013
SELECT + 63 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT + 63 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + + COUNT( * ) + 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + + COUNT ( * ) + 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + - SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8016
SELECT + - SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT DISTINCT + 20 * - + COUNT( * ) AS col2, - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + col2 / + col0 NOT BETWEEN NULL AND - + col2
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8017
SELECT DISTINCT + 20 * - + COUNT ( * ) AS col2, - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + col2 / + col0 NOT BETWEEN NULL AND - + col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL + SUM( + 38 ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + SUM ( + 38 ) FROM tab0 AS cor0
----
114

query II rowsort
SELECT - col1 AS col1, 81 FROM tab2 AS cor0
----
-51
81
-67
81
-77
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - + col0 OR 92 * - - 76 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 5 * + + 69 AS col2 FROM tab1 AS cor0
----
-345
-345
-345

query II rowsort
SELECT ( + 19 ), - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL col0 AS col2, + ( - 33 ) AS col0 FROM tab2 cor0 WHERE + col1 BETWEEN NULL AND + col0 - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8024
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + MAX( - col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8025
SELECT + MAX ( - col2 ) AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT + col0 * col1 - + col2 AS col0 FROM tab0 cor0
----
-2
1168
1817

query I rowsort
SELECT 68 * + ( - col1 ) - - col2 FROM tab1 AS cor0
----
-281
-3128
-856

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT col1 DIV col0 DIV - col1 - + + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8028
SELECT col1 / col0 / - col1 - + + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 95 * 13 FROM tab0 AS cor0
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL COUNT( * ) * + 3 AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL COUNT ( * ) * + 3 AS col1 FROM tab2
----
9

query I rowsort
SELECT 15 * + col0 AS col2 FROM tab1
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT - MIN( ALL + - 59 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT - MIN ( ALL + - 59 ) FROM tab2
----
59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= col2
----

query I rowsort
SELECT col2 * 71 AS col1 FROM tab2
----
1633
2840
4118

query II rowsort
SELECT ALL + col1, 38 + - col2 * - - 24 AS col2 FROM tab0
----
1
-2338
21
-202
81
-1090

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 77 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL 69 DIV 59 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 69 / 59 FROM tab0
----
1
1
1

query II rowsort
SELECT + + 54, - 3 * - col1 AS col0 FROM tab2 AS cor0
----
54
153
54
201
54
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + MIN( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8039
SELECT + MIN ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + 44 * + + col0 + - col0 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT ALL - 3 DIV col2 + 90 - + col2 FROM tab1 AS cor0
----
-6
22
31

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - 3 / col2 + 90 - + col2 FROM tab1 AS cor0
----
-6
22
31

query II rowsort
SELECT + col0 + + 28, + 84 AS col2 FROM tab1 AS cor0
----
113
84
119
84
79
84

query I rowsort
SELECT + col1 / - col2 AS col2 FROM tab1 AS cor0 WHERE - col0 > - 35
----

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + 67 AS col0 FROM tab0
----
-14
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT + MAX( ALL + 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8046
SELECT + MAX ( ALL + 67 ) FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - COUNT( * ) - + 8 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - COUNT ( * ) - + 8 FROM tab0
----
-11

query II rowsort
SELECT col2 * + col2 - + 96, - 11 AS col0 FROM tab1
----
3385
-11
4528
-11
9120
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + - COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8049
SELECT + - COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + - col2 * - - 70 + + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 86 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 - - col1 * col1 ) NOT IN ( + ( - col1 ) )
----

query I rowsort
SELECT col1 - 87 AS col2 FROM tab2
----
-10
-20
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT DISTINCT MIN( 55 ) DIV + COUNT( * ) FROM tab1 WHERE NOT 65 >= 64 * col1
----
18

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT MIN ( 55 ) / + COUNT ( * ) FROM tab1 WHERE NOT 65 >= 64 * col1
----
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = ( col1 * - 60 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT ( 4 ) AS col0 FROM tab1 WHERE ( + col2 / - col2 ) NOT IN ( + col2 * col2 )
----
4
4
4

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( - col1 ) < NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 64 * 15 AS col2 FROM tab2
----
883
893
909

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ( MIN( DISTINCT col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8060
SELECT ( MIN ( DISTINCT col0 ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT ( 92 ) FROM tab0
----
92
92
92

query I rowsort
SELECT col2 * + col0 + - 12 AS col2 FROM tab1 WHERE NULL NOT IN ( 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT MAX( - 5 ) col1 FROM tab2
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8063
SELECT MAX ( - 5 ) col1 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - MAX( + col2 ) AS col1 FROM tab2 WHERE NOT 59 + + col1 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-8064
SELECT - MAX ( + col2 ) AS col1 FROM tab2 WHERE NOT 59 + + col1 IS NULL
----
-58

query I rowsort
SELECT ALL - 88 AS col2 FROM tab1 WHERE NULL IS NULL
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + 53 + - col1 AS col0 FROM tab2
----
-14
-24
2

query I rowsort
SELECT 71 + - 41 FROM tab2
----
30
30
30

query I rowsort
SELECT 9 + - 8 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8069
SELECT DISTINCT * FROM tab0 WHERE NOT + 80 NOT IN ( col0 * - CAST( - ( col0 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8069
SELECT DISTINCT * FROM tab0 WHERE NOT + 80 NOT IN ( col0 * - CAST ( - ( col0 ) AS INTEGER ) )
----

query I rowsort
SELECT ALL - 89 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8071
SELECT DISTINCT + col0 + - ( + CAST( + col0 AS DECIMAL ) ) FROM tab2 WHERE NOT NULL <= 86
----

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + col0 + - ( + CAST ( + col0 AS REAL ) ) FROM tab2 WHERE NOT NULL <= 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + SUM( + ( col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8072
SELECT + SUM ( + ( col1 ) ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 17 * + 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - 54 * - COUNT( - col1 ) AS col2 FROM tab1 WHERE NULL >= col0 - 67
----
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 54 * - COUNT ( - col1 ) AS col2 FROM tab1 WHERE NULL >= col0 - 67
----
0

query I rowsort
SELECT ALL 86 AS col0 FROM tab1 WHERE NOT col2 + col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + col1 > NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 25 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( - 18 + + 61 )
----

query I rowsort
SELECT DISTINCT 38 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT col2 * - ( col1 ) + 72 AS col2 FROM tab1 AS cor0 WHERE - 98 NOT BETWEEN NULL AND col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL COUNT( * ) + + 80 AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL COUNT ( * ) + + 80 AS col0 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + SUM( 83 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8083
SELECT + SUM ( 83 ) FROM tab2
----
249

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( 82 * - 48 ) AND ( NULL )
----

query I rowsort
SELECT col1 * ( + col1 ) AS col0 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT - - MIN( col1 ) * COUNT( ALL col0 ) AS col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - - MIN ( col1 ) * COUNT ( ALL col0 ) AS col1 FROM tab1 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8087
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * CAST( col2 * 2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8087
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * CAST ( col2 * 2 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 / col1 <= - ( - 48 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 69 >= ( col1 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT - - COUNT( ALL + 41 ) + 97 * - COUNT( col0 * 50 ) AS col2 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT - - COUNT ( ALL + 41 ) + 97 * - COUNT ( col0 * 50 ) AS col2 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + COUNT( * ) - MAX( ALL ( col1 ) - col2 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8091
SELECT + COUNT ( * ) - MAX ( ALL ( col1 ) - col2 ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL ( + ( 0 ) ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT COUNT( + 61 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT COUNT ( + 61 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - COUNT( * ) - + 21 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8095
SELECT - COUNT ( * ) - + 21 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - + col0 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + 90 * 64 AS col0 FROM tab1 AS cor0
----
5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( + col0 ) + col1 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8100
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8100
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT - 59 * - MIN( DISTINCT - 86 ) + + 64 FROM tab1
----
-5010

skipif mysql # not compatible
query I rowsort label-8101
SELECT - 59 * - MIN ( DISTINCT - 86 ) + + 64 FROM tab1
----
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + COUNT( * ) + + MAX( - col2 ) AS col1 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + COUNT ( * ) + + MAX ( - col2 ) AS col1 FROM tab1
----
-56

query I rowsort
SELECT DISTINCT col0 - - ( ( ( - 66 ) ) ) * - 31 FROM tab1
----
2097
2131
2137

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + col1 ) AND - 2 / col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 6 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN 37 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 38 ) AND - 15
----

query I rowsort
SELECT col0 * - col0 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT - 81 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8109
SELECT - 81 / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) = ( ( CAST( NULL AS SIGNED ) ) * - col1 )
----

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) = ( ( CAST ( NULL AS INTEGER ) ) * - col1 )
----

query II rowsort
SELECT DISTINCT 11, + col2 FROM tab1
----
11
59
11
68
11
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT ALL - MAX( - CAST( + 75 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8112
SELECT ALL - MAX ( - CAST ( + 75 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT - + col0 * CAST( 1 AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - + col0 * CAST ( 1 AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - + 90, - 95 AS col0 FROM tab1 AS cor0
----
-90
-95
-90
-95
-90
-95

query II rowsort
SELECT col2 AS col1, - 65 FROM tab2 AS cor0
----
23
-65
40
-65
58
-65

query II rowsort
SELECT DISTINCT - col0, 31 AS col0 FROM tab1 AS cor0
----
-51
31
-85
31
-91
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 77 * + + col0 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT DISTINCT - 26 + - CAST( 27 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-2375
-2645
-431

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - 26 + - CAST ( 27 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-2375
-2645
-431

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 1 / + 61 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT + 47 * - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + 47 * - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col0 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col2 * 18
----

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 WHERE NOT + - col1 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 AS col0 FROM tab2 WHERE NOT - col0 / - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL 67 + + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) + - col0 - col0 / - 55
----
67

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 67 + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) + - col0 - col0 / - 55
----
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 2 + - col2 + + 94 * + col1 > - col1 / - 10
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - MIN( ALL ( - 34 ) ) AS col1 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-8129
SELECT - MIN ( ALL ( - 34 ) ) AS col1 FROM tab0 cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT + col0 DIV - col1 + + + ( + 2 ) + - 0 DIV col1 AS col0 FROM tab0 AS cor0
----
-2
-95
2

skipif mysql # not compatible
query I rowsort label-8130
SELECT + col0 / - col1 + + + ( + 2 ) + - 0 / col1 AS col0 FROM tab0 AS cor0
----
-2
-95
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT COUNT( + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8131
SELECT COUNT ( + - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT 95 * + - col0 + - - 22 + + col1 AS col2 FROM tab0 AS cor0
----
-1322
-8222
-9192

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - COUNT( * ) - + - 5 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8134
SELECT - COUNT ( * ) - + - 5 FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8135
SELECT ALL + col2 + + col0 AS col1, - 90 DIV - - col1 AS col1 FROM tab0 AS cor0
----
196
-90
62
-1
97
-4

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL + col2 + + col0 AS col1, - 90 / - - col1 AS col1 FROM tab0 AS cor0
----
196
-90
62
-1
97
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - + 12 - - + 94 + + 47 NOT BETWEEN col2 AND ( - 63 ) * - 63
----

query I rowsort
SELECT ALL + col2 * 26 - - col0 * + col1 AS col1 FROM tab2
----
2944
5968
6533

query I rowsort
SELECT + 28 + + col1 AS col0 FROM tab0
----
109
29
49

query I rowsort
SELECT ALL - + col2 * - + ( 29 ) * - 76 FROM tab2 AS cor0
----
-127832
-50692
-88160

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT - 61 + - 6 DIV 14 FROM tab2 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 61 + - 6 / 14 FROM tab2 AS cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 + col1 * - + col1 * - col0 / + col1 + 99 ) <= + col2
----

query I rowsort
SELECT + 65 + - - 51 AS col2 FROM tab1 AS cor0
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT - - col0 * 40 FROM tab2 cor0
----
1840
2560
3000

query I rowsort
SELECT ALL col2 * 56 FROM tab1 AS cor0
----
3304
3808
5376

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT - COUNT( * ) * + + 46 + 92 AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - COUNT ( * ) * + + 46 + 92 AS col0 FROM tab0 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL MAX( + + 53 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8151
SELECT ALL MAX ( + + 53 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 + col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + + COUNT( * ) * - - 74 AS col1 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8152
SELECT + + COUNT ( * ) * - - 74 AS col1 FROM tab2 AS cor0
----
222

query I rowsort
SELECT DISTINCT 27 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + + 69 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / 76 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT ( 17 + - + 16 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT DISTINCT - 26 AS col2, + COUNT( - - col1 ) AS col1 FROM tab2
----
-26
3

skipif mysql # not compatible
query II rowsort label-8156
SELECT DISTINCT - 26 AS col2, + COUNT ( - - col1 ) AS col1 FROM tab2
----
-26
3

query I rowsort
SELECT ALL col2 / 73 AS col2 FROM tab1 WHERE 19 * - 70 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 13 * - col1 AS col1 FROM tab1
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - 86 * + ( + + 0 ) * - + COUNT( * ) * - SUM( + col1 ) + + COUNT( DISTINCT + 56 + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8159
SELECT - 86 * + ( + + 0 ) * - + COUNT ( * ) * - SUM ( + col1 ) + + COUNT ( DISTINCT + 56 + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT ALL + + col0 DIV - 37 + + col0 FROM tab0 AS cor0
----
15
85
95

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + + col0 / - 37 + + col0 FROM tab0 AS cor0
----
15
85
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + - col0 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT DISTINCT + ( CAST( + 29 AS SIGNED ) ) * 8 * - 71 FROM tab0
----
-16472

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT + ( CAST ( + 29 AS INTEGER ) ) * 8 * - 71 FROM tab0
----
-16472

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT - 17 DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - 17 / col2 FROM tab1 cor0
----
0

query I rowsort
SELECT 62 + - - 19 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 38 * + - 44 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > ( + - 17 / - col1 + + col2 * col0 + col2 )
----

query I rowsort
SELECT ALL - col2 * - col0 + + 79 + - col2 / 28 FROM tab1 AS cor0 WHERE - col0 <= ( NULL )
----

query I rowsort
SELECT ALL - ( - col0 ) + 74 AS col1 FROM tab1 cor0
----
125
159
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE + col0 > NULL
----
0

query I rowsort
SELECT + + col1 - col2 + + col2 FROM tab1 WHERE - + col0 - + col1 * 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT 61 * + MAX( ALL - col0 ) col1 FROM tab2
----
-2806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8173
SELECT 61 * + MAX ( ALL - col0 ) col1 FROM tab2
----
-2806

query I rowsort
SELECT + 20 * + - 48 FROM tab1
----
-960
-960
-960

query I rowsort
SELECT DISTINCT col2 + + 77 FROM tab2
----
100
117
135

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT DISTINCT - 46 DIV - 93 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT - 46 / - 93 AS col0 FROM tab1
----
0

query II rowsort
SELECT ALL + col2 AS col0, + 77 + col0 FROM tab0
----
10
164
47
92
99
174

query I rowsort
SELECT 99 + - + col0 AS col1 FROM tab0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT MIN( ALL col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT MIN ( ALL col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT 17 + - COUNT( * ) * 84 AS col0, 21 AS col2 FROM tab1
----
-235
21

skipif mysql # not compatible
query II rowsort label-8180
SELECT 17 + - COUNT ( * ) * 84 AS col0, 21 AS col2 FROM tab1
----
-235
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 + - CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 + - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8182
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 5 - - col0 + + col1 - + + 54 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8182
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 5 - - col0 + + col1 - + + 54 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + col1 <= + col1 + col2
----
59
68
96

query I rowsort
SELECT ALL + 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 93 AND 1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) <= - 10
----

query I rowsort
SELECT ALL - 95 - 9 * - 44 AS col0 FROM tab2 AS cor0
----
301
301
301

query I rowsort
SELECT DISTINCT + col0 + - 28 * - - col0 AS col1 FROM tab1 AS cor0
----
-1377
-2295
-2457

query I rowsort
SELECT ALL - - ( - 40 ) FROM tab2 cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT + CAST( COUNT( ALL 73 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8191
SELECT + CAST ( COUNT ( ALL 73 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - 39 FROM tab1 cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) = ( NULL )
----

query II rowsort
SELECT ALL 10 * - - col1 * - + col2 AS col2, + col2 AS col2 FROM tab2
----
-11730
23
-30800
40
-38860
58

query I rowsort
SELECT ALL col0 + 51 FROM tab2 WHERE NOT col2 / col1 <> - 40
----

query II rowsort
SELECT ALL - col1 * + col2 * - col2 AS col0, 8 FROM tab0
----
178929
8
2100
8
9801
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT + SUM( + - 43 ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + SUM ( + - 43 ) FROM tab0
----
-129

query I rowsort
SELECT ALL col2 * + + 81 FROM tab0
----
3807
8019
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * - + 42 * - col1 * 59 col2 FROM tab2
----
1263780
1660260
1908060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT ALL + - COUNT( 39 ) DIV COUNT( - 92 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + - COUNT ( 39 ) / COUNT ( - 92 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 * - 32 * + col1 AS col0 FROM tab2 AS cor0
----
-124352
-37536
-98560

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT DISTINCT col1 DIV + - 79 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT col1 / + - 79 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT - col2 * - col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - col2 * - col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 48 ) FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT 43 * - col2 AS col1 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - + 86 - + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-8207
SELECT - + 86 - + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT + - col1 * CAST( + 58 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-1131
-4683
39

skipif mysql # not compatible
query I rowsort label-8209
SELECT + - col1 * CAST ( + 58 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-1131
-4683
39

query I rowsort
SELECT + col1 + + 98 AS col1 FROM tab2 AS cor0
----
149
165
175

query II rowsort
SELECT DISTINCT col1 AS col0, 36 FROM tab1 AS cor0
----
14
36
47
36
5
36

query I rowsort
SELECT col1 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT - - col1 + 21 AS col1 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT - col1 * 88 + - col2 FROM tab0 AS cor0
----
-1858
-187
-7175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT 54 + - + COUNT( DISTINCT ( - col1 ) ) DIV + 95 AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8215
SELECT 54 + - + COUNT ( DISTINCT ( - col1 ) ) / + 95 AS col1 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 WHERE ( col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT ALL - col0 DIV - - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - col0 / - - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 78 * - + col1 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT - - col1 * - col2 + + + col0 + - - col2 FROM tab0 cor0
----
-113
-3745
97

query II rowsort
SELECT - col0 AS col2, 4 * col0 + - 61 + - col1 AS col0 FROM tab2 AS cor0
----
-46
72
-64
118
-75
172

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT + + col2 * col2 - - + 11 DIV + 89 * 41 AS col0 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-8221
SELECT + + col2 * col2 - - + 11 / + 89 * 41 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-8222
SELECT ALL col2, col0 * col1 DIV + + 37 AS col2 FROM tab2 AS cor0
----
23
63
40
133
58
135

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL col2, col0 * col1 / + + 37 AS col2 FROM tab2 AS cor0
----
23
63
40
133
58
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8223
SELECT * FROM tab1 AS cor0 WHERE NOT 57 > - + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8223
SELECT * FROM tab1 AS cor0 WHERE NOT 57 > - + col2 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col1 - - col0 IN ( col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 87 > NULL
----

query I rowsort
SELECT ALL col2 * ( + + 72 ) AS col2 FROM tab2
----
1656
2880
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT 74 * 82 DIV + - COUNT( * ) AS col1 FROM tab1
----
-2022

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 74 * 82 / + - COUNT ( * ) AS col1 FROM tab1
----
-2022

query I rowsort
SELECT + 53 * ( + col2 ) AS col1 FROM tab2
----
1219
2120
3074

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR 14 BETWEEN NULL AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8230
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8230
SELECT ALL + ( + CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab0 cor0 WHERE - 97 * - CAST( NULL AS SIGNED ) * - + col1 BETWEEN 12 AND col2
----

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab0 cor0 WHERE - 97 * - CAST ( NULL AS INTEGER ) * - + col1 BETWEEN 12 AND col2
----

query I rowsort
SELECT 92 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT 53 DIV + - 47 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8233
SELECT 53 / + - 47 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + MIN ( ALL col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + SUM( DISTINCT + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8235
SELECT + SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT - col1 + 19 + + 24 FROM tab2 cor0
----
-24
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * + ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * + ( + col2 )
----
0

query I rowsort
SELECT DISTINCT + col2 * + - 42 * + 6 - + col0 FROM tab2 cor0
----
-10144
-14691
-5842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col0 * + + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) + 25 * - + col1 FROM tab0 AS cor0
----
-124
-2072
-535

query I rowsort
SELECT ALL - col2 + + 45 FROM tab0 AS cor0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT COUNT( * ) + + + 1 * MAX( ALL + col1 ) + 50 col2 FROM tab1
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8242
SELECT COUNT ( * ) + + + 1 * MAX ( ALL + col1 ) + 50 col2 FROM tab1
----
100

query I rowsort
SELECT - col0 + + + col2 AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT SUM( - 15 ) + 24 DIV - - 24 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8244
SELECT SUM ( - 15 ) + 24 / - - 24 FROM tab0
----
-44

query I rowsort
SELECT ALL - col1 + 90 FROM tab1
----
43
76
85

query I rowsort
SELECT ALL - - col2 * - col2 + col0 FROM tab2 WHERE NOT - col1 + - col1 IN ( + 4, col2 + col0 * + 69, + - col1, col0, 80 + - + col2 )
----
-1536
-3289
-483

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) IN ( - - col2, + col0, col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - ( + + SUM( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8249
SELECT - ( + + SUM ( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + 79 - COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 79 - COUNT ( * ) FROM tab2
----
76

query I rowsort
SELECT + col1 - col2 + col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL + col2 - - - col2 + - 63 AS col2, col2 AS col1 FROM tab2
----
-63
23
-63
40
-63
58

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT COUNT( + + col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT COUNT ( + + col1 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN + col0 * - - col1 AND col1 + + + col1
----

query I rowsort
SELECT + AVG ( 41 ) FROM tab1 WHERE NOT - 97 IS NOT NULL
----
NULL

query II rowsort
SELECT + col1, col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT COUNT( * ) FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT COUNT ( * ) FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + COUNT( - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8259
SELECT + COUNT ( - + col0 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 + - + col0 FROM tab0 AS cor0
----
15
-96
87
-108
97
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8261
SELECT + CAST( NULL AS DECIMAL ) 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-8261
SELECT + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT - SUM( 33 ) * + MIN( ALL CAST( NULL AS SIGNED ) ) * AVG ( + col2 ) * COUNT( * ) + + 33 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT - SUM ( 33 ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) * AVG ( + col2 ) * COUNT ( * ) + + 33 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + + col2, - col0 * + col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + COUNT( * ) + + 14 AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-8264
SELECT + COUNT ( * ) + + 14 AS col2 FROM tab1
----
17

query I rowsort
SELECT col2 + + col1 + - 86 + + 64 AS col0 FROM tab0 cor0
----
106
78
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - - col0 * - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - - col0 * - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 12 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT + CAST( - + 36 AS SIGNED ) + + 6 + - + col1 * 87 FROM tab1 AS cor0
----
-1248
-4119
-465

skipif mysql # not compatible
query I rowsort label-8268
SELECT + CAST ( - + 36 AS INTEGER ) + + 6 + - + col1 * 87 FROM tab1 AS cor0
----
-1248
-4119
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT DISTINCT - - col1 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - - col1 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT - MIN( - col2 ) + + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - MIN ( - col2 ) + + COUNT ( * ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 WHERE col0 + 62 + - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - MIN( - - ( - col0 ) ) + - COUNT( * ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - MIN ( - - ( - col0 ) ) + - COUNT ( * ) AS col0 FROM tab2
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - - ( - col0 ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 77 + - 45 + col1 * col2 AS col2 FROM tab1 cor0
----
1376
3228
327

query I rowsort
SELECT + + 63 + + + 23 * - - col1 AS col0 FROM tab0 cor0
----
1926
546
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL + 23 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + 23 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + 5 + + - CAST( - col0 AS SIGNED ) * 38 FROM tab1 AS cor0
----
1943
3235
3463

skipif mysql # not compatible
query I rowsort label-8279
SELECT + 5 + + - CAST ( - col0 AS INTEGER ) * 38 FROM tab1 AS cor0
----
1943
3235
3463

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - 63 IS NULL
----

query I rowsort
SELECT DISTINCT 81 * - + 37 AS col0 FROM tab2 AS cor0
----
-2997

query I rowsort
SELECT DISTINCT + - 22 AS col0 FROM tab1 WHERE - 25 / + col2 NOT BETWEEN - + col2 / col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 81 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + col0 * - + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT DISTINCT col1, ( 37 ) FROM tab1
----
14
37
47
37
5
37

query II rowsort
SELECT 30, col2 FROM tab2 cor0
----
30
23
30
40
30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT 86 * - COUNT( - 65 ) AS col0 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-8288
SELECT 86 * - COUNT ( - 65 ) AS col0 FROM tab0 AS cor0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - col2 col0, col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query II rowsort
SELECT col1, col0 * - + 19 AS col0 FROM tab1 AS cor0
----
14
-969
47
-1729
5
-1615

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT DISTINCT - 49 DIV + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - 49 / + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT MIN( ALL - + 87 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-8292
SELECT MIN ( ALL - + 87 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8295
SELECT ALL ( COUNT( * ) ) col0, CAST( NULL AS DECIMAL ) * + SUM( - + 41 ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8295
SELECT ALL ( COUNT ( * ) ) col0, CAST ( NULL AS REAL ) * + SUM ( - + 41 ) AS col1 FROM tab0
----
3
NULL

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE - col0 * + 15 IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col2 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL - COUNT( * ) + - 94 AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - COUNT ( * ) + - 94 AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT + + COUNT( * ) + - COUNT( ALL + - 18 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( ALL + - 18 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-64

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
2

query I rowsort
SELECT DISTINCT + 14 + + 86 AS col2 FROM tab2 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + SUM( DISTINCT - 23 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + SUM ( DISTINCT - 23 ) AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL - + col1 * - - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8305
SELECT ALL CAST( + + col2 AS SIGNED ) DIV col0 + 90 AS col1 FROM tab0 cor0
----
90
91
93

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL CAST ( + + col2 AS INTEGER ) / col0 + 90 AS col1 FROM tab0 cor0
----
90
91
93

query I rowsort
SELECT + col1 - + col1 + 70 AS col2 FROM tab2 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT col0 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT col0 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + + ( col0 ) + + col2 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 + - + 31 col2 FROM tab2 AS cor0
----
110
111
66

query I rowsort
SELECT + ( - + 58 ) + col2 + - col0 * + - 93 FROM tab1
----
4781
7906
8473

query I rowsort
SELECT ALL - 46 / + 55 * - 28 AS col1 FROM tab2 WHERE - + 22 > 4
----

query I rowsort
SELECT DISTINCT col0 + - - 85 FROM tab1
----
136
170
176

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8314
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 * + col1 + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8314
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 * + col1 + - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + ( - col1 ) AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL + + 51 - + + col0 AS col2 FROM tab1 AS cor0
----
-34
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT - + 88 FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8317
SELECT - + 88 FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 89 * - col1 AS col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT + col2 * + CAST( NULL AS SIGNED ) / + 63 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT + col2 * + CAST ( NULL AS INTEGER ) / + 63 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT 83 * 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-8320
SELECT 83 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT - MAX( ALL + - ( + + CAST( - + col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8321
SELECT - MAX ( ALL + - ( + + CAST ( - + col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - 28 + - - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 + 73 / 39 NOT IN ( 95 )
----
-28

skipif mysql # not compatible
query I rowsort label-8322
SELECT - 28 + - - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 + 73 / 39 NOT IN ( 95 )
----
-28

query I rowsort
SELECT + 16 * - + 4 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + col2 * - - col1 FROM tab2 AS cor0 WHERE NOT ( col0 IS NULL )
----
1173
3080
3886

query I rowsort
SELECT - - col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, - col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
-51
47
-91
5
-85

query I rowsort
SELECT - - 88 + 34 FROM tab0 AS cor0
----
122
122
122

query I rowsort
SELECT - - 73 + - + col1 AS col2 FROM tab2 AS cor0
----
-4
22
6

query I rowsort
SELECT DISTINCT + col1 + ( + 75 ) * col0 AS col2 FROM tab1
----
3839
6380
6872

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 * - col0 - + - col0 / + col0 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT + col1 DIV + + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + col1 / + + col0 AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8334
SELECT COUNT( ALL - col2 ) FROM tab1 WHERE NOT NULL NOT IN ( - + col0, CAST( + 35 AS SIGNED ) * col2, + - 78, + 12 )
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT COUNT ( ALL - col2 ) FROM tab1 WHERE NOT NULL NOT IN ( - + col0, CAST ( + 35 AS INTEGER ) * col2, + - 78, + 12 )
----
0

query I rowsort
SELECT + 76 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
33516
498636
76

query II rowsort
SELECT DISTINCT col0 AS col0, + 37 - + - 75 FROM tab2 AS cor0
----
46
112
64
112
75
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8337
SELECT ALL + CAST( NULL AS DECIMAL ) + + AVG ( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + CAST ( NULL AS REAL ) + + AVG ( col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + 57 FROM tab1
----
108
142
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT + - ( - CAST( NULL AS SIGNED ) ) / + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + - ( - CAST ( NULL AS INTEGER ) ) / + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8340
SELECT * FROM tab1 AS cor0 WHERE - CAST( 56 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8340
SELECT * FROM tab1 AS cor0 WHERE - CAST ( 56 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8341
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + + + col1 * + + 6 col1 FROM tab1 AS cor0
----
112
310
58

query I rowsort
SELECT + + 6 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 70 >= - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT - + col1 - + col2 / - CAST( + - 45 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 24 - col1 < - 61
----

skipif mysql # not compatible
query I rowsort label-8345
SELECT - + col1 - + col2 / - CAST ( + - 45 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 24 - col1 < - 61
----

query I rowsort
SELECT ALL 95 + + 81 AS col1 FROM tab2
----
176
176
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT COUNT( * ) - 19 DIV - - MIN( ALL col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT COUNT ( * ) - 19 / - - MIN ( ALL col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT - 83 - - + 63 + - + 61 DIV + + col2 FROM tab1
----
-20
-20
-21

skipif mysql # not compatible
query I rowsort label-8348
SELECT - 83 - - + 63 + - + 61 / + + col2 FROM tab1
----
-20
-20
-21

query I rowsort
SELECT ALL - 48 - + col1 FROM tab1
----
-53
-62
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT ALL + col0 - + col1 DIV + 93 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + col0 - + col1 / + 93 AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT COUNT( * ) * - 98 AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-8351
SELECT COUNT ( * ) * - 98 AS col0 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL 82 * - - COUNT( * ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL 82 * - - COUNT ( * ) AS col2 FROM tab0
----
246

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 * col0 AS col0, col0 AS col0 FROM tab2
----
-1058
46
-2560
64
-4350
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT + 77 * + COUNT( * ), 6 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
693
6

skipif mysql # not compatible
query II rowsort label-8356
SELECT + 77 * + COUNT ( * ), 6 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
693
6

query I rowsort
SELECT ALL col2 * + - 93 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 * - 87 * 39 AS col1 FROM tab0 AS cor0
----
-315549

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT + MIN( ALL + - 31 ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8359
SELECT + MIN ( ALL + - 31 ) AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL SUM( DISTINCT + - 63 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL SUM ( DISTINCT + - 63 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL - col2 * - ( + + 49 ) AS col1 FROM tab0 cor0
----
2303
4851
490

query II rowsort
SELECT - col0 AS col2, - 54 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT DISTINCT - col0 + col2, ( col0 ) AS col1 FROM tab0 AS cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT ALL - - col0 * + + col1 * + - col2 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - 53 + col0 FROM tab2
----
-7
11
22

query I rowsort
SELECT - - col1 / - - col1 + + col1 + - col0 + - - 93 * ( - + 70 ) * + + col1 - - col1 AS col1 FROM tab1 WHERE NOT + - 64 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT col0 DIV - 54 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT col0 / - 54 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT DISTINCT 89 DIV + SUM( - col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT 89 / + SUM ( - col0 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT COUNT( * ) * - + 84 DIV - ( + + COUNT( DISTINCT - col2 ) ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8369
SELECT COUNT ( * ) * - + 84 / - ( + + COUNT ( DISTINCT - col2 ) ) AS col2 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8370
SELECT 82 + + col1 - 50 DIV + col0 - 74 AS col1, - col1 FROM tab0
----
29
-21
86
-81
9
-1

skipif mysql # not compatible
query II rowsort label-8370
SELECT 82 + + col1 - 50 / + col0 - 74 AS col1, - col1 FROM tab0
----
29
-21
86
-81
9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT MAX( DISTINCT + 57 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT MAX ( DISTINCT + 57 ) FROM tab0
----
57

query I rowsort
SELECT - col0 + + - col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT + MAX( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT COUNT( + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8374
SELECT COUNT ( + - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT - CAST( - col0 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - - COUNT( * ) * - 89 - - 13 FROM tab0 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-8376
SELECT - - COUNT ( * ) * - 89 - - 13 FROM tab0 AS cor0
----
-254

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT DISTINCT MAX( ALL + 47 ) AS col0, + ( + MIN( ALL col2 ) ) AS col1 FROM tab2
----
47
23

skipif mysql # not compatible
query II rowsort label-8378
SELECT DISTINCT MAX ( ALL + 47 ) AS col0, + ( + MIN ( ALL col2 ) ) AS col1 FROM tab2
----
47
23

query I rowsort
SELECT + col2 + - col0 + - 52 FROM tab1 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT ALL 49 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - col2 + + 12 BETWEEN - + col1 AND - col0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8381
SELECT DISTINCT - - col2 * - + CAST( NULL AS SIGNED ) AS col1, 37, - - col2 + + col2 col0 FROM tab2 AS cor0
----
9 values hashing to f461a0f6f9206d5daf1fd8ac750e7de0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8381
SELECT DISTINCT - - col2 * - + CAST ( NULL AS INTEGER ) AS col1, 37, - - col2 + + col2 col0 FROM tab2 AS cor0
----
9 values hashing to f461a0f6f9206d5daf1fd8ac750e7de0

query I rowsort
SELECT ALL - + 60 + 23 + - col0 - + - col1 AS col0 FROM tab0 AS cor0
----
-103
-133
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, col0 col2 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + col0 + + - 7 FROM tab1 AS cor0
----
44
78
84

query I rowsort
SELECT - - ( 93 ) * + col2 + - 67 AS col0 FROM tab2 AS cor0
----
2072
3653
5327

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT - col1 + - col0 + col2 + + col1 * - 35 * col1 DIV + col1 FROM tab2 AS cor0
----
-1859
-2429
-2796

skipif mysql # not compatible
query I rowsort label-8386
SELECT - col1 + - col0 + col2 + + col1 * - 35 * col1 / + col1 FROM tab2 AS cor0
----
-1859
-2429
-2796

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - + 34 + - col2 AS col1 FROM tab0 AS cor0
----
-133
-44
-81

query I rowsort
SELECT DISTINCT - + 3 AS col1 FROM tab0 WHERE NOT - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 30 FROM tab1
----
-1770
-2040
-2880

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT + CAST( - 91 AS SIGNED ) * - MIN( ALL + ( + col2 ) ) FROM tab0
----
910

skipif mysql # not compatible
query I rowsort label-8393
SELECT + CAST ( - 91 AS INTEGER ) * - MIN ( ALL + ( + col2 ) ) FROM tab0
----
910

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - ( col2 ) + + + col0 + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8395
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST( + col1 AS DECIMAL ) ) > col2 + + ( - - col2 ) * - - 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8395
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( + col1 AS REAL ) ) > col2 + + ( - - col2 ) * - - 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + - 81, col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT + + 54 + - + 7 AS col1 FROM tab0 AS cor0
----
47
47
47

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * 22 * - - col1 + - + col2 col0 FROM tab0 AS cor0
----
108655
1243
28172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT - 66 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT - 66 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 * - + col2 - + - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8403
SELECT ALL - COUNT( - + 74 ) * - SUM( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) AS col2, + COUNT( ALL - - col1 ) * + 78 + + 33 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL - COUNT ( - + 74 ) * - SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( ALL - - col1 ) * + 78 + + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT DISTINCT ( - 45 ) DIV + - ( - - col1 ) FROM tab0 AS cor0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT ( - 45 ) / + - ( - - col1 ) FROM tab0 AS cor0
----
0
2
45

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, - ( + col0 ) + - + col0 AS col2 FROM tab2 AS cor0
----
46
-92
64
-128
75
-150

query I rowsort
SELECT - 61 * 24 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to bc3c126cb3264ae53e56e173847b1789

query II rowsort
SELECT DISTINCT + 24, + col0 AS col2 FROM tab2
----
24
46
24
64
24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT 15 * 17 * COUNT( * ) AS col2 FROM tab0 cor0
----
765

skipif mysql # not compatible
query I rowsort label-8409
SELECT 15 * 17 * COUNT ( * ) AS col2 FROM tab0 cor0
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL MAX( DISTINCT - ( - - col1 ) ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL MAX ( DISTINCT - ( - - col1 ) ) FROM tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( - col2 ) + col0 * - - ( col0 ) * - - ( 40 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL - 9 + + 93 * + + col0 AS col1 FROM tab1 AS cor0
----
4734
7896
8454

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8416
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = + col2 * - 64 + - + CAST( 68 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8416
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = + col2 * - 64 + - + CAST ( 68 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 NOT BETWEEN NULL AND 24 )
----
15
81
47

query I rowsort
SELECT DISTINCT - + col1 + 60 FROM tab0 AS cor0
----
-21
39
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - - MIN( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - - MIN ( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT ALL - CAST( NULL AS SIGNED ) + AVG ( + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - CAST ( NULL AS INTEGER ) + AVG ( + col1 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 44 + + 90 FROM tab1
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ( + 46 ) + - COUNT( * ) col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8424
SELECT ( + 46 ) + - COUNT ( * ) col1 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT ( + col0 ) + + + 96, col1 AS col1 FROM tab0
----
111
81
183
21
193
1

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) * + col1 * - 88 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + 20 = + 63
----

query I rowsort
SELECT + 99 * - col0 AS col2 FROM tab2 cor0
----
-4554
-6336
-7425

query I rowsort
SELECT ALL col0 * + col2 + - 97 AS col2 FROM tab2
----
2463
4253
961

query I rowsort
SELECT ALL + col2 + + - col0 + col0 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT ALL + 54 + - 86 AS col1, + COUNT( * ) FROM tab2
----
-32
3

skipif mysql # not compatible
query II rowsort label-8432
SELECT ALL + 54 + - 86 AS col1, + COUNT ( * ) FROM tab2
----
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8433
SELECT * FROM tab1 WHERE NULL < + col2 / col0 - - ( ( + + CAST( NULL AS SIGNED ) ) ) * + col1
----

skipif mysql # not compatible
query III rowsort label-8433
SELECT * FROM tab1 WHERE NULL < + col2 / col0 - - ( ( + + CAST ( NULL AS INTEGER ) ) ) * + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - - + 1 > + col1 + + - col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + COUNT( + + 91 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + COUNT ( + + 91 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - COUNT( * ) - 52 * + MIN( ALL + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - COUNT ( * ) - 52 * + MIN ( ALL + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8437
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + + ( + col1 ) / + - 42 + 89 + col2 / ( col2 ) * + col2 + + col2 + col1 * col2 * - col1 / + + ( - CAST( - 69 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8437
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + + ( + col1 ) / + - 42 + 89 + col2 / ( col2 ) * + col2 + + col2 + col1 * col2 * - col1 / + + ( - CAST ( - 69 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT - col1 DIV 10 col1 FROM tab0 AS cor0
----
-2
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT - col1 / 10 col1 FROM tab0 AS cor0
----
-2
-8
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8439
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( col1 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8439
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS REAL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 83 col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT + col2 DIV - - 96 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8442
SELECT + col2 / - - 96 AS col0 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 / col0 + - col1 * + col0 / + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 25 * col1 * + + col1 AS col2 FROM tab1 AS cor0
----
-4900
-55225
-625

query II rowsort
SELECT - col2 AS col1, - col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE 40 + + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT + COUNT( * ) * + + 47 * COUNT( * ) col2 FROM tab0
----
423

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8447
SELECT DISTINCT + COUNT ( * ) * + + 47 * COUNT ( * ) col2 FROM tab0
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT DISTINCT col0 DIV + 2 AS col1 FROM tab2
----
23
32
37

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT col0 / + 2 AS col1 FROM tab2
----
23
32
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <> + - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8450
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( 59 * CAST( NULL AS DECIMAL ) * - + col2 / col2, 24 )
----

skipif mysql # not compatible
query III rowsort label-8450
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( 59 * CAST ( NULL AS REAL ) * - + col2 / col2, 24 )
----

query I rowsort
SELECT - 70 * + 47 + + col0 AS col1 FROM tab1 AS cor0
----
-3199
-3205
-3239

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT ALL 69 DIV + - 18 + - + col1 AS col0 FROM tab2 AS cor0
----
-54
-70
-80

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 69 / + - 18 + - + col1 AS col0 FROM tab2 AS cor0
----
-54
-70
-80

query I rowsort
SELECT ALL + 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT * FROM tab2 WHERE NULL = + col2 - + 48 * + - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - ( + 81 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT col0 + - 64 + - - ( col0 ) + - col0 DIV - col0 + - - col2 FROM tab1 AS cor0
----
135
166
187

skipif mysql # not compatible
query I rowsort label-8456
SELECT col0 + - 64 + - - ( col0 ) + - col0 / - col0 + - - col2 FROM tab1 AS cor0
----
135
166
187

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col2 + + 80 FROM tab0 AS cor0
----
127
179
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + + SUM( col0 ) + + 20 FROM tab0 cor0
----
219

skipif mysql # not compatible
query I rowsort label-8459
SELECT + + SUM ( col0 ) + + 20 FROM tab0 cor0
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + col2 col2 FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT ALL + - col2 + + - 78 AS col2 FROM tab0 AS cor0
----
-125
-177
-88

query I rowsort
SELECT DISTINCT + 89 - + 62 AS col1 FROM tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + ( col0 ) col2 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT COUNT( * ) - - 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT COUNT ( * ) - - 70 FROM tab1
----
73

query I rowsort
SELECT - col2 * - ( + 78 ) * 29 FROM tab1
----
133458
153816
217152

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL MIN( DISTINCT - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL MIN ( DISTINCT - + col1 ) FROM tab2
----
-77

query II rowsort
SELECT col2 * col0 - + + 12, col0 - + col1 AS col1 FROM tab0
----
693
-66
858
66
9591
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT - COUNT( * ) - - CAST( - 44 AS SIGNED ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8468
SELECT - COUNT ( * ) - - CAST ( - 44 AS INTEGER ) FROM tab0 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + - 79 * + - COUNT( * ) + - CAST( COUNT( ALL - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8469
SELECT + - 79 * + - COUNT ( * ) + - CAST ( COUNT ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT ALL - + col2 * - ( + - 63 ) * - 21 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 * 1 + - - col1 AND + + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8471
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * - col2 + CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8471
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * - col2 + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT - - col1 DIV - 47 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - - col1 / - 47 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - + ( + col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( + 3 AS SIGNED ) - ( 1 ) IN ( col0, col2 * col0 * - col1 - + 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( + 3 AS INTEGER ) - ( 1 ) IN ( col0, col2 * col0 * - col1 - + 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 97 * - col2 FROM tab0
----
4559
9603
970

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT col0 * 89 DIV + 39 FROM tab2
----
104
146
171

skipif mysql # not compatible
query I rowsort label-8476
SELECT col0 * 89 / + 39 FROM tab2
----
104
146
171

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 >= - 3
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( col0 ) - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 83 col2 FROM tab2
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - SUM( 3 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - SUM ( 3 ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT SUM( ALL 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-8481
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT + + 63 AS col2 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT 44 + - ( col0 ) + + col1 DIV - - ( + - col0 ) FROM tab1 AS cor0
----
-41
-47
-7

skipif mysql # not compatible
query I rowsort label-8483
SELECT 44 + - ( col0 ) + + col1 / - - ( + - col0 ) FROM tab1 AS cor0
----
-41
-47
-7

query II rowsort
SELECT ALL col2 * + col0 AS col0, col0 * - col2 * - 77 AS col1 FROM tab2 AS cor0
----
1058
81466
2560
197120
4350
334950

query I rowsort
SELECT col1 * - + 13 AS col2 FROM tab1
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT + 94 * - - col1 AS col1 FROM tab2 AS cor0
----
4794
6298
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - SUM( DISTINCT 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - SUM ( DISTINCT 33 ) FROM tab1 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 IN ( - 28 * - - ( - col1 ) + + 92, col1 )
----

query I rowsort
SELECT ALL ( + + 82 ) AS col1 FROM tab0 AS cor0
----
82
82
82

query II rowsort
SELECT ALL - 50, + 42 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 69 * 57 + 21 + - 97 * col1 - + col1 + + 60 < - col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT + col1 + + col2 * + + ( + + 35 ) * - ( + 55 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT + col1 + + col2 * + + ( + + 35 ) * - ( + 55 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT DISTINCT col0 - - 91 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT col0 - - 91 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - 0 + + + 45 AS col2 FROM tab2
----
45
45
45

query I rowsort
SELECT + col1 FROM tab0 WHERE + - col0 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8498
SELECT + col1 * - col2 AS col0, col1 DIV - col2 FROM tab1 cor0
----
-1344
0
-295
0
-3196
0

skipif mysql # not compatible
query II rowsort label-8498
SELECT + col1 * - col2 AS col0, col1 / - col2 FROM tab1 cor0
----
-1344
0
-295
0
-3196
0

query II rowsort
SELECT + 79, col0 - col1 * + 46 AS col1 FROM tab2 cor0
----
79
-2300
79
-3007
79
-3478

query II rowsort
SELECT ( + col0 ) AS col2, + 96 FROM tab2
----
46
96
64
96
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - COUNT( * ) * + 55 AS col2 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - COUNT ( * ) * + 55 AS col2 FROM tab1
----
-165

query I rowsort
SELECT DISTINCT 87 * 71 FROM tab0
----
6177

query I rowsort
SELECT + - 18 + + ( col0 ) + + col0 + + col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - ( + - col1 ) AND col1 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL MIN( + 30 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL MIN ( + 30 ) AS col1 FROM tab2 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col2 ) * col0 * + col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL + 16 * 50 FROM tab2
----
800
800
800

query I rowsort
SELECT col0 * - 67 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT ALL + MAX( + col1 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + MAX ( + col1 ) / - COUNT ( * ) AS col2 FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( 70 ) <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT ALL - + 13 AS col1, COUNT( * ) * - 85 FROM tab1 AS cor0
----
-13
-255

skipif mysql # not compatible
query II rowsort label-8513
SELECT ALL - + 13 AS col1, COUNT ( * ) * - 85 FROM tab1 AS cor0
----
-13
-255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT CAST( NULL AS SIGNED ) AS col1, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - col0 < - col2 * + 99
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-8514
SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - col0 < - col2 * + 99
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT ALL - col0 * col2 + col2 + - col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT - 60 * COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - 60 * COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 * + + col1 + + col2 * - + 93 * - col2 + - col0 + - + col0 + + - 4 FROM tab2 AS cor0
----
142739
308209
46500

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - col0 + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) <> col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( ( + 50 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 55 ) <> col1
----

query I rowsort
SELECT ALL + 75 - + 50 AS col1 FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + col1 * - CAST( 29 * 95 AS SIGNED ) + + ( + col0 - - col1 * ( - 52 * + 89 ) ) * - col1 FROM tab2
----
11894577
20585482
27222349

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + col1 * - CAST ( 29 * 95 AS INTEGER ) + + ( + col0 - - col1 * ( - 52 * + 89 ) ) * - col1 FROM tab2
----
11894577
20585482
27222349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( CAST( col2 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query I rowsort label-8524
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( CAST ( col2 AS INTEGER ) * - col2 )
----

query I rowsort
SELECT DISTINCT col1 * 97 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8526
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 * 98 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT 23 * 40 FROM tab2
----
920
920
920

query I rowsort
SELECT col1 * + 23 FROM tab1
----
1081
115
322

query I rowsort
SELECT col0 * 96 AS col0 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT col1 * - 57 AS col0 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT ( + col0 ) * + col2 AS col1 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( - col1 ) col0 FROM tab2 WHERE - 48 * + col2 IS NULL
----
NULL

query I rowsort
SELECT - col0 * ( + col0 ) AS col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col1 IS NOT NULL
----

query I rowsort
SELECT + 96 * + col0 FROM tab2
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + 12 * + MIN( DISTINCT + col1 ) FROM tab2
----
612

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 12 * + MIN ( DISTINCT + col1 ) FROM tab2
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL < ( + 97 + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL < ( + 97 + 26 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT COUNT( ALL 4 ) * 79 - - 70 FROM tab2
----
307

skipif mysql # not compatible
query I rowsort label-8539
SELECT COUNT ( ALL 4 ) * 79 - - 70 FROM tab2
----
307

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN ( NULL ) AND - 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT DISTINCT - col2 DIV + 7 col2 FROM tab1
----
-13
-8
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8541
SELECT DISTINCT - col2 / + 7 col2 FROM tab1
----
-13
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT - COUNT( * ) * MIN( col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - COUNT ( * ) * MIN ( col2 ) FROM tab1
----
-177

query I rowsort
SELECT + ( + col2 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) < ( + col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col2 ) * 83 AS col2 FROM tab0
----
3901
8217
830

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 65 * col1 ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT COUNT( + 63 ) + COUNT( ALL 80 + CAST( NULL AS SIGNED ) * + 81 ) * + 75 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8547
SELECT COUNT ( + 63 ) + COUNT ( ALL 80 + CAST ( NULL AS INTEGER ) * + 81 ) * + 75 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8548
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT DISTINCT 24 + col1 * col1 FROM tab1
----
220
2233
49

query I rowsort
SELECT - col0 * + col0 - col1 AS col2 FROM tab0 AS cor0
----
-306
-7590
-9410

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 / 90 < - col2 + - 16 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL + MAX( DISTINCT + 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + MAX ( DISTINCT + 57 ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 FROM tab2 WHERE NOT col0 / - col0 + col2 / col0 IS NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 16 + col2 * col1 FROM tab0 WHERE NULL > ( ( col2 ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE ( + col2 + - col1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE ( + col2 + - col1 ) = NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8559
SELECT DISTINCT * FROM tab2 WHERE - col1 IN ( - CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-8559
SELECT DISTINCT * FROM tab2 WHERE - col1 IN ( - CAST ( NULL AS INTEGER ) + col0 )
----

query I rowsort
SELECT 44 AS col1 FROM tab1 WHERE NOT - col1 * 83 IS NULL
----
44
44
44

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE NOT NULL = col0 - col2 * 10
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( 80 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col0 FROM tab0 AS cor0 WHERE ( col1 * 13 ) >= 77
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 * col2 + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - 58 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 60
----
NULL

query I rowsort
SELECT ( col2 ) * + 14 AS col2 FROM tab0
----
1386
140
658

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 / col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - 37 AND col0 * col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( * ) * 26 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( * ) * 26 FROM tab0
----
78

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT ALL col0 DIV - + col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL col0 / - + col1 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IN ( col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 / col1 ) = NULL
----

query I rowsort
SELECT + 20 * col2 + col0 AS col1 FROM tab0
----
2077
287
955

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( 20 * + col0 )
----

query I rowsort
SELECT ALL - col1 + + + 6 * ( - 89 ) FROM tab2 cor0
----
-585
-601
-611

query I rowsort
SELECT DISTINCT - col0 + 70 FROM tab2 AS cor0
----
-5
24
6

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8582
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( - col1 AS SIGNED ) ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8582
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - col1 AS INTEGER ) ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + + ( COUNT( * ) ) - 97 + 62 AS col2 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8583
SELECT + + ( COUNT ( * ) ) - 97 + 62 AS col2 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + 71 * - col0 AS col2 FROM tab2 cor0
----
-3266
-4544
-5325

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / + + CAST( - CAST( ( col2 ) AS SIGNED ) AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / + + CAST ( - CAST ( ( col2 ) AS INTEGER ) AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL ( + ( col1 ) ) + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8588
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( 90 ) * - col2 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( 90 ) * - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + col0 * col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT - col1 + CAST( 24 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-27
-43
-53

skipif mysql # not compatible
query I rowsort label-8591
SELECT - col1 + CAST ( 24 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-27
-43
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT - 87 * + - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT - 87 * + - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT ALL + MIN( col2 ) + ( + MAX( ALL + col1 ) ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) / + + 82 * col0 BETWEEN ( - col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + MIN ( col2 ) + ( + MAX ( ALL + col1 ) ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / + + 82 * col0 BETWEEN ( - col0 ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col0 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT MAX( 54 ) * + 38 FROM tab1 WHERE ( - + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT MAX ( 54 ) * + 38 FROM tab1 WHERE ( - + col2 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 BETWEEN col1 + + col1 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8597
SELECT DISTINCT 79 + col0 / + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 79 + col0 / + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IN ( col0 )
----

query I rowsort
SELECT + col1 * - 54 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT - col1 DIV 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT - col1 / 62 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + col0 <> + + 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, - 57 * col0 * - - 34 * - + col2 FROM tab0 AS cor0
----
1
18610614
21
1686060
81
1366290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT ALL - - COUNT( * ) * + + 32 + + - 77 * - + 29 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL - - COUNT ( * ) * + + 32 + + - 77 * - + 29 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + 22 col0 FROM tab2 AS cor0
----
-1
-18
-36

query I rowsort
SELECT AVG ( 34 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( 10 ) * + - 80 + + col1 )
----
NULL

query I rowsort
SELECT ALL col0 + + 57 AS col1 FROM tab2
----
103
121
132

query II rowsort
SELECT DISTINCT col2, 91 AS col2 FROM tab1
----
59
91
68
91
96
91

query II rowsort
SELECT DISTINCT col2 AS col0, + 65 + - + col1 FROM tab0
----
10
44
47
-16
99
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - 48 * - ( + 69 ) + + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 34 ) NOT BETWEEN + col0 + col0 AND + col0 + col2
----

query I rowsort
SELECT col1 * - + col0 * + + 12 AS col0 FROM tab0
----
-1164
-14580
-21924

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( + 79 ) ) NOT IN ( col0 )
----

query I rowsort
SELECT + 78 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
240240
303108
91494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT - col1 * + 25 * - - CAST( - col0 AS SIGNED ) + + - col2 * - - 94 + - 58 FROM tab0 AS cor0
----
-6939
25899
44677

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT - col1 * + 25 * - - CAST ( - col0 AS INTEGER ) + + - col2 * - - 94 + - 58 FROM tab0 AS cor0
----
-6939
25899
44677

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - - 56 + COUNT( * ) col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT ALL - - 56 + COUNT ( * ) col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 64 IN ( - col2 * 56 ) OR NOT 40 NOT BETWEEN ( NULL ) AND + col0 / 87
----
51
67
77

query I rowsort
SELECT DISTINCT + ( + 25 ) - - col0 FROM tab2 AS cor0
----
100
71
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT + col1 DIV - 52 FROM tab2 AS cor0 WHERE ( ( + - col0 ) * - - col0 * - 34 + col1 ) IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT + col1 / - 52 FROM tab2 AS cor0 WHERE ( ( + - col0 ) * - - col0 * - 34 + col1 ) IS NOT NULL
----
-1
-1
0

query I rowsort
SELECT ALL - 13 + + 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - ( - 66 ) * - col0 - - - col1 AS col2 FROM tab0 cor0
----
-1071
-5763
-6403

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8621
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN 12 + + + col2 * + + CAST( + col2 AS SIGNED ) AND ( - ( col2 ) )
----

skipif mysql # not compatible
query III rowsort label-8621
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN 12 + + + col2 * + + CAST ( + col2 AS INTEGER ) AND ( - ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-8622
SELECT col1 * + col1 AS col1, - col1 - + col1 DIV - 44 AS col0, col2 FROM tab0 AS cor0
----
9 values hashing to f8acd86e96183e231765169efdb48f19

skipif mysql # not compatible
query III rowsort label-8622
SELECT col1 * + col1 AS col1, - col1 - + col1 / - 44 AS col0, col2 FROM tab0 AS cor0
----
9 values hashing to f8acd86e96183e231765169efdb48f19

query II rowsort
SELECT DISTINCT + - col0 * - - col1 * 57 + + col1 * - 82, col1 AS col0 FROM tab1 AS cor0
----
-24635
5
-247643
47
-41846
14

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT ALL - + col0 / + col0 * 88 + CAST( NULL AS SIGNED ) + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - + col0 / + col0 * 88 + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 45 AS col0 FROM tab2
----
-51
-45
-67
-45
-77
-45

query I rowsort
SELECT ALL ( - + ( - 51 ) ) FROM tab2
----
51
51
51

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - MAX( - - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8629
SELECT - MAX ( - - col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT + 56 AS col2, - COUNT( * ) FROM tab2
----
56
-3

skipif mysql # not compatible
query II rowsort label-8630
SELECT + 56 AS col2, - COUNT ( * ) FROM tab2
----
56
-3

query I rowsort
SELECT DISTINCT - 72 * - + col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL - ( + ( + CAST( - + col0 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - ( + ( + CAST ( - + col0 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 14 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2 col0, - col2 + - 46 * + - col2, col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT CAST( + - col2 AS SIGNED ) * + 10 FROM tab1
----
-590
-680
-960

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) * + 10 FROM tab1
----
-590
-680
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT - col1 DIV + + 70 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT - col1 / + + 70 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= - 30 / + - col2 + + - col0
----

query I rowsort
SELECT ALL 4 + + col1 * - - col1 * 90 * + col2 FROM tab2 AS cor0
----
21344404
23432584
5384074

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8639
SELECT * FROM tab1 AS cor0 WHERE NOT + 91 NOT IN ( - 99 + - CAST( + col1 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8639
SELECT * FROM tab1 AS cor0 WHERE NOT + 91 NOT IN ( - 99 + - CAST ( + col1 AS INTEGER ) * - col2 )
----

query I rowsort
SELECT 3 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
3

query I rowsort
SELECT DISTINCT - col2 + - 6 AS col2 FROM tab1 AS cor0
----
-102
-65
-74

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NOT - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 10 + col2 AS col2 FROM tab0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ( - + COUNT( * ) ) * + - 87 + 67 AS col0 FROM tab1
----
328

skipif mysql # not compatible
query I rowsort label-8644
SELECT ( - + COUNT ( * ) ) * + - 87 + 67 AS col0 FROM tab1
----
328

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col0 AND NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT - 23 + - MIN( + CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 23 + - MIN ( + CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT - col0 + - col1 DIV + ( + 96 ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8647
SELECT - col0 + - col1 / + ( + 96 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL - + 37 + - col2 FROM tab0 AS cor0
----
-136
-47
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + col0 IS NULL
----

query II rowsort
SELECT - - col0, 73 AS col0 FROM tab0 AS cor0
----
15
73
87
73
97
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col1 col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

query II rowsort
SELECT + col0 AS col0, col1 + - col2 * + col2 AS col2 FROM tab2
----
46
-478
64
-1523
75
-3297

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - MAX( ALL 75 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-8655
SELECT - MAX ( ALL 75 ) AS col1 FROM tab1
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8657
SELECT - CAST( NULL AS SIGNED ) col1, + MIN( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8657
SELECT - CAST ( NULL AS INTEGER ) col1, + MIN ( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
NULL
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8658
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT + col2 * - + col2 + + + CAST( - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT + col2 * - + col2 + + + CAST ( - col1 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT - + 37 AS col2, - col2 AS col2 FROM tab2 cor0
----
-37
-23
-37
-40
-37
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT + - COUNT( * ) DIV + 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT + - COUNT ( * ) / + 88 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 53 ) IS NULL
----

query II rowsort
SELECT ALL + col2 * col0 AS col2, col0 + + col0 FROM tab2
----
1058
92
2560
128
4350
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8663
SELECT + col0 FROM tab0 WHERE NOT + CAST( col1 AS DECIMAL ) BETWEEN - 97 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8663
SELECT + col0 FROM tab0 WHERE NOT + CAST ( col1 AS REAL ) BETWEEN - 97 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL + CAST( col2 AS SIGNED ) * col1 + - col0 FROM tab0 AS cor0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + CAST ( col2 AS INTEGER ) * col1 + - col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + - SUM( + 14 ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8665
SELECT + - SUM ( + 14 ) AS col2 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - - 61 AS col0 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - + col0 * - 92 AS col0 FROM tab0 AS cor0
----
1380
8004
8924

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 34 * 39 > + col2 / - - 89
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + 99 + + col0 + col1 - - col2 AS col0 FROM tab1 AS cor0
----
-1225
-346
-4447

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 * + col1 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

query I rowsort
SELECT - col0 + ( + col1 ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8676
SELECT ALL * FROM tab0 cor0 WHERE + col1 BETWEEN - CAST( + col1 AS SIGNED ) + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8676
SELECT ALL * FROM tab0 cor0 WHERE + col1 BETWEEN - CAST ( + col1 AS INTEGER ) + + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL COUNT( * ) + - - 59 * + CAST( SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-13154

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL COUNT ( * ) + - - 59 * + CAST ( SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-13154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT col0 + - 27 AS col2 FROM tab1 WHERE - - ( CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8678
SELECT col0 + - 27 AS col2 FROM tab1 WHERE - - ( CAST ( col0 AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT DISTINCT - - 27 * - col0, - col1 * + + col0 FROM tab1 WHERE ( + 42 BETWEEN 30 AND - - col2 * - 6 + - 57 ) OR NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT + 69 + - COUNT( * ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT + 69 + - COUNT ( * ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT COUNT( - - ( - 30 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT COUNT ( - - ( - 30 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT ALL 91 / CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 91 / CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + COUNT( * ) - - MAX( DISTINCT + 13 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8683
SELECT + COUNT ( * ) - - MAX ( DISTINCT + 13 ) FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + + MIN( DISTINCT + 75 ) - 20 col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT + + MIN ( DISTINCT + 75 ) - 20 col0 FROM tab0 AS cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - 97 IS NOT NULL AND NULL = 73
----

query I rowsort
SELECT ALL 50 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - 92 * MAX( - - col2 ) FROM tab2
----
-5336

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 92 * MAX ( - - col2 ) FROM tab2
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + 64 * + + MAX( - 44 ) FROM tab0 AS cor0
----
-2816

skipif mysql # not compatible
query I rowsort label-8688
SELECT + 64 * + + MAX ( - 44 ) FROM tab0 AS cor0
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT + - MAX( ALL - 7 ) * SUM( DISTINCT + col1 ) * - - 70 FROM tab1 AS cor0
----
32340

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + - MAX ( ALL - 7 ) * SUM ( DISTINCT + col1 ) * - - 70 FROM tab1 AS cor0
----
32340

query I rowsort
SELECT - col0 * - 5 AS col1 FROM tab0 cor0
----
435
485
75

query II rowsort
SELECT - 54 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-54
51
-54
85
-54
91

query I rowsort
SELECT ALL - 91 AS col0 FROM tab0 cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( - col2 ) AND col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - + 11 ) AS col1 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + col1 * + + 51 * col0 FROM tab2
----
119646
251328
256275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 col0, - 51 AS col0 FROM tab2
----
-96
-51
-96
-51
-96
-51

query II rowsort
SELECT col0 * - col2 AS col1, - col0 + + - col0 FROM tab2
----
-1058
-92
-2560
-128
-4350
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + + COUNT( DISTINCT + 24 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8698
SELECT + + COUNT ( DISTINCT + 24 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 37 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8700
SELECT ALL - col0 * col0 * + col1 * + CAST( NULL AS SIGNED ) AS col0, 56 FROM tab1 cor0
----
NULL
56
NULL
56
NULL
56

skipif mysql # not compatible
query II rowsort label-8700
SELECT ALL - col0 * col0 * + col1 * + CAST ( NULL AS INTEGER ) AS col0, 56 FROM tab1 cor0
----
NULL
56
NULL
56
NULL
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + + col2 + - 3 * + ( + 86 ) - - - ( - 20 ) AS col1 FROM tab2 AS cor0
----
1362
291
3126

query I rowsort
SELECT DISTINCT - 51 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) * col0 <> - + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL 97 + + 92 * + COUNT( * ) * - COUNT( DISTINCT - 35 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-731

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL 97 + + 92 * + COUNT ( * ) * - COUNT ( DISTINCT - 35 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-731

query I rowsort
SELECT ALL + col1 * + col1 + + 77 FROM tab0 AS cor0
----
518
6638
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col1 + col1 + + col1 * + - 20 AS col0 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT DISTINCT - col2 * - col2 + ( + col1 ) FROM tab1
----
3486
4671
9230

query I rowsort
SELECT col0 + - 53 AS col1 FROM tab0
----
-38
34
44

query I rowsort
SELECT DISTINCT + - 10 AS col0 FROM tab1 WHERE + 61 * - + col1 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - 72 AS col0 FROM tab1 WHERE 95 IS NOT NULL
----
72

query I rowsort
SELECT DISTINCT col1 * + ( 20 ) - col1 AS col1 FROM tab0
----
1539
19
399

query II rowsort
SELECT ALL 53 AS col0, - col0 AS col1 FROM tab2
----
53
-46
53
-64
53
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT - COUNT( + + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - COUNT ( + + col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - + MIN( DISTINCT 57 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8716
SELECT - + MIN ( DISTINCT 57 ) FROM tab2 AS cor0
----
-57

query II rowsort
SELECT + col0 - + col0 + + 47 * + col1 * + + ( - + col0 ) AS col2, - 43 AS col0 FROM tab2 AS cor0
----
-110262
-43
-231616
-43
-236175
-43

query II rowsort
SELECT col2 - + col0 AS col0, - col0 * - 37 + col1 * col2 FROM tab2
----
-17
6661
-23
2875
-24
5448

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - SUM( DISTINCT - 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - SUM ( DISTINCT - 14 ) FROM tab1
----
14

query II rowsort
SELECT - + col2 * + col2 AS col2, col2 FROM tab0 AS cor0
----
-100
10
-2209
47
-9801
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT + 22 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 22 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8722
SELECT + col2 DIV - col2, col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-8722
SELECT + col2 / - col2, col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

query I rowsort
SELECT ALL + col0 * - - 16 * + col0 + + col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - 70 AND + 90
----
33879
65576
90058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT 77 DIV + + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8724
SELECT 77 / + + COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL col0 * - - 15 * + 17 FROM tab1
----
13005
21675
23205

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT 89 DIV col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT 89 / col2 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL - ( + 88 ) * - COUNT( * ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL - ( + 88 ) * - COUNT ( * ) AS col0 FROM tab0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8728
SELECT ( + MAX( 93 ) ) AS col2, CAST( - 70 AS SIGNED ) FROM tab1
----
93
-70

skipif mysql # not compatible
query II rowsort label-8728
SELECT ( + MAX ( 93 ) ) AS col2, CAST ( - 70 AS INTEGER ) FROM tab1
----
93
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8729
SELECT 38 DIV + MAX( - col2 ) AS col1, ( + 11 ) FROM tab2
----
-1
11

skipif mysql # not compatible
query II rowsort label-8729
SELECT 38 / + MAX ( - col2 ) AS col1, ( + 11 ) FROM tab2
----
-1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + SUM( - 66 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + SUM ( - 66 ) FROM tab0
----
-198

query I rowsort
SELECT + 16 * + + col2 AS col0 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT ALL + + 68 * - - 88 + + 86 * + - ( - + col0 ) + + 64 AS col0 FROM tab2 AS cor0
----
10004
11552
12498

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 41 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

query II rowsort
SELECT 95 AS col0, - 90 FROM tab2
----
95
-90
95
-90
95
-90

query II rowsort
SELECT ALL col2, + 93 + col2 * 70 FROM tab1
----
59
4223
68
4853
96
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, - col1 col1 FROM tab2
----
51
-51
67
-67
77
-77

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT - ( + 83 ) * + 1 + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - ( + 83 ) * + 1 + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

query I rowsort
SELECT ALL - 29 * 74 AS col1 FROM tab2
----
-2146
-2146
-2146

query II rowsort
SELECT ALL + col0 AS col0, + ( + - col1 ) AS col0 FROM tab2
----
46
-51
64
-77
75
-67

query II rowsort
SELECT DISTINCT + 5, col1 FROM tab1 AS cor0
----
5
14
5
47
5
5

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 79 AS col2 FROM tab0 AS cor0
----
-166
-176
-94

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = + col2 / - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) < + + 24
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) < + + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8746
SELECT CAST( NULL AS SIGNED ) AS col2, - ( - COUNT( * ) ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8746
SELECT CAST ( NULL AS INTEGER ) AS col2, - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8747
SELECT 91 col0, + 41 DIV + + MIN( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8747
SELECT 91 col0, + 41 / + + MIN ( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
91
0

query I rowsort
SELECT ( - + 70 ) AS col2 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT - ( 89 ) / + 99 / 31 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 * 20
----

query I rowsort
SELECT DISTINCT col0 * col2 - - col2 AS col2 FROM tab1
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col2 + - 63 + - - ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 9 / col1 * col2 / - + ( - col0 ) * col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - + 20 * - col2 * + - col2 + - 7 * 52 FROM tab0 AS cor0
----
-196384
-2364
-44544

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL SUM( ALL + - 47 ) AS col2 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL SUM ( ALL + - 47 ) AS col2 FROM tab1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT AVG ( ALL - + col1 ) FROM tab0 AS cor0 WHERE NOT 54 + col1 > ( - col0 + - col0 )
----
NULL

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT - 26, MAX( - - col0 ) - + MAX( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-26
98

skipif mysql # not compatible
query II rowsort label-8759
SELECT - 26, MAX ( - - col0 ) - + MAX ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-26
98

query I rowsort
SELECT ALL - + 15 FROM tab2 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT - MIN( ALL 36 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 88 * - + ( - 96 ) AND - col2 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - MIN ( ALL 36 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 88 * - + ( - 96 ) AND - col2 + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - + 79
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT ALL 5 DIV + 16 * - 39 * + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 5 / + 16 * - 39 * + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT ( - col2 ) DIV + 26 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT ( - col2 ) / + 26 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + - MIN( - + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + - MIN ( - + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 >= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT MAX( DISTINCT - + col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT DISTINCT MAX ( DISTINCT - + col1 ) col1 FROM tab2
----
-51

query II rowsort
SELECT - 16 * + 49 + + col1 * - col2, - col0 * ( 22 ) AS col1 FROM tab2 AS cor0
----
-1957
-1012
-3864
-1408
-4670
-1650

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 + - 83 AS col2 FROM tab2 AS cor0
----
-16
-32
-6

query I rowsort
SELECT DISTINCT col0 + - 52 AS col1 FROM tab2 AS cor0
----
-6
12
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + ( - SUM( DISTINCT col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8772
SELECT + ( - SUM ( DISTINCT col1 ) ) FROM tab0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT - - 21 DIV - - 64 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT - - 21 / - - 64 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 17 + + 13 AS col2 FROM tab1 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / + col1 <= - 94
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8778
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN + col0 * - - col2 + - CAST( + col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8778
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN + col0 * - - col2 + - CAST ( + col1 AS REAL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT DISTINCT + 8 + - col0 - col0 AS col2 FROM tab2 AS cor0
----
-120
-142
-84

query I rowsort
SELECT - - col1 + - 83 AS col1 FROM tab0 AS cor0
----
-2
-62
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT + 51 * + + CAST( ( + MIN( + col2 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
510

skipif mysql # not compatible
query I rowsort label-8782
SELECT + 51 * + + CAST ( ( + MIN ( + col2 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
510

query I rowsort
SELECT ALL - ( col0 ) * - 88 - col2 + 83 * + col2 * ( + col0 ) FROM tab1 AS cor0
----
410760
423666
521544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 98 + + col1 col0 FROM tab1 AS cor0
----
-5777
-6617
-9394

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL 23 + + ( COUNT( * ) ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL 23 + + ( COUNT ( * ) ) FROM tab1
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 41 IS NULL
----

query I rowsort
SELECT - ( + 71 ) + col0 FROM tab0
----
-56
16
26

query I rowsort
SELECT DISTINCT 77 - - 20 AS col1 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT SUM( - 57 ) AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8789
SELECT SUM ( - 57 ) AS col2 FROM tab1
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT DISTINCT - 45 - - - col2 * + col2 * - CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8790
SELECT DISTINCT - 45 - - - col2 * + col2 * - CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + COUNT( + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + COUNT ( + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT + + col1 DIV - 46 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8792
SELECT + + col1 / - 46 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * - 65 col1 FROM tab0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL - + 78 * - 32 + COUNT( * ) * + COUNT( - 42 ) AS col2 FROM tab2 AS cor0
----
2505

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - + 78 * - 32 + COUNT ( * ) * + COUNT ( - 42 ) AS col2 FROM tab2 AS cor0
----
2505

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + 70 IN ( - ( - + 13 ), + col0 * - 3 * - 11, + 29 + - col2 )
----

query II rowsort
SELECT DISTINCT - ( + col2 ), + col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col0 * - + col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL 14 * - - COUNT( * ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL 14 * - - COUNT ( * ) AS col1 FROM tab0
----
42

query I rowsort
SELECT ALL + 39 * + col2 FROM tab2
----
1560
2262
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 20 col2, col2 FROM tab1
----
20
59
20
68
20
96

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col0 >= NULL
----

query I rowsort
SELECT ( + 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT + 46 + + col0 FROM tab0 AS cor0
----
133
143
61

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT + 18 + 81 AS col1 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - - 31 FROM tab0 WHERE - 45 / 69 >= NULL
----

query I rowsort
SELECT + col1 * - - 47 AS col0 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + + MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8811
SELECT + + MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + + col0 * + - 59 AS col2 FROM tab2 AS cor0 WHERE ( + + ( - col2 ) ) IS NOT NULL
----
-2714
-3776
-4425

query II rowsort
SELECT DISTINCT col2 AS col0, + 41 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - - col0 * + col0 + - + col1 FROM tab0 AS cor0
----
144
7548
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col2 * + - 57 col0 FROM tab0 cor0
----
40185
49590
547371

query I rowsort
SELECT + col2 * - col2 FROM tab2 AS cor0 WHERE + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL + 37 + + 57 - - CAST( - col1 AS SIGNED ) * col2 * - - col1 FROM tab0 AS cor0
----
-308273
-4316
-5

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + 37 + + 57 - - CAST ( - col1 AS INTEGER ) * col2 * - - col1 FROM tab0 AS cor0
----
-308273
-4316
-5

query I rowsort
SELECT ALL + 12 + col0 FROM tab2
----
58
76
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT + col1 * - - CAST( - 49 AS SIGNED ) * - col2 AS col1 FROM tab1
----
14455
156604
65856

skipif mysql # not compatible
query I rowsort label-8820
SELECT + col1 * - - CAST ( - 49 AS INTEGER ) * - col2 AS col1 FROM tab1
----
14455
156604
65856

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8821
SELECT DISTINCT col0 FROM tab2 WHERE ( NOT + CAST( - col2 AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT col0 FROM tab2 WHERE ( NOT + CAST ( - col2 AS REAL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT - + COUNT( + 6 ) DIV + 32 AS col1 FROM tab0 WHERE NOT - - col0 * - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT - + COUNT ( + 6 ) / + 32 AS col1 FROM tab0 WHERE NOT - - col0 * - col2 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT col2 * ( - col1 ) * - - ( col1 ) * + - col2, + 31 * - col2 AS col2 FROM tab1
----
10214416
-2108
1806336
-2976
87025
-1829

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8824
SELECT - SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 29 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT + ( + - 6 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + ( + - 6 ) / - col2 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - + col2 AS col0, 56 AS col1 FROM tab0 AS cor0
----
-10
56
-47
56
-99
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 - - col0 NOT BETWEEN col0 * - col2 - + ( - col2 ) AND + - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL 59 + - COUNT( * ) * + 84 AS col1 FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 59 + - COUNT ( * ) * + 84 AS col1 FROM tab0 AS cor0
----
-193

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT DISTINCT - 73 * - COUNT( * ) AS col0, 89 col1 FROM tab1 AS cor0
----
219
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8831
SELECT DISTINCT - 73 * - COUNT ( * ) AS col0, 89 col1 FROM tab1 AS cor0
----
219
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT ALL + 78 + + 93, COUNT( * ) AS col2 FROM tab1
----
171
3

skipif mysql # not compatible
query II rowsort label-8832
SELECT ALL + 78 + + 93, COUNT ( * ) AS col2 FROM tab1
----
171
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT - 11 DIV + 83 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT - 11 / + 83 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT DISTINCT col2 DIV col0 DIV + col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT col2 / col0 / + col1 FROM tab0
----
0
1

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE - 34 <> col0
----
51
85
91

query I rowsort
SELECT DISTINCT + 85 + + col0 + 88 * - col0 FROM tab1
----
-4352
-7310
-7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT - col2 + - col2 + + col0 * + + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1
----
307
4141
522

skipif mysql # not compatible
query I rowsort label-8837
SELECT - col2 + - col2 + + col0 * + + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1
----
307
4141
522

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 < - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT CAST( NULL AS SIGNED ) + 69 * CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT CAST ( NULL AS INTEGER ) + 69 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT col2 DIV + 5 col2 FROM tab1
----
11
13
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8840
SELECT DISTINCT col2 / + 5 col2 FROM tab1
----
11
13
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col0 + - + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8841
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col0 + - + col0 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8842
SELECT - 42 FROM tab2 AS cor0 WHERE + 94 * + col1 <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8842
SELECT - 42 FROM tab2 AS cor0 WHERE + 94 * + col1 <= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - 14 + + - 75 * - + col2 AS col2 FROM tab0 cor0
----
3511
736
7411

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT SUM( 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
729

skipif mysql # not compatible
query I rowsort label-8844
SELECT SUM ( 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
729

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8845
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 25 + - + 79 >= 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT - 25 * - CAST( col2 AS SIGNED ) + - 8 * + 83 AS col2 FROM tab2 AS cor0
----
-89
336
786

skipif mysql # not compatible
query I rowsort label-8847
SELECT - 25 * - CAST ( col2 AS INTEGER ) + - 8 * + 83 AS col2 FROM tab2 AS cor0
----
-89
336
786

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT MAX( + 37 ) AS col0 FROM tab1 WHERE NOT - col2 >= ( + col1 - + col2 )
----
37

skipif mysql # not compatible
query I rowsort label-8848
SELECT MAX ( + 37 ) AS col0 FROM tab1 WHERE NOT - col2 >= ( + col1 - + col2 )
----
37

query I rowsort
SELECT ALL 29 * + 47 AS col1 FROM tab2
----
1363
1363
1363

query I rowsort
SELECT col1 * + 64 AS col2 FROM tab1
----
3008
320
896

onlyif mysql # DIV for integer division: 
query II rowsort label-8851
SELECT ( col1 ) AS col2, col0 DIV col0 * + 14 * - col0 AS col0 FROM tab0
----
1
-1358
21
-1218
81
-210

skipif mysql # not compatible
query II rowsort label-8851
SELECT ( col1 ) AS col2, col0 / col0 * + 14 * - col0 AS col0 FROM tab0
----
1
-1358
21
-1218
81
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8852
SELECT - ( COUNT( * ) ), - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8852
SELECT - ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-3
NULL

query I rowsort
SELECT ALL + 75 AS col2 FROM tab1 cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 81 * - col1 AS col0 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT col0 DIV 47 * - - col0 FROM tab0 AS cor0
----
0
194
87

skipif mysql # not compatible
query I rowsort label-8857
SELECT col0 / 47 * - - col0 FROM tab0 AS cor0
----
0
194
87

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT - 73 * COUNT( * ) AS col2 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - 73 * COUNT ( * ) AS col2 FROM tab0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8860
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - col1 <= + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8860
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - col1 <= + CAST ( - - col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8861
SELECT DISTINCT - 32, + ( - col1 ) DIV + 35 AS col2 FROM tab0 AS cor0
----
-32
-2
-32
0

skipif mysql # not compatible
query II rowsort label-8861
SELECT DISTINCT - 32, + ( - col1 ) / + 35 AS col2 FROM tab0 AS cor0
----
-32
-2
-32
0

query I rowsort
SELECT + col0 + 31 * + - col2 + ( - + 17 ) FROM tab0 AS cor0
----
-1459
-240
-2989

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 23 + + - col1 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT - ( - CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE + 88 * + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-8865
SELECT - ( - CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE + 88 * + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8866
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 15 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 15 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT - col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 6 + col0 FROM tab1 AS cor0
----
45
79
85

query III rowsort
SELECT * FROM tab1 WHERE - - col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + 28 * col0 FROM tab0
----
211932
263452
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT - col2 DIV + - col1 col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8871
SELECT - col2 / + - col1 col1 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL + MIN( ALL - 68 ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + MIN ( ALL - 68 ) AS col1 FROM tab2
----
-68

query I rowsort
SELECT + col0 - ( + - col1 ) - + + col1 * - - col1 - - 62 + col2 * - col1 FROM tab1 cor0
----
-1413
-168
-5205

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + COUNT( * ) + + 47 + + 75 AS col1 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + COUNT ( * ) + + 47 + + 75 AS col1 FROM tab1 AS cor0
----
125

query I rowsort
SELECT 66 * - + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0f37d502972884b7481e70bbf5b459e

query I rowsort
SELECT ALL col2 * 21 * - + col1 + col2 + + - ( + 25 ) * 51 FROM tab0
----
-3255
-5675
-81175

onlyif mysql # DIV for integer division: 
query II rowsort label-8877
SELECT DISTINCT - + col2 DIV - col1, col1 AS col1 FROM tab1 WHERE - - col0 IS NOT NULL
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-8877
SELECT DISTINCT - + col2 / - col1, col1 AS col1 FROM tab1 WHERE - - col0 IS NOT NULL
----
1
47
11
5
6
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT COUNT( * ) - - 2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT COUNT ( * ) - - 2 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 20 + - col2 col2 FROM tab1 AS cor0
----
184
41
872

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - ( + + COUNT( col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8880
SELECT - ( + + COUNT ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / col2 IS NOT NULL
----

query I rowsort
SELECT + 23 * + 3 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL SUM( DISTINCT + 30 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL SUM ( DISTINCT + 30 ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + - 17 * - COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8884
SELECT + - 17 * - COUNT ( * ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT + COUNT( + ( - ( - + col2 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + COUNT ( + ( - ( - + col2 ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8886
SELECT + col2 col2, - col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8886
SELECT + col2 col2, - col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT + CAST( + 18 AS SIGNED ) AS col0 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-8887
SELECT + CAST ( + 18 AS INTEGER ) AS col0 FROM tab0
----
18
18
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT - COUNT( * ), - COUNT( * ) + - SUM( col2 ) col1 FROM tab0
----
-3
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8888
SELECT - COUNT ( * ), - COUNT ( * ) + - SUM ( col2 ) col1 FROM tab0
----
-3
-159

onlyif mysql # DIV for integer division: 
query II rowsort label-8889
SELECT DISTINCT - col0, col1 + + - 88 DIV col2 AS col2 FROM tab2
----
-46
48
-64
75
-75
66

skipif mysql # not compatible
query II rowsort label-8889
SELECT DISTINCT - col0, col1 + + - 88 / col2 AS col2 FROM tab2
----
-46
48
-64
75
-75
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95 col2, + 83 AS col0 FROM tab1
----
95
83
95
83
95
83

query II rowsort
SELECT - col1 AS col2, - 34 * 21 FROM tab2
----
-51
-714
-67
-714
-77
-714

query I rowsort
SELECT ALL ( - ( - col1 ) ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= - - 83 + 18 * - ( - + 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + 69 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-69
51
-69
67
-69
77

query I rowsort
SELECT ALL 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT ALL - col2 DIV - - col1 + col0 AS col0 FROM tab1 cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - col2 / - - col1 + col0 AS col0 FROM tab1 cor0
----
45
74
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + col1 + ( - + 20 ) * - - 20 col0 FROM tab0 AS cor0
----
-304
-334
-466

query I rowsort
SELECT + 47 * - col2 * + + col2 FROM tab1 AS cor0 WHERE ( NULL ) < - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 / 65 AND - + col2
----

query I rowsort
SELECT ALL + - col0 + - col2 * + col0 FROM tab0 AS cor0
----
-720
-957
-9700

query II rowsort
SELECT DISTINCT - ( - 70 ) AS col1, + col2 AS col0 FROM tab0 AS cor0 WHERE + col2 + - 10 / + - col0 * - 12 < NULL
----

query I rowsort
SELECT DISTINCT 0 + ( - + col0 ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 + + 86 FROM tab0 AS cor0
----
133
185
96

query III rowsort
SELECT * FROM tab2 WHERE + + col2 IN ( + - col1, col0 )
----

query I rowsort
SELECT col2 + col0 + + - ( + - 60 ) FROM tab1
----
204
207
219

query I rowsort
SELECT - col0 + - - 59 * + col1 FROM tab0
----
-38
1152
4764

query I rowsort
SELECT col0 + - 58 AS col2 FROM tab0
----
-43
29
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) = NULL ) )
----

query I rowsort
SELECT ALL col0 * + 22 * - col1 * + - col1 FROM tab2 AS cor0
----
2632212
7406850
8348032

query I rowsort
SELECT - 62 * + + ( + col2 ) AS col1 FROM tab2 cor0
----
-1426
-2480
-3596

query I rowsort
SELECT ALL 47 + + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1105
2607
4397

query I rowsort
SELECT DISTINCT 91 - - - col2 FROM tab1
----
-5
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - SUM( DISTINCT col2 ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT - SUM ( DISTINCT col2 ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + 32 + + col0 AS col1 FROM tab2 WHERE col2 / - 65 + - 50 + 48 + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT + COUNT( + - 92 ) - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT + COUNT ( + - 92 ) - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8916
SELECT + CAST( - col2 AS SIGNED ) - - 56 * + 51, + col2 - - + 14 col1 FROM tab1
----
2760
110
2788
82
2797
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8916
SELECT + CAST ( - col2 AS INTEGER ) - - 56 * + 51, + col2 - - + 14 col1 FROM tab1
----
2760
110
2788
82
2797
73

query I rowsort
SELECT ALL - 72 * + col1 AS col2 FROM tab1
----
-1008
-3384
-360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 > - - 18
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL + SUM( ALL + col1 ) * - 84 AS col1 FROM tab0 AS cor0
----
-8652

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + SUM ( ALL + col1 ) * - 84 AS col1 FROM tab0 AS cor0
----
-8652

query I rowsort
SELECT + - 84 * + col1 AS col0 FROM tab2 AS cor0
----
-4284
-5628
-6468

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 <= - + col1 * + col2 + + col0 + + + ( - 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT COUNT( col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8922
SELECT COUNT ( col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 * + col2 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

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

query II rowsort
SELECT 77, col0 FROM tab1 cor0
----
77
51
77
85
77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - SUM( DISTINCT - ( + 45 ) ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - SUM ( DISTINCT - ( + 45 ) ) FROM tab1 AS cor0
----
45

query II rowsort
SELECT - - col2, + col1 AS col0 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT + 2 DIV COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 2 / COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * - 26 AS col2 FROM tab1
----
1326
2210
2366

query I rowsort
SELECT ALL + 4 FROM tab1 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - col2 col0, 84 FROM tab1
----
3481
84
4624
84
9216
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT ALL * FROM tab1 WHERE NOT + - 58 * + col2 * + - CAST( - - col1 AS SIGNED ) NOT BETWEEN + + ( + + 9 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8932
SELECT ALL * FROM tab1 WHERE NOT + - 58 * + col2 * + - CAST ( - - col1 AS INTEGER ) NOT BETWEEN + + ( + + 9 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT - MIN( - + col1 ) DIV - + 37 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 > col1
----
-2

skipif mysql # not compatible
query I rowsort label-8933
SELECT - MIN ( - + col1 ) / - + 37 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 > col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + COUNT( * ) + 96 FROM tab1 WHERE col0 <> - + 84
----
99

skipif mysql # not compatible
query I rowsort label-8934
SELECT + COUNT ( * ) + 96 FROM tab1 WHERE col0 <> - + 84
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT DISTINCT 10 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT 10 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * + col1 + + 68 col1 FROM tab2 AS cor0 WHERE NOT + 84 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT + SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT + + 10 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT + + 10 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT 71 * CAST( NULL AS SIGNED ) + - - 97 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT 71 * CAST ( NULL AS INTEGER ) + - - 97 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1 AS cor0 WHERE NOT col1 - + 52 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL + CAST( NULL AS SIGNED ) + - 28 + 41 * - CAST( NULL AS SIGNED ) / col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + CAST ( NULL AS INTEGER ) + - 28 + 41 * - CAST ( NULL AS INTEGER ) / col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 45 * - - col0 * - - 44 + + - col2 FROM tab0 AS cor0
----
172250
191961
29653

query I rowsort
SELECT ALL + col1 + + 44 AS col0 FROM tab0 AS cor0
----
125
45
65

query III rowsort
SELECT * FROM tab2 WHERE col1 - - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 AS col2 FROM tab1
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT ALL col2 DIV - - 27 + + 5 * + col1 AS col2 FROM tab1
----
237
27
73

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL col2 / - - 27 + + 5 * + col1 AS col2 FROM tab1
----
237
27
73

query I rowsort
SELECT DISTINCT + col2 - + 69 FROM tab0
----
-22
-59
30

query I rowsort
SELECT DISTINCT 67 * - 48 FROM tab2
----
-3216

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL 15 - COUNT( * ) * + 15 AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL 15 - COUNT ( * ) * + 15 AS col0 FROM tab2
----
-30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + ( + 79 ), 46, + col2 + col2, - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT 54 * col0 * - col2 + + ( 74 ) + - + 51 + + 91 AS col2 FROM tab0 AS cor0
----
-37956
-46866
-518448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT DISTINCT - + CAST( + - 60 AS SIGNED ) * + ( - 31 ) col0 FROM tab2 AS cor0
----
-1860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT DISTINCT - + CAST ( + - 60 AS INTEGER ) * + ( - 31 ) col0 FROM tab2 AS cor0
----
-1860

query I rowsort
SELECT + col0 + - 77 + - 73 * + col0 FROM tab0 cor0 WHERE - 28 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col1 + - 71 AS col0 FROM tab0 AS cor0
----
25
27
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( - col1 ) / + + col1 + + col0 > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8958
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + + ( 73 ) / + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8958
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + + ( 73 ) / + col2 ) IS NULL
----

query I rowsort
SELECT col0 * - col0 + 53 AS col2 FROM tab1 cor0
----
-2548
-7172
-8228

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT + + col2 DIV 41 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + + col2 / 41 FROM tab1 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL + COUNT( - col2 ) * + 89 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + COUNT ( - col2 ) * + 89 FROM tab2 AS cor0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col1 ) - 3 * - col0 - + col1 - + col0 * - col2 + 19 col1 FROM tab1 cor0 WHERE NULL IS NULL
----
5040
5279
6386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT DISTINCT + COUNT( + col1 ) DIV + + 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT + COUNT ( + col1 ) / + + 63 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT COUNT( * ) * - 61 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) * - 61 FROM tab1 cor0
----
-183

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 54 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL MAX( ALL - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL MAX ( ALL - - col0 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col2 NOT IN ( - ( + + col0 ), + col2, + 51 * + + col0, - col2 * col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT 41 * - COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-8968
SELECT 41 * - COUNT ( * ) FROM tab2
----
-123

query II rowsort
SELECT DISTINCT + col1 * - col0 * - ( - - col0 ) AS col2, 53 FROM tab2
----
107916
53
315392
53
376875
53

query I rowsort
SELECT ALL - 13 * + - col2 AS col2 FROM tab0
----
1287
130
611

onlyif mysql # DIV for integer division: 
query II rowsort label-8971
SELECT DISTINCT + col0, - 72 DIV 41 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-8971
SELECT DISTINCT + col0, - 72 / 41 FROM tab1
----
51
-1
85
-1
91
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8972
SELECT DISTINCT - 0 AS col0, - MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8972
SELECT DISTINCT - 0 AS col0, - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT COUNT( + col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8974
SELECT COUNT ( + col1 ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 39 * - col1 AS col0 FROM tab0
----
-3159
-39
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT ALL + 52 DIV + col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL + 52 / + col2 FROM tab2 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab0 WHERE + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 93 * - 76 FROM tab1
----
-7068
-7068
-7068

query II rowsort
SELECT - ( + 49 ) AS col1, + col0 * - - col2 FROM tab1 AS cor0
----
-49
4896
-49
5015
-49
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL MIN( - ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL MIN ( - ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * - 99 * + + col1 col1, col1 AS col2 FROM tab0 cor0
----
-43659
21
-649539
81
-99
1

query I rowsort
SELECT DISTINCT - col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT - + 45 * + - col1 + + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
6392
650

query I rowsort
SELECT ALL 62 - + col0 AS col0 FROM tab0 AS cor0
----
-25
-35
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 * 19 * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 * 19 * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 64 + 94 AS col0 FROM tab1 AS cor0
----
158
158
158

query I rowsort
SELECT 84 + + col2 AS col1 FROM tab1
----
143
152
180

query I rowsort
SELECT col0 + + ( + col2 ) FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - COUNT( * ) + - 4 col1 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8989
SELECT ALL - COUNT ( * ) + - 4 col1 FROM tab2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT col2 + + col0 + 52 + - ( - + 60 ) * - 33 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT col2 + + col0 + 52 + - ( - + 60 ) * - 33 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL - COUNT( * ) - + SUM( col0 ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - COUNT ( * ) - + SUM ( col0 ) FROM tab1
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT 89 + COUNT( * ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8992
SELECT 89 + COUNT ( * ) FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL - + MAX( ALL - 73 ) FROM tab1 WHERE NOT + - 56 * + - 18 + 66 NOT BETWEEN NULL AND + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - + MAX ( ALL - 73 ) FROM tab1 WHERE NOT + - 56 * + - 18 + 66 NOT BETWEEN NULL AND + 18
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col0 * + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT ALL - 20 * CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - 20 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT col0 + ( 58 + col0 ) FROM tab2 WHERE NOT 19 BETWEEN ( ( col1 ) + - col1 / col0 ) AND + col2 + - col0
----
150
186
208

query I rowsort
SELECT + col1 + col1 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 + + 84 * col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT ALL + col1 DIV - 32 + col2 col1 FROM tab2
----
22
38
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT ALL + col1 / - 32 + col2 col1 FROM tab2
----
22
38
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - col0 col1 FROM tab0
----
-34
-44
38

query III rowsort
SELECT ALL * FROM tab2 WHERE - 37 * - 28 - col2 <= ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + 3 NOT IN ( 83 )
----

query I rowsort
SELECT ( + col0 ) - 88 FROM tab2
----
-13
-24
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT - COUNT( * ) - 71 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-74

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - COUNT ( * ) - 71 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-74

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - 60 NOT BETWEEN + col0 / col2 - + 43 AND ( + col1 * - col1 )
----

query I rowsort
SELECT 29 + - col1 / 76 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL MAX( - 70 ) AS col1 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL MAX ( - 70 ) AS col1 FROM tab2
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 92 ) col0 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9009
SELECT * FROM tab2 WHERE ( + CAST( 67 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9009
SELECT * FROM tab2 WHERE ( + CAST ( 67 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 77 AS col1 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
77
77
77

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / col2 IN ( 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col1 * + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 * 55 NOT IN ( 60 )
----

query I rowsort
SELECT + col0 + - 34 AS col0 FROM tab2
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + MIN( DISTINCT ( 90 ) ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + MIN ( DISTINCT ( 90 ) ) FROM tab1
----
90

query I rowsort
SELECT ALL col1 + 2 * 88 FROM tab1
----
181
190
223

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL col2 DIV + col2 - - col2 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL col2 / + col2 - - col2 / - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = ( col0 - + ( - 33 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 9 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 21 + + col0 AS col0 FROM tab2
----
67
85
96

query I rowsort
SELECT DISTINCT ( - col1 ) * - 15 + 70 FROM tab2
----
1075
1225
835

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT - SUM( - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT - SUM ( - col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT + 20 AS col0 FROM tab0 AS cor0 WHERE col1 <= + CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-9023
SELECT + 20 AS col0 FROM tab0 AS cor0 WHERE col1 <= + CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT MAX( ALL + col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9026
SELECT MAX ( ALL + col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT + col2 DIV - 39 FROM tab1 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9027
SELECT + col2 / - 39 FROM tab1 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT - 82 + 5 * ( - AVG ( - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col2 ) * - CAST( NULL AS SIGNED ) ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT - 82 + 5 * ( - AVG ( - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col2 ) * - CAST ( NULL AS INTEGER ) ) <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 51 - - col0 AS col1 FROM tab0 AS cor0
----
138
148
66

query I rowsort
SELECT ALL 32 * - - col2 - + col0 FROM tab2
----
1216
1781
690

query I rowsort
SELECT + col2 - + - 74 * col2 AS col2 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - COUNT( * ) - - 12 AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - COUNT ( * ) - - 12 AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 WHERE 82 IS NOT NULL
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT - col2 DIV + - col1 + 71 * + 70 FROM tab2
----
4970
4970
4970

skipif mysql # not compatible
query I rowsort label-9034
SELECT - col2 / + - col1 + 71 * + 70 FROM tab2
----
4970
4970
4970

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9035
SELECT ALL * FROM tab1 WHERE 22 * + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9035
SELECT ALL * FROM tab1 WHERE 22 * + CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT - 74 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
-189440
-321900
-78292

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col0 * col1 ) <> ( - col2 + + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT - MIN( 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - MIN ( 91 ) FROM tab0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( - 62 ) ) IN ( 20 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT COUNT( - - col0 ) DIV - - MAX( 88 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT COUNT ( - - col0 ) / - - MAX ( 88 ) FROM tab1
----
0

query I rowsort
SELECT - + ( - + col0 ) AS col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + 31 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 - + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 - + col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9044
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL MIN( + col1 ) * + ( + 18 ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL MIN ( + col1 ) * + ( + 18 ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 14 * + 8 IS NOT NULL OR NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 14 * + 8 IS NOT NULL OR NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 / CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND 35 / col2 + - 82
----

skipif mysql # not compatible
query I rowsort label-9047
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 / CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND 35 / col2 + - 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 * - + 1 col2 FROM tab1 cor0
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9050
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9050
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * + col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + 13 * + SUM( 74 ) FROM tab1
----
2886

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 13 * + SUM ( 74 ) FROM tab1
----
2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 WHERE NOT - col2 NOT IN ( + + col0 * col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 WHERE NOT - col2 NOT IN ( + + col0 * col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9054
SELECT col0 DIV + 63 AS col1, ( - ( + ( CAST( col1 AS SIGNED ) ) ) ) FROM tab1
----
0
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-9054
SELECT col0 / + 63 AS col1, ( - ( + ( CAST ( col1 AS INTEGER ) ) ) ) FROM tab1
----
0
-14
1
-47
1
-5

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab1 WHERE NOT - 19 <= col0 * - col2
----
-35

query III rowsort
SELECT * FROM tab1 WHERE 45 IS NULL AND NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 58 * - col2 <= NULL
----

query I rowsort
SELECT ( + + 60 ) + - col2 AS col2 FROM tab0 AS cor0
----
-39
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9059
SELECT * FROM tab0 AS cor0 WHERE col1 / + CAST( 66 AS SIGNED ) NOT IN ( - CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9059
SELECT * FROM tab0 AS cor0 WHERE col1 / + CAST ( 66 AS INTEGER ) NOT IN ( - CAST ( NULL AS INTEGER ) + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9060
SELECT * FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) <= + - col1
----

skipif mysql # not compatible
query III rowsort label-9060
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) <= + - col1
----

query I rowsort
SELECT ( + - 25 ) AS col0 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT - 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT 25 * - col0 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT ALL 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL + + 58 + - col0 FROM tab1 AS cor0
----
-27
-33
7

query I rowsort
SELECT ALL + + col1 * + + col2 + col2 AS col1 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT - 17 + - col1 + + col2 AS col0, col1 * - + 71 AS col1 FROM tab1 cor0
----
37
-355
4
-3337
65
-994

query I rowsort
SELECT - 2 AS col0 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - MIN( DISTINCT col0 ) + + - SUM( + col0 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-278

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - MIN ( DISTINCT col0 ) + + - SUM ( + col0 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-278

query I rowsort
SELECT col0 + + 15 * col1 - col2 AS col0 FROM tab0
----
1183
13
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 * col2 col1 FROM tab1
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - - ( + col0 ) + - col1 col0 FROM tab0 WHERE + 93 IS NOT NULL
----
-41
121
91

query I rowsort
SELECT + ( + col2 ) + 10 AS col2 FROM tab0
----
109
20
57

query II rowsort
SELECT + 8, + 72 AS col1 FROM tab2
----
8
72
8
72
8
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT - CAST( 90 AS SIGNED ) AS col2 FROM tab1
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-9077
SELECT - CAST ( 90 AS INTEGER ) AS col2 FROM tab1
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 21 <= - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9079
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / 71 / - CAST( - - col1 AS DECIMAL ) = - ( + 84 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9079
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / 71 / - CAST ( - - col1 AS REAL ) = - ( + 84 )
----
51
85
91

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 * - - 76 + - col2 ) <> ( 36 / 36 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 27 <> + col2 * 96 + - 75 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ( - 36 ) * SUM( + - col2 ) FROM tab2 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-9082
SELECT ( - 36 ) * SUM ( + - col2 ) FROM tab2 AS cor0
----
4356

onlyif mysql # DIV for integer division: 
query II rowsort label-9083
SELECT - col2 AS col2, + col2 + - col1 * - col2 DIV + col2 + col0 - 91 FROM tab1 AS cor0
----
-59
58
-68
115
-96
70

skipif mysql # not compatible
query II rowsort label-9083
SELECT - col2 AS col2, + col2 + - col1 * - col2 / + col2 + col0 - 91 FROM tab1 AS cor0
----
-59
58
-68
115
-96
70

query I rowsort
SELECT ALL + col0 * - + col2 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT + 65 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL + MAX( ALL + 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + MAX ( ALL + 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT + - 20 + - col1 FROM tab0 AS cor0
----
-101
-21
-41

query II rowsort
SELECT - - col2 + - + 12, + col2 + - + 12 FROM tab1 AS cor0
----
47
47
56
56
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9090
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col0 + 30 FROM tab1 cor0
----
115
121
81

query II rowsort
SELECT + 23 + - col0, - col1 AS col1 FROM tab0 AS cor0
----
-64
-21
-74
-1
8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL + - COUNT( - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + - COUNT ( - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 49 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
20825
209573
34986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL + CAST( NULL AS SIGNED ) + + - col2 + col0 * - col2 * + col0 / 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col2 + col0 * - col2 * + col0 / 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 0 ) * 11 col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col0 AS col2, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 * + ( + col2 ) AS col2, - 66 * - 3 + + + ( 12 ) * + + col2 col0 FROM tab0
----
-235
762
-495
1386
-50
318

query I rowsort
SELECT + col1 * + col1 * - - col2 * - 54 FROM tab1
----
-1016064
-79650
-8111448

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT DISTINCT - 20 col1, MAX( DISTINCT + - 10 ) FROM tab1
----
-20
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9100
SELECT DISTINCT - 20 col1, MAX ( DISTINCT + - 10 ) FROM tab1
----
-20
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT SUM( DISTINCT - + 24 ) * - + SUM( DISTINCT + col0 ) * + 64 FROM tab1
----
348672

skipif mysql # not compatible
query I rowsort label-9101
SELECT SUM ( DISTINCT - + 24 ) * - + SUM ( DISTINCT + col0 ) * + 64 FROM tab1
----
348672

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND + - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT DISTINCT col2 + + col2 - - CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT col2 + + col2 - - CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + + col1 + + col1 * col0 + - - col2 AS col2 FROM tab2 AS cor0
----
2420
5045
5150

query I rowsort
SELECT 6 + - + col2 FROM tab1 AS cor0
----
-53
-62
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9106
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT ALL - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9108
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT - 62 + 81 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT - 62 + 81 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL COUNT( * ) * - - ( - MIN( - + col0 ) ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( * ) * - - ( - MIN ( - + col0 ) ) AS col0 FROM tab2
----
225

query I rowsort
SELECT - col0 * + 33 FROM tab0 cor0
----
-2871
-3201
-495

query I rowsort
SELECT + - 66 * - + ( - + 42 ) AS col0 FROM tab1 AS cor0
----
-2772
-2772
-2772

query I rowsort
SELECT + col1 * + + col1 + - col0 AS col0 FROM tab0 cor0
----
-96
354
6546

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - + 45 ) NOT IN ( - - col0 + + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 4 * - col1, + col1 AS col2 FROM tab0 AS cor0
----
-324
81
-4
1
-84
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) * - - col0 + + 37 AS col0 FROM tab2 AS cor0
----
2383
4965
5062

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) * - - col0 + + 37 AS col0 FROM tab2 AS cor0
----
2383
4965
5062

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col1 * + col2 + + col1 - - ( + 14 ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + - COUNT( DISTINCT + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9119
SELECT + - COUNT ( DISTINCT + col0 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL MAX( DISTINCT 16 ) * + 74 + 67 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL MAX ( DISTINCT 16 ) * + 74 + 67 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT + ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab0 cor0
----
3

query II rowsort
SELECT + col0 AS col1, 17 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 / col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 83 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 58 AS col2 FROM tab2 WHERE NOT ( NULL ) <= col0
----

query I rowsort
SELECT DISTINCT 81 * col1 AS col2 FROM tab0
----
1701
6561
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + 10 AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL + SUM( - + col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + SUM ( - + col2 ) AS col2 FROM tab0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - COUNT( * ) * 67 col2 FROM tab2
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9130
SELECT ALL - COUNT ( * ) * 67 col2 FROM tab2
----
-201

query II rowsort
SELECT col2, 21 FROM tab0 AS cor0
----
10
21
47
21
99
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT + + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT + + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 WHERE ( NULL ) >= - - col0
----

query II rowsort
SELECT ALL col0 AS col1, 38 * + + 87 AS col0 FROM tab0 AS cor0
----
15
3306
87
3306
97
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL SUM( + + col1 ) + + 85 * + - 9 FROM tab2 AS cor0
----
-570

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL SUM ( + + col1 ) + + 85 * + - 9 FROM tab2 AS cor0
----
-570

query I rowsort
SELECT DISTINCT - 74 FROM tab2 AS cor0 WHERE col1 * + 78 NOT IN ( - col0, col1 )
----
-74

query III rowsort
SELECT * FROM tab0 cor0 WHERE 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9139
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 12 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT COUNT( * ) + - 83 col1 FROM tab1
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT COUNT ( * ) + - 83 col1 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT 82 + - COUNT( + col0 ) * + 13 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-9142
SELECT 82 + - COUNT ( + col0 ) * + 13 AS col0 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT + COUNT( * ) FROM tab1 WHERE NULL >= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT + COUNT ( * ) FROM tab1 WHERE NULL >= ( col1 )
----
0

query I rowsort
SELECT ALL - ( - col2 ) * - + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT 23 + 97 * - - 56 FROM tab0
----
5455
5455
5455

query I rowsort
SELECT ALL 48 * 52 FROM tab2
----
2496
2496
2496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 NOT BETWEEN - col2 + ( - + 99 ) AND - - col0
----
51
14
96

query I rowsort
SELECT ALL col1 + col2 + + - 27 AS col2 FROM tab2 AS cor0
----
47
90
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT DISTINCT - col2 DIV + + col1 - 14 AS col1 FROM tab0 AS cor0
----
-113
-14

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - col2 / + + col1 - 14 AS col1 FROM tab0 AS cor0
----
-113
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ( + 38 ) - + COUNT( - + col2 ) AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-9152
SELECT ( + 38 ) - + COUNT ( - + col2 ) AS col0 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT + 53 - - 0 * + ( + CAST( + 97 AS SIGNED ) ) FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 53 - - 0 * + ( + CAST ( + 97 AS INTEGER ) ) FROM tab1
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * + 26 + - col2 NOT IN ( - col1 * - + col0 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL - col0 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( + ( - - col2 ) AS SIGNED ) / col1 + + 43
----

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - col0 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( + ( - - col2 ) AS INTEGER ) / col1 + + 43
----

query II rowsort
SELECT - col0 AS col0, col2 * - col2 FROM tab1 AS cor0
----
-51
-9216
-85
-3481
-91
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 98 AS col1 FROM tab0
----
882

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 98 AS col1 FROM tab0
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9158
SELECT COUNT( * ) DIV + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9158
SELECT COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 <> - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 <> - + col1 * - - col0
----

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab1
----
590
680
960

query I rowsort
SELECT + + col1 * - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT - 49 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 NOT BETWEEN - - col0 AND - - ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - ( + col1 ) ) * 60 FROM tab1 AS cor0
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + COUNT( * ) + + 82 AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + COUNT ( * ) + + 82 AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT + + col0 + + 10 FROM tab2 AS cor0
----
56
74
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL col0 * - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL col0 * - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - COUNT( ALL + ( + - col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9169
SELECT - COUNT ( ALL + ( + - col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9170
SELECT ALL col0 * + 68 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL col0 * + 68 + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - - col1 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + - col1 FROM tab0 WHERE col2 IN ( + ( + + col1 ), col1 )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col0 AS col1 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT ALL + col0 * col0 - - col1 FROM tab1
----
2615
7230
8328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + col1 ) + - CAST( NULL AS SIGNED ), col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + col1 ) + - CAST ( NULL AS INTEGER ), col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - + COUNT( * ) - - 84 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9177
SELECT - + COUNT ( * ) - - 84 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT 22 * + col1 + + 15 AS col2 FROM tab1 AS cor0
----
1049
125
323

query I rowsort
SELECT DISTINCT - col0 + - col2 * + 6 * - col1 AS col1 FROM tab2 AS cor0
----
18416
23241
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + + MIN( ALL + + col2 ) + + 73 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9180
SELECT + + MIN ( ALL + + col2 ) + + 73 FROM tab1 AS cor0
----
132

query I rowsort
SELECT + + ( - col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 95 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( 9 ) col0, col0 AS col0 FROM tab2 AS cor0
----
9
46
9
64
9
75

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + - + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT 1 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT 1 / col0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col2 AS col0, 95 AS col0 FROM tab1
----
-59
95
-68
95
-96
95

query I rowsort
SELECT ALL - col2 * + 55 AS col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT - 31, - 23 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-31
-69

skipif mysql # not compatible
query II rowsort label-9189
SELECT - 31, - 23 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-31
-69

query I rowsort
SELECT - - AVG ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 / + ( + - 94 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> - col2 + col0
----

query I rowsort
SELECT ALL + col2 * + - 4 FROM tab0
----
-188
-396
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + COUNT( * ) * + - 89 AS col2 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-9193
SELECT + COUNT ( * ) * + - 89 AS col2 FROM tab1
----
-267

onlyif mysql # DIV for integer division: 
query II rowsort label-9194
SELECT DISTINCT + 3 DIV + col1, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9194
SELECT DISTINCT + 3 / + col1, col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL + ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + ( + - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - 30 FROM tab0 WHERE NOT NULL NOT IN ( 71 / + col1 + - col0 )
----

query I rowsort
SELECT ALL + 30 AS col1 FROM tab2 cor0
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT SUM( col0 ) * - COUNT( - col2 ) * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9198
SELECT SUM ( col0 ) * - COUNT ( - col2 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT col0 DIV + - 13 AS col1 FROM tab2 AS cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-9199
SELECT col0 / + - 13 AS col1 FROM tab2 AS cor0
----
-3
-4
-5

query I rowsort
SELECT DISTINCT + 45 FROM tab1 cor0
----
45

query I rowsort
SELECT ALL col0 + col0 + - ( - + col1 ) FROM tab0 cor0
----
111
195
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + + col0
----

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE + 92 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9204
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + + ( - + col2 ) DIV - + col2 AS col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + + ( - + col2 ) / - + col2 AS col1 FROM tab2
----
52
68
78

query I rowsort
SELECT 74 + - - col1 AS col2 FROM tab0
----
155
75
95

query I rowsort
SELECT ALL + col2 - - col1 AS col0 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col1 * + col1 + - col1 col1 FROM tab2
----
-2698
-4631
-6070

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 + - col1 NOT IN ( + + 57 / - col2 * - ( 36 ) * - 61 - - - 74 )
----

query I rowsort
SELECT + - col0 * col2 * - - col1 - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT 30 * + + COUNT( * ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9210
SELECT 30 * + + COUNT ( * ) AS col1 FROM tab2
----
90

query III rowsort
SELECT * FROM tab1 WHERE - 38 IS NULL
----

query I rowsort
SELECT ALL 73 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 96 AS col2, 87 FROM tab1
----
-96
87
-96
87
-96
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - - col0 AS col0, 17 AS col0 FROM tab1 cor0
----
51
17
85
17
91
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT COUNT( DISTINCT - 31 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT COUNT ( DISTINCT - 31 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT col0 / 70 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + - MAX( 25 ) AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + - MAX ( 25 ) AS col0 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT ALL - 62 * col1 AS col1 FROM tab0 AS cor0
----
-1302
-5022
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col1 col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col2 AND col2 + + col1 AND NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9222
SELECT + 79 DIV - col2, col0 AS col1 FROM tab0
----
-1
15
-7
87
0
97

skipif mysql # not compatible
query II rowsort label-9222
SELECT + 79 / - col2, col0 AS col1 FROM tab0
----
-1
15
-7
87
0
97

query II rowsort
SELECT - ( - col0 ) AS col0, 39 + - 8 - col2 FROM tab0
----
15
-16
87
21
97
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + 47
----

query I rowsort
SELECT - col0 * ( + col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + MIN( ALL - 29 ) + + 3 AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9226
SELECT + MIN ( ALL - 29 ) + + 3 AS col1 FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 58 < - + 36
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 50 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 49 + - col2 AS col0 FROM tab0 AS cor0
----
-50
2
39

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT 84 + + + COUNT( * ) + - 32 col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9231
SELECT 84 + + + COUNT ( * ) + - 32 col1 FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9232
SELECT CAST( NULL AS SIGNED ), + 41 DIV + + ( + col0 ) AS col1, + col2 FROM tab2 AS cor0
----
9 values hashing to 3bc7f56577ea6923122cf383bc69de02

skipif mysql # not compatible
query III rowsort label-9232
SELECT CAST ( NULL AS INTEGER ), + 41 / + + ( + col0 ) AS col1, + col2 FROM tab2 AS cor0
----
9 values hashing to 3bc7f56577ea6923122cf383bc69de02

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 1 + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT + col1 DIV + col2 + - 14 - 88 - - col1 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2
131
3787

skipif mysql # not compatible
query I rowsort label-9235
SELECT + col1 / + col2 + - 14 - 88 - - col1 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2
131
3787

query I rowsort
SELECT DISTINCT 17 * + col1 AS col1 FROM tab2 AS cor0
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + COUNT( * ) + + 60 + MAX( DISTINCT + + 97 ) FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + COUNT ( * ) + + 60 + MAX ( DISTINCT + + 97 ) FROM tab0 AS cor0
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT COUNT( * ), COUNT( * ) col0 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9238
SELECT COUNT ( * ), COUNT ( * ) col0 FROM tab2 cor0
----
3
3

query I rowsort
SELECT - + 55 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + + 14 AND + 81 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 44 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 - - + col2 + - + col2 col2 FROM tab1
----
-70
-70
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL - 64 * - CAST( - SUM( ALL + + col1 ) AS SIGNED ) FROM tab2
----
-12480

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - 64 * - CAST ( - SUM ( ALL + + col1 ) AS INTEGER ) FROM tab2
----
-12480

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab2 WHERE NULL >= NULL
----

query II rowsort
SELECT + col2 + + col2 AS col1, + 88 * 54 FROM tab0 AS cor0
----
198
4752
20
4752
94
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - 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-9246
SELECT - COUNT ( * ) + ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT ALL 65 DIV + 82 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL 65 / + 82 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT MAX( - 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9248
SELECT MAX ( - 32 ) FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT + SUM( col1 ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT DISTINCT + SUM ( col1 ) col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - - 61 + + 4 FROM tab1 AS cor0 WHERE NOT ( NOT - 8 - - + 58 IS NULL )
----

query I rowsort
SELECT - 9 * + + col1 AS col0 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - + COUNT( + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - + COUNT ( + - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 58 * ( - 64 ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( 91 ) FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9256
SELECT + col2, - 95 - col1 DIV col1 AS col0 FROM tab2
----
23
-96
40
-96
58
-96

skipif mysql # not compatible
query II rowsort label-9256
SELECT + col2, - 95 - col1 / col1 AS col0 FROM tab2
----
23
-96
40
-96
58
-96

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9258
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT - COUNT( * ), ( 79 ) AS col2 FROM tab2
----
-3
79

skipif mysql # not compatible
query II rowsort label-9259
SELECT - COUNT ( * ), ( 79 ) AS col2 FROM tab2
----
-3
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 BETWEEN NULL AND + + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 * + 59 - + 26 * - 32 < ( + 10 + 55 + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 * + 59 - + 26 * - 32 < ( + 10 + 55 + + col2 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9262
SELECT - col2 DIV + + ( + 49 ) AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT - col2 / + + ( + 49 ) AS col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT - CAST( + AVG ( ALL + + 83 ) AS SIGNED ) + - CAST( - COUNT( - - 36 ) AS SIGNED ) + 35 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9263
SELECT - CAST ( + AVG ( ALL + + 83 ) AS INTEGER ) + - CAST ( - COUNT ( - - 36 ) AS INTEGER ) + 35 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT - 10 + + + COUNT( * ) AS col1, + COUNT( * ) FROM tab2
----
-7
3

skipif mysql # not compatible
query II rowsort label-9264
SELECT - 10 + + + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2
----
-7
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT + col0 + - col0 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT + col0 + - col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9266
SELECT DISTINCT col0 AS col2, + col1 - col2 + + CAST( NULL AS SIGNED ) - + - ( + + 45 ) * + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9266
SELECT DISTINCT col0 AS col2, + col1 - col2 + + CAST ( NULL AS INTEGER ) - + - ( + + 45 ) * + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9267
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > + col1 * 18
----

skipif mysql # not compatible
query III rowsort label-9267
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > + col1 * 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT - + col1 + - col0 DIV - col1 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-9268
SELECT - + col1 + - col0 / - col1 FROM tab0 AS cor0
----
-17
-81
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 60 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - 99 + + col0 col0 FROM tab1 AS cor0
----
164
189
237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9271
SELECT DISTINCT - col2 AS col2, col0 + CAST( NULL AS SIGNED ) * 97 + col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-9271
SELECT DISTINCT - col2 AS col2, col0 + CAST ( NULL AS INTEGER ) * 97 + col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT 89 - - MAX( ALL + col2 ) * - 56 col0 FROM tab1 AS cor0
----
-5287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9272
SELECT 89 - - MAX ( ALL + col2 ) * - 56 col0 FROM tab1 AS cor0
----
-5287

query I rowsort
SELECT DISTINCT - + 89 * 43 FROM tab1 AS cor0
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT COUNT( * ) + 39 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT COUNT ( * ) + 39 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9275
SELECT ALL col1 / CAST( NULL AS DECIMAL ) + - 27 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL col1 / CAST ( NULL AS REAL ) + - 27 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT col2 * - - CAST( NULL AS SIGNED ) * + col1 / + + col2 * + col1 + - - 50 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT col2 * - - CAST ( NULL AS INTEGER ) * + col1 / + + col2 * + col1 + - - 50 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + 30 + COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + 30 + COUNT ( * ) AS col0 FROM tab0
----
33

query I rowsort
SELECT - col0 + - 99 FROM tab2
----
-145
-163
-174

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 37 ) IS NULL
----

query I rowsort
SELECT 92 * - ( + col1 ) + + ( - col2 ) AS col1 FROM tab1
----
-1384
-4392
-519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9282
SELECT - 46 DIV - - COUNT( * ) + 66 + + COUNT( * ) col2 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9282
SELECT - 46 / - - COUNT ( * ) + 66 + + COUNT ( * ) col2 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9283
SELECT DISTINCT CAST( + 21 AS SIGNED ) - - - 4 + + col0, - col1 AS col1 FROM tab2
----
63
-51
81
-77
92
-67

skipif mysql # not compatible
query II rowsort label-9283
SELECT DISTINCT CAST ( + 21 AS INTEGER ) - - - 4 + + col0, - col1 AS col1 FROM tab2
----
63
-51
81
-77
92
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT - ( - COUNT( DISTINCT - CAST( - 35 AS SIGNED ) ) ) * + MIN( - col2 ) * 55 AS col2 FROM tab1
----
-5280

skipif mysql # not compatible
query I rowsort label-9284
SELECT - ( - COUNT ( DISTINCT - CAST ( - 35 AS INTEGER ) ) ) * + MIN ( - col2 ) * 55 AS col2 FROM tab1
----
-5280

query I rowsort
SELECT col0 + + - 34 AS col2 FROM tab0 WHERE - 43 * col1 / col2 + + 77 BETWEEN + ( 53 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 21 * - 99 FROM tab0
----
-2079

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT - ( + + 34 ), COUNT( * ) + - COUNT( - - col0 ) + - - 26 * - MAX( DISTINCT + - 90 ) AS col1 FROM tab2 WHERE NOT 58 = - 50
----
-34
2340

skipif mysql # not compatible
query II rowsort label-9287
SELECT - ( + + 34 ), COUNT ( * ) + - COUNT ( - - col0 ) + - - 26 * - MAX ( DISTINCT + - 90 ) AS col1 FROM tab2 WHERE NOT 58 = - 50
----
-34
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT col2 * CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab0
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-9288
SELECT col2 * CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT MAX( DISTINCT 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9289
SELECT MAX ( DISTINCT 99 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 35 + + 57 AND ( NULL )
----

query I rowsort
SELECT - + 81 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL MAX( ALL ( - - col2 ) ) col0 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9292
SELECT ALL MAX ( ALL ( - - col2 ) ) col0 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

query I rowsort
SELECT 40 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9294
SELECT CAST( - + col1 AS SIGNED ) * - 14 + - - col0 col0, - col2 FROM tab1 AS cor0
----
155
-59
247
-96
749
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9294
SELECT CAST ( - + col1 AS INTEGER ) * - 14 + - - col0 col0, - col2 FROM tab1 AS cor0
----
155
-59
247
-96
749
-68

query I rowsort
SELECT ALL + - col0 + + 79 FROM tab2 AS cor0
----
15
33
4

query I rowsort
SELECT DISTINCT + - 58 AS col1 FROM tab1 AS cor0
----
-58

query II rowsort
SELECT ALL - col1, col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + COUNT( DISTINCT CAST( - 6 AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9298
SELECT + COUNT ( DISTINCT CAST ( - 6 AS INTEGER ) ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col0 * 14 * - + 82 FROM tab0
----
-111356
-17220
-99876

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 98 - - col2 * - col2 + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 * - ( + col0 ) AS col1 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT col0 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9302
SELECT col0 / + - col2 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= col1
----

query I rowsort
SELECT ALL - 2 + - col1 AS col0 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT - + col0 + - - ( CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + col0 + - - ( CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT + - ( 37 ) + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-28

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + - ( 37 ) + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT - CAST( - - 33 AS SIGNED ) - - 50 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT - CAST ( - - 33 AS INTEGER ) - - 50 FROM tab2
----
17

query I rowsort
SELECT + 66 + + + 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2a0ef1182e6bf2495fa932b2816ad80

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT DISTINCT col2 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT col2 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT col2 * - col1 * - + 35 FROM tab1 AS cor0
----
10325
111860
47040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT - + MAX( DISTINCT + col2 ) DIV + 23 - COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9312
SELECT - + MAX ( DISTINCT + col2 ) / + 23 - COUNT ( * ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL - + col2 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT + col2 DIV - + col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9314
SELECT + col2 / - + col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9315
SELECT + + CAST( NULL AS DECIMAL ) - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT + + CAST ( NULL AS REAL ) - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 - 91 AS col2 FROM tab2 cor0
----
-114
-131
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT - - COUNT( col0 ) + + + ( + - 90 ) * - 7 FROM tab2 AS cor0
----
633

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT - - COUNT ( col0 ) + + + ( + - 90 ) * - 7 FROM tab2 AS cor0
----
633

query II rowsort
SELECT DISTINCT 99 * - - col2 AS col0, col0 AS col2 FROM tab1
----
5841
85
6732
91
9504
51

query II rowsort
SELECT ALL - ( 1 ), - col0 AS col0 FROM tab1
----
-1
-51
-1
-85
-1
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + 86 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT col1 * - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT col1 * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ( + col2 ) * - ( - col1 ) * + + col2 AS col1 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT DISTINCT col2 * + 23 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
1334
529
920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9324
SELECT + 36, - col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) = ( - col0 )
----

skipif mysql # not compatible
query II rowsort label-9324
SELECT + 36, - col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) = ( - col0 )
----

query I rowsort
SELECT DISTINCT - col2 * 14 * col2 FROM tab2
----
-22400
-47096
-7406

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 36 * - - 37 * - 95 FROM tab1
----
126540
126540
126540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT - 92 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - col0 * + - 61 * + col2 + + col0 - - col1 AS col1 FROM tab0 AS cor0
----
4617198
56821049
645171

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT - col2 DIV - + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9330
SELECT - col2 / - + col1 AS col1 FROM tab0
----
0
0
99

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NOT NULL > col1 * - 92 - - col0 )
----

query I rowsort
SELECT DISTINCT + 64 * + col2 FROM tab1
----
3776
4352
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 47 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9335
SELECT DISTINCT col2, - 71 DIV + 35 FROM tab1 AS cor0
----
59
-2
68
-2
96
-2

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT col2, - 71 / + 35 FROM tab1 AS cor0
----
59
-2
68
-2
96
-2

query I rowsort
SELECT DISTINCT - ( - 44 ) + - - col0 AS col2 FROM tab0 AS cor0
----
131
141
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 * + col1 AND + col1 + + col1
----

query I rowsort
SELECT ALL - 35 + ( + 68 ) FROM tab2 cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND col0
----

query I rowsort
SELECT DISTINCT - col1 + col2 + - - col2 AS col2 FROM tab1
----
113
178
89

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= - 33 * + col2 * + 99 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + col1 + + 88 + + 77 AS col0 FROM tab1
----
230
255
303

query I rowsort
SELECT DISTINCT - 41 * 42 AS col1 FROM tab2
----
-1722

onlyif mysql # DIV for integer division: 
query II rowsort label-9344
SELECT ALL + col0 DIV + - 47 AS col0, col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + col0 / + - 47 AS col0, col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 * + + 34 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT - + 34 DIV col0 * - 59 * - 22 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9346
SELECT - + 34 / col0 * - 59 * - 22 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9347
SELECT - COUNT( * ), + 3 AS col1 FROM tab2 AS cor0 WHERE ( - - col1 <> NULL )
----
0
3

skipif mysql # not compatible
query II rowsort label-9347
SELECT - COUNT ( * ), + 3 AS col1 FROM tab2 AS cor0 WHERE ( - - col1 <> NULL )
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - 73 * - - MAX( + col1 ) AS col1 FROM tab2 cor0
----
-5621

skipif mysql # not compatible
query I rowsort label-9348
SELECT - 73 * - - MAX ( + col1 ) AS col1 FROM tab2 cor0
----
-5621

query I rowsort
SELECT ALL col0 + - 27 FROM tab0 AS cor0
----
-12
60
70

query II rowsort
SELECT + 69 - - ( + 85 ), col1 AS col2 FROM tab0
----
154
1
154
21
154
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT ALL - ( - MAX( ALL - 99 ) ) AS col1, ( - COUNT( * ) ) * + 15 FROM tab2
----
-99
-45

skipif mysql # not compatible
query II rowsort label-9351
SELECT ALL - ( - MAX ( ALL - 99 ) ) AS col1, ( - COUNT ( * ) ) * + 15 FROM tab2
----
-99
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 - + 1 * - col0 col1 FROM tab1
----
15
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - - COUNT( * ) col2 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9353
SELECT - - COUNT ( * ) col2 FROM tab2 WHERE + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9354
SELECT ALL + col1 col0, + col2 * CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9354
SELECT ALL + col1 col0, + col2 * CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT + + COUNT( * ) DIV - 33 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT + + COUNT ( * ) / - 33 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9356
SELECT CAST( NULL AS SIGNED ) AS col1, - col0, col2 AS col2 FROM tab2 cor0 WHERE NOT + ( + 49 ) > 4
----

skipif mysql # not compatible
query III rowsort label-9356
SELECT CAST ( NULL AS INTEGER ) AS col1, - col0, col2 AS col2 FROM tab2 cor0 WHERE NOT + ( + 49 ) > 4
----

query I rowsort
SELECT ( + col0 ) * col2 * + + col1 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT - CAST( + - COUNT( DISTINCT col1 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT - CAST ( + - COUNT ( DISTINCT col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL 21 * - + COUNT( * ) * - + 74 FROM tab0
----
4662

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 21 * - + COUNT ( * ) * - + 74 FROM tab0
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT SUM( - + 22 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9360
SELECT SUM ( - + 22 ) AS col0 FROM tab2
----
-66

query II rowsort
SELECT 93, + col0 AS col2 FROM tab1
----
93
51
93
85
93
91

query II rowsort
SELECT ALL + col0, col1 - - col0 AS col2 FROM tab2
----
46
97
64
141
75
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - SUM( - col1 ) * COUNT( * ) AS col2 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - SUM ( - col1 ) * COUNT ( * ) AS col2 FROM tab0
----
309

query II rowsort
SELECT 11 AS col2, ( - - 47 ) FROM tab2
----
11
47
11
47
11
47

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9366
SELECT DISTINCT + + col0, col2 FROM tab2 WHERE - CAST( - 8 AS SIGNED ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9366
SELECT DISTINCT + + col0, col2 FROM tab2 WHERE - CAST ( - 8 AS INTEGER ) BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL + 54 AS col0 FROM tab1 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9369
SELECT + + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 2 * - col0 FROM tab1 AS cor0
----
-102
-170
-182

query II rowsort
SELECT col2 AS col2, 10 FROM tab2 AS cor0
----
23
10
40
10
58
10

query II rowsort
SELECT ALL + 98 * - col2, col2 FROM tab0
----
-4606
47
-9702
99
-980
10

query I rowsort
SELECT DISTINCT - - 74 AS col2 FROM tab1 WHERE NOT 40 * - 69 * 24 IN ( + 46, col2 + 46 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT - 87 + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - 87 + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT - col0 DIV - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - col0 / - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT + + col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE 24 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT + ( 29 ) AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + + 82 - - col0 FROM tab0 cor0
----
169
179
97

query I rowsort
SELECT - col0 * - col0 - + 65 + 7 + - + col0 FROM tab1 cor0
----
2492
7082
8132

query I rowsort
SELECT col0 + 13 AS col2 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT - - col0 + 84 AS col1 FROM tab1 AS cor0
----
135
169
175

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE col0 / + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT - COUNT( * ) + - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-9386
SELECT - COUNT ( * ) + - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL col2 + + + col2 + - col1 FROM tab0 AS cor0
----
-1
13
197

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + col0 IS NULL )
----

query II rowsort
SELECT DISTINCT 71 * - col2 AS col1, - 16 * 29 * - col0 FROM tab2
----
-1633
21344
-2840
29696
-4118
34800

query I rowsort
SELECT ( - + col2 ) * col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + col1 * 3 AS col1 FROM tab1 AS cor0
----
141
15
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND + col2 * - col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + 51 col0 FROM tab1 AS cor0
----
-374
-4226
-663

query II rowsort
SELECT ALL - col2 * - - 98, + ( - col1 ) AS col2 FROM tab2 cor0
----
-2254
-51
-3920
-77
-5684
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + 97 ) col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9397
SELECT - col2 AS col2, col2 DIV + col1 + col0 FROM tab0
----
-10
87
-47
15
-99
196

skipif mysql # not compatible
query II rowsort label-9397
SELECT - col2 AS col2, col2 / + col1 + col0 FROM tab0
----
-10
87
-47
15
-99
196

query I rowsort
SELECT 15 * - col0 FROM tab2
----
-1125
-690
-960

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 * + col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL - 37 * - SUM( - 19 ) FROM tab2
----
-2109

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - 37 * - SUM ( - 19 ) FROM tab2
----
-2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9402
SELECT DISTINCT CAST( - + COUNT( DISTINCT - col1 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT CAST ( - + COUNT ( DISTINCT - col1 ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT DISTINCT + COUNT( * ) col2, 75 AS col2 FROM tab1 AS cor0
----
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9403
SELECT DISTINCT + COUNT ( * ) col2, 75 AS col2 FROM tab1 AS cor0
----
3
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = 71 / + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL MIN( 23 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL MIN ( 23 ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT 13 FROM tab1 AS cor0 WHERE col2 > - + 79
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT - + 45 + col2 DIV 30 AS col2 FROM tab1 AS cor0
----
-42
-43
-44

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - + 45 + col2 / 30 AS col2 FROM tab1 AS cor0
----
-42
-43
-44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * col2 * + - col1 + + + col0 + - col1 FROM tab1
----
129061
17485
217372

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 13 NOT BETWEEN + - col2 AND + 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 37 * - 69 - - - col1 AS col2 FROM tab0 AS cor0
----
2472
2532
2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL col1 * + 0 - + CAST( NULL AS SIGNED ) + + 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL col1 * + 0 - + CAST ( NULL AS INTEGER ) + + 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - + ( - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - + ( - col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT DISTINCT ( + COUNT( * ) ) + + CAST( - - AVG ( DISTINCT col1 ) AS SIGNED ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT ( + COUNT ( * ) ) + + CAST ( - - AVG ( DISTINCT col1 ) AS INTEGER ) AS col2 FROM tab1
----
25

query I rowsort
SELECT ALL + 36 + - col0 AS col2 FROM tab0
----
-51
-61
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + 79 AS col0 FROM tab1 cor0
----
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL >= - 88 / + 43 ) )
----

query I rowsort
SELECT - + col0 * - col2 * col0 + - col2 FROM tab2 cor0
----
163800
326192
48645

query I rowsort
SELECT - 97 * col0 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT + CAST( NULL AS SIGNED ) / + MAX( ALL col0 ) * - 72 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT + CAST ( NULL AS INTEGER ) / + MAX ( ALL col0 ) * - 72 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 48 * 72 AS col0, - col1 + + + col1 AS col1 FROM tab2
----
3456
0
3456
0
3456
0

query I rowsort
SELECT + ( - 8 ) AS col0 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - 30 * - 90 AS col2 FROM tab2
----
2700

query I rowsort
SELECT ALL - col0 * + - col0 + + - 40 FROM tab1 cor0
----
2561
7185
8241

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + - MIN( - - 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9426
SELECT + - MIN ( - - 30 ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + + COUNT( * ) FROM tab0, tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + + COUNT ( * ) FROM tab0, tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 + col2 FROM tab2 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT + 72 * - col1 AS col1 FROM tab2 cor0
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL MAX( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL MAX ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT 88 + + ( + col0 ) + + - 40 FROM tab0 AS cor0
----
135
145
63

query II rowsort
SELECT ALL - ( - + 69 ) + - + col2, - col2 * 27 AS col0 FROM tab2 AS cor0
----
11
-1566
29
-1080
46
-621

query I rowsort
SELECT + col2 * + + 37 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1739
3663
370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 - - col1 col2 FROM tab0
----
1
98
21
108
81
96

query III rowsort
SELECT * FROM tab0 WHERE 96 NOT IN ( + col0 ) AND NOT - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 - 63 + - col1 * + col0 FROM tab2
----
-2363
-4927
-5013

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9437
SELECT ALL 32 AS col2, + col0, - col0 - - col2 + + col2 / - CAST( NULL AS SIGNED ) * - + 36 * col0 * - ( col2 ) FROM tab1
----
9 values hashing to 2e5ab4411ce2e0f03ab8449c9cfed31c

skipif mysql # not compatible
query III rowsort label-9437
SELECT ALL 32 AS col2, + col0, - col0 - - col2 + + col2 / - CAST ( NULL AS INTEGER ) * - + 36 * col0 * - ( col2 ) FROM tab1
----
9 values hashing to 2e5ab4411ce2e0f03ab8449c9cfed31c

query I rowsort
SELECT - col0 - + ( - col1 ) + - - col0 FROM tab1
----
14
47
5

query II rowsort
SELECT DISTINCT col0, - col2 * + 79 FROM tab1
----
51
-7584
85
-4661
91
-5372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT 57 - - CAST( - 11 AS SIGNED ) AS col2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-9440
SELECT 57 - - CAST ( - 11 AS INTEGER ) AS col2 FROM tab0
----
46
46
46

query I rowsort
SELECT ALL col2 * + + 14 FROM tab0
----
1386
140
658

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT + - 73 + SUM( ALL col2 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9442
SELECT + - 73 + SUM ( ALL col2 ) FROM tab2 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - ( - + 7 ) ) col0 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT - AVG ( ALL - col1 ) + AVG ( CAST( NULL AS SIGNED ) ) / + - SUM( ALL + col0 ) * + COUNT( * ) / - 47 + 1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT - AVG ( ALL - col1 ) + AVG ( CAST ( NULL AS INTEGER ) ) / + - SUM ( ALL + col0 ) * + COUNT ( * ) / - 47 + 1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - col0 * + col0 col1 FROM tab1 AS cor0 WHERE NOT ( NOT 52 IS NOT NULL )
----
-173400
-198744
-62424

onlyif mysql # DIV for integer division: 
query II rowsort label-9446
SELECT ALL 77 DIV - + col2 col0, 90 FROM tab1
----
-1
90
-1
90
0
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9446
SELECT ALL 77 / - + col2 col0, 90 FROM tab1
----
-1
90
-1
90
0
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + + COUNT( * ) * - 82 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9447
SELECT + + COUNT ( * ) * - 82 FROM tab0 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * + + col0 * - - ( col2 ) * - - 27 - - - col2 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * + + col0 * - - ( col2 ) * - - 27 - - - col2 * + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT 84 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9449
SELECT DISTINCT 84 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + COUNT( * ) * MAX( col0 ) col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9450
SELECT + COUNT ( * ) * MAX ( col0 ) col1 FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + COUNT( * ) * + - COUNT( ALL + col1 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9452
SELECT + COUNT ( * ) * + - COUNT ( ALL + col1 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - 97 * + SUM( - - col1 ) AS col0 FROM tab0
----
-9991

skipif mysql # not compatible
query I rowsort label-9453
SELECT - 97 * + SUM ( - - col1 ) AS col0 FROM tab0
----
-9991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * + - col2 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 12 * - 67 FROM tab1
----
-804
-804
-804

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL col2 * + 68 AS col0 FROM tab1
----
4012
4624
6528

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT ALL + 64 DIV 87 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + 64 / 87 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT COUNT( * ) * + + COUNT( - col0 ) + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9461
SELECT COUNT ( * ) * + + COUNT ( - col0 ) + COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0, 0 AS col1 FROM tab1 cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + 95 + - COUNT( * ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + 95 + - COUNT ( * ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0 WHERE 85 IS NULL
----

query II rowsort
SELECT DISTINCT 67 * - 87, - 47 * + - 37 AS col1 FROM tab2 AS cor0 WHERE NOT + 52 <> NULL
----

query I rowsort
SELECT ALL 82 * - ( col0 ) FROM tab2
----
-3772
-5248
-6150

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT - col0 + col2 DIV col2 AS col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-9468
SELECT - col0 + col2 / col2 AS col2 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9469
SELECT ALL * FROM tab1 WHERE NOT + CAST( - 2 AS SIGNED ) * + ( col2 * 34 ) + + ( col0 ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9469
SELECT ALL * FROM tab1 WHERE NOT + CAST ( - 2 AS INTEGER ) * + ( col2 * 34 ) + + ( col0 ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9470
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9470
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL 16 * col2 AS col2 FROM tab1
----
1088
1536
944

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) NOT IN ( - 75 + - col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col0 IN ( - col0 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / - col2 BETWEEN ( - col2 / col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9475
SELECT - CAST( - ( + col0 ) AS SIGNED ) DIV col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9475
SELECT - CAST ( - ( + col0 ) AS INTEGER ) / col2 FROM tab0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT col0 DIV col1 - + col1 AS col1 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT col0 / col1 - + col1 AS col1 FROM tab0
----
-17
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT COUNT( * ) * 74 + 12 col1 FROM tab0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9477
SELECT COUNT ( * ) * 74 + 12 col1 FROM tab0
----
234

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 - + col2 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 * - 49 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 45 col0 FROM tab0
----
-2115
-4455
-450

query I rowsort
SELECT DISTINCT - col0 + - 47 * + 87 AS col0 FROM tab1
----
-4140
-4174
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL MAX( 3 ) + + 24 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL MAX ( 3 ) + + 24 FROM tab1
----
27

query I rowsort
SELECT + col2 + 73 * - 61 FROM tab2
----
-4395
-4413
-4430

query I rowsort
SELECT DISTINCT col2 - col1 AS col2 FROM tab2 WHERE ( NULL ) IN ( col2 + ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT COUNT( * ) * - CAST( + 39 AS SIGNED ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) * - CAST ( + 39 AS INTEGER ) FROM tab2
----
-117

query I rowsort
SELECT 79 * + 28 FROM tab0
----
2212
2212
2212

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( 50 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + 18 * COUNT( * ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9491
SELECT + 18 * COUNT ( * ) AS col2 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9492
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 * ( 63 ) + + col2 FROM tab2
----
2921
4072
4783

query III rowsort
SELECT * FROM tab0 WHERE - col0 * 12 + col1 NOT BETWEEN ( col1 ) AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 40 + - col1 FROM tab1
----
-7
26
35

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT + 66 - - 65 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-3769
-4354
-6174

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + 66 - - 65 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-3769
-4354
-6174

query I rowsort
SELECT col1 * - 47 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + ( - CAST( + ( - col0 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + ( - CAST ( + ( - col0 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col2 * 82 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9501
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT - ( + 78 ) FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( 21 ) * + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( 21 ) * + 15 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + MAX( + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-9506
SELECT + MAX ( + col0 ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - COUNT( * ) + 44 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( * ) + 44 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 IS NULL
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT + MAX( 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + MAX ( 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT + MIN( col2 ) * - MIN( DISTINCT 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + MIN ( col2 ) * - MIN ( DISTINCT 0 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL - + MIN( + 14 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - + MIN ( + 14 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col0 ) NOT BETWEEN col1 + - 93 AND NULL
----

query I rowsort
SELECT ALL - 49 * - col0 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

query I rowsort
SELECT - col0 * - + 30 FROM tab1
----
1530
2550
2730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE NOT + 54 - col2 NOT BETWEEN + 64 AND ( + col1 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9515
SELECT CAST( NULL AS SIGNED ) * MAX( - col2 ) AS col1 FROM tab0 WHERE NOT ( + 91 * col1 ) >= ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT CAST ( NULL AS INTEGER ) * MAX ( - col2 ) AS col1 FROM tab0 WHERE NOT ( + 91 * col1 ) >= ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT SUM( - 27 ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT SUM ( - 27 ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9517
SELECT * FROM tab1 WHERE NOT NULL < ( CAST( ( - col2 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9517
SELECT * FROM tab1 WHERE NOT NULL < ( CAST ( ( - col2 ) AS REAL ) )
----

query I rowsort
SELECT 71 * + + 38 * 16 FROM tab0
----
43168
43168
43168

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NULL ) >= col1 * 47 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NULL ) >= col1 * 47 + + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 96 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9521
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 96 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT - MIN( ALL 73 ) * SUM( + 77 ) FROM tab2
----
-16863

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - MIN ( ALL 73 ) * SUM ( + 77 ) FROM tab2
----
-16863

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9523
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9523
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT DISTINCT + ( col2 ) DIV - col1 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + ( col2 ) / - col1 FROM tab0 cor0
----
-99
0

query I rowsort
SELECT + col2 + + - 66 AS col1 FROM tab0 cor0
----
-19
-56
33

query I rowsort
SELECT - 7 + + 80 AS col2 FROM tab1
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT col2 AS col1 FROM tab2 WHERE 65 * col1 < CAST( - col2 AS SIGNED ) * ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9527
SELECT col2 AS col1 FROM tab2 WHERE 65 * col1 < CAST ( - col2 AS INTEGER ) * ( - col2 )
----

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT 30 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-9530
SELECT 30 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-270

query I rowsort
SELECT - + ( + - col2 ) * + col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 62 col2 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT + 40 * + - col1 AS col0 FROM tab0 cor0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - COUNT( ALL + 76 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9534
SELECT - COUNT ( ALL + 76 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - - COUNT( ALL - - 12 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - COUNT ( ALL - - 12 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = - - 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL col0 + - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL col0 + - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT col0 DIV 89 DIV + - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT col0 / 89 / + - col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col1 + + 14, + col2 FROM tab0
----
-67
47
-7
10
13
99

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9541
SELECT 8 - - - col0 + - col0 * - CAST( NULL AS DECIMAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT 8 - - - col0 + - col0 * - CAST ( NULL AS REAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT ( + MAX( DISTINCT 59 ) ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT ( + MAX ( DISTINCT 59 ) ) FROM tab0
----
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 NOT IN ( + + col2 / + - col2 * - col0 + col0 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 * col2 + + - col0 ) <> - 1 * ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0, + col0 + + col0 AS col2 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9550
SELECT * FROM tab2 WHERE NOT ( - ( + 20 ) + 52 / - 83 ) <> col0 * CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab2 WHERE NOT ( - ( + 20 ) + 52 / - 83 ) <> col0 * CAST ( + col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 46 * - 81 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL - SUM( 35 ) + 86 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL - SUM ( 35 ) + 86 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9554
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT - + MAX( ALL + 81 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - + MAX ( ALL + 81 ) FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - - MAX( ALL 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - - MAX ( ALL 43 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT NULL > NULL )
----

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 / + + col1 + col1 AND ( + col2 * col0 )
----

query I rowsort
SELECT col1 * 28 + col1 + col2 AS col1 FROM tab1
----
1431
204
502

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - SUM( ALL + 2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - SUM ( ALL + 2 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT 48 + - COUNT( * ) + + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9562
SELECT 48 + - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT + - col0 + col2 - col2 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 > ( + + 69 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9565
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2, 78 DIV + col0 FROM tab2
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-9565
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2, 78 / + col0 FROM tab2
----
NULL
1
NULL
1
NULL
1

query I rowsort
SELECT DISTINCT + - col1 * 30 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - 30 + + + 95 = ( col2 )
----

query II rowsort
SELECT 51 + 37 AS col2, 3 * - col0 FROM tab1 cor0
----
88
-153
88
-255
88
-273

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + + - col2 + - col2 / col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL MIN( ALL - col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL MIN ( ALL - col2 ) AS col2 FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 37 + + - col0, col2 col2 FROM tab0 AS cor0
----
-124
10
-134
99
-52
47

query I rowsort
SELECT - 22 + - 94 AS col2 FROM tab2 AS cor0
----
-116
-116
-116

query II rowsort
SELECT DISTINCT + col0, - 37 - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + + 6 * + col2 AS col0 FROM tab1 AS cor0
----
439
499
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 34 + - 50 + + 49 col2 FROM tab0 AS cor0
----
-1599
-3367
-341

query I rowsort
SELECT - col0 / - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 87 + - - 88 + col2, + col2 FROM tab1
----
234
59
243
68
271
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9578
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9578
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - SUM( ALL - 2 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9580
SELECT - SUM ( ALL - 2 ) AS col0 FROM tab1
----
6

query II rowsort
SELECT - 75, col1 AS col0 FROM tab2
----
-75
51
-75
67
-75
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL CAST( + ( col1 ) AS SIGNED ) col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 16 * - col0 * - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9583
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 16 * - col0 * - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT - - col1 * - CAST( - col0 AS SIGNED ) * CAST( col0 AS SIGNED ) * - + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
-180566
-18292661
-509700

skipif mysql # not compatible
query I rowsort label-9584
SELECT - - col1 * - CAST ( - col0 AS INTEGER ) * CAST ( col0 AS INTEGER ) * - + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
-180566
-18292661
-509700

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT col2, - ( - col0 ) * col2 + 38 FROM tab0 AS cor0
----
10
908
47
743
99
9641

query I rowsort
SELECT - ( - col1 ) * - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9588
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9589
SELECT * FROM tab2 WHERE NOT - - col1 >= CAST( NULL AS DECIMAL ) - + ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9589
SELECT * FROM tab2 WHERE NOT - - col1 >= CAST ( NULL AS REAL ) - + ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT DISTINCT - col1 + col2 DIV - - col0 + col2 * + 94 AS col1 FROM tab0 AS cor0
----
4340
919
9306

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT - col1 + col2 / - - col0 + col2 * + 94 AS col1 FROM tab0 AS cor0
----
4340
919
9306

query I rowsort
SELECT 77 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1421
3273
372

query I rowsort
SELECT + 93 * - col1 * col0 AS col2 FROM tab1 AS cor0
----
-39525
-397761
-66402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ALL CAST( NULL AS SIGNED ) + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 + - ( 33 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - 99 + ( + - 2 ) * ( + - ( - - ( + 62 ) ) ) AS col1 FROM tab2
----
25

query II rowsort
SELECT DISTINCT + col0, + col1 * col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL ( - - col0 ) AS col1 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 42 col0 FROM tab0
----
3402
42
882

query I rowsort
SELECT DISTINCT 27 * 51 AS col1 FROM tab0
----
1377

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9600
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 0 * + + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9600
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 0 * + + CAST ( + - col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col1 + - col2 IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 19 + col2 AS col0 FROM tab0 cor0
----
118
29
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) IN ( + - 11 / + 6, - 11 - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < ( NULL )
----

query I rowsort
SELECT + ( - + col1 ) * + col2 + + col2 - - col0 + col1 * 82 AS col0 FROM tab1
----
-49
259
817

query I rowsort
SELECT 20 * - col1 AS col2 FROM tab2 cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT col0 / - + 65 - + col2 + + col0 * + col2 * + 33 * + col0 NOT IN ( 43 )
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 / - + 65 - + col2 + + col0 * + col2 * + 33 * + col0 NOT IN ( 43 )
----
0

query II rowsort
SELECT - + col0 AS col1, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - col0 * - col1 * + 92 FROM tab2 AS cor0
----
215832
453376
462300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT 36 - + col2 * - - col2 + + + 95 + - CAST( NULL AS SIGNED ) * - 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT 36 - + col2 * - - col2 + + + 95 + - CAST ( NULL AS INTEGER ) * - 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 84 - + + col0 + + col1 FROM tab2 AS cor0
----
76
89
97

query II rowsort
SELECT + + col0 AS col1, col2 + col0 FROM tab1 AS cor0
----
51
147
85
144
91
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT ALL col1 DIV 47 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL col1 / 47 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL 46 DIV - ( col1 ) AS col2 FROM tab1 AS cor0
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL 46 / - ( col1 ) AS col2 FROM tab1 AS cor0
----
-3
-9
0

query I rowsort
SELECT + - col0 * col2 - 57 + col0 * + - 16 + col1 + 57 FROM tab2 AS cor0
----
-1743
-3507
-5483

onlyif mysql # DIV for integer division: 
query II rowsort label-9618
SELECT ALL col2 DIV - col1 AS col2, col0 FROM tab1 AS cor0
----
-1
91
-11
85
-6
51

skipif mysql # not compatible
query II rowsort label-9618
SELECT ALL col2 / - col1 AS col2, col0 FROM tab1 AS cor0
----
-1
91
-11
85
-6
51

query I rowsort
SELECT col0 + ( - col0 ) * ( - - col1 ) * 12 * 31 + - + 94 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 96 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT DISTINCT CAST( COUNT( ALL + ( - + col1 ) ) AS SIGNED ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9621
SELECT DISTINCT CAST ( COUNT ( ALL + ( - + col1 ) ) AS INTEGER ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
41

query II rowsort
SELECT col1 AS col1, + col2 * + - 2 AS col2 FROM tab0
----
1
-198
21
-20
81
-94

query I rowsort
SELECT ALL + + 12 AS col2 FROM tab1 WHERE NOT 11 IS NULL
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9625
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 80 * - MIN( ALL + col1 ) AS col0 FROM tab0 WHERE - col1 + - col1 + - col2 * 1 <> NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9625
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 80 * - MIN ( ALL + col1 ) AS col0 FROM tab0 WHERE - col1 + - col1 + - col2 * 1 <> NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 86 AND - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 20 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT ALL + CAST( - col2 AS SIGNED ) + - 32 * - + col0 + - CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
1550
2666
2891

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + CAST ( - col2 AS INTEGER ) + - 32 * - + col0 + - CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
1550
2666
2891

query I rowsort
SELECT ALL - + 75 + - - col1 FROM tab0 cor0
----
-54
-74
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL - col2 + + + 72 AS col2 FROM tab0 cor0 WHERE col1 * - 27 NOT BETWEEN NULL AND - col2 / + - 36 + + 22 * + - CAST( 87 AS SIGNED ) + - + 36
----
-27
62

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - col2 + + + 72 AS col2 FROM tab0 cor0 WHERE col1 * - 27 NOT BETWEEN NULL AND - col2 / + - 36 + + 22 * + - CAST ( 87 AS INTEGER ) + - + 36
----
-27
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT DISTINCT col2 + + + col1 * + - CAST( - 54 AS SIGNED ) AS col1 FROM tab1
----
2606
329
852

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT col2 + + + col1 * + - CAST ( - 54 AS INTEGER ) AS col1 FROM tab1
----
2606
329
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9632
SELECT + col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 95 * col2 FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT ALL col2 - 39 FROM tab0
----
-29
60
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + - MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9637
SELECT + - MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - + col1 + + col2 col0 FROM tab2 AS cor0 WHERE + ( + - col2 ) NOT IN ( - col1, 22 + - col0 )
----
13
22
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - + SUM( DISTINCT col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9639
SELECT - + SUM ( DISTINCT col0 ) FROM tab0 cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 + + col2, ( col2 ) * 13 + - col2 * - col2 col0 FROM tab1 AS cor0
----
147
4248
156
5508
184
10464

query I rowsort
SELECT DISTINCT col0 - - 17 AS col2 FROM tab2 cor0
----
63
81
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL + col1 - - CAST( - - 63 AS SIGNED ) FROM tab2
----
114
130
140

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + col1 - - CAST ( - - 63 AS INTEGER ) FROM tab2
----
114
130
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT COUNT( * ) - + - 51 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT COUNT ( * ) - + - 51 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT 42 * - COUNT( * ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-9644
SELECT 42 * - COUNT ( * ) FROM tab2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL + - 70 DIV + - col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + - 70 / + - col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - - 60 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 67 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 61 * - CAST( col2 AS SIGNED ) AND - - 89 - - col0
----

skipif mysql # not compatible
query III rowsort label-9647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 61 * - CAST ( col2 AS INTEGER ) AND - - 89 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9648
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - CAST( 33 AS DECIMAL ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9648
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - CAST ( 33 AS REAL ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - 54 * - 78 AS col2 FROM tab1 AS cor0
----
4212
4212
4212

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT ALL - 79 DIV col2 * - 69 FROM tab2 AS cor0
----
207
69
69

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL - 79 / col2 * - 69 FROM tab2 AS cor0
----
207
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT ( - - SUM( DISTINCT - 91 ) ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT ( - - SUM ( DISTINCT - 91 ) ) FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + + MAX( DISTINCT + + 78 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT + + MAX ( DISTINCT + + 78 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ( SUM( col0 ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9654
SELECT ( SUM ( col0 ) ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 2 * - 93 AS col1 FROM tab1
----
-186
-186
-186

query I rowsort
SELECT DISTINCT 29 * - 57 FROM tab0
----
-1653

query II rowsort
SELECT DISTINCT - + col0 * + col1 * - col2, - 60 + + col0 - - col0 / col2 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT NULL > ( - col2 / col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT ALL + col0 DIV - - 71 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + col0 / - - 71 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL - col1 DIV - 2 AS col1 FROM tab1 cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - col1 / - 2 AS col1 FROM tab1 cor0
----
2
23
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT + + ( - 18 ) + + CAST( 20 AS SIGNED ) col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9663
SELECT + + ( - 18 ) + + CAST ( 20 AS INTEGER ) col2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL - COUNT( * ) + - - 0 * 89 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - COUNT ( * ) + - - 0 * 89 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 90 * + 5 ) AND ( 6 )
----

query I rowsort
SELECT DISTINCT - col0 * ( - 0 ) * - col1 AS col0 FROM tab1 cor0 WHERE col2 * - col0 + - ( ( + + col1 ) ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT ALL - 85 + - + 40 DIV - + col1 FROM tab1 AS cor0
----
-77
-83
-85

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - 85 + - + 40 / - + col1 FROM tab1 AS cor0
----
-77
-83
-85

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE + col1 <= ( NULL )
----

query I rowsort
SELECT - + ( 0 ) AS col2 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT ALL + 15 + + - ( + 25 ), col1 AS col0 FROM tab1 AS cor0
----
-10
14
-10
47
-10
5

query I rowsort
SELECT DISTINCT + 73 + + col0 AS col0 FROM tab0
----
160
170
88

query I rowsort
SELECT DISTINCT - col2 + ( + ( + - col2 ) ) AS col2 FROM tab2
----
-116
-46
-80

query II rowsort
SELECT ALL - + 41, - col0 FROM tab1 WHERE NULL < + - col1 * + - col0 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT COUNT( * ) col2 FROM tab0 WHERE - + 43 * - col0 NOT BETWEEN NULL AND ( - col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9674
SELECT COUNT ( * ) col2 FROM tab0 WHERE - + 43 * - col0 NOT BETWEEN NULL AND ( - col0 )
----
3

query I rowsort
SELECT DISTINCT - col2 + + col1 * - 73 FROM tab0 AS cor0
----
-1543
-172
-5960

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - - MAX( ALL - col1 ) * + 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-9676
SELECT - - MAX ( ALL - col1 ) * + COUNT ( * ) + + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN - + 38 AND - - 5
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * 14
----

query I rowsort
SELECT - + ( + col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - 42 col2 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN - 72 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN - 72 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT CAST( NULL AS SIGNED ) * + col2 * + + ( col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT CAST ( NULL AS INTEGER ) * + col2 * + + ( col2 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col1 * col2 * - 94 AS col1 FROM tab0
----
-19740
-357858
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ( MIN( DISTINCT - + col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9687
SELECT ( MIN ( DISTINCT - + col2 ) ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9688
SELECT DISTINCT + 88 DIV - MAX( DISTINCT - col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + 88 / - MAX ( DISTINCT - col1 ) FROM tab2
----
1

query II rowsort
SELECT - col0, - col0 * - col2 AS col2 FROM tab2
----
-46
1058
-64
2560
-75
4350

query I rowsort
SELECT DISTINCT + + ( - col1 ) * + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT - col1 + col2 + ( - col0 ) FROM tab2 AS cor0
----
-101
-74
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + + col2 col0 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT - 55 * - col1 - col1 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + 8 * col2 AS col1 FROM tab2 cor0
----
184
320
464

query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL - col0 DIV 12 col1 FROM tab2
----
-3
-5
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9696
SELECT ALL - col0 / 12 col1 FROM tab2
----
-3
-5
-6

query I rowsort
SELECT - - 4 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query II rowsort
SELECT ( col1 ) * col1 + - - 5 AS col1, col2 FROM tab0
----
446
10
6
99
6566
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT + - 96 DIV + col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT + - 96 / + col2 FROM tab0 AS cor0
----
-2
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 98 - - - 23 + + 61 AS col0 FROM tab1 AS cor0
----
136

query I rowsort
SELECT + 99 + - col1 FROM tab1 AS cor0
----
52
85
94

query I rowsort
SELECT col0 + - - 42 FROM tab2
----
106
117
88

query I rowsort
SELECT ALL ( - 80 ) * col0 + col1 * col1 FROM tab0
----
-6519
-7759
5361

query I rowsort
SELECT DISTINCT col0 - - 27 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + - SUM( + col2 ) FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-9706
SELECT + - SUM ( + col2 ) FROM tab2 WHERE NULL IS NULL
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <> 62
----

query I rowsort
SELECT DISTINCT + + col2 + 81 + + col1 * + col0 * + + col1 FROM tab0 AS cor0
----
277
38458
98543

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT col0 DIV + 76 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9709
SELECT col0 / + 76 AS col2 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab0
----
-81

query I rowsort
SELECT - ( ( + ( - - col1 ) ) ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + col0 * + + col2 + ( col1 ) + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT + + COUNT( * ) * - CAST( - 22 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 27 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT + + COUNT ( * ) * - CAST ( - 22 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 27 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 85 * + - 0 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT - MAX( - 93 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT - MAX ( - 93 ) AS col2 FROM tab1 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> 63 + - 74 * + col0
----

query II rowsort
SELECT ALL - col0 + ( + col0 ) + + col2 - 85 + - + col0 - - col0 AS col1, + 19 * - + 49 FROM tab2 AS cor0
----
-27
-931
-45
-931
-62
-931

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9719
SELECT + col2 + + - 13 + 88 / + - 77 + ( 61 ) + - - 55 + col1 + - ( + ( - col2 ) ) * + - col1 * CAST( NULL AS SIGNED ) * + col0 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9719
SELECT + col2 + + - 13 + 88 / + - 77 + ( 61 ) + - - 55 + col1 + - ( + ( - col2 ) ) * + - col1 * CAST ( NULL AS INTEGER ) * + col0 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT - 21 + + 78 - - - col0 AS col1 FROM tab2 AS cor0
----
-18
-7
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL - SUM( DISTINCT 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - SUM ( DISTINCT 76 ) FROM tab2
----
-76

query III rowsort
SELECT * FROM tab0 WHERE - + 1 / col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT col2 DIV 68 * - 45 * col0 FROM tab1 AS cor0
----
-2295
-4095
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT col2 / 68 * - 45 * col0 FROM tab1 AS cor0
----
-2295
-4095
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT + 5 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 5 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT MAX( ALL - 36 ) col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9726
SELECT MAX ( ALL - 36 ) col2 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT + - MAX( DISTINCT 34 ) FROM tab1 AS cor0 WHERE ( NOT ( - 38 = NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + - MAX ( DISTINCT 34 ) FROM tab1 AS cor0 WHERE ( NOT ( - 38 = NULL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - COUNT( - col0 ) FROM tab0 cor0 WHERE ( NULL ) <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT - COUNT ( - col0 ) FROM tab0 cor0 WHERE ( NULL ) <= - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL 99 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL 99 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT 53 - - + ( + COUNT( * ) ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9731
SELECT 53 - - + ( + COUNT ( * ) ) FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN - 29 AND + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + 70
----

skipif mysql # not compatible
query I rowsort label-9732
SELECT - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN - 29 AND + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 70
----

query I rowsort
SELECT DISTINCT - 58 * col2 + - col1 AS col0 FROM tab1
----
-3427
-3991
-5582

query I rowsort
SELECT ALL ( + ( + col0 ) ) * - 74 * 77 + - col1 + col2 - - col1 FROM tab0
----
-495716
-552607
-85423

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT - MAX( ALL - + ( + col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT - MAX ( ALL - + ( + col1 ) ) AS col2 FROM tab2
----
51

query II rowsort
SELECT DISTINCT - 25 * + col2 AS col1, 9 AS col2 FROM tab1 AS cor0
----
-1475
9
-1700
9
-2400
9

query I rowsort
SELECT + col2 * - - ( + - 53 ) FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL MAX ( + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT col0 * - - col0 * + col0 AS col1 FROM tab1
----
132651
614125
753571

query I rowsort
SELECT + col1 * - 86 AS col1 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT 59 * - 52 FROM tab0 AS cor0
----
-3068
-3068
-3068

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 78 IN ( - col2 * - col0 + + 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - col2 * + col0 AS col1 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT DISTINCT - COUNT( * ) AS col0, 9 + 73 col2 FROM tab2
----
-3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9745
SELECT DISTINCT - COUNT ( * ) AS col0, 9 + 73 col2 FROM tab2
----
-3
82

query I rowsort
SELECT - col0 + + 12 AS col2 FROM tab0
----
-3
-75
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT CAST( NULL AS SIGNED ) + + col0 * - 55 * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT CAST ( NULL AS INTEGER ) + + col0 * - 55 * + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 / - col0 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 / - col0 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, + col1 col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + 13 * - col1 AS col1 FROM tab2 AS cor0
----
-1001
-663
-871

query I rowsort
SELECT ALL + 59 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT MIN( ALL 93 ) col2 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9754
SELECT DISTINCT MIN ( ALL 93 ) col2 FROM tab0
----
93

query I rowsort
SELECT 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT 52 + col2 AS col2 FROM tab1 AS cor0
----
111
120
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT SUM( + col2 ) * + + CAST( - COUNT( * ) AS SIGNED ) + ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT SUM ( + col2 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) + ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT IN ( - - 36, 18 )
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT DISTINCT + col1 + + col1 + - col2 + + - 68 DIV 74 FROM tab1 cor0
----
-49
-68
26

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + col1 + + col1 + - col2 + + - 68 / 74 FROM tab1 cor0
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL MAX( DISTINCT + col2 ) + - - COUNT( * ) + - 85 AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL MAX ( DISTINCT + col2 ) + - - COUNT ( * ) + - 85 AS col2 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - MIN( DISTINCT 61 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-9761
SELECT - MIN ( DISTINCT 61 ) FROM tab0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - col1 * ( + col1 ) col2 FROM tab2
----
-31212
-53868
-71148

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT DISTINCT - col1 * - + col2 DIV - col2 - - 25 * - + 52 * - - col1 FROM tab2
----
-100177
-66351
-87167

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - col1 * - + col2 / - col2 - - 25 * - + 52 * - - col1 FROM tab2
----
-100177
-66351
-87167

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 33 FROM tab0 WHERE - col2 * - col1 + + + col1 IS NOT NULL
----
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL BETWEEN 49 * col0 + + 9 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9767
SELECT + SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + col1 * + + 30 FROM tab0 AS cor0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT ALL + COUNT( * ) * - COUNT( * ) * - SUM( ALL - 60 ) AS col1, - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43740
-36

skipif mysql # not compatible
query II rowsort label-9769
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - SUM ( ALL - 60 ) AS col1, - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43740
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - MIN( col1 ) FROM tab1 WHERE NOT + 30 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT - MIN ( col1 ) FROM tab1 WHERE NOT + 30 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query II rowsort
SELECT ALL + col0 AS col1, 62 FROM tab0 AS cor0
----
15
62
87
62
97
62

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 44 / - - col1 - - + 31 + + 34 / - 21 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col1 FROM tab1 cor0
----
74

query I rowsort
SELECT ALL + col0 + - col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query II rowsort label-9777
SELECT col2, 86 DIV + col0 FROM tab0 AS cor0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-9777
SELECT col2, 86 / + col0 FROM tab0 AS cor0
----
10
0
47
5
99
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT + COUNT( * ) AS col2, 90 FROM tab0 cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-9778
SELECT + COUNT ( * ) AS col2, 90 FROM tab0 cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT - - COUNT( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9779
SELECT - - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + col0 ), 46 col1 FROM tab1
----
-51
46
-85
46
-91
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT - MAX( ALL + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9781
SELECT - MAX ( ALL + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT - COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9783
SELECT DISTINCT 98 * - - 67, - ( - col1 ) DIV - 11 + col0 + - col0 AS col1 FROM tab1
----
6566
-1
6566
-4
6566
0

skipif mysql # not compatible
query II rowsort label-9783
SELECT DISTINCT 98 * - - 67, - ( - col1 ) / - 11 + col0 + - col0 AS col1 FROM tab1
----
6566
-1
6566
-4
6566
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col0 / + col0 * - col0 BETWEEN 99 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT + col1 DIV 40 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9785
SELECT + col1 / 40 FROM tab1
----
0
0
1

query I rowsort
SELECT + - ( ( + col0 ) ) + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT - col0 + + - col0 AS col0, col2 DIV - ( - + col2 ) FROM tab1 AS cor0
----
-102
1
-170
1
-182
1

skipif mysql # not compatible
query II rowsort label-9787
SELECT - col0 + + - col0 AS col0, col2 / - ( - + col2 ) FROM tab1 AS cor0
----
-102
1
-170
1
-182
1

query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL 36 * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL 36 * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
324

query I rowsort
SELECT ALL ( - - col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT col0 DIV col1 + 35 * - ( + col1 ) * col0 FROM tab1 AS cor0
----
-14858
-149694
-24987

skipif mysql # not compatible
query I rowsort label-9792
SELECT col0 / col1 + 35 * - ( + col1 ) * col0 FROM tab1 AS cor0
----
-14858
-149694
-24987

query I rowsort
SELECT - + ( + 86 ) FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9794
SELECT DISTINCT COUNT( * ) * + ( ( - SUM( + col0 ) ) ) + + COUNT( * ) DIV + - 85 - - CAST( + COUNT( - 16 ) AS SIGNED ) FROM tab1 AS cor0
----
-678

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT COUNT ( * ) * + ( ( - SUM ( + col0 ) ) ) + + COUNT ( * ) / + - 85 - - CAST ( + COUNT ( - 16 ) AS INTEGER ) FROM tab1 AS cor0
----
-678

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT DISTINCT - MIN( + - 27 ) + + + 21 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-9795
SELECT DISTINCT - MIN ( + - 27 ) + + + 21 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
48
3

query II rowsort
SELECT + + col2 * 45 - col2 AS col0, col1 + + 89 AS col1 FROM tab0 AS cor0
----
2068
170
4356
90
440
110

query I rowsort
SELECT ( + col2 ) - - col0 + - - col0 * col1 + + 70 FROM tab2 AS cor0
----
2485
5102
5228

query I rowsort
SELECT - col2 - - + 52 * + col2 AS col1 FROM tab0 AS cor0
----
2397
5049
510

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col1 IS NULL
----

query I rowsort
SELECT ALL - 34 * 82 + + col0 * - - 76 FROM tab1 AS cor0
----
1088
3672
4128

query II rowsort
SELECT ALL + col1 AS col1, 17 FROM tab2 AS cor0
----
51
17
67
17
77
17

query I rowsort
SELECT ALL col0 + + + 22 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL - + CAST( - 37 AS SIGNED ) FROM tab0 WHERE NULL <> + 83
----

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - + CAST ( - 37 AS INTEGER ) FROM tab0 WHERE NULL <> + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 41 * + col2 * - col2 FROM tab0
----
-401841
-4100
-90569

query I rowsort
SELECT + col0 * + 6 AS col0 FROM tab0
----
522
582
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL SUM( ALL - 26 ) * - COUNT( * ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL SUM ( ALL - 26 ) * - COUNT ( * ) FROM tab2
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9809
SELECT CAST( - col2 AS SIGNED ) AS col1, col1 + col0 AS col2 FROM tab2
----
-23
97
-40
141
-58
142

skipif mysql # not compatible
query II rowsort label-9809
SELECT CAST ( - col2 AS INTEGER ) AS col1, col1 + col0 AS col2 FROM tab2
----
-23
97
-40
141
-58
142

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 61 IN ( - 69, 44, + + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 1 * col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL ( 17 ) * - + col2 AS col0 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT DISTINCT 7 * + col0 AS col2 FROM tab1
----
357
595
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT ALL + COUNT( * ) DIV - + 35 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + COUNT ( * ) / - + 35 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT ALL col2 DIV + col1 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL col2 / + col1 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL 43 + + COUNT( * ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL 43 + + COUNT ( * ) FROM tab2 cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 + col0 - - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 93 * + 20 FROM tab0
----
-1860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9820
SELECT DISTINCT col1 * + - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT col1 * + - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT - col0 + - col0 - - - 38 + + + col1 DIV - + 86 FROM tab1
----
-140
-208
-220

skipif mysql # not compatible
query I rowsort label-9821
SELECT - col0 + - col0 - - - 38 + + + col1 / - + 86 FROM tab1
----
-140
-208
-220

query I rowsort
SELECT ALL 80 * col2 * 8 AS col1 FROM tab2
----
14720
25600
37120

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT DISTINCT 7 DIV + + 29 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9823
SELECT DISTINCT 7 / + + 29 col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL + 66 * + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + 66 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-198

query I rowsort
SELECT ALL - 42 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col1 + - col1 AND - 55 + 90
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT 31 * - col2 + - + col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT ( + - col0 ) + - col0 + + + col2 AS col2 FROM tab1
----
-111
-114
-6

query II rowsort
SELECT DISTINCT + 4 AS col1, col2 FROM tab2 AS cor0
----
4
23
4
40
4
58

query I rowsort
SELECT - ( + 90 ) AS col1 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COUNT( * ) - - 79 * + 88 + - - COUNT( * ) FROM tab2
----
6958

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( * ) - - 79 * + 88 + - - COUNT ( * ) FROM tab2
----
6958

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 14 IS NULL
----

query I rowsort
SELECT col2 - 29 AS col0 FROM tab0
----
-19
18
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 col0 FROM tab0 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IN ( col1, col2, - col2, + + 97, + + col2 ) ) )
----

query I rowsort
SELECT - 23 * + col2 - - + 60 FROM tab1 cor0
----
-1297
-1504
-2148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9837
SELECT + + 85 * + 79 col0, + 78 - + 41 - - + CAST( - - 29 AS SIGNED ) * col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
6715
157
6715
2850
6715
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9837
SELECT + + 85 * + 79 col0, + 78 - + 41 - - + CAST ( - - 29 AS INTEGER ) * col0 / + col1 AS col2 FROM tab0 AS cor0
----
6715
157
6715
2850
6715
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT SUM( DISTINCT - + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9838
SELECT SUM ( DISTINCT - + col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 98 * 82 AS col1 FROM tab2
----
-8036
-8036
-8036

query I rowsort
SELECT ALL 31 * + 63 FROM tab0
----
1953
1953
1953

query I rowsort
SELECT ALL - col2 - + - col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - MAX( ALL col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT - + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9844
SELECT - + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT ALL col2 * col2, col2 AS col2 FROM tab1
----
3481
59
4624
68
9216
96

query I rowsort
SELECT DISTINCT - 54 * + + 98 FROM tab1
----
-5292

query I rowsort
SELECT DISTINCT col0 * + - col1 * - col2 * - ( + 70 ) * + col1 AS col0 FROM tab1
----
-67173120
-8776250
-956850440

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE 72 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT ( - MAX( - 30 ) ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT ( - MAX ( - 30 ) ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - col0 * - - 67 + + col1 AS col2 FROM tab0 AS cor0
----
-5808
-6498
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT 70 * MIN( - ( + 76 ) ) FROM tab1 AS cor0
----
-5320

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT 70 * MIN ( - ( + 76 ) ) FROM tab1 AS cor0
----
-5320

query I rowsort
SELECT DISTINCT ( - + AVG ( ALL + col2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9854
SELECT ALL + CAST( col1 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + CAST ( col1 AS REAL ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 18 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
-18
-18
-18

query I rowsort
SELECT 74 - - + col0 AS col0 FROM tab1
----
125
159
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT + col2 * ( + CAST( NULL AS SIGNED ) ) / + 30 + - CAST( + col0 AS SIGNED ) + + col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT + col2 * ( + CAST ( NULL AS INTEGER ) ) / + 30 + - CAST ( + col0 AS INTEGER ) + + col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 + + - ( - col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN 74 AND NULL
----

query II rowsort
SELECT DISTINCT - col0 + col0, 43 AS col1 FROM tab1
----
0
43

query II rowsort
SELECT - - 14, 96 AS col2 FROM tab2 AS cor0
----
14
96
14
96
14
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + - col1 > - + col1 * - - col2 * - col0 * - + ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col2 ) * - - 46 FROM tab0 AS cor0
----
2162
4554
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT DISTINCT - + AVG ( - + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT DISTINCT - + AVG ( - + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + ( + + 82 ) + + 92 col1 FROM tab2 AS cor0
----
46
174
64
174
75
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - 95 * COUNT( * ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 95 * COUNT ( * ) FROM tab0 AS cor0
----
-285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 BETWEEN + + col1 AND + col0
----
15
81
47
87
21
10

query I rowsort
SELECT col0 * 12 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT - MIN( + + 32 ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - MIN ( + + 32 ) AS col1 FROM tab1
----
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - COUNT( * ) + + 95 FROM tab2 WHERE NOT NULL IS NULL
----
95

skipif mysql # not compatible
query I rowsort label-9871
SELECT - COUNT ( * ) + + 95 FROM tab2 WHERE NOT NULL IS NULL
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT 81, - COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
81
-9

skipif mysql # not compatible
query II rowsort label-9872
SELECT 81, - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
81
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT - 32 DIV COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 32 / COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT - 95 / + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - 95 / + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <> - col0 * + col0
----

query I rowsort
SELECT ALL - col2 / col0 + + 44 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col0 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9878
SELECT + - 5, CAST( NULL AS SIGNED ) - - MAX( DISTINCT + col0 ) AS col0 FROM tab2 cor0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9878
SELECT + - 5, CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + col0 ) AS col0 FROM tab2 cor0
----
-5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 * + col0 + + - col0 col2 FROM tab2 AS cor0
----
-4140
-5760
-6750

query I rowsort
SELECT 3 + col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 58 AND - ( 39 )
----

query I rowsort
SELECT DISTINCT + col0 + 34 AS col1 FROM tab1 AS cor0
----
119
125
85

query I rowsort
SELECT ALL 14 + - - 1 * + - 65 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT + 53 + + - col1 FROM tab2
----
-14
-24
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col1 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col1 * + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 4 * + 54 + + col1 AS col0 FROM tab0
----
217
237
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + 20 + COUNT( ALL - ( - - col1 ) ) + + ( - COUNT( * ) ) col2 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9886
SELECT + 20 + COUNT ( ALL - ( - - col1 ) ) + + ( - COUNT ( * ) ) col2 FROM tab0
----
20

query I rowsort
SELECT col2 * + + col2 + - col0 AS col0 FROM tab1
----
3396
4533
9165

query I rowsort
SELECT DISTINCT + 18 * col1 FROM tab1 AS cor0
----
252
846
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col2 * + col1 * + 65 FROM tab0 AS cor0
----
13650
247455
6435

query I rowsort
SELECT ALL - + ( - col1 ) + + 82 * - + 50 AS col1 FROM tab0 cor0
----
-4019
-4079
-4099

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9892
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( + + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9892
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( + + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT 19 - - 17 + 35 * + - col0 AS col2 FROM tab0 AS cor0
----
-3009
-3359
-489

query I rowsort
SELECT - col0 * + col0 * + 68 * 40 - + 60 AS col2 FROM tab1
----
-19652060
-22524380
-7074780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT - CAST( - + ( + SUM( - 78 ) ) AS SIGNED ) AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-9895
SELECT - CAST ( - + ( + SUM ( - 78 ) ) AS INTEGER ) AS col1 FROM tab2
----
-234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT col2 DIV + 42 + - col1 + 95 DIV 47 AS col2 FROM tab0 AS cor0
----
-19
-78
3

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT col2 / + 42 + - col1 + 95 / 47 AS col2 FROM tab0 AS cor0
----
-19
-78
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL MAX( 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL MAX ( 38 ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 * 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT IN ( + + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + COUNT( ALL - + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9901
SELECT + COUNT ( ALL - + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9902
SELECT col1 AS col2, col0 * - CAST( + 76 AS SIGNED ) FROM tab0
----
1
-7372
21
-6612
81
-1140

skipif mysql # not compatible
query II rowsort label-9902
SELECT col1 AS col2, col0 * - CAST ( + 76 AS INTEGER ) FROM tab0
----
1
-7372
21
-6612
81
-1140

query I rowsort
SELECT DISTINCT + ( + 77 ) AS col2 FROM tab0 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 21 = + ( + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 75 + 33 AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query III rowsort label-9906
SELECT ALL SUM( DISTINCT - col0 ) AS col0, COUNT( * ), + 87 col0 FROM tab0
----
-199
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9906
SELECT ALL SUM ( DISTINCT - col0 ) AS col0, COUNT ( * ), + 87 col0 FROM tab0
----
-199
3
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT MAX( + + 22 ) + + + COUNT( * ) + - MIN( + ( 71 ) ) AS col1 FROM tab1 cor0 WHERE 19 + + 89 * + - 71 / + col1 * col1 <= 60 + - 9
----
-46

skipif mysql # not compatible
query I rowsort label-9909
SELECT MAX ( + + 22 ) + + + COUNT ( * ) + - MIN ( + ( 71 ) ) AS col1 FROM tab1 cor0 WHERE 19 + + 89 * + - 71 / + col1 * col1 <= 60 + - 9
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT + COUNT( - col0 ), - COUNT( * ) + 41 AS col0 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-9910
SELECT + COUNT ( - col0 ), - COUNT ( * ) + 41 AS col0 FROM tab1 AS cor0
----
3
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + ( - - 80 ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + ( - - 80 ) * - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT - MAX( ALL col2 ) + + + 21 AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - MAX ( ALL col2 ) + + + 21 AS col0 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL COUNT( * ) - + 35 AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL COUNT ( * ) - + 35 AS col0 FROM tab0
----
-32

query I rowsort
SELECT - 31 FROM tab0 WHERE - ( - col0 ) IS NOT NULL
----
-31
-31
-31

query I rowsort
SELECT col2 * 41 - + col0 * - + 70 AS col1 FROM tab2
----
4163
6120
7628

query I rowsort
SELECT 33 - - col1 AS col0 FROM tab2
----
100
110
84

query I rowsort
SELECT ALL 97 - + col1 AS col2 FROM tab2
----
20
30
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 44 col0 FROM tab0
----
3564
44
924

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT DISTINCT - - col0 DIV 12 FROM tab2 AS cor0
----
3
5
6

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT - - col0 / 12 FROM tab2 AS cor0
----
3
5
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT ALL - - COUNT( * ) DIV - - 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - - COUNT ( * ) / - - 95 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT MIN( DISTINCT + - col0 ) * + 6 AS col1 FROM tab0 AS cor0
----
-582

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT MIN ( DISTINCT + - col0 ) * + 6 AS col1 FROM tab0 AS cor0
----
-582

query I rowsort
SELECT + - col2 * - + ( - 42 ) AS col0 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT - CAST( 88 AS SIGNED ) >= 83
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT - CAST ( 88 AS INTEGER ) >= 83
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT MAX( 18 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9925
SELECT MAX ( 18 ) FROM tab1
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * 50 - - 10 BETWEEN col2 AND - col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 17 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 43 * - 99 < ( NULL )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( col1 * 20 ) = ( NULL )
----

query I rowsort
SELECT + 15 FROM tab1 WHERE NOT ( col0 * col1 + 85 ) < + col2
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT MAX( + col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9931
SELECT MAX ( + col2 ) col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT + 63 - + 53 DIV 7 AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + 63 - + 53 / 7 AS col2 FROM tab0
----
56

query I rowsort
SELECT DISTINCT col0 / - col0 FROM tab1 WHERE ( NULL ) > ( + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT COUNT( * ) - COUNT( + 24 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9934
SELECT COUNT ( * ) - COUNT ( + 24 ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT + MAX( ALL + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT + MAX ( ALL + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + COUNT( * ) * 14 AS col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT + COUNT ( * ) * 14 AS col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

query I rowsort
SELECT + col0 * - col1 FROM tab2 WHERE NOT col2 / + col0 IS NULL
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + col1 * ( - 39 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 FROM tab1 WHERE col0 * ( - 71 ) BETWEEN ( - 24 ) AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 + - col2 AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 51 + col2 * + col0 col2 FROM tab1 WHERE NOT - col1 / + 67 NOT IN ( + ( + col0 ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 * col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab2 WHERE ( col1 * 23 - + col1 / 4 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - COUNT( * ) + - 44 AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9945
SELECT - COUNT ( * ) + - 44 AS col1 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + ( - COUNT( DISTINCT col1 ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9947
SELECT + ( - COUNT ( DISTINCT col1 ) ) col2 FROM tab1
----
-3

query I rowsort
SELECT ( col1 ) AS col0 FROM tab1 WHERE NOT NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( * ) * 50 AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-9949
SELECT COUNT ( * ) * 50 AS col0 FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT COUNT( * ) + 9 * 70 AS col0 FROM tab1
----
633

skipif mysql # not compatible
query I rowsort label-9950
SELECT COUNT ( * ) + 9 * 70 AS col0 FROM tab1
----
633

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE ( + col2 * - col1 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT ALL - 54 * - CAST( NULL AS SIGNED ) - 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - 54 * - CAST ( NULL AS INTEGER ) - 80 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab2 WHERE NULL <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab2 WHERE NULL <> + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 5 * 89 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9954
SELECT CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 5 * 89 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col1 + + 29 FROM tab2 cor0
----
-22
-38
-48

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL > ( + 67 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( - 20 - + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IN ( - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IN ( - 88 )
----
0

query I rowsort
SELECT + 37 + col2 AS col1 FROM tab1 AS cor0
----
105
133
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 61 * col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT col0 + + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT col0 + + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + 99 col2 FROM tab1 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT ALL - - 61 + + 68 FROM tab2 AS cor0
----
129
129
129

query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + 5 + col1 FROM tab2 AS cor0
----
56
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT - 7 + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - 7 + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 29 AS col2 FROM tab2
----
17
35
46

query I rowsort
SELECT ALL 94 - col1 FROM tab1
----
47
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT SUM( + + 93 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9970
SELECT SUM ( + + 93 ) FROM tab1
----
279

query III rowsort
SELECT * FROM tab0 WHERE ( 28 ) > + col0 + col2
----

query I rowsort
SELECT ALL - 94 - col1 FROM tab0
----
-115
-175
-95

query I rowsort
SELECT + 95 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT col2 - 91 * + col1 AS col0 FROM tab0
----
-1901
-7324
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT SUM( DISTINCT ( - 27 ) ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-9975
SELECT SUM ( DISTINCT ( - 27 ) ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT - MIN( - col0 ) AS col0 FROM tab0 WHERE 54 - col1 BETWEEN ( col2 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT - MIN ( - col0 ) AS col0 FROM tab0 WHERE 54 - col1 BETWEEN ( col2 ) AND ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col2 NOT BETWEEN - col0 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( + col1 ) * + 41 FROM tab0 AS cor0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - SUM( + 61 ) AS col1 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9979
SELECT - SUM ( + 61 ) AS col1 FROM tab2 AS cor0
----
-183

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 col0, col0 FROM tab0
----
65
15
65
87
65
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL col2 DIV + ( + col1 ) AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col2 / + ( + col1 ) AS col1 FROM tab1
----
1
11
6

query I rowsort
SELECT + ( + 11 ) FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT + CAST( NULL AS SIGNED ) + + 61 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9984
SELECT + CAST ( NULL AS INTEGER ) + + 61 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 92 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - col2 + - 50 ) IS NULL
----

query I rowsort
SELECT 38 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
38
38
38

onlyif mysql # DIV for integer division: 
query II rowsort label-9988
SELECT - col2, 15 + - col2 DIV - 97 AS col1 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

skipif mysql # not compatible
query II rowsort label-9988
SELECT - col2, 15 + - col2 / - 97 AS col1 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

query I rowsort
SELECT ALL + 31 * ( - - col2 ) AS col0 FROM tab2 AS cor0
----
1240
1798
713

query I rowsort
SELECT col1 * - - 30 * - col0 FROM tab2 AS cor0
----
-147840
-150750
-70380

query II rowsort
SELECT + + col2 AS col2, col1 + 40 + col1 * col0 AS col0 FROM tab0 AS cor0
----
10
1888
47
1336
99
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE - col0 * 95 + - 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * - + col2 + col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9995
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * - + col2 + col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 52 / + 31 + - col0 FROM tab1 AS cor0 WHERE NULL > - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9997
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9997
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - col1 ) + + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col2 * + - col0 + - 76 + - 38 * 2 FROM tab1
----
4744
4863
6036

