sqllogictest
Artifact Content
Not logged in

Artifact 3ceccd7f8e31cc03a59e2a6b152df147f0665fc1:


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 compatibl