hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT DISTINCT COUNT( + ( 30 ) ) + + ( + - 25 ) col0 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1
SELECT DISTINCT COUNT ( + ( 30 ) ) + + ( + - 25 ) col0 FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT ( + CAST( + SUM( + col2 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2
SELECT ( + CAST ( + SUM ( + col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
223

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 64 col2 FROM tab1 AS cor0
----
-32
-4
5

query I rowsort
SELECT DISTINCT col2 * col1 * + - col2 * + 73 AS col1 FROM tab2 AS cor0
----
-16453324
-1969467
-8993600

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 - - - col0 + + col1 * - 69 col1, + col1 AS col1, + - 34 AS col1 FROM tab2 AS cor0
----
9 values hashing to b2bca4f85632dc5ee1c75834b3813c34

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

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

query I rowsort
SELECT - 4 + + 14 * col0 AS col2 FROM tab2 AS cor0
----
1046
640
892

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL + 23 * MIN( + col2 ) FROM tab0
----
230

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + 23 * MIN ( + col2 ) FROM tab0
----
230

query I rowsort
SELECT DISTINCT - 84 + - col0 FROM tab2
----
-130
-148
-159

query I rowsort
SELECT + ( + col1 ) + - col2 - + col2 AS col2 FROM tab2
----
-3
-49
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 92 * + col0 >= + 59 * + col1 / + - col0 / - ( - - col0 ) - - + 50 + 79
----

query I rowsort
SELECT DISTINCT col0 * + col0 - 75 FROM tab2
----
2041
4021
5550

query I rowsort
SELECT ALL - + col0 * 18 FROM tab1 AS cor0
----
-1530
-1638
-918

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 35
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-17
SELECT DISTINCT - - ( + MIN( DISTINCT - col0 ) ) DIV - ( + 4 ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT - - ( + MIN ( DISTINCT - col0 ) ) / - ( + 4 ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
24
3

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT DISTINCT - col0 DIV + 31 AS col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - col0 / + 31 AS col0 FROM tab0 AS cor0
----
-2
-3
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-20
SELECT DISTINCT - CAST ( - MAX ( - col1 ) AS INTEGER ) col0 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT - COUNT( * ) * - 90 AS col0 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - COUNT ( * ) * - 90 AS col0 FROM tab1
----
270

query I rowsort
SELECT DISTINCT - 5 + + ( + 67 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 34 IS NULL
----
62

query I rowsort
SELECT 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 86 AS col0, 67 col1 FROM tab1 AS cor0
----
-86
67
-86
67
-86
67

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

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

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE + col1 <> + ( + col2 )
----
51
85
91

query II rowsort
SELECT ALL + - 6 AS col2, + col2 * - col2 FROM tab0 AS cor0
----
-6
-100
-6
-2209
-6
-9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-30
SELECT COUNT( * ) FROM tab1 WHERE NOT - + CAST( - 1 AS DECIMAL ) / - ( + col0 ) + - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-30
SELECT COUNT ( * ) FROM tab1 WHERE NOT - + CAST ( - 1 AS REAL ) / - ( + col0 ) + - - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL MIN( DISTINCT - + 89 ) AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL MIN ( DISTINCT - + 89 ) AS col0 FROM tab0
----
-89

query I rowsort
SELECT + col1 * 25 AS col0 FROM tab0
----
2025
25
525

query I rowsort
SELECT - - 23 FROM tab0 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT ALL 62 + + - col0 FROM tab1 cor0
----
-23
-29
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 45 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT DISTINCT col0 * 27, ( + - CAST( NULL AS SIGNED ) ) + col2 + + 64 AS col0 FROM tab2 AS cor0
----
1242
NULL
1728
NULL
2025
NULL

skipif mysql # not compatible
query II rowsort label-37
SELECT DISTINCT col0 * 27, ( + - CAST ( NULL AS INTEGER ) ) + col2 + + 64 AS col0 FROM tab2 AS cor0
----
1242
NULL
1728
NULL
2025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT MIN( 5 ) + 95 + + - 64 + - COUNT( * ) - COUNT( + - col2 ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-38
SELECT MIN ( 5 ) + 95 + + - 64 + - COUNT ( * ) - COUNT ( + - col2 ) AS col1 FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT col1 + + CAST( + 89 AS SIGNED ) + - - col2 FROM tab2
----
163
206
214

skipif mysql # not compatible
query I rowsort label-39
SELECT col1 + + CAST ( + 89 AS INTEGER ) + - - col2 FROM tab2
----
163
206
214

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL + 84 + COUNT( * ) * - 57 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL + 84 + COUNT ( * ) * - 57 AS col2 FROM tab1
----
-87

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

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

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

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

query I rowsort
SELECT ALL + col1 - col2 * + col2 FROM tab2 AS cor0
----
-1523
-3297
-478

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

query I rowsort
SELECT + col2 + - 39 AS col2 FROM tab2 AS cor0 WHERE 56 * - ( col2 ) * col1 IS NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 79 AND + + 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-48
SELECT - - COUNT( * ) AS col2, COUNT( * ) col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-48
SELECT - - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT col0 - + 95 FROM tab0 AS cor0
----
-8
-80
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + + 21 * ( + ( + + COUNT( * ) ) ) + 40 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-51
SELECT + + 21 * ( + ( + + COUNT ( * ) ) ) + 40 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-52
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * - - ( + CAST( NULL AS SIGNED ) ) = 28 * col1 * + - col2 * - + col1
----

skipif mysql # not compatible
query III rowsort label-52
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * - - ( + CAST ( NULL AS INTEGER ) ) = 28 * col1 * + - col2 * - + col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 39 col1 FROM tab2
----
1989
2613
3003

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + ( - col1 ) * + 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 + - 62 * - col2 * col1 col2 FROM tab0
----
-10
13041
-47
236115
-99
6139

onlyif mysql # DIV for integer division: 
query II rowsort label-59
SELECT ALL - + col0 DIV + col1 + - - col0, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
74
75

skipif mysql # not compatible
query II rowsort label-59
SELECT ALL - + col0 / + col1 + - - col0, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
74
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + COUNT( * ) * + SUM( - col2 ) / + AVG ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT - 93 DIV - col0 + - col2 + + 74 AS col2 FROM tab1 AS cor0
----
-21
16
7

skipif mysql # not compatible
query I rowsort label-64
SELECT - 93 / - col0 + - col2 + + 74 AS col2 FROM tab1 AS cor0
----
-21
16
7

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

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

query I rowsort
SELECT ALL col2 * - ( + 49 ) * - + col2 AS col2 FROM tab1 AS cor0
----
170569
226576
451584

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

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

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

query I rowsort
SELECT DISTINCT - ( - + col1 ) + col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-71
SELECT + 12 col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) * - col1 < col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-71
SELECT + 12 col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) * - col1 < col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-72
SELECT DISTINCT CAST( + - col1 AS SIGNED ) + 71 DIV 4 * - + 64 FROM tab1
----
-1093
-1102
-1135

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) + 71 / 4 * - + 64 FROM tab1
----
-1093
-1102
-1135

query I rowsort
SELECT ALL col0 * + 3 AS col0 FROM tab0 WHERE ( + col1 ) * - ( + col1 ) - col1 / - col0 + - col2 * - col1 IS NOT NULL
----
261
291
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 * - 88 + - - col2 col0 FROM tab2 AS cor0
----
-7158
-7176
-7193

query I rowsort
SELECT + 10 + - + 14 - - col2 + - 24 FROM tab2 AS cor0
----
-5
12
30

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - + 51 - - COUNT( * ) - 68 FROM tab1 cor0
----
-116

skipif mysql # not compatible
query I rowsort label-78
SELECT - + 51 - - COUNT ( * ) - 68 FROM tab1 cor0
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT - ( - - col0 ) * + col2 * - + CAST( + - col0 AS SIGNED ) + 24 + - - 43 AS col1 FROM tab1 AS cor0
----
-249629
-426208
-563041

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - ( - - col0 ) * + col2 * - + CAST ( + - col0 AS INTEGER ) + 24 + - - 43 AS col1 FROM tab1 AS cor0
----
-249629
-426208
-563041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT - + col2 * - col1 * - 35 / - CAST( NULL AS SIGNED ) * + ( + - col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 * + col2 NOT IN ( - col1 + - 92 * - + col0 + + 63, - col2 / + 77, - - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT - + col2 * - col1 * - 35 / - CAST ( NULL AS INTEGER ) * + ( + - col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 * + col2 NOT IN ( - col1 + - 92 * - + col0 + + 63, - col2 / + 77, - - col1 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL + col2 + + 51 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - col0 * CAST( NULL AS SIGNED ) * + + col0 BETWEEN - ( + 83 ) AND ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + col2 + + 51 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - col0 * CAST ( NULL AS INTEGER ) * + + col0 BETWEEN - ( + 83 ) AND ( NULL ) )
----

query I rowsort
SELECT ALL + col1 + 10 AS col1 FROM tab0 AS cor0
----
11
31
91

query I rowsort
SELECT ALL - 2 - + + col0 AS col0 FROM tab1 cor0
----
-53
-87
-93

query I rowsort
SELECT 78 * - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1170
-6786
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL + 21 DIV + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + 21 / + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL NOT BETWEEN - ( - 51 ) AND - + 84 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + 59 * COUNT( + ( - - col2 ) ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-87
SELECT + 59 * COUNT ( + ( - - col2 ) ) FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT CAST( 93 AS SIGNED ) AS col0 FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-88
SELECT CAST ( 93 AS INTEGER ) AS col0 FROM tab0
----
93
93
93

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 * ( + - col2 ) AS col2 FROM tab1
----
125375
13669292
959616

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-92
SELECT ( + col0 ) DIV col2 AS col0, col1 FROM tab1
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-92
SELECT ( + col0 ) / col2 AS col0, col1 FROM tab1
----
0
14
1
47
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - MIN( + ( - col2 ) ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-93
SELECT - MIN ( + ( - col2 ) ) col0 FROM tab0
----
99

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT DISTINCT + 25 * 86 + - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
2147

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT + 25 * 86 + - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
2147

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-100
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL - MAX( ALL + 58 ) * - + 62 AS col1 FROM tab2 AS cor0
----
3596

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - MAX ( ALL + 58 ) * - + 62 AS col1 FROM tab2 AS cor0
----
3596

query I rowsort
SELECT + col0 * + col2 + + 53 AS col0 FROM tab2 AS cor0
----
1111
2613
4403

query I rowsort
SELECT DISTINCT col0 * - 46 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT COUNT( * ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-104
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-9

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

query I rowsort
SELECT DISTINCT - 14 + + col2 * col1 + - + 15 FROM tab0
----
181
3778
70

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

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

query I rowsort
SELECT ALL - col0 + + col0 + 82 + - - 46 AS col2 FROM tab0
----
128
128
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT + 78 * + CAST( 36 AS SIGNED ) FROM tab0
----
2808
2808
2808

skipif mysql # not compatible
query I rowsort label-109
SELECT + 78 * + CAST ( 36 AS INTEGER ) FROM tab0
----
2808
2808
2808

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

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

query I rowsort
SELECT ALL + col0 - - - col2 AS col2 FROM tab1 WHERE + 60 NOT BETWEEN + col2 AND + + 11
----
-45
23
26

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab1 AS cor0
----
-37
-44
-80

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

onlyif mysql # DIV for integer division: 
query II rowsort label-115
SELECT DISTINCT - col2 + - 97 - 33 * 56 * - - col0 col0, 73 DIV - - col2 FROM tab2 AS cor0
----
-118409
1
-138755
1
-85128
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-115
SELECT DISTINCT - col2 + - 97 - 33 * 56 * - - col0 col0, 73 / - - col2 FROM tab2 AS cor0
----
-118409
1
-138755
1
-85128
3

query I rowsort
SELECT 85 + col1 AS col2 FROM tab0 AS cor0
----
106
166
86

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

query I rowsort
SELECT DISTINCT 44 + + 75 AS col1 FROM tab1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT + MAX( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT + MAX ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
NULL

query I rowsort
SELECT ALL + 25 - 79 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + ( ( - - 86 ) ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 42 AS col0 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE + - col2 * + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 12, col2, col0, - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-129
SELECT col2 DIV col1, col1 * col2 AS col1 FROM tab2
----
0
1173
0
3080
0
3886

skipif mysql # not compatible
query II rowsort label-129
SELECT col2 / col1, col1 * col2 AS col1 FROM tab2
----
0
1173
0
3080
0
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT CAST( + - 23 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-130
SELECT CAST ( + - 23 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-23
-23

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

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

query II rowsort
SELECT ALL col1 * - 43 * - col2 AS col0, - col2 AS col1 FROM tab1
----
12685
-59
137428
-68
57792
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 >= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 57 + + + col2 * + + 59 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-135
SELECT DISTINCT col1 AS col0, + col1 DIV - col0 + + - 30 + - + ( - 88 ) AS col0 FROM tab0 AS cor0
----
1
58
21
58
81
53

skipif mysql # not compatible
query II rowsort label-135
SELECT DISTINCT col1 AS col0, + col1 / - col0 + + - 30 + - + ( - 88 ) AS col0 FROM tab0 AS cor0
----
1
58
21
58
81
53

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT 53 * + - MIN( + col1 ) FROM tab1 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-138
SELECT 53 * + - MIN ( + col1 ) FROM tab1 AS cor0
----
-265

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-139
SELECT - 33 * + CAST( NULL AS DECIMAL ) / - AVG ( ALL 35 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - 33 * + CAST ( NULL AS REAL ) / - AVG ( ALL 35 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 41 + 91 AS col0 FROM tab0
----
132
132
132

onlyif mysql # DIV for integer division: 
query II rowsort label-142
SELECT DISTINCT - 78 DIV + col2 AS col1, + ( + col1 ) * + col1 * + - 24 * - 87 AS col2 FROM tab1 AS cor0
----
-1
4612392
-1
52200
0
409248

skipif mysql # not compatible
query II rowsort label-142
SELECT DISTINCT - 78 / + col2 AS col1, + ( + col1 ) * + col1 * + - 24 * - 87 AS col2 FROM tab1 AS cor0
----
-1
4612392
-1
52200
0
409248

query I rowsort
SELECT - 36 * - + col1 - col2 AS col2 FROM tab0
----
-63
2869
746

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - + SUM( - 86 ) FROM tab0 cor0
----
258

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - + SUM ( - 86 ) FROM tab0 cor0
----
258

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

query I rowsort
SELECT ( + 15 ) * col0 AS col1 FROM tab1
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT + COUNT( * ) AS col1, 54 - - 31 AS col2 FROM tab0
----
3
85

skipif mysql # not compatible
query II rowsort label-150
SELECT + COUNT ( * ) AS col1, 54 - - 31 AS col2 FROM tab0
----
3
85

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

query II rowsort
SELECT ALL + 75 AS col1, 46 AS col2 FROM tab2
----
75
46
75
46
75
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30, 12 col1 FROM tab0
----
30
12
30
12
30
12

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + COUNT( + col1 ) * + 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-154
SELECT + COUNT ( + col1 ) * + 87 FROM tab2
----
261

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

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 AS cor0 WHERE - 89 IS NOT NULL
----
-51
-85
-91

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT - MIN( col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-160
SELECT - MIN ( col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - 14 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-161
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - 14 IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + 48 + + col1 FROM tab1
----
53
62
95

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab0, tab0 AS cor0
----
-20

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( + 84 )
----

query I rowsort
SELECT ALL + 94 + - 86 + + - 71 * + 41 AS col1 FROM tab1 cor0
----
-2903
-2903
-2903

query I rowsort
SELECT DISTINCT - - 59 * + - col1 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
-1077930
-3369195
-566577

query I rowsort
SELECT ALL col0 * + - 37 FROM tab0 AS cor0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT + 35 * + - 33 * - - 57 AS col0 FROM tab2 AS cor0
----
-65835

query I rowsort
SELECT ALL - - ( + col1 ) * - + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - + 73 AS col0 FROM tab2 AS cor0
----
-73

query II rowsort
SELECT - ( - + col1 ) * - col0 + - 75, col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT + 38 DIV + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-172
SELECT + 38 / + COUNT ( * ) FROM tab1
----
12

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

query I rowsort
SELECT 49 * - col1 FROM tab1
----
-2303
-245
-686

query II rowsort
SELECT + col1 AS col2, - ( + 58 ) FROM tab2
----
51
-58
67
-58
77
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col2 * - 90 + - col2 < + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15, - col1 col1 FROM tab2
----
15
-51
15
-67
15
-77

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

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

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - col0 * col1 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT 28 DIV - + col0 - + col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-180
SELECT 28 / - + col0 - + col0 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col2 - + 93 * + + 31 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 98 col2, + 0 + + - col2 FROM tab2 AS cor0 WHERE + 19 + + 53 <= + 18 / + - 4
----

query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( 23 ) > col2 * + 48 * - - 60 * - 16 + 60
----

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 97 / + col1 + + 81 * - + 4 / col0 + + - col0 + - - 76 * col1 col2, + 99 FROM tab2 WHERE NOT - 64 * - - 83 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - 0 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 85 * + + col0 * + 55 FROM tab1 AS cor0
----
238425
397375
425425

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-190
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / col2 * - 25 NOT IN ( - 25, - 27, col0 )
----

skipif mysql # not compatible
query III rowsort label-190
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col2 * - 25 NOT IN ( - 25, - 27, col0 )
----

query I rowsort
SELECT + 37 FROM tab1 cor0 WHERE NOT + 34 * + col1 * + col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT 83 * + COUNT( * ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-194
SELECT 83 * + COUNT ( * ) AS col0 FROM tab2
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col1 * + 33 * col2 col2 FROM tab2
----
-1780614
-6504960
-9617850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT ALL + CAST( + 36 AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + CAST ( + 36 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT + col1 + + 19 + - col1 * col2 FROM tab1 cor0
----
-1311
-271
-3130

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

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

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

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

query I rowsort
SELECT ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-203
SELECT col0 * - 24 * + - col0 AS col1 FROM tab2 AS cor0 WHERE + col1 / - CAST( NULL AS DECIMAL ) + + col2 IS NULL
----
135000
50784
98304

skipif mysql # not compatible
query I rowsort label-203
SELECT col0 * - 24 * + - col0 AS col1 FROM tab2 AS cor0 WHERE + col1 / - CAST ( NULL AS REAL ) + + col2 IS NULL
----
135000
50784
98304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + - 71 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + - 71 FROM tab2 AS cor0
----
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL - SUM( 14 ) + + 28 + 76 AS col1 FROM tab1 AS cor0 WHERE NOT - 52 * 54 + - 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - SUM ( 14 ) + + 28 + 76 AS col1 FROM tab1 AS cor0 WHERE NOT - 52 * 54 + - 94 IS NOT NULL
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL + - ( 68 ) FROM tab0 cor0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 70, 60 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 19 > NULL
----

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-215
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MIN( + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-216
SELECT MIN ( + 76 ) FROM tab0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT COUNT( - 42 ) DIV - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( - 42 ) / - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-1

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

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

query II rowsort
SELECT ALL 26 - + col0 AS col0, + 24 FROM tab0 AS cor0
----
-61
24
-71
24
11
24

query II rowsort
SELECT DISTINCT - 62 - - - 80 AS col0, 49 FROM tab0 AS cor0
----
-142
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT DISTINCT - col0 DIV + 86 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - col0 / + 86 AS col0 FROM tab2 cor0
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-224
SELECT COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + MAX( DISTINCT - col1 ) FROM tab0 WHERE NOT ( NOT ( col0 * + ( + col2 ) + - col1 / - col1 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT + MAX ( DISTINCT - col1 ) FROM tab0 WHERE NOT ( NOT ( col0 * + ( + col2 ) + - col1 / - col1 IS NULL ) )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT ALL - col2 DIV + col1 + + ( + col1 ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - col2 / + col1 + + ( + col1 ) FROM tab2 AS cor0
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-231
SELECT + 72 / col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * + + col0 col2 FROM tab0 AS cor0
----
1140
6612
7372

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

query I rowsort
SELECT 26 * col2 AS col2 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query II rowsort label-235
SELECT ALL 65, - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
65
-81

skipif mysql # not compatible
query II rowsort label-235
SELECT ALL 65, - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
65
-81

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

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

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

query I rowsort
SELECT 44 * + - ( - - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
3828
4268
660

query I rowsort
SELECT col1 * - + 3 FROM tab1
----
-141
-15
-42

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT - col0 * - col2 + + + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT DISTINCT COUNT( * ), - COUNT( * ) * 34 * - 27 AS col2 FROM tab0 WHERE NOT 5 * + + col2 + + 39 >= col1
----
0
0

skipif mysql # not compatible
query II rowsort label-241
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) * 34 * - 27 AS col2 FROM tab0 WHERE NOT 5 * + + col2 + + 39 >= col1
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT ALL - + 93 DIV + 51 - + - col0 FROM tab0 cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - + 93 / + 51 - + - col0 FROM tab0 cor0
----
14
86
96

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

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

query I rowsort
SELECT DISTINCT 40 * + + 92 AS col0 FROM tab2
----
3680

query I rowsort
SELECT ALL + + col1 + + + ( + 64 ) FROM tab1 AS cor0
----
111
69
78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-246
SELECT * FROM tab0 AS cor0 WHERE 51 / + ( - CAST( - - 79 AS DECIMAL ) ) - - 47 IS NULL
----

skipif mysql # not compatible
query III rowsort label-246
SELECT * FROM tab0 AS cor0 WHERE 51 / + ( - CAST ( - - 79 AS REAL ) ) - - 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 54 ) NOT BETWEEN + col1 + + - 26 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 54 ) NOT BETWEEN + col1 + + - 26 AND NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + - 65 - + col0 FROM tab2 cor0
----
-111
-129
-140

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-250
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2, col0 * 89 + - + col0 FROM tab0
----
10
7656
47
1320
99
8536

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT - COUNT( * ) - - 30 col1, - MIN( DISTINCT + col1 ) FROM tab0
----
27
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-252
SELECT - COUNT ( * ) - - 30 col1, - MIN ( DISTINCT + col1 ) FROM tab0
----
27
-1

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 < - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 27 * col0 col2 FROM tab2 AS cor0
----
133056
135675
63342

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - 45 * COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-258
SELECT - 45 * COUNT ( * ) FROM tab1 AS cor0
----
-135

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-260
SELECT + + CAST( - ( + SUM( + col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-260
SELECT + + CAST ( - ( + SUM ( + col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-195

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT ALL + 26 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL + 26 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= col0
----

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

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

query I rowsort
SELECT - ( 66 ) AS col0 FROM tab1 cor0
----
-66
-66
-66

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

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

query I rowsort
SELECT ALL col1 * - 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL - CAST( NULL AS SIGNED ) * - - 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 4 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - ( - COUNT ( ALL - CAST ( + - 98 AS INTEGER ) ) ) + - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT - ( - col0 ) + ( 99 ) AS col0 FROM tab0
----
114
186
196

query I rowsort
SELECT + 69 + - 6 - col0 AS col0 FROM tab1
----
-22
-28
12

query I rowsort
SELECT DISTINCT col0 * + col1 - - + col0 AS col2 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT + - COUNT( * ) + - + 73, 14 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-82
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-273
SELECT + - COUNT ( * ) + - + 73, 14 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-82
14

query I rowsort
SELECT ALL - + 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL COUNT ( * ) + ( - + 42 ) FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT SUM( - 73 ) AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-276
SELECT SUM ( - 73 ) AS col1 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT - 37 + - + SUM( ALL + 52 ) FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - 37 + - + SUM ( ALL + 52 ) FROM tab0 AS cor0
----
-193

onlyif mysql # aggregate syntax: 
query II rowsort label-278
SELECT 68 - - COUNT( * ), + 5 AS col0 FROM tab0 AS cor0
----
71
5

skipif mysql # not compatible
query II rowsort label-278
SELECT 68 - - COUNT ( * ), + 5 AS col0 FROM tab0 AS cor0
----
71
5

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

query I rowsort
SELECT DISTINCT 22 - - 1 AS col2 FROM tab2
----
23

query II rowsort
SELECT + 75 + - ( + 85 ), col0 AS col2 FROM tab0
----
-10
15
-10
87
-10
97

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - MAX( ALL + - col2 ) + - COUNT( DISTINCT + 80 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-282
SELECT - MAX ( ALL + - col2 ) + - COUNT ( DISTINCT + 80 ) FROM tab2
----
22

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT DISTINCT - COUNT( * ) AS col0, - ( COUNT( * ) ) + + 7 * MIN( DISTINCT + + 78 ) FROM tab0
----
-3
543

skipif mysql # not compatible
query II rowsort label-284
SELECT DISTINCT - COUNT ( * ) AS col0, - ( COUNT ( * ) ) + + 7 * MIN ( DISTINCT + + 78 ) FROM tab0
----
-3
543

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

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

query II rowsort
SELECT - col1 AS col0, 42 * - col2 * col0 + + 17 FROM tab2
----
-51
-44419
-67
-182683
-77
-107503

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

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

query I rowsort
SELECT + col2 * - 76 FROM tab1
----
-4484
-5168
-7296

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-293
SELECT ALL COUNT( * ) AS col0, COUNT( * ) DIV - 64 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-293
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) / - 64 FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT - COUNT( * ) * - + MAX( DISTINCT - + col2 ) * COUNT( * ) AS col1 FROM tab2 WHERE - + 78 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT - COUNT ( * ) * - + MAX ( DISTINCT - + col2 ) * COUNT ( * ) AS col1 FROM tab2 WHERE - + 78 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 78 + 41 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1835
3161
4565

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 * 74 + - col2, - col1, - + col0, 94 * - 83, 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 4 * col1 * - col0 col1 FROM tab2
----
1261568
1507500
431664

query I rowsort
SELECT + - col2 * - col1 * - + 27 AS col1 FROM tab2 AS cor0
----
-104922
-31671
-83160

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 < - col2 / + col2 + + 45
----
-1
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL - 4 * CAST( + - col0 AS SIGNED ) + - col2 FROM tab2 cor0
----
161
216
242

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - 4 * CAST ( + - col0 AS INTEGER ) + - col2 FROM tab2 cor0
----
161
216
242

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

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

skipif mysql # not compatible
query I rowsort label-302
SELECT + COUNT ( * ) / + 63 + + 2 AS col0 FROM tab2 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * - - col2 col0 FROM tab2 cor0
----
1400
2030
805

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 66, + 69 )
----

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT ALL + - 57 * + col2 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT SUM( + ( + - 16 ) ) AS col0 FROM tab0, tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-311
SELECT SUM ( + ( + - 16 ) ) AS col0 FROM tab0, tab1 AS cor0
----
-144

query I rowsort
SELECT DISTINCT + ( + 57 ) * + + 46 - + + col0 AS col1 FROM tab2 cor0
----
2547
2558
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT - COUNT( * ) + - 15 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-313
SELECT - COUNT ( * ) + - 15 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT + COUNT( DISTINCT 19 ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT + COUNT ( DISTINCT 19 ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
4

query I rowsort
SELECT + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - 91 - - + 36 + - 1 + + - 16 * 19 + - - 95 + ( ( - COUNT( ALL - + col0 ) ) ) col2 FROM tab1 AS cor0
----
-268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-316
SELECT DISTINCT - 91 - - + 36 + - 1 + + - 16 * 19 + - - 95 + ( ( - COUNT ( ALL - + col0 ) ) ) col2 FROM tab1 AS cor0
----
-268

query I rowsort
SELECT - ( - col1 ) - 52 AS col0 FROM tab1 AS cor0
----
-38
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * + col2 * 90 col2 FROM tab2
----
153180
266400
386280

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL 17 DIV + 33 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL 17 / + 33 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT COUNT( * ) * + 73 * 59 AS col2 FROM tab2
----
12921

skipif mysql # not compatible
query I rowsort label-320
SELECT COUNT ( * ) * + 73 * 59 AS col2 FROM tab2
----
12921

query I rowsort
SELECT ALL + 41 AS col1 FROM tab1
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * col2 * - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + - col1 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-324
SELECT - + CAST( + col1 AS DECIMAL ), ( col1 ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

skipif mysql # not compatible
query II rowsort label-324
SELECT - + CAST ( + col1 AS REAL ), ( col1 ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT DISTINCT - 36 * + + col0 + - col1 DIV col2 FROM tab1 AS cor0
----
-1836
-3060
-3276

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - 36 * + + col0 + - col1 / col2 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT 14 * - COUNT( - + 41 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-326
SELECT 14 * - COUNT ( - + 41 ) FROM tab0 AS cor0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT - + COUNT( * ) * 33 * - 8 FROM tab1 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-328
SELECT - + COUNT ( * ) * 33 * - 8 FROM tab1 AS cor0
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-329
SELECT ALL + CAST( NULL AS SIGNED ), + 8 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to 292372d7aba7d4ff93ea67b304f5cb67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-329
SELECT ALL + CAST ( NULL AS INTEGER ), + 8 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to 292372d7aba7d4ff93ea67b304f5cb67

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query I rowsort
SELECT 2 * - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> + 57
----

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

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

query I rowsort
SELECT ALL col0 * + - ( - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col1 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT + 90 * + col0 + + 54 AS col1 FROM tab1 AS cor0
----
4644
7704
8244

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

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

query I rowsort
SELECT ALL + - 76 FROM tab2 cor0
----
-76
-76
-76

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

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 56 + + - ( + + 92 ) + - col0 FROM tab1
----
-121
-127
-87

query I rowsort
SELECT col0 + + 10 FROM tab0
----
107
25
97

query I rowsort
SELECT + 56 + - 12 + + - 94 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 NOT BETWEEN + col0 * + col0 + col1 + - 69 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - ( 71 ) FROM tab2
----
-71

query I rowsort
SELECT ALL + col0 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
69
88
92

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IS NOT NULL AND col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-349
SELECT ALL - + 30 DIV COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL - + 30 / COUNT ( * ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL 67 * + - col2 + + col1 FROM tab0 AS cor0
----
-3068
-649
-6632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE NOT 65 + - - 83 * - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-351
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE NOT 65 + - - 83 * - CAST ( NULL AS INTEGER ) IS NULL
----
0

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

query II rowsort
SELECT DISTINCT col0, 1 + 61 FROM tab1
----
51
62
85
62
91
62

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

query I rowsort
SELECT - col0 * + col0 * + col1 AS col2 FROM tab1
----
-36125
-36414
-389207

query II rowsort
SELECT 50 AS col0, + 22 * col1 AS col1 FROM tab0
----
50
1782
50
22
50
462

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT MAX( ALL - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT MAX ( ALL - col1 ) AS col2 FROM tab1
----
-5

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

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

query I rowsort
SELECT DISTINCT - 88 * - col0 AS col2 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL 30 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT - col0 + 12 * 2 FROM tab1
----
-27
-61
-67

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT 15 - col1 * col0 AS col2 FROM tab1
----
-410
-4262
-699

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

query I rowsort
SELECT ALL - ( - 51 ) * 17 FROM tab2
----
867
867
867

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ( + SUM( DISTINCT col0 ) ) * 2 AS col0 FROM tab2
----
370

skipif mysql # not compatible
query I rowsort label-369
SELECT ( + SUM ( DISTINCT col0 ) ) * 2 AS col0 FROM tab2
----
370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT CAST( + col2 AS SIGNED ) * - col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-370
SELECT CAST ( + col2 AS INTEGER ) * - col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT - col2 DIV - 26 + col1 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
17
49
7

skipif mysql # not compatible
query I rowsort label-371
SELECT - col2 / - 26 + col1 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
17
49
7

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

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

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

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

query I rowsort
SELECT ALL + col1 + + 75 FROM tab0
----
156
76
96

query I rowsort
SELECT ALL col2 * col2 + + 95 FROM tab2
----
1695
3459
624

query I rowsort
SELECT - 94 * 24 FROM tab1
----
-2256
-2256
-2256

query I rowsort
SELECT ALL - 81 AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-379
SELECT ALL * FROM tab1 WHERE 16 NOT BETWEEN + CAST( NULL AS SIGNED ) * + col1 AND - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-379
SELECT ALL * FROM tab1 WHERE 16 NOT BETWEEN + CAST ( NULL AS INTEGER ) * + col1 AND - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL + col1 * - 11 AS col2 FROM tab1
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + MIN( 16 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-383
SELECT + MIN ( 16 ) AS col2 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL COUNT( * ) * 52 AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL COUNT ( * ) * 52 AS col0 FROM tab0
----
156

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) BETWEEN col0 AND 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT ALL + col2 - 11 DIV col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + col2 - 11 / col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - COUNT( * ) * 92 AS col1 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - COUNT ( * ) * 92 AS col1 FROM tab1 AS cor0
----
-276

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT CAST( + COUNT( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-398
SELECT CAST ( + COUNT ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + SUM( DISTINCT - 20 ) FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-400
SELECT + SUM ( DISTINCT - 20 ) FROM tab2 cor0
----
-20

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT col1 * - 68 * col0 FROM tab1
----
-28900
-290836
-48552

query I rowsort
SELECT ALL - 2 * - col2 AS col1 FROM tab2
----
116
46
80

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT ALL + + col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + + col0 / + col0 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT + 5 DIV - - 11 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-411
SELECT + 5 / - - 11 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT - - COUNT( * ) * MAX( ALL col0 ) * 24 + 11 + + 77 FROM tab2 AS cor0
----
5488

skipif mysql # not compatible
query I rowsort label-412
SELECT - - COUNT ( * ) * MAX ( ALL col0 ) * 24 + 11 + + 77 FROM tab2 AS cor0
----
5488

query I rowsort
SELECT + - 73 + - 42 FROM tab2 cor0
----
-115
-115
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-414
SELECT ALL - + 63 DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

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

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

query I rowsort
SELECT 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-419
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( 30 AS SIGNED ) <= - 79
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-419
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( 30 AS INTEGER ) <= - 79
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col0 col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - COUNT( * ) + + + 55 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - COUNT ( * ) + + + 55 FROM tab2 AS cor0
----
52

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

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

query I rowsort
SELECT - col2 * + + 83 * + col1 FROM tab2 AS cor0
----
-255640
-322538
-97359

query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 + + 99 AS col1 FROM tab1 AS cor0
----
-326
-4178
-615

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 56 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT CAST( + COUNT( ALL col2 ) AS SIGNED ) * MAX( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-426
SELECT CAST ( + COUNT ( ALL col2 ) AS INTEGER ) * MAX ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
231

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

query I rowsort
SELECT 11 * - - col1 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
11
4851
72171

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL OR NOT NULL = col0
----

query II rowsort
SELECT DISTINCT + 82, - col1 + 98 - - col1 AS col2 FROM tab2 AS cor0
----
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT SUM( 26 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT SUM ( 26 ) AS col1 FROM tab0
----
78

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

query I rowsort
SELECT ALL 24 FROM tab2 WHERE NULL IS NULL AND NOT - 72 - 24 <> + 96 + col2 * + col0
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-438
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT - - ( - 87 ) = ( col0 * col1 - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT - - ( - 87 ) = ( col0 * col1 - - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT 31 + - COUNT( * ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT 31 + - COUNT ( * ) AS col1 FROM tab1
----
28

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

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

query II rowsort
SELECT col0 + + col1 AS col0, col1 AS col1 FROM tab2
----
141
77
142
67
97
51

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

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

query I rowsort
SELECT DISTINCT - ( + - col1 ) * - 6 * col2 - + col1 + col2 AS col2 FROM tab0 AS cor0
----
-1271
-22876
-496

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab2 AS cor0 WHERE ( col1 - + col1 / - 50 + + 76 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - SUM( ALL 43 ) + - COUNT( * ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - SUM ( ALL 43 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-448
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) BETWEEN NULL AND ( - 39 )
----

skipif mysql # not compatible
query III rowsort label-448
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) BETWEEN NULL AND ( - 39 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-449
SELECT ALL + - COUNT( * ) - 88, 78 DIV - 93 AS col1 FROM tab0 AS cor0
----
-91
0

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL + - COUNT ( * ) - 88, 78 / - 93 AS col1 FROM tab0 AS cor0
----
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT + ( 68 ) - + - COUNT( * ) col1 FROM tab2 cor0
----
71

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT + COUNT( * ) * - 27 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / + col1 = + - col2 / col2
----
0

skipif mysql # not compatible
query I rowsort label-451
SELECT + COUNT ( * ) * - 27 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / + col1 = + - col2 / col2
----
0

query I rowsort
SELECT DISTINCT 48 * - col0 FROM tab0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-453
SELECT SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - 38 * - 88 * ( - col1 ) FROM tab0
----
-270864
-3344
-70224

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT + SUM( ALL col1 ) * - COUNT( * ) + + 52 AS col2 FROM tab0 WHERE NOT - + col1 NOT BETWEEN - 53 * - + 12 * - col2 - + col2 * ( col2 ) AND + col2 + 57 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT + SUM ( ALL col1 ) * - COUNT ( * ) + + 52 AS col2 FROM tab0 WHERE NOT - + col1 NOT BETWEEN - 53 * - + 12 * - col2 - + col2 * ( col2 ) AND + col2 + 57 * - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT ( + ( - + 58 ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-456
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT ( + ( - + 58 ) ) IS NOT NULL
----

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT - 86 FROM tab1 AS cor0 WHERE NOT + 47 * - - 78 IS NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT - SUM( + + 44 ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - SUM ( + + 44 ) FROM tab1 AS cor0
----
-132

query II rowsort
SELECT - 97 AS col1, col0 FROM tab1 AS cor0
----
-97
51
-97
85
-97
91

query II rowsort
SELECT DISTINCT 38, 25 AS col0 FROM tab1
----
38
25

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT COUNT( * ), COUNT( * ) * - SUM( ( col0 ) ) AS col0 FROM tab2
----
3
-555

skipif mysql # not compatible
query II rowsort label-465
SELECT COUNT ( * ), COUNT ( * ) * - SUM ( ( col0 ) ) AS col0 FROM tab2
----
3
-555

query I rowsort
SELECT + 2 * + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-467
SELECT DISTINCT CAST( NULL AS SIGNED ), + 68 AS col1 FROM tab2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-467
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 68 AS col1 FROM tab2
----
NULL
68

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( col0 / + 83 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 * + col0 * + + ( - + col2 ) AS col2, + 58 + + 83 col0 FROM tab0
----
-10575
141
-13050
141
-144045
141

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT ALL - - 16 + + 16 DIV - + 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - - 16 + + 16 / - + 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( 73 ) * - - 86 col2 FROM tab1 AS cor0
----
6278
6278
6278

query I rowsort
SELECT ALL - - col2 + + 10 FROM tab2 AS cor0
----
33
50
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col0 * + 42 FROM tab1 AS cor0
----
17850
179634
29988

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col0 * + 42 FROM tab1 AS cor0
----
17850
179634
29988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-477
SELECT ALL - 95 * + col2, CAST( NULL AS SIGNED ) * + 90 AS col0 FROM tab1 AS cor0 WHERE col2 < - + col1
----

skipif mysql # not compatible
query II rowsort label-477
SELECT ALL - 95 * + col2, CAST ( NULL AS INTEGER ) * + 90 AS col0 FROM tab1 AS cor0 WHERE col2 < - + col1
----

query I rowsort
SELECT ALL - ( - col1 ) FROM tab0 AS cor0 WHERE NOT 83 + - 23 + - 9 + - col0 * - - col2 / col1 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL > 38 - - + 70 * + col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - COUNT( * ) * + - SUM( + col2 ) AS col2 FROM tab2
----
363

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

query III rowsort
SELECT * FROM tab0 WHERE ( 19 ) > + ( col2 )
----
87
21
10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + 82 + + MAX( - + col2 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + 82 + + MAX ( - + col2 ) FROM tab2
----
59

query III rowsort
SELECT * FROM tab2 WHERE + 36 IN ( - col2 * + 23 * - col0 )
----

query II rowsort
SELECT + col0 AS col2, col1 FROM tab0 WHERE NULL IS NULL
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT ALL + ( - ( col1 ) ) + CAST( - + 23 AS SIGNED ) FROM tab0 AS cor0
----
-104
-24
-44

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + ( - ( col1 ) ) + CAST ( - + 23 AS INTEGER ) FROM tab0 AS cor0
----
-104
-24
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 49 + + 85
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 75, col1 * - ( + + 1 ) / + col1 col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT col0 * - col2 DIV - col2 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-493
SELECT col0 * - col2 / - col2 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + - 93 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL + SUM( col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + SUM ( col2 ) AS col1 FROM tab2 cor0
----
121

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

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

skipif mysql # not compatible
query I rowsort label-497
SELECT + col1 / - 27 AS col1 FROM tab2 cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-498
SELECT - - 82 DIV col2 col2, + CAST( + + 99 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1
99
2
99
3
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-498
SELECT - - 82 / col2 col2, + CAST ( + + 99 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1
99
2
99
3
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT + 4 * + + ( - 90 ) + - - col1 - + 6 - 73 + + col1 DIV + 13 + + col1 * + col1 col2 FROM tab1 AS cor0
----
-228
-409
1820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-501
SELECT + 4 * + + ( - 90 ) + - - col1 - + 6 - 73 + + col1 / + 13 + + col1 * + col1 col2 FROM tab1 AS cor0
----
-228
-409
1820

query I rowsort
SELECT - + 59 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT + - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-503
SELECT + - col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
99

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

query I rowsort
SELECT + ( + 13 ) FROM tab1
----
13
13
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT 19 * COUNT( DISTINCT col0 ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT 19 * COUNT ( DISTINCT col0 ) AS col1 FROM tab2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT - 35 * - 35 NOT IN ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT - 35 * - 35 NOT IN ( + + col1 )
----
0

query I rowsort
SELECT - + 34 + col2 AS col0 FROM tab0 cor0
----
-24
13
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT - - CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-510
SELECT - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

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

skipif mysql # not compatible
query I rowsort label-511
SELECT 99 / col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + - 71 FROM tab0
----
-50
-70
10

query II rowsort
SELECT col1 AS col0, 15 AS col1 FROM tab1 AS cor0
----
14
15
47
15
5
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-514
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) IN ( col1 * - + ( - col0 ) + + + 33 * + col0 * col2 ) AND NOT NULL BETWEEN 21 AND CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-514
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) IN ( col1 * - + ( - col0 ) + + + 33 * + col0 * col2 ) AND NOT NULL BETWEEN 21 AND CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT - 43 - - + MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 43 - - + MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-142

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

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

query I rowsort
SELECT DISTINCT - col0 * + - 78 + - 70 - + 7 FROM tab1 AS cor0
----
3901
6553
7021

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT col2 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + 22 FROM tab2
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT 37 + + SUM( ALL - col0 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT 37 + + SUM ( ALL - col0 ) FROM tab0
----
-162

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 - + + 32 + + 23 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 col2, - col2 FROM tab2
----
87
-23
87
-40
87
-58

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-528
SELECT + 50 AS col2, ( - + 10 ) + col0 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + 79 AS col0 FROM tab0 AS cor0
----
50
NULL
50
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-528
SELECT + 50 AS col2, ( - + 10 ) + col0 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + 79 AS col0 FROM tab0 AS cor0
----
50
NULL
50
NULL
50
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT DISTINCT - + ( - + 81 ) DIV COUNT( ALL + - col0 ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - + ( - + 81 ) / COUNT ( ALL + - col0 ) FROM tab1 cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-530
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 38 / - - CAST( NULL AS SIGNED ) + - 32, ( 82 ) * - col2 + - 97 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-530
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 38 / - - CAST ( NULL AS INTEGER ) + - 32, ( 82 ) * - col2 + - 97 + - col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL COUNT( * ) + + 14 AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL COUNT ( * ) + + 14 AS col0 FROM tab1
----
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 / 60 * - 61 * - + col1 + 42 col0 FROM tab0 WHERE NOT NULL = NULL
----

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

query I rowsort
SELECT ALL 28 + - - 8 FROM tab2
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 + - + col0 col1 FROM tab2
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL <> - ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT - MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL <> - ( + 48 )
----
NULL

query I rowsort
SELECT ALL 11 FROM tab1 AS cor0 WHERE NOT + col2 / + col0 * + col1 < NULL
----

query I rowsort
SELECT ALL col2 * - - 78 + + col1 AS col1 FROM tab1 AS cor0
----
4607
5351
7502

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 56 * col1 IS NULL
----

query II rowsort
SELECT + 79 + + - ( - - ( - col2 ) ) + - col0 + ( col0 ) + col2 AS col2, col2 FROM tab1
----
197
59
215
68
271
96

query I rowsort
SELECT + 95 + - col1 * 79 * + col2 + - col0 FROM tab0
----
-16582
-300673
-7823

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT + + 76 * + col0 AS col0 FROM tab2 AS cor0 WHERE NULL < + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT DISTINCT - COUNT( * ) + - ( + 21 ) FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - COUNT ( * ) + - ( + 21 ) FROM tab1 cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-550
SELECT * FROM tab0 cor0 WHERE + col0 + - 74 IN ( CAST( - col2 AS SIGNED ) + + col0 - - col2, + col2, - + 71, col0 - + + col2 )
----

skipif mysql # not compatible
query III rowsort label-550
SELECT * FROM tab0 cor0 WHERE + col0 + - 74 IN ( CAST ( - col2 AS INTEGER ) + + col0 - - col2, + col2, - + 71, col0 - + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT + MAX( + 82 ) AS col2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + MAX ( + 82 ) AS col2 FROM tab2 cor0
----
82

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

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

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

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

query I rowsort
SELECT ALL + + col1 * - 37 - + col2 AS col2 FROM tab2 AS cor0
----
-1910
-2537
-2889

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - MIN( - 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-555
SELECT - MIN ( - 54 ) FROM tab0 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 73 col2 FROM tab1 AS cor0
----
-3723
-6205
-6643

query I rowsort
SELECT - 45 - col0 FROM tab2 AS cor0
----
-109
-120
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT col0 DIV - col0 - - col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-558
SELECT col0 / - col0 - - col1 FROM tab0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-559
SELECT - col0 + ( + ( + col2 ) ) - + - col1 * - + col1 * + - col1 * - 62 + - - CAST( ( - - col1 ) AS SIGNED ) DIV 11 AS col1 FROM tab0 WHERE NOT + 84 = - col1
----
-32949303
-574258
-60

skipif mysql # not compatible
query I rowsort label-559
SELECT - col0 + ( + ( + col2 ) ) - + - col1 * - + col1 * + - col1 * - 62 + - - CAST ( ( - - col1 ) AS INTEGER ) / 11 AS col1 FROM tab0 WHERE NOT + 84 = - col1
----
-32949303
-574258
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 col1, 82 FROM tab1
----
75
82
75
82
75
82

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT ALL - 92 * - + col1 FROM tab2 AS cor0
----
4692
6164
7084

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 * col2 AS col0, + col0 col0 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-566
SELECT + col1 DIV 32 * + + 50 * CAST( col1 AS SIGNED ), - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
2550
NULL
6700
NULL
7700
NULL

skipif mysql # not compatible
query II rowsort label-566
SELECT + col1 / 32 * + + 50 * CAST ( col1 AS INTEGER ), - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
2550
NULL
6700
NULL
7700
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + SUM( + 59 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-567
SELECT + SUM ( + 59 ) FROM tab1 AS cor0
----
177

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE + 15 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL + - col2 FROM tab2 WHERE + col2 * + - col2 * - + col2 * 2 BETWEEN - - CAST( - col2 AS SIGNED ) AND 92
----

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + - col2 FROM tab2 WHERE + col2 * + - col2 * - + col2 * 2 BETWEEN - - CAST ( - col2 AS INTEGER ) AND 92
----

query I rowsort
SELECT + 26 + 61 FROM tab0 AS cor0
----
87
87
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT 80 * - - COUNT( * ) * - MAX( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT 80 * - - COUNT ( * ) * - MAX ( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + + + col1 col1, + col1 AS col1 FROM tab1 AS cor0
----
138
47
65
14
90
5

query I rowsort
SELECT ALL 11 * - col2 + + 57 FROM tab2 AS cor0
----
-196
-383
-581

query I rowsort
SELECT col2 + - 60 FROM tab2 AS cor0
----
-2
-20
-37

query I rowsort
SELECT ALL - 5 - + col1 AS col2 FROM tab1 AS cor0
----
-10
-19
-52

query I rowsort
SELECT ALL - 65 + - col0 + + - 97 AS col1 FROM tab2 AS cor0
----
-208
-226
-237

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

query I rowsort
SELECT - col1 + + col0 + col1 - + col2 * - col2 FROM tab0 cor0
----
187
2224
9898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-583
SELECT DISTINCT COUNT( * ) + - 15 col1, 26 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
-15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-583
SELECT DISTINCT COUNT ( * ) + - 15 col1, 26 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT ALL CAST( + 63 AS SIGNED ) AS col2 FROM tab0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL CAST ( + 63 AS INTEGER ) AS col2 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL - 5 * - + col1 FROM tab1
----
235
25
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - 59 * + col0 col2 FROM tab0
----
13275
446571
555131

query I rowsort
SELECT col1 * col1 * col1 * - 69 FROM tab1
----
-189336
-7163787
-8625

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 57 FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 55 > NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 72 + - col2 + - col1 + + 54 * + col1 AS col0 FROM tab1
----
134
2351
574

query I rowsort
SELECT ALL ( - col0 ) + + - col1 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-599
SELECT ALL col2 * + - 46 * + - col0 + CAST( - - col1 AS SIGNED ) AS col2, + 73 FROM tab2
----
117837
73
200167
73
48719
73

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL col2 * + - 46 * + - col0 + CAST ( - - col1 AS INTEGER ) AS col2, + 73 FROM tab2
----
117837
73
200167
73
48719
73

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE - 12 + - col1 BETWEEN NULL AND 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 67 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3417
-4489
-5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 + + - col1, 4 col2 FROM tab0 AS cor0
----
-15
4
45
4
65
4

query I rowsort
SELECT - 59 + - col0 AS col1 FROM tab0 cor0
----
-146
-156
-74

query II rowsort
SELECT col1 + 0 * - 52 AS col0, - col2 + - col1 FROM tab1
----
14
-110
47
-115
5
-64

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

query I rowsort
SELECT DISTINCT - col1 - col2 + - + col0 + + col2 FROM tab1 AS cor0
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + 20 col2 FROM tab0 AS cor0 WHERE - 68 / 41 IS NOT NULL
----
-10
20
-47
20
-99
20

query I rowsort
SELECT DISTINCT - 16 + + - 96 AS col2 FROM tab2 AS cor0
----
-112

query II rowsort
SELECT - 34 AS col1, 71 * - - 66 AS col0 FROM tab2 AS cor0
----
-34
4686
-34
4686
-34
4686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL - 89 * + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-801

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - 89 * + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - ( - COUNT( DISTINCT + 80 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-612
SELECT - ( - COUNT ( DISTINCT + 80 ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab0
----
156

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

skipif mysql # not compatible
query I rowsort label-614
SELECT COUNT ( * ) * + COUNT ( DISTINCT + col2 ) FROM tab2
----
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT ALL 94 * col1 * - ( 19 ) FROM tab1
----
-25004
-83942
-8930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) * - col0 * - + col2 FROM tab0
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) * - col0 * - + col2 FROM tab0
----
-33135
-8700
-950697

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

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

query I rowsort
SELECT DISTINCT + 56 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
56

query I rowsort
SELECT DISTINCT - 74 + col0 + + - col0 * + 96 * - 94 AS col0 FROM tab0 AS cor0
----
135301
785101
875351

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

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

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

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

skipif mysql # not compatible
query I rowsort label-625
SELECT + 1 / - col0 * + col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-627
SELECT ALL + COUNT( * ) + + + ( COUNT( * ) ) DIV MIN( - 67 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + COUNT ( * ) + + + ( COUNT ( * ) ) / MIN ( - 67 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT * FROM tab2 WHERE + - col2 + - 63 NOT BETWEEN + 19 AND + + CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-628
SELECT * FROM tab2 WHERE + - col2 + - 63 NOT BETWEEN + 19 AND + + CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT COUNT( * ) * - - MAX( col2 ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT COUNT ( * ) * - - MAX ( col2 ) AS col2 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query II rowsort label-630
SELECT + col1 * + ( 83 ) - + - 23 DIV ( + + col0 ) * - 14 AS col0, 87 AS col1 FROM tab2 WHERE NULL IS NULL
----
4233
87
5561
87
6391
87

skipif mysql # not compatible
query II rowsort label-630
SELECT + col1 * + ( 83 ) - + - 23 / ( + + col0 ) * - 14 AS col0, 87 AS col1 FROM tab2 WHERE NULL IS NULL
----
4233
87
5561
87
6391
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + + + 82 col0 FROM tab1
----
133
167
173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-632
SELECT DISTINCT - CAST( - 95 AS SIGNED ) + - col2 + - col1 * col0, + 14 AS col1 FROM tab1 WHERE + 10 + - 71 IS NOT NULL
----
-389
14
-4250
14
-715
14

skipif mysql # not compatible
query II rowsort label-632
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) + - col2 + - col1 * col0, + 14 AS col1 FROM tab1 WHERE + 10 + - 71 IS NOT NULL
----
-389
14
-4250
14
-715
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT + 7 * + CAST( NULL AS SIGNED ) + 75 / + 31 + + 48 + + 73 * col0 + - - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT + 7 * + CAST ( NULL AS INTEGER ) + 75 / + 31 + + 48 + + 73 * col0 + - - col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 99 + + col0 * + col0 FROM tab1
----
2502
7126
8182

query I rowsort
SELECT ALL - ( + - col2 ) + col2 AS col0 FROM tab2
----
116
46
80

query I rowsort
SELECT col1 * - col1 + - + 19 FROM tab1
----
-215
-2228
-44

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

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

query II rowsort
SELECT ALL + - 59 + col2, - col0 AS col0 FROM tab0 AS cor0
----
-12
-15
-49
-87
40
-97

query I rowsort
SELECT DISTINCT 43 - + + col1 AS col2 FROM tab0 AS cor0
----
-38
22
42

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

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT col1 DIV - - 29 - col1 * ( - col1 ) * - + 17 AS col1 FROM tab1
----
-3332
-37552
-425

skipif mysql # not compatible
query I rowsort label-642
SELECT col1 / - - 29 - col1 * ( - col1 ) * - + 17 AS col1 FROM tab1
----
-3332
-37552
-425

query I rowsort
SELECT - 92 * - 44 + + col0 FROM tab2 AS cor0
----
4094
4112
4123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-644
SELECT DISTINCT + 56 / + CAST( NULL AS DECIMAL ) + - + col2 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT + 56 / + CAST ( NULL AS REAL ) + - + col2 * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-645
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 25 IN ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-645
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 25 IN ( + CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + 78 AS col1 FROM tab2 cor0
----
-78

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

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + COUNT ( DISTINCT + - col0 ) FROM tab1
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT + CAST( MAX( DISTINCT 23 ) AS SIGNED ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-649
SELECT + CAST ( MAX ( DISTINCT 23 ) AS INTEGER ) FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-650
SELECT col1 DIV - - 92 * - col0, - col1 + - col0 AS col1 FROM tab2
----
0
-141
0
-142
0
-97

skipif mysql # not compatible
query II rowsort label-650
SELECT col1 / - - 92 * - col0, - col1 + - col0 AS col1 FROM tab2
----
0
-141
0
-142
0
-97

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

query I rowsort
SELECT DISTINCT - ( - - 13 ) FROM tab1
----
-13

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

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

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

query II rowsort
SELECT DISTINCT - - 62 AS col2, 14 - + col0 AS col2 FROM tab2 AS cor0
----
62
-32
62
-50
62
-61

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-658
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE ( 1 + - col2 + 20 - - col1 * - 25 NOT IN ( - ( - 32 ), CAST( NULL AS DECIMAL ) - - 72, - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE ( 1 + - col2 + 20 - - col1 * - 25 NOT IN ( - ( - 32 ), CAST ( NULL AS REAL ) - - 72, - col2 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - ( 10 ) ) + 74 + - col1 FROM tab0
----
-17
43
63

query I rowsort
SELECT ( - col1 ) + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + - col0 + - + 67 FROM tab2 AS cor0
----
-113
-131
-142

query I rowsort
SELECT ALL col0 + - col2 + - ( + col2 ) + - col1 FROM tab1 AS cor0
----
-155
-38
-92

query I rowsort
SELECT ALL + 50 AS col2 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT + + 47 * ( - 51 ) FROM tab0 AS cor0
----
-2397
-2397
-2397

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - 9 * + + COUNT( ALL + col1 ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-668
SELECT - 9 * + + COUNT ( ALL + col1 ) AS col2 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT - 28 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-669
SELECT - 28 / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + 48 FROM tab2
----
112
123
94

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 - + col1 AS col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query II rowsort label-674
SELECT - col1 + - col0 DIV col1, col2 * + col0 AS col1 FROM tab0 AS cor0
----
-25
870
-81
705
-98
9603

skipif mysql # not compatible
query II rowsort label-674
SELECT - col1 + - col0 / col1, col2 * + col0 AS col1 FROM tab0 AS cor0
----
-25
870
-81
705
-98
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - + 14 + - 92 + - + col0 NOT BETWEEN + + col2 * + 40 - - 38 + - col1 / - - col1 AND NULL OR NOT NULL > NULL
----
3

skipif mysql # not compatible
query I rowsort label-675
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - + 14 + - 92 + - + col0 NOT BETWEEN + + col2 * + 40 - - 38 + - col1 / - - col1 AND NULL OR NOT NULL > NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-676
SELECT DISTINCT - 52 col2, col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-52
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-676
SELECT DISTINCT - 52 col2, col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-52
NULL

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

query II rowsort
SELECT DISTINCT col2 AS col2, col0 + col2 AS col2 FROM tab2
----
23
69
40
104
58
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL CAST( 25 AS SIGNED ) FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL CAST ( 25 AS INTEGER ) FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 85 * - + col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query I rowsort
SELECT DISTINCT col1 * - col2 * + 10 FROM tab2 AS cor0 WHERE ( NULL IN ( + col2 * + - 64 * col0 ) )
----

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

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

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

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + - col0 ) col2, 86 FROM tab1
----
-51
86
-85
86
-91
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( + + ( - 2 ) ) + - + col2 + - + 13 - - 91 + + - 87 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col2 * + + 71
----

skipif mysql # not compatible
query III rowsort label-688
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( + + ( - 2 ) ) + - + col2 + - + 13 - - 91 + + - 87 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col2 * + + 71
----

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

skipif mysql # not compatible
query I rowsort label-689
SELECT - COUNT ( ALL - 65 ) AS col1 FROM tab2
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( ( - 63 ) ) + + - col0 * + col2 col1, + col0 AS col1 FROM tab1 AS cor0
----
-4959
51
-5078
85
-6251
91

query I rowsort
SELECT - col1 * + + col1 + + col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
-2504
-4347
-5788

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1 cor0
----
-36

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 59 col1, - 57 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to bb1f0df35ee652e84bfe1b2e9ebd8a5b

query I rowsort
SELECT DISTINCT - 71 * + col0 + col1 FROM tab1
----
-3607
-6030
-6414

query I rowsort
SELECT ALL - col2 + - - 25 FROM tab1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19, 59 col1 FROM tab2 AS cor0
----
19
59
19
59
19
59

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

query I rowsort
SELECT DISTINCT - - col1 * col1 * + 16 - - 4 FROM tab1 AS cor0
----
3140
35348
404

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

query I rowsort
SELECT ( + col0 ) + 76 AS col2 FROM tab2 AS cor0
----
122
140
151

query I rowsort
SELECT + col2 + + 46 AS col0 FROM tab0 cor0
----
145
56
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-705
SELECT - - 15 + - + COUNT( * ) + + COUNT( - + ( + - 64 ) ) DIV + 62 * + - 87 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-705
SELECT - - 15 + - + COUNT ( * ) + + COUNT ( - + ( + - 64 ) ) / + 62 * + - 87 AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL - - 65 AS col0 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT ALL col0 - col0 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 35 * 60 / 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + ( - - 55 ) AS col1 FROM tab0 AS cor0
----
-4785
-5335
-825

query I rowsort
SELECT - 60 * - 3 * - 45 + col2 AS col1 FROM tab0
----
-8001
-8053
-8090

query I rowsort
SELECT 9 + col1 + + col1 AS col2 FROM tab0
----
11
171
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + 71 + col0 FROM tab1
----
122
156
162

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

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

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

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

query II rowsort
SELECT ALL - 85 - + + col0, col1 AS col0 FROM tab2 AS cor0
----
-131
51
-149
77
-160
67

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT ALL CAST( 37 AS SIGNED ) * 63 + 99 * + - COUNT( * ) + - COUNT( * ) - 1 FROM tab0
----
2030

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL CAST ( 37 AS INTEGER ) * 63 + 99 * + - COUNT ( * ) + - COUNT ( * ) - 1 FROM tab0
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT COUNT( - col0 ) * + 15 AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-721
SELECT COUNT ( - col0 ) * + 15 AS col0 FROM tab1
----
45

query I rowsort
SELECT + + 80 * + - 95 - + + 61 FROM tab0 AS cor0
----
-7661
-7661
-7661

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL - 21 * + 48 * - - MIN( - 51 ) FROM tab1 cor0
----
51408

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - 21 * + 48 * - - MIN ( - 51 ) FROM tab1 cor0
----
51408

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE 80 / - - 24 * + - col2 IS NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 18 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 44 AS col0, col0 * - col1 - col2 FROM tab1
----
44
-4345
44
-484
44
-810

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-731
SELECT DISTINCT col0 * + + 34 * + col2 + - col2 + col0 AS col2, 8 AS col0 FROM tab1 WHERE NOT ( NOT - 22 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL )
----
166419
8
170536
8
210415
8

skipif mysql # not compatible
query II rowsort label-731
SELECT DISTINCT col0 * + + 34 * + col2 + - col2 + col0 AS col2, 8 AS col0 FROM tab1 WHERE NOT ( NOT - 22 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL )
----
166419
8
170536
8
210415
8

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL col0 DIV + + 30 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL col0 / + + 30 FROM tab0
----
0
2
3

query II rowsort
SELECT 35 AS col2, col2 FROM tab2
----
35
23
35
40
35
58

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT COUNT( * ) * - 10 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT col0 + - + 82 AS col0 FROM tab0
----
-67
15
5

query I rowsort
SELECT DISTINCT + 11 + - - col0 AS col0 FROM tab1
----
102
62
96

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

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

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

query I rowsort
SELECT ALL - col2 + 62 AS col0 FROM tab1 cor0
----
-34
-6
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
15
87
97

query I rowsort
SELECT 44 * + - 57 - - 60 * + col0 FROM tab0 cor0
----
-1608
2712
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT MAX( - 18 ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT MAX ( - 18 ) AS col1 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - + COUNT( * ) - + 45 AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - + COUNT ( * ) - + 45 AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-745
SELECT ( COUNT( - col1 ) ) DIV + COUNT( * ) - - ( - COUNT( ALL - - col0 ) ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-745
SELECT ( COUNT ( - col1 ) ) / + COUNT ( * ) - - ( - COUNT ( ALL - - col0 ) ) FROM tab0
----
-2

query I rowsort
SELECT - 46 * - col1 - + col0 + col2 * - col0 AS col2 FROM tab2
----
-1343
1242
918

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT DISTINCT - COUNT( col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - COUNT ( col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - COUNT( * ) - + 47 * + MAX( - - col0 ) FROM tab0
----
-4562

skipif mysql # not compatible
query I rowsort label-748
SELECT - COUNT ( * ) - + 47 * + MAX ( - - col0 ) FROM tab0
----
-4562

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-751
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT MAX( DISTINCT + - col1 ) * 3 col0 FROM tab2
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-752
SELECT DISTINCT MAX ( DISTINCT + - col1 ) * 3 col0 FROM tab2
----
-153

query I rowsort
SELECT + 62 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + 76 * - col0 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT col0 * + 11 - - 44 FROM tab2 AS cor0
----
550
748
869

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

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

skipif mysql # not compatible
query I rowsort label-757
SELECT + col1 / 63 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + 83 + col0 FROM tab0 AS cor0
----
-1656
-6708
14

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

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

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

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

query I rowsort
SELECT ALL 8 + - - col1 FROM tab0
----
29
89
9

query I rowsort
SELECT 87 + - + 16 FROM tab1
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab2 WHERE - 77 / + col1 + col2 <> - + col1 * + + 63
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + ( - + 31 ) + - 39 * - col1 - - col0 + 11 + + - 6 * + col2 * - - col1 / - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + ( - + 31 ) + - 39 * - col1 - - col0 + 11 + + - 6 * + col2 * - - col1 / - col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + col0 FROM tab1 AS cor0
----
2601
7225
8281

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

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

query I rowsort
SELECT + - 55 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - + COUNT( * ) - SUM( + + col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - + COUNT ( * ) - SUM ( + + col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
306

query I rowsort
SELECT + col0 + - 43 + col1 FROM tab0 AS cor0
----
53
55
65

query I rowsort
SELECT DISTINCT + - ( - + col1 ) - - ( + ( col1 ) ) FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 44 + col0 + + col2 * - 24 + 53 - + ( col2 ) * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 45 - ( 3 ) AS col0 FROM tab1
----
42

query II rowsort
SELECT DISTINCT ( + col0 ), - col2 * col2 FROM tab0
----
15
-2209
87
-100
97
-9801

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

query I rowsort
SELECT + - 34 AS col2 FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + MIN( + 7 ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-779
SELECT + MIN ( + 7 ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ( 52 ) DIV - 22 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-780
SELECT ( 52 ) / - 22 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-781
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + ( - ( - 45 ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

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

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

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

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

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

query I rowsort
SELECT - 13 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
1197
682
793

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

query I rowsort
SELECT + col0 + 95 + + col1 AS col2 FROM tab1 AS cor0
----
160
185
233

query I rowsort
SELECT DISTINCT - 38 * + + col0 AS col1 FROM tab2
----
-1748
-2432
-2850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-792
SELECT - MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
99

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

query II rowsort
SELECT DISTINCT + col2 / - col1 - + col1 + - col1 AS col2, - col2 + 89 + - + col0 * - - 12 AS col1 FROM tab1 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-795
SELECT - 17 DIV COUNT( ALL + 65 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-795
SELECT - 17 / COUNT ( ALL + 65 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT + COUNT( * ) + + + 52 * + - ( COUNT( * ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT + COUNT ( * ) + + + 52 * + - ( COUNT ( * ) ) FROM tab1
----
-153

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL >= 81
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - ( + 50 ) * ( - col0 ) col2, col0 FROM tab2 AS cor0
----
2254
46
3136
64
3675
75

query I rowsort
SELECT DISTINCT col0 - col1 + + 90 AS col2 FROM tab1 AS cor0
----
127
134
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL <> 22 * 6
----

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

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

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab1 AS cor0 WHERE - 8 = - + 57
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT ALL 76 DIV - - COUNT( * ) - + - MIN( ALL + - col2 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL 76 / - - COUNT ( * ) - + - MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-817
SELECT DISTINCT 19, - 79 * + CAST( NULL AS SIGNED ) * MAX( - col0 ) AS col2 FROM tab0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 19, - 79 * + CAST ( NULL AS INTEGER ) * MAX ( - col0 ) AS col2 FROM tab0
----
19
NULL

query I rowsort
SELECT + 22 * - col1 FROM tab2
----
-1122
-1474
-1694

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-822
SELECT + 5, - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
5
-1
5
-1
5
-1

skipif mysql # not compatible
query II rowsort label-822
SELECT + 5, - col1 / + col1 AS col0 FROM tab2 AS cor0
----
5
-1
5
-1
5
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-823
SELECT + col0 DIV + ( + 28 ) + col1 AS col2, 78 AS col1 FROM tab2 AS cor0
----
52
78
69
78
79
78

skipif mysql # not compatible
query II rowsort label-823
SELECT + col0 / + ( + 28 ) + col1 AS col2, 78 AS col1 FROM tab2 AS cor0
----
52
78
69
78
79
78

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

query I rowsort
SELECT + ( - + 5 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-826
SELECT ALL + - COUNT( * ) * 37, - COUNT( + + ( - ( + 37 ) ) ) DIV 37 AS col1 FROM tab1 cor0
----
-111
0

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL + - COUNT ( * ) * 37, - COUNT ( + + ( - ( + 37 ) ) ) / 37 AS col1 FROM tab1 cor0
----
-111
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-828
SELECT ALL - CAST( + + 1 AS SIGNED ) AS col1, 19 * col0 FROM tab0 AS cor0
----
-1
1653
-1
1843
-1
285

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL - CAST ( + + 1 AS INTEGER ) AS col1, 19 * col0 FROM tab0 AS cor0
----
-1
1653
-1
1843
-1
285

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT MIN( col1 ) AS col1, 0 + + - MIN( + col2 ) FROM tab1 AS cor0
----
5
-59

skipif mysql # not compatible
query II rowsort label-829
SELECT MIN ( col1 ) AS col1, 0 + + - MIN ( + col2 ) FROM tab1 AS cor0
----
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT 51 * - + 28 * + + COUNT( * ) * - 90 FROM tab2 cor0
----
385560

skipif mysql # not compatible
query I rowsort label-830
SELECT 51 * - + 28 * + + COUNT ( * ) * - 90 FROM tab2 cor0
----
385560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( + col1 ) col1 FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

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

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

query I rowsort
SELECT ALL + 43 FROM tab1 WHERE NOT - col2 * - col2 - col2 >= - ( 45 )
----

query I rowsort
SELECT ALL col0 + + + 95 FROM tab2
----
141
159
170

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

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

query I rowsort
SELECT ALL + col1 * + col2 * 89 + - - 94 AS col0 FROM tab1
----
119710
26349
284538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - + 75 * - - 6 col0 FROM tab2 AS cor0
----
392
410
427

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - SUM( ALL 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-839
SELECT - SUM ( ALL 95 ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT ALL + 85 + - + col2 * + col1 * col1 AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-1390
-150127
-18731

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-841
SELECT COUNT( * ) * - + 96 DIV + 24, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-841
SELECT COUNT ( * ) * - + 96 / + 24, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-12
3

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT ALL - 77 DIV - 68 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - 77 / - 68 AS col0 FROM tab0 cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT - COUNT( * ) DIV ( - 60 ) + 51 AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-844
SELECT - COUNT ( * ) / ( - 60 ) + 51 AS col0 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / + 70 < - col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL COUNT( - 98 ) AS col0 FROM tab1 WHERE + col2 * - col2 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL COUNT ( - 98 ) AS col0 FROM tab1 WHERE + col2 * - col2 <> ( NULL )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT + 83 DIV COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-849
SELECT + 83 / COUNT ( * ) FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT 38 DIV - ( ( 66 ) * + col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-850
SELECT 38 / - ( ( 66 ) * + col1 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT col0 * col0 - - col0 DIV col0 FROM tab0
----
226
7570
9410

skipif mysql # not compatible
query I rowsort label-851
SELECT col0 * col0 - - col0 / col0 FROM tab0
----
226
7570
9410

query I rowsort
SELECT + 56 * - 93 AS col2 FROM tab2
----
-5208
-5208
-5208

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT - COUNT( * ) + + 89 * 97 FROM tab2
----
8630

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - COUNT ( * ) + + 89 * 97 FROM tab2
----
8630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-854
SELECT DISTINCT * FROM tab1 WHERE ( 91 * - CAST( NULL AS SIGNED ) + 15 * col1 ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-854
SELECT DISTINCT * FROM tab1 WHERE ( 91 * - CAST ( NULL AS INTEGER ) + 15 * col1 ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT ( + col2 ) + - CAST( - 37 AS SIGNED ) FROM tab1
----
105
133
96

skipif mysql # not compatible
query I rowsort label-855
SELECT ( + col2 ) + - CAST ( - 37 AS INTEGER ) FROM tab1
----
105
133
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( col1 * 18 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( col1 * 18 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 25 AS col1 FROM tab2 WHERE NOT ( col2 - + col0 ) IN ( 65 )
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT ( - ( 5 ) ) >= - 28
----
0

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( - ( 5 ) ) >= - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT MAX( 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-861
SELECT MAX ( 18 ) FROM tab2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0
----
-3

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) BETWEEN ( + 64 / 37 + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-867
SELECT * FROM tab0 WHERE CAST( col0 AS SIGNED ) / 73 IS NULL
----

skipif mysql # not compatible
query III rowsort label-867
SELECT * FROM tab0 WHERE CAST ( col0 AS INTEGER ) / 73 IS NULL
----

query I rowsort
SELECT DISTINCT + 0 * ( - col0 ) + + col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT DISTINCT + CAST( 31 AS SIGNED ) AS col0 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + CAST ( 31 AS INTEGER ) AS col0 FROM tab2
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 80 + col2 IN ( + 78 )
----

query I rowsort
SELECT ALL - col2 * - 81 FROM tab2 AS cor0
----
1863
3240
4698

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-872
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + col1 NOT IN ( - CAST( 23 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-872
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + col1 NOT IN ( - CAST ( 23 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < + col0
----
51
14
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL - 39 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - 39 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-877
SELECT - col2 DIV - ( col1 * col2 ) FROM tab2 WHERE NOT ( col1 ) >= ( 4 * col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-877
SELECT - col2 / - ( col1 * col2 ) FROM tab2 WHERE NOT ( col1 ) >= ( 4 * col1 )
----
0
0
0

query I rowsort
SELECT DISTINCT 63 FROM tab1 AS cor0 CROSS JOIN tab1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT DISTINCT 41 DIV col2 FROM tab0 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT 41 / col2 FROM tab0 cor0
----
0
4

query I rowsort
SELECT + + col2 + - 25 FROM tab0 cor0
----
-15
22
74

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - - ( col2 ) + + col2 FROM tab0 AS cor0
----
198
20
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + COUNT( * ) + + MIN( 44 + 85 * col2 ) AS col0 FROM tab2 AS cor0
----
2002

skipif mysql # not compatible
query I rowsort label-886
SELECT + COUNT ( * ) + + MIN ( 44 + 85 * col2 ) AS col0 FROM tab2 AS cor0
----
2002

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

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

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

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

query I rowsort
SELECT ALL + 39 * 25 AS col1 FROM tab0 AS cor0
----
975
975
975

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 1 * 79 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) * col0 + col1 ) > 45 OR NOT NULL IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) * col0 + col1 ) > 45 OR NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT col0 DIV - - col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-897
SELECT col0 / - - col1 AS col2 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL COUNT( * ) + 34 col1 FROM tab2
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-898
SELECT ALL COUNT ( * ) + 34 col1 FROM tab2
----
37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + 76 * col2
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + 76 * col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN col2 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL MAX( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - col0 - + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-60
145
2118

query I rowsort
SELECT ALL col1 * + + 23 * - col1 * col0 FROM tab1
----
-229908
-4623437
-48875

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT MIN( DISTINCT - 6 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-907
SELECT MIN ( DISTINCT - 6 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + ( ( 18 ) ) + - col2 )
----

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

query II rowsort
SELECT ALL - 79, col0 FROM tab0 AS cor0
----
-79
15
-79
87
-79
97

query I rowsort
SELECT DISTINCT + - 69 * - - col2 AS col0 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT - AVG ( col0 ) * + 80 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - AVG ( col0 ) * + 80 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

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

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

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

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

query I rowsort
SELECT + 47 - col2 AS col1 FROM tab0 cor0 WHERE NOT - 64 IN ( - col0 )
----
-52
0
37

onlyif mysql # DIV for integer division: 
query II rowsort label-916
SELECT 89 AS col0, col1 DIV - col0 col1 FROM tab1 AS cor0
----
89
0
89
0
89
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-916
SELECT 89 AS col0, col1 / - col0 col1 FROM tab1 AS cor0
----
89
0
89
0
89
0

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

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

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + - col2 / - - col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT COUNT( * ) * + + COUNT( ALL 57 ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-921
SELECT DISTINCT COUNT ( * ) * + + COUNT ( ALL 57 ) col1 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 53 IN ( - col1 - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL + COUNT ( * ) * + 3 FROM tab1
----
9

query I rowsort
SELECT DISTINCT 16 * + col1 FROM tab2
----
1072
1232
816

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT + + col2 DIV col1 - - col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-928
SELECT + + col2 / col1 - - col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 66 FROM tab1 WHERE NULL NOT IN ( ( - - col2 ) + + col2 )
----

query I rowsort
SELECT + 42 * - + col0 FROM tab0 AS cor0
----
-3654
-4074
-630

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

query I rowsort
SELECT 40 * col2 + - 48 FROM tab2 AS cor0
----
1552
2272
872

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + + MAX( + 4 ) + + 6 col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-933
SELECT + + MAX ( + 4 ) + + 6 col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col2 * + - 49 + + - col0 AS col0 FROM tab2 AS cor0
----
-1173
-2024
-2917

query I rowsort
SELECT - 7 + col0 FROM tab2 AS cor0
----
39
57
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL CAST( - ( + + col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL CAST ( - ( + + col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 + - - 39 AS col2 FROM tab1
----
44
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT + COUNT( * ) + + 81 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + COUNT ( * ) + + 81 FROM tab0
----
84

query I rowsort
SELECT ALL - 67 + col2 * col2 - col2 FROM tab0
----
2095
23
9635

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

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

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

query II rowsort
SELECT - - col2 AS col2, - 25 + - col1 AS col2 FROM tab1 AS cor0
----
59
-30
68
-72
96
-39

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab0 cor0
----
4

query II rowsort
SELECT + col0 * - - col0, + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
225
47
7569
10
9409
99

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-949
SELECT + ( CAST ( + 79 AS INTEGER ) ) FROM tab1
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT - 28 * - COUNT( 78 ) col0 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-950
SELECT - 28 * - COUNT ( 78 ) col0 FROM tab2
----
84

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON + + 44 IS NOT NULL, tab0 AS cor2
----
243 values hashing to 87075c0bb162caefd715b0b7c1c42f41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL - MAX( ALL + col2 ), + CAST( NULL AS SIGNED ) col2 FROM tab1
----
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-954
SELECT ALL - MAX ( ALL + col2 ), + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
-96
NULL

query I rowsort
SELECT ALL - - col2 * + col1 + + col2 FROM tab1 AS cor0
----
1440
3264
354

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

query II rowsort
SELECT ALL + ( + 5 ), col1 * - + ( - col1 ) AS col2 FROM tab2 AS cor0
----
5
2601
5
4489
5
5929

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

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

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

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab1 cor0
----
39

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

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2 WHERE - 23 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN 33 AND - + col0
----

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

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

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

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

query I rowsort
SELECT ALL 32 * col2 FROM tab0
----
1504
3168
320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT + 56 * + + 22 - + - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
1232

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + 56 * + + 22 - + - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
1232

query I rowsort
SELECT ALL col2 + - 44 + - col2 - - col0 + + ( col0 ) * 53 * + 25 + col0 * 39 FROM tab0
----
118711
132361
20431

query I rowsort
SELECT 39 * + + col0 FROM tab0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-972
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT 57 * ( - - 81 ) * - ( - - col1 ) AS col1 FROM tab0 cor0
----
-373977
-4617
-96957

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> 12
----

query II rowsort
SELECT ALL + - col0, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-976
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-976
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) + + col2 IS NULL
----

query I rowsort
SELECT 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT CAST( + 56 AS SIGNED ) + + col0 FROM tab1
----
107
141
147

skipif mysql # not compatible
query I rowsort label-979
SELECT CAST ( + 56 AS INTEGER ) + + col0 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL 76 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + 65 + + + col1 * + + col1 FROM tab0
----
506
66
6626

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2, 28 + - 27 )
----

query I rowsort
SELECT ALL - ( 5 ) FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + col0 - + - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL + - col0 * + 83 AS col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

query I rowsort
SELECT + 67 * - + col1 AS col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT + + 30 DIV 21 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-989
SELECT + + 30 / 21 FROM tab2 cor0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE + 44 + + + 16 BETWEEN + + 38 * - - 14 * + + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE + 44 + + + 16 BETWEEN + + 38 * - - 14 * + + col1 AND NULL
----
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE 87 * + col0 * 38 IS NULL AND NOT + col0 IS NOT NULL
----

query II rowsort
SELECT - col0 - + - col1 * ( col2 ) * 96 AS col0, - col2 * - col1 + + col2 FROM tab0
----
20073
220
365457
3854
9407
198

query I rowsort
SELECT 13 - + col2 AS col1 FROM tab2
----
-10
-27
-45

query I rowsort
SELECT col0 - 9 FROM tab0
----
6
78
88

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

skipif mysql # not compatible
query I rowsort label-996
SELECT + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL >= ( NULL )
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1001
SELECT + + 88 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-1001
SELECT + + 88 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1002
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 39 AS SIGNED ) * - - col1 BETWEEN - 95 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1002
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 39 AS INTEGER ) * - - col1 BETWEEN - 95 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + 92 - + MIN( - + 18 ) * COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
146

skipif mysql # not compatible
query I rowsort label-1005
SELECT + 92 - + MIN ( - + 18 ) * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
146

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT COUNT( * ) + - COUNT( * ) * - + 32 AS col1 FROM tab2 WHERE NOT + - 49 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT COUNT ( * ) + - COUNT ( * ) * - + 32 AS col1 FROM tab2 WHERE NOT + - 49 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( - + col1 ) * - col2 ) >= col2 * - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1010
SELECT - col0 + - col1 col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-108
NULL
-96
NULL
-98
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1010
SELECT - col0 + - col1 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-108
NULL
-96
NULL
-98
NULL

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN - col1 * 62 AND col2
----
-99

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

query I rowsort
SELECT ( + - 0 ) - - + ( - col1 ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 8 - + col2 - + + 39 FROM tab0 AS cor0
----
-130
-41
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 59 * + col1 * - ( - - col0 ) + - + col0 * 51 col2 FROM tab0 AS cor0
----
-10670
-112230
-72450

query I rowsort
SELECT - 88 * - col1 * + + col1 + - ( - col1 ) FROM tab1 AS cor0
----
17262
194439
2205

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 61 IN ( - 20, col0, + 84, - + 52, - col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 81 * + col1 / + col0 + 59 * 10 + - col2 IN ( + col2 ) )
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 - - 14 + + + col1 * + - 5 AS col0 FROM tab1 AS cor0
----
-174
-42
-6

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= - 79 + + col1
----

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, col2 * 88 + - col2 + - col2 FROM tab1 WHERE NOT - - col0 IS NULL
----
51
8256
85
5074
91
5848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1025
SELECT + CAST( - 84 AS SIGNED ), + ( + ( + 80 ) ) AS col0 FROM tab2
----
-84
80
-84
80
-84
80

skipif mysql # not compatible
query II rowsort label-1025
SELECT + CAST ( - 84 AS INTEGER ), + ( + ( + 80 ) ) AS col0 FROM tab2
----
-84
80
-84
80
-84
80

query I rowsort
SELECT ALL col2 * + - col1 + - col2 AS col0 FROM tab0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + MAX( ALL 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1027
SELECT + MAX ( ALL 84 ) FROM tab1
----
84

query I rowsort
SELECT ALL col1 + + + col1 + - 59 * + col0 * + - 13 FROM tab2
----
35384
49242
57659

query I rowsort
SELECT ALL + 95 AS col0 FROM tab0 AS cor0 WHERE NULL >= - ( + - ( - 94 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT + + MIN( + 59 ) FROM tab0 cor0
----
59

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT + + MIN ( + 59 ) FROM tab0 cor0
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT - + 17 DIV + 78 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT - + 17 / + 78 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1034
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN CAST( NULL AS SIGNED ) AND 67
----

skipif mysql # not compatible
query III rowsort label-1034
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND 67
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1036
SELECT - - CAST( + - 65 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL = 73
----

skipif mysql # not compatible
query I rowsort label-1036
SELECT - - CAST ( + - 65 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL = 73
----

query II rowsort
SELECT DISTINCT - 42 AS col0, 89 + - 71 * + col1 FROM tab0 AS cor0
----
-42
-1402
-42
-5662
-42
18

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT + COUNT( * ) DIV - 11 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT + COUNT ( * ) / - 11 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 66 * - col1 AS col2, + 3 + col0 - 52 * 22 FROM tab2
----
-3366
-1095
-4422
-1066
-5082
-1077

query I rowsort
SELECT DISTINCT + 9 * - + 67 * + + 95 FROM tab1 WHERE 70 + - col1 = 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + MIN( - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1042
SELECT + MIN ( - col1 ) AS col0 FROM tab1
----
-47

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

query I rowsort
SELECT ALL col0 * - col2 + - col1 FROM tab0
----
-786
-891
-9604

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + - 48 + col2 * 68 + - col2 AS col1 FROM tab2
----
1516
2672
3896

query I rowsort
SELECT - 52 * 95 AS col0 FROM tab2
----
-4940
-4940
-4940

query I rowsort
SELECT DISTINCT 6 * - + ( - 94 ) FROM tab1 cor0
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT COUNT( * ) + ( + 48 ) FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----
48

skipif mysql # not compatible
query I rowsort label-1050
SELECT COUNT ( * ) + ( + 48 ) FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----
48

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

skipif mysql # not compatible
query II rowsort label-1051
SELECT DISTINCT + col1 AS col0, CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT MAX( ALL 23 ) + + ( 81 ) FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-1052
SELECT MAX ( ALL 23 ) + + ( 81 ) FROM tab0
----
104

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

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

query I rowsort
SELECT ALL + 64 FROM tab1 WHERE NOT + col1 * + col2 - - + col0 * - col0 * + col1 - - col2 * 49 = + 46
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - col1 <= NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1057
SELECT ( - COUNT( * ) ) AS col0, + 20 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0
20

skipif mysql # not compatible
query II rowsort label-1057
SELECT ( - COUNT ( * ) ) AS col0, + 20 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0
20

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

query I rowsort
SELECT DISTINCT - col2 - + - col2 + + ( 21 ) - + col2 + + 4 AS col0 FROM tab0 AS cor0
----
-22
-74
15

query I rowsort
SELECT + col1 * 41 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 55 * + col2 IN ( + col2, col1 - + 31, col2 * - col2 + - 74 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1062
SELECT + ( + CAST( NULL AS DECIMAL ) ) + 84 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1062
SELECT + ( + CAST ( NULL AS REAL ) ) + 84 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - + col2 + col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT DISTINCT - - ( col1 ) - + col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT 56 - + + 87 AS col0 FROM tab0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT DISTINCT - CAST( + 65 AS SIGNED ) col2 FROM tab0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1066
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) col2 FROM tab0
----
-65

query I rowsort
SELECT ALL + col1 + - col2 * + + col0 FROM tab1 WHERE NOT + - col2 * col2 * - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT ALL + COUNT( - col2 ) * 21 AS col0, COUNT( * ) FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL + COUNT ( - col2 ) * 21 AS col0, COUNT ( * ) FROM tab1
----
63
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT + + MAX( ALL - + ( col0 ) ) DIV ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + + MAX ( ALL - + ( col0 ) ) / ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT + - ( - 2 ) DIV + 64 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT + - ( - 2 ) / + 64 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

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

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

query II rowsort
SELECT ALL col0 AS col2, - 95 * - 32 FROM tab1 AS cor0
----
51
3040
85
3040
91
3040

query I rowsort
SELECT DISTINCT + col0 * 36 * - col1 AS col1 FROM tab1 AS cor0
----
-15300
-153972
-25704

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

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT ALL col2 DIV - col1 + + 6 AS col2 FROM tab0 AS cor0
----
-93
6
6

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL col2 / - col1 + + 6 AS col2 FROM tab0 AS cor0
----
-93
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - + ( 27 ) - - SUM( ALL col0 ) col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1077
SELECT - + ( 27 ) - - SUM ( ALL col0 ) col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT - col1 * ( + 10 ) FROM tab1 AS cor0
----
-140
-470
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 57 * - 70 <= ( - col2 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT - + col1 DIV - 5 AS col0 FROM tab1 cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-1083
SELECT - + col1 / - 5 AS col0 FROM tab1 cor0
----
1
2
9

query I rowsort
SELECT + 46 * + 21 + col1 FROM tab2
----
1017
1033
1043

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 67 ) < - 35 / 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 69 + col2 - + 52 FROM tab2
----
40
57
75

query III rowsort
SELECT * FROM tab2 WHERE NULL <> NULL OR NOT 38 IS NOT NULL
----

query I rowsort
SELECT + 36 + + col1 FROM tab2
----
103
113
87

query I rowsort
SELECT col1 + - 8 AS col0 FROM tab2 AS cor0
----
43
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + COUNT( - col1 ) AS col2 FROM tab1 AS cor0 WHERE 72 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT + COUNT ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE 72 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT COUNT( * ) * 29 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT COUNT ( * ) * 29 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col0 + - 68 * + col1 FROM tab1 AS cor0
----
-255
-3105
-901

query I rowsort
SELECT ALL + 73 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 2 > - 1
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

query I rowsort
SELECT ALL - + ( + col2 ) + - col1 AS col2 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - 67 + col1 AS col2 FROM tab2 AS cor0
----
-16
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT ALL + col2 - - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + col2 - - col1 / + col1 AS col1 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT + + ( - + 3 ) + + col1 DIV col2 AS col0 FROM tab1 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1102
SELECT + + ( - + 3 ) + + col1 / col2 AS col0 FROM tab1 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT - COUNT( * ) * - 32 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT - COUNT ( * ) * - 32 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT COUNT( * ) * + COUNT( * ) * + 91 AS col2 FROM tab2
----
819

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( * ) * + COUNT ( * ) * + 91 AS col2 FROM tab2
----
819

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT 74 DIV - ( + col2 ) col0 FROM tab1
----
-1
-1
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL - SUM( - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - SUM ( - col1 ) FROM tab2 AS cor0
----
195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT 21 * + SUM( - 9 ) AS col0 FROM tab2
----
-567

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT 21 * + SUM ( - 9 ) AS col0 FROM tab2
----
-567

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1112
SELECT + - CAST( + 19 AS SIGNED ) + + 0 col1, + col2 DIV 61 * - col0 * col2 + + - col1 FROM tab2 AS cor0
----
-19
-51
-19
-67
-19
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1112
SELECT + - CAST ( + 19 AS INTEGER ) + + 0 col1, + col2 / 61 * - col0 * col2 + + - col1 FROM tab2 AS cor0
----
-19
-51
-19
-67
-19
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL + MIN( 31 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + MIN ( 31 ) FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1114
SELECT - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT col2 * - col2 DIV - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1116
SELECT col2 * - col2 / - col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL - SUM( 26 ) AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - SUM ( 26 ) AS col0 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN + 79 AND - 5
----
0

skipif mysql # not compatible
query I rowsort label-1118
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN + 79 AND - 5
----
0

query I rowsort
SELECT DISTINCT - col0 * + - ( + col0 ) + + col0 + + col0 AS col0 FROM tab1
----
2703
7395
8463

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - - col0 ) < - - 8
----

query I rowsort
SELECT ALL - 2 + - - col2 * - + col2 AS col0 FROM tab0
----
-102
-2211
-9803

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

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

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

query I rowsort
SELECT ALL - 13 - - col2 AS col0 FROM tab0
----
-3
34
86

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

query I rowsort
SELECT + col2 * 4 AS col1 FROM tab1
----
236
272
384

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT + SUM( ALL col0 ) + - 22 AS col2 FROM tab2 WHERE NOT - ( + col0 ) < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + SUM ( ALL col0 ) + - 22 AS col2 FROM tab2 WHERE NOT - ( + col0 ) < - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 > - col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 4 ) col1 FROM tab1 AS cor0
----
4
4
4

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

query I rowsort
SELECT + 66 * col0 FROM tab0
----
5742
6402
990

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

query II rowsort
SELECT col1, col1 * + + 14 FROM tab1
----
14
196
47
658
5
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT COUNT( * ), - COUNT( * ) * + SUM( col0 ) AS col2 FROM tab2
----
3
-555

skipif mysql # not compatible
query II rowsort label-1140
SELECT COUNT ( * ), - COUNT ( * ) * + SUM ( col0 ) AS col2 FROM tab2
----
3
-555

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

query II rowsort
SELECT col0 AS col1, 86 AS col0 FROM tab2
----
46
86
64
86
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab0 WHERE NOT 70 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab0 WHERE NOT 70 IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - 7 * + COUNT( * ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 7 * + COUNT ( * ) AS col0 FROM tab1
----
-21

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT - COUNT ( * ) / - 14 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1147
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1147
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1148
SELECT ALL - COUNT( * ), + 94 * - + ( - 86 ) AS col1 FROM tab1 AS cor0
----
-3
8084

skipif mysql # not compatible
query II rowsort label-1148
SELECT ALL - COUNT ( * ), + 94 * - + ( - 86 ) AS col1 FROM tab1 AS cor0
----
-3
8084

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

skipif mysql # not compatible
query I rowsort label-1149
SELECT + COUNT ( * ) * + - 0 FROM tab2 cor0
----
0

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NOT col1 / - + col1 <> + col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

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

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

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

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

query I rowsort
SELECT + + 75 AS col1 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= NULL
----

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

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

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

query I rowsort
SELECT 46 + - 43 AS col1 FROM tab1 AS cor0
----
3
3
3

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col1 BETWEEN col0 / - 10 AND + col0
----

query I rowsort
SELECT 27 + col0 FROM tab2
----
102
73
91

query I rowsort
SELECT ALL col0 * 29 FROM tab2
----
1334
1856
2175

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

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

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

query I rowsort
SELECT ALL - + 18 + col1 + col0 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
78
80
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT 34 + + MAX( DISTINCT col2 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1171
SELECT 34 + + MAX ( DISTINCT col2 ) FROM tab2
----
92

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

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col2 + - col2 + + + col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT COUNT( * ) + + 29 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT COUNT ( * ) + + 29 FROM tab2
----
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT - col1 * + 2 - - col1 + - col0 * - - col1 * - + 47 + - col1 * - col1 * - - CAST( 80 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
121128
4638
581904

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - col1 * + 2 - - col1 + - col0 * - - col1 * - + 47 + - col1 * - col1 * - - CAST ( 80 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
121128
4638
581904

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

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

query II rowsort
SELECT ALL - + col0 AS col1, + col0 * - 63 AS col2 FROM tab1 AS cor0
----
-51
-3213
-85
-5355
-91
-5733

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 45 ) <> NULL
----

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE - 53 + - 4 > - - 45
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1183
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1187
SELECT COUNT ( ( - 68 ) ) * + + 6 FROM tab1
----
18

query I rowsort
SELECT 66 * - col1 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT ( + - 37 ) AS col1 FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + + MAX( DISTINCT - col0 ) FROM tab2 WHERE NOT col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-1190
SELECT + + MAX ( DISTINCT - col0 ) FROM tab2 WHERE NOT col0 IS NULL
----
-46

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1192
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + + 33 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + CAST ( NULL AS REAL ) * + + 33 FROM tab0 cor0
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 - - - col1 col1 FROM tab2
----
18
27
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - MAX( 26 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1197
SELECT - MAX ( 26 ) FROM tab0 AS cor0
----
-26

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

query I rowsort
SELECT + + 56 * - col2 * - col0 FROM tab0 cor0
----
39480
48720
537768

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT 16 DIV - col2 * ( - + col1 ) * col2 * + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT 16 / - col2 * ( - + col1 ) * col2 * + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ( 86 ) FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT + 27 - - COUNT( * ) col2 FROM tab2 WHERE 57 IS NOT NULL
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1202
SELECT + 27 - - COUNT ( * ) col2 FROM tab2 WHERE 57 IS NOT NULL
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT COUNT( * ) * + 65 + 87 * - COUNT( * ) col0 FROM tab0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT DISTINCT COUNT ( * ) * + 65 + 87 * - COUNT ( * ) col0 FROM tab0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT DISTINCT col2 DIV - 35 + 93 * + col0 FROM tab1
----
4741
7904
8462

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT col2 / - 35 + 93 * + col0 FROM tab1
----
4741
7904
8462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) - - 29 AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1205
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - 29 AS col1 FROM tab1
----
29

query I rowsort
SELECT + ( - 68 ) + col2 AS col2 FROM tab2
----
-10
-28
-45

query II rowsort
SELECT - 99 - col1, - col0 FROM tab1 WHERE NULL < - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL - col1 - CAST( + ( + 34 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-39
-48
-81

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL - col1 - CAST ( + ( + 34 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-39
-48
-81

query II rowsort
SELECT - + col0 + - - 63, - 54 * - col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1
-138240
-12
-234900
17
-57132

query I rowsort
SELECT ALL + - 69 * - + 79 - ( col0 ) FROM tab2 AS cor0
----
5376
5387
5405

query I rowsort
SELECT ALL + 81 - + col0 AS col1 FROM tab0 AS cor0
----
-16
-6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT + + COUNT( * ) + + - MIN( DISTINCT 87 ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1212
SELECT + + COUNT ( * ) + + - MIN ( DISTINCT 87 ) AS col0 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT DISTINCT + - 91 AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 AS cor0 WHERE col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + 25 + col2, 31 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ( 75 ) * + ( + ( - COUNT( * ) ) ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1217
SELECT ( 75 ) * + ( + ( - COUNT ( * ) ) ) FROM tab0
----
-225

query I rowsort
SELECT 41 * - 87 FROM tab0
----
-3567
-3567
-3567

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 < - - 21
----

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

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

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

skipif mysql # not compatible
query II rowsort label-1222
SELECT - COUNT ( * ), + 54 AS col2 FROM tab2 AS cor0
----
-3
54

query I rowsort
SELECT ALL col1 * + + col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + 61 AS col1 FROM tab1
----
61
61
61

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col0 / + 60
----

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

query I rowsort
SELECT + + 6 + + col0 FROM tab2 AS cor0
----
52
70
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1230
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 65 - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1230
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 65 - - col1 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( - 35 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT MIN( 94 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT MIN ( 94 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab1
----
59
68
96

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

query I rowsort
SELECT - col2 + + - 79 FROM tab2 AS cor0
----
-102
-119
-137

query I rowsort
SELECT DISTINCT - 77 * + - col0 + - + col0 FROM tab0 AS cor0
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + 33 + + MIN( DISTINCT - - col1 ) + + COUNT( * ) + + ( MAX( DISTINCT - col1 ) ) AS col1 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-1237
SELECT + 33 + + MIN ( DISTINCT - - col1 ) + + COUNT ( * ) + + ( MAX ( DISTINCT - col1 ) ) AS col1 FROM tab2 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL - + MIN( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - + MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL - ( - col0 ) + - col2 FROM tab2
----
17
23
24

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

query I rowsort
SELECT - col2 * - + 63 FROM tab1
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL + COUNT( * ) + - 20 + + + COUNT( * ) * + MIN( ALL + 17 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + COUNT ( * ) + - 20 + + + COUNT ( * ) * + MIN ( ALL + 17 ) FROM tab2
----
34

query I rowsort
SELECT DISTINCT ( - 41 ) + - + col2 FROM tab0
----
-140
-51
-88

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

query I rowsort
SELECT DISTINCT - 47 + col0 FROM tab0 AS cor0
----
-32
40
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1246
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + - ( - + CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1246
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + - ( - + CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT DISTINCT 62 * + - col2 FROM tab1
----
-3658
-4216
-5952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT 10 DIV col1 * - 64 * + - col0 AS col1 FROM tab1
----
0
0
10880

skipif mysql # not compatible
query I rowsort label-1249
SELECT 10 / col1 * - 64 * + - col0 AS col1 FROM tab1
----
0
0
10880

query I rowsort
SELECT ALL + col1 * 32 + + col1 FROM tab1 AS cor0
----
1551
165
462

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1252
SELECT ALL + - col0 DIV CAST( + 25 AS SIGNED ) FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + - col0 / CAST ( + 25 AS INTEGER ) FROM tab0 AS cor0
----
-3
-3
0

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - - 92 BETWEEN + 14 AND 48
----
-23
-40
-58

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

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

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

query I rowsort
SELECT + ( - ( ( 41 ) ) ) FROM tab1
----
-41
-41
-41

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

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

query I rowsort
SELECT 25 * + col2 FROM tab0
----
1175
2475
250

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT COUNT( * ) + - 97 * 27 FROM tab0
----
-2616

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT COUNT ( * ) + - 97 * 27 FROM tab0
----
-2616

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1262
SELECT MAX ( DISTINCT - col0 ) FROM tab1
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT + 97 * - col2 * + - 86 + 68 - - 27 DIV - 91 * col2 - col1 AS col1 FROM tab2
----
191883
333671
483837

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 97 * - col2 * + - 86 + 68 - - 27 / - 91 * col2 - col1 AS col1 FROM tab2
----
191883
333671
483837

query I rowsort
SELECT col0 + + col1 + + - col2 * col2 * + col1 FROM tab1
----
-128959
-17315
-217190

query I rowsort
SELECT col2 + col1 + - + 52 FROM tab1
----
12
58
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + - MIN( DISTINCT 95 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + - MIN ( DISTINCT 95 ) FROM tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1269
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * - 16 >= CAST( NULL AS SIGNED ) * + col1 * - col0 * + 99
----

skipif mysql # not compatible
query III rowsort label-1269
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * - 16 >= CAST ( NULL AS INTEGER ) * + col1 * - col0 * + 99
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL col0 + 73 + + col2 - col0 * + 0 DIV + 66 AS col1 FROM tab2 AS cor0
----
142
177
206

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL col0 + 73 + + col2 - col0 * + 0 / + 66 AS col1 FROM tab2 AS cor0
----
142
177
206

query I rowsort
SELECT DISTINCT - col2 - - - col1 FROM tab2 cor0
----
-117
-125
-74

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

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

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

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

query I rowsort
SELECT DISTINCT + 96 - + 70 AS col0 FROM tab2
----
26

query I rowsort
SELECT col0 - - col2 + - 21 AS col2 FROM tab1
----
123
126
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IS NULL AND - 56 * 61 * - col1 * + 95 = col0 * + 97
----

query I rowsort
SELECT 88 - + 21 AS col1 FROM tab1
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - COUNT( * ) + + ( ( + 43 ) ) - COUNT( * ) - + - 73 AS col0 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-1279
SELECT - COUNT ( * ) + + ( ( + 43 ) ) - COUNT ( * ) - + - 73 AS col0 FROM tab1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT COUNT( * ) * + 89 col1 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1280
SELECT DISTINCT COUNT ( * ) * + 89 col1 FROM tab0
----
267

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

query I rowsort
SELECT DISTINCT ( - - col2 ) * - - 65 AS col0 FROM tab1 AS cor0
----
3835
4420
6240

query I rowsort
SELECT - col1 * + + col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT + - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1284
SELECT + - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT - MAX( ALL col0 ) FROM tab1 AS cor0 WHERE NULL > - col2 * + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab1 AS cor0 WHERE NULL > - col2 * + + col2
----
NULL

query II rowsort
SELECT - col1 AS col1, col2 - - col1 AS col0 FROM tab0
----
-1
100
-21
31
-81
128

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

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

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

query I rowsort
SELECT - 13 * 31 FROM tab0 AS cor0
----
-403
-403
-403

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col2 * - col0 + + col0 / + + ( - col1 ) + - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col0 / - 61 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1291
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col0 / - 61 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT - CAST( - col1 AS SIGNED ) DIV - - col2 - + col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) / - - col2 - + col2 FROM tab2 AS cor0
----
-21
-39
-57

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT DISTINCT 88 DIV COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT 88 / COUNT ( * ) FROM tab1 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-1295
SELECT + col0 DIV + 79 AS col0, - 19 FROM tab0 cor0
----
0
-19
1
-19
1
-19

skipif mysql # not compatible
query II rowsort label-1295
SELECT + col0 / + 79 AS col0, - 19 FROM tab0 cor0
----
0
-19
1
-19
1
-19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT - - COUNT( * ), 37 AS col0 FROM tab2 AS cor0
----
3
37

skipif mysql # not compatible
query II rowsort label-1297
SELECT - - COUNT ( * ), 37 AS col0 FROM tab2 AS cor0
----
3
37

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 42 BETWEEN + 49 + col2 AND NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT + 78 + CAST( NULL AS SIGNED ) * - 42 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT + 78 + CAST ( NULL AS INTEGER ) * - 42 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT 86 + - + 67 + - - col0 FROM tab1
----
104
110
70

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

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

query I rowsort
SELECT - ( - + ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT + - 39 AS col1 FROM tab2 cor0
----
-39
-39
-39

query II rowsort
SELECT + 56 * + + 64, - col0 AS col0 FROM tab1 cor0
----
3584
-51
3584
-85
3584
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT COUNT( * ) * - CAST( 21 AS SIGNED ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) * - CAST ( 21 AS INTEGER ) AS col0 FROM tab2
----
-63

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

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

query I rowsort
SELECT + 70 - col1 FROM tab0
----
-11
49
69

query I rowsort
SELECT ALL 87 * - 39 + + col0 FROM tab1
----
-3302
-3308
-3342

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - 4
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT - - ( - 85 ) DIV MAX( ALL + + col0 ) + 22 - + SUM( + col0 ) + - 50 * - - COUNT( * ) FROM tab0 AS cor0
----
-327

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - - ( - 85 ) / MAX ( ALL + + col0 ) + 22 - + SUM ( + col0 ) + - 50 * - - COUNT ( * ) FROM tab0 AS cor0
----
-327

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col1 + col2 * + - col1 + + col1 + + - 23 * + 79 / - col1 <> col0 / - - 60 - + + col1 + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL + + ( + MIN( - col2 ) ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1324
SELECT ALL + + ( + MIN ( - col2 ) ) col0 FROM tab2 AS cor0
----
-58

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

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

query I rowsort
SELECT 89 + AVG ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT 54 * + COUNT( * ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-1328
SELECT 54 * + COUNT ( * ) AS col1 FROM tab2
----
162

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

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

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

query I rowsort
SELECT - ( + 7 ) * col1 + - 16 FROM tab2 AS cor0
----
-373
-485
-555

query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab2 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1333
SELECT * FROM tab2 cor0 WHERE NOT + col2 <> CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1333
SELECT * FROM tab2 cor0 WHERE NOT + col2 <> CAST ( 78 AS INTEGER )
----

query I rowsort
SELECT ALL 41 AS col1 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + - col1 * - + 94 FROM tab0 AS cor0
----
1974
7614
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 10 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - ( - SUM( ALL 74 ) ) + + 25 + - + 50 AS col1 FROM tab2 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - ( - SUM ( ALL 74 ) ) + + 25 + - + 50 AS col1 FROM tab2 AS cor0
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT COUNT( * ) * 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT COUNT ( * ) * 13 FROM tab0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT col2 DIV - 57 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT col2 / - 57 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col0 * 36 * - col2 FROM tab0
----
25380
31320
345708

query II rowsort
SELECT - 62 AS col1, + 58 FROM tab0
----
-62
58
-62
58
-62
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT 31, COUNT( * ) AS col2 FROM tab1
----
31
3

skipif mysql # not compatible
query II rowsort label-1342
SELECT 31, COUNT ( * ) AS col2 FROM tab1
----
31
3

query II rowsort
SELECT 6 AS col1, 94 FROM tab0
----
6
94
6
94
6
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT COUNT( * ) * + 0 + + 57 AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT COUNT ( * ) * + 0 + + 57 AS col0 FROM tab2
----
57

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 * 24 FROM tab2
----
-2120
-2494
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL + COUNT( * ) + + 93 AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL + COUNT ( * ) + + 93 AS col1 FROM tab0
----
96

query I rowsort
SELECT DISTINCT - 68 + col0 - - col1 AS col2 FROM tab2
----
29
73
74

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

query I rowsort
SELECT DISTINCT - 65 + - - col1 FROM tab0 AS cor0
----
-44
-64
16

query I rowsort
SELECT - col2 + - + ( - - ( + 92 ) ) + + col1 AS col1 FROM tab1 AS cor0
----
-113
-146
-174

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - 54 * - - 68 AND - col2 * + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + 60 + - MAX( + 50 ) + 90 AS col1 FROM tab2 AS cor0 WHERE + col1 + - + ( + 8 ) < + col0
----
100

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 60 + - MAX ( + 50 ) + 90 AS col1 FROM tab2 AS cor0 WHERE + col1 + - + ( + 8 ) < + col0
----
100

query I rowsort
SELECT - ( - col2 ) * + 92 * col2 + - col1 - + 9 AS col0 FROM tab2 AS cor0
----
147114
309412
48608

query I rowsort
SELECT - 3 + - + 26 * col2 * - col0 + 51 FROM tab2 AS cor0 WHERE - - col1 + 42 IS NOT NULL AND NOT NULL IS NOT NULL
----
113148
27556
66608

query I rowsort
SELECT col2 - col2 * - col1 * 38 FROM tab2 cor0
----
117080
147726
44597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1358
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2, 73 FROM tab0 AS cor0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2, 73 FROM tab0 AS cor0
----
NULL
73

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

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

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE + 3 * - col2 * + - col1 <> - col0
----
-51
-67
-77

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1362
SELECT ALL - CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - 53
----
47
5

query I rowsort
SELECT - + 33 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL SUM( + 24 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL SUM ( + 24 ) FROM tab2
----
72

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT + col0 * - - 32 / + + col0 + - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92, 13 + + col0 col1 FROM tab2 AS cor0
----
92
59
92
77
92
88

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

query I rowsort
SELECT - 29 + col1 * col0 FROM tab1
----
396
4248
685

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT - ( + COUNT( * ) ) + 10 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - ( + COUNT ( * ) ) + 10 FROM tab2
----
7

query I rowsort
SELECT 62 + + 94 AS col2 FROM tab0
----
156
156
156

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( 4 * ( 73 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1374
SELECT DISTINCT + col1 DIV col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - col1 * + col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + col1 / col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col1 * + col1 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - MAX( - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - MAX ( - col2 ) FROM tab1
----
59

query I rowsort
SELECT ( 32 ) AS col0 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - MIN( ALL col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT - MIN ( ALL col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

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

query III rowsort
SELECT * FROM tab0 WHERE - 36 + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + COUNT( ALL + ( 33 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1381
SELECT + COUNT ( ALL + ( 33 ) ) FROM tab2
----
3

query I rowsort
SELECT + 92 * col2 AS col0 FROM tab1
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + 98 * + COUNT( DISTINCT col2 ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-1383
SELECT + 98 * + COUNT ( DISTINCT col2 ) FROM tab0
----
294

query I rowsort
SELECT + 82 * col1 AS col1 FROM tab0
----
1722
6642
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 55
----

query I rowsort
SELECT DISTINCT - 68 * + 10 FROM tab1
----
-680

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT + 43 DIV + 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT + 43 / + 67 FROM tab2
----
0

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

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE col2 * - col1 > NULL
----

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

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

query I rowsort
SELECT + 67 / col0 AS col0 FROM tab2 AS cor0 WHERE + 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + 52 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + 52 * + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - 71 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1395
SELECT - 71 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT ALL col1 - + 50 DIV + 41 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL col1 - + 50 / + 41 AS col2 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-52

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT ( - COUNT( * ) ) * - 78 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT ( - COUNT ( * ) ) * - 78 FROM tab0 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT DISTINCT + - 17 DIV 49 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + - 17 / 49 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 94 * 5 FROM tab0 cor0
----
-470
-470
-470

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

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN col1 + - 34 / + col2 AND 54 + col2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT col2 DIV - 70 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT col2 / - 70 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT DISTINCT - 64 DIV ( col1 ) FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - 64 / ( col1 ) FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 31 < 85
----
3

skipif mysql # not compatible
query I rowsort label-1406
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 31 < 85
----
3

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

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

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( 34 ) IN ( + col1 )
----
23
40
58

query I rowsort
SELECT + 47 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 6 / + col0 - 87 * + col2 ) IS NOT NULL
----

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

query I rowsort
SELECT col1 * - col1 * ( - col1 ) AS col0 FROM tab0
----
1
531441
9261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT ALL ( + 19 ) DIV COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL ( + 19 ) / COUNT ( * ) AS col1 FROM tab2
----
6

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1414
SELECT + col2 * col1 DIV CAST( - 9 AS SIGNED ) FROM tab2
----
-130
-342
-431

skipif mysql # not compatible
query I rowsort label-1414
SELECT + col2 * col1 / CAST ( - 9 AS INTEGER ) FROM tab2
----
-130
-342
-431

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + 91 IN ( 20 * - CAST( 37 AS SIGNED ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + 91 IN ( 20 * - CAST ( 37 AS INTEGER ) )
----
-15
-87
-97

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

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

query I rowsort
SELECT DISTINCT - + ( - 71 ) * 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
923

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT COUNT( * ) + - COUNT( * ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + 35 + - + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 35 + - + COUNT ( * ) FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT MIN( ALL + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-1425
SELECT MIN ( ALL + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT CAST( + MIN( ALL + 52 ) AS SIGNED ) + 35 * SUM( col1 * + col0 + - col1 ) AS col0 FROM tab2 AS cor0
----
423692

skipif mysql # not compatible
query I rowsort label-1426
SELECT CAST ( + MIN ( ALL + 52 ) AS INTEGER ) + 35 * SUM ( col1 * + col0 + - col1 ) AS col0 FROM tab2 AS cor0
----
423692

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

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

query I rowsort
SELECT ALL - col1 * - + 51 AS col0 FROM tab1 cor0
----
2397
255
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1430
SELECT CAST( NULL AS SIGNED ) col1, 10 + - - col0 + 50 AS col1 FROM tab0 AS cor0
----
NULL
147
NULL
157
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1430
SELECT CAST ( NULL AS INTEGER ) col1, 10 + - - col0 + 50 AS col1 FROM tab0 AS cor0
----
NULL
147
NULL
157
NULL
75

query II rowsort
SELECT ALL - - col0 AS col1, col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT DISTINCT + MAX( 77 ) / - 31 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT + MAX ( 77 ) / - 31 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT - ( - 60 ), col1 FROM tab2
----
60
51
60
67
60
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT + 15 DIV col1 col0 FROM tab0
----
0
0
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1435
SELECT + 15 / col1 col0 FROM tab0
----
0
0
15

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

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

query I rowsort
SELECT 37 - col0 AS col1 FROM tab1
----
-14
-48
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT 74 * 59 DIV - 16 + - CAST( ( + COUNT( ALL + ( col2 ) ) ) AS SIGNED ) FROM tab2
----
-275

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT 74 * 59 / - 16 + - CAST ( ( + COUNT ( ALL + ( col2 ) ) ) AS INTEGER ) FROM tab2
----
-275

query I rowsort
SELECT DISTINCT ( - + col2 ) + - 32 AS col2 FROM tab1
----
-100
-128
-91

query I rowsort
SELECT ALL - col0 * + 58 - + col2 FROM tab0
----
-5056
-5725
-917

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + - 25 * - COUNT( * ) + - ( - 54 ) AS col0 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1444
SELECT + - 25 * - COUNT ( * ) + - ( - 54 ) AS col0 FROM tab2 AS cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1445
SELECT ALL + - ( - + col0 ) AS col1, col0 * - CAST( - 32 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
480
87
2784
97
3104

skipif mysql # not compatible
query II rowsort label-1445
SELECT ALL + - ( - + col0 ) AS col1, col0 * - CAST ( - 32 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
480
87
2784
97
3104

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - ( - - MIN( - 13 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - ( - - MIN ( - 13 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col1 / + col2 * + ( - col1 ) BETWEEN ( - 24 / + col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL 95 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT - col2 DIV col2 * - 88 * - col0 AS col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

skipif mysql # not compatible
query I rowsort label-1451
SELECT - col2 / col2 * - 88 * - col0 AS col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1453
SELECT + col0 / + col1 + - col1 col1 FROM tab2 AS cor0
----
-51
-66
-77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT SUM( DISTINCT + 5 ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT SUM ( DISTINCT + 5 ) AS col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT - + 44 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1458
SELECT ALL COUNT( * ) AS col0, - 56 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1458
SELECT ALL COUNT ( * ) AS col0, - 56 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
3
NULL

query I rowsort
SELECT DISTINCT + - 26 AS col0 FROM tab2 WHERE NOT NULL > col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - + 81 + + + col0 + - 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + 78 * MAX( - 50 ) AS col1 FROM tab2
----
-3900

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 78 * MAX ( - 50 ) AS col1 FROM tab2
----
-3900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + COUNT( * ) * - 53 AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1463
SELECT + COUNT ( * ) * - 53 AS col1 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 77 * - + col0 + + col2 + - col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 62 + - 29 FROM tab2 AS cor0
----
33
33
33

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT 25 + MIN ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT - SUM( ALL - + col2 ) + + 65 AS col2 FROM tab0
----
221

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - SUM ( ALL - + col2 ) + + 65 AS col2 FROM tab0
----
221

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

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

query II rowsort
SELECT col1 + + 22, col1 AS col0 FROM tab2 AS cor0
----
73
51
89
67
99
77

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
10
21
47
81
99
1

query II rowsort
SELECT col1 + + col2, col0 AS col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

query I rowsort
SELECT + 60 * col0 * - 21 + + + 19 + col2 * - col1 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-101731
-59643
-85301

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT - - ( col1 ) DIV + + 81 + + 21 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - - ( col1 ) / + + 81 + + 21 FROM tab2 AS cor0
----
21

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

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

query II rowsort
SELECT DISTINCT 25, + 87 - - + 87 AS col2 FROM tab0
----
25
174

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1481
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1481
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( NULL AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1482
SELECT DISTINCT COUNT( * ) DIV 33 + + + 44 * + - ( 17 ) col0 FROM tab1
----
-748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1482
SELECT DISTINCT COUNT ( * ) / 33 + + + 44 * + - ( 17 ) col0 FROM tab1
----
-748

query III rowsort
SELECT * FROM tab2 WHERE col0 / 40 * - col2 = + - 47
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE + + col0 BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( + - col0 ) = 9 * + col2 + ( + 53 )
----

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

query I rowsort
SELECT DISTINCT - ( + col0 ) * - + ( + 25 ) * - 81 + 60 FROM tab1 AS cor0
----
-103215
-172065
-184215

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 37 ) FROM tab0
----
37

query I rowsort
SELECT DISTINCT - - 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 68 >= NULL
----

query I rowsort
SELECT ( 46 ) AS col2 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT - - 79 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
79
79
79

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

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

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

query I rowsort
SELECT DISTINCT - + 23 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1 * + col0 * - 21
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT + CAST( - - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1498
SELECT + CAST ( - - col1 AS INTEGER ) FROM tab0
----
1
21
81

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

query I rowsort
SELECT ALL 23 * - ( - col2 ) FROM tab1
----
1357
1564
2208

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT - 38 * - + COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 38 * - + COUNT ( * ) FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + MIN( ALL + 23 ) * - 73 - COUNT( * ) FROM tab1
----
-1682

skipif mysql # not compatible
query I rowsort label-1504
SELECT + MIN ( ALL + 23 ) * - 73 - COUNT ( * ) FROM tab1
----
-1682

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

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

query I rowsort
SELECT ALL + ( + 46 ) FROM tab1
----
46
46
46

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

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

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

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

query I rowsort
SELECT - 36 * col1 AS col0 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT ( - 54 ) FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT col0 DIV - - col2 + - + col0 AS col0 FROM tab0 cor0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT col0 / - - col2 + - + col0 AS col0 FROM tab0 cor0
----
-15
-79
-97

query I rowsort
SELECT ALL 82 AS col1 FROM tab1 AS cor0
----
82
82
82

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col0 FROM tab1 AS cor0
----
110
115
64

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL - 89 DIV 98 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - 89 / 98 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 75 - - + ( col0 ) + col2 * + 63 * 5 AS col2 FROM tab0
----
14895
31357
3312

query I rowsort
SELECT - col0 * col1 - col2 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT - ( - col2 ) - + col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ( 18 ) - 19 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT - col1 + + col1 DIV - + col2 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-1527
SELECT - col1 + + col1 / - + col2 FROM tab2
----
-53
-68
-78

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

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

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab2 AS cor0
----
88

query II rowsort
SELECT + 92, col2 AS col1 FROM tab0 cor0
----
92
10
92
47
92
99

query II rowsort
SELECT 63, - col1 / - 25 * - - col0 FROM tab0 AS cor0 WHERE NOT - 83 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 * + 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1427625
-240075
-456750

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT - col0 / + + 45 FROM tab2 AS cor0
----
-1
-1
-1

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1 + col0, - col1 AS col1 FROM tab1
----
138
-47
65
-14
90
-5

query I rowsort
SELECT col0 + col1 AS col1 FROM tab0 WHERE NOT - col0 + + - col2 IS NULL
----
108
96
98

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

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

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

query I rowsort
SELECT ALL + + ( - - col1 ) * - 1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1544
SELECT ALL + col2 + - + 45 DIV + 99 + CAST( + - 7 AS SIGNED ) FROM tab2
----
16
33
51

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + col2 + - + 45 / + 99 + CAST ( + - 7 AS INTEGER ) FROM tab2
----
16
33
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT + + col2 + + col0 - ( + 23 ) DIV - + col2 + - 83 FROM tab0 AS cor0
----
-21
113
16

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT + + col2 + + col0 - ( + 23 ) / - + col2 + - 83 FROM tab0 AS cor0
----
-21
113
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT + + col0 DIV + col0 + 79 FROM tab1 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-1546
SELECT + + col0 / + col0 + 79 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT + col1 * - - col1 + 51 * + col2 AS col1 FROM tab2 AS cor0
----
3774
7447
7969

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL COUNT( * ) * - MIN( DISTINCT + 90 ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + 90 ) FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - COUNT( * ) + - + 24 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1549
SELECT - COUNT ( * ) + - + 24 FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT - - col1 DIV - 92 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1550
SELECT - - col1 / - 92 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT DISTINCT - 25 DIV ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - 25 / ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 BETWEEN + + ( - 3 ) AND - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE ( - 86 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 22 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT ALL col2 DIV ( + + 93 ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL col2 / ( + + 93 ) AS col1 FROM tab0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - MAX( ALL - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1561
SELECT - MAX ( ALL - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + MIN( ALL - + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1562
SELECT + MIN ( ALL - + col1 ) AS col1 FROM tab1
----
-47

query II rowsort
SELECT col2, 32 AS col0 FROM tab0
----
10
32
47
32
99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT SUM( DISTINCT - - col2 ) * + 30 FROM tab1 cor0
----
6690

skipif mysql # not compatible
query I rowsort label-1564
SELECT SUM ( DISTINCT - - col2 ) * + 30 FROM tab1 cor0
----
6690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - 13 + col2 * - col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-1118
-2620
-4410

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-1569
SELECT ALL - COUNT ( DISTINCT + col0 ), 74 AS col0 FROM tab1 AS cor0
----
-3
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1570
SELECT DISTINCT - CAST( col0 AS SIGNED ), col1 AS col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-1570
SELECT DISTINCT - CAST ( col0 AS INTEGER ), col1 AS col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE 35 IN ( - 78, 21 + + col0 / + col0 )
----

query I rowsort
SELECT + 30 FROM tab2 AS cor0 WHERE NOT ( 79 ) + + 62 NOT BETWEEN - 88 * - 77 AND NULL
----

query I rowsort
SELECT ALL - 12 * + - 92 FROM tab2 AS cor0
----
1104
1104
1104

query I rowsort
SELECT 52 * - 60 FROM tab2
----
-3120
-3120
-3120

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

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

query I rowsort
SELECT DISTINCT col0 + - col1 + + ( - col2 ) AS col0 FROM tab2
----
-28
-50
-53

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1578
SELECT ALL 88 DIV CAST( + + AVG ( DISTINCT + - 88 ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL 88 / CAST ( + + AVG ( DISTINCT + - 88 ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
-1

query II rowsort
SELECT + col2 AS col2, col1 + + + col1 AS col2 FROM tab2
----
23
102
40
154
58
134

query I rowsort
SELECT DISTINCT + + col0 * + + col0 + + 54 FROM tab0 cor0
----
279
7623
9463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL MAX( DISTINCT + 76 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL MAX ( DISTINCT + 76 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
76

query I rowsort
SELECT ALL col0 + + + 78 FROM tab0
----
165
175
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT - COUNT( * ) + - 61 AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT - COUNT ( * ) + - 61 AS col2 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL ( + col0 ) + + 8 FROM tab1 cor0
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NULL IN ( col2 * + - 36, 28 + col0 ) ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 60 col0 FROM tab1 AS cor0
----
-107
-65
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1590
SELECT ALL - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= - - col2
----
15
81
47
87
21
10

query II rowsort
SELECT col2 - - 98 AS col2, + col0 FROM tab2 AS cor0
----
121
46
138
64
156
75

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 * - 70 NOT BETWEEN NULL AND - + 65 * + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL - 68 - + 44 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - 68 - + 44 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-200

query I rowsort
SELECT + 8 - + col1 + + 83 + 85 * + + col2 AS col1 FROM tab1 AS cor0
----
5101
5824
8237

query I rowsort
SELECT 16 - + ( - col1 ) AS col0 FROM tab1 cor0
----
21
30
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col2 + col1 FROM tab2
----
-46
28
-64
37
-75
9

query I rowsort
SELECT ALL + col0 * - + 35 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT + - 42 * + 48 FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) IS NULL
----
-2016

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT + - 42 * + 48 FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / COUNT( * ) * - - 67 - + 70 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / COUNT ( * ) * - - 67 - + 70 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * - - 71 FROM tab0
----
-1491
-5751
-71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT - - col2 DIV + 90 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1604
SELECT - - col2 / + 90 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT ( + - 88 ) DIV + - MAX( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1605
SELECT DISTINCT ( + - 88 ) / + - MAX ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT col2 AS col1, + 35 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + - 49 ) * - 18
----

query I rowsort
SELECT ALL + + 63 AS col1 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT ALL + + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + col1 * col1 * - - col0 * col1 FROM tab1
----
10625
139944
9447893

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + + col1 > col0
----
3

skipif mysql # not compatible
query I rowsort label-1611
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + + col1 > col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 col2, col1 + - 38 AS col0 FROM tab2 AS cor0
----
46
13
46
29
46
39

query II rowsort
SELECT ALL - col1 AS col0, - 13 AS col0 FROM tab1 AS cor0
----
-14
-13
-47
-13
-5
-13

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

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

query I rowsort
SELECT - + 27 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1616
SELECT ALL 99 * CAST( + col0 AS SIGNED ) * + col1 AS col0, + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
42075
-85
423423
-91
70686
-51

skipif mysql # not compatible
query II rowsort label-1616
SELECT ALL 99 * CAST ( + col0 AS INTEGER ) * + col1 AS col0, + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
42075
-85
423423
-91
70686
-51

query II rowsort
SELECT + 42, + ( col1 ) * 63 - - - 43 * - col1 AS col0 FROM tab0 AS cor0
----
42
106
42
2226
42
8586

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT SUM( - - col0 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT SUM ( - - col0 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT - col2 DIV + - col1 AS col1 FROM tab0 cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - col2 / + - col1 AS col1 FROM tab0 cor0
----
0
99

query I rowsort
SELECT + col0 * - + 58 + + col1 FROM tab1
----
-2944
-4925
-5231

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE + col2 NOT BETWEEN + 37 * + 73 AND 8
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 + - - 28
----

query I rowsort
SELECT ALL - + AVG ( + col0 ) FROM tab1 AS cor0 WHERE + ( + + col2 ) <> NULL
----
NULL

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

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

query I rowsort
SELECT - - col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL = ( - 1 ) - - col1 )
----

query I rowsort
SELECT DISTINCT + + col1 - - - 38 FROM tab2 AS cor0
----
13
29
39

query I rowsort
SELECT + 5 - + 16 FROM tab0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-1630
SELECT 10 DIV + col1 AS col1, col1 FROM tab1 WHERE + col2 = + col2
----
0
14
0
47
2
5

skipif mysql # not compatible
query II rowsort label-1630
SELECT 10 / + col1 AS col1, col1 FROM tab1 WHERE + col2 = + col2
----
0
14
0
47
2
5

query I rowsort
SELECT ALL 10 - - + 96 FROM tab1 AS cor0
----
106
106
106

query I rowsort
SELECT ( + col1 ) + - col1 * + 98 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 13 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 0 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + + col0 ) AS col0 FROM tab1
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT SUM( ALL + col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1639
SELECT SUM ( ALL + col1 ) col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - 93 * 87 * 97 AS col2 FROM tab2
----
-784827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT DISTINCT - 43 DIV MAX( ALL col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - 43 / MAX ( ALL col0 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT - col1 DIV 62 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1642
SELECT - col1 / 62 FROM tab0
----
-1
0
0

query I rowsort
SELECT col0 * + 22 AS col0 FROM tab2
----
1012
1408
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1644
SELECT ALL + 45 * ( + - ( + CAST( SUM( DISTINCT - col0 ) AS SIGNED ) ) ) + + 25 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + 45 * ( + - ( + CAST ( SUM ( DISTINCT - col0 ) AS INTEGER ) ) ) + + 25 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 19 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 - - ( - 9 ) + + col1 AND col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - COUNT( * ) + + SUM( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - col2 <> ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - COUNT ( * ) + + SUM ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - col2 <> ( + col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL + ( - - ( + ( - COUNT( ALL col0 ) ) ) ) AS col1 FROM tab0 AS cor0 WHERE + col1 / + ( - + CAST( NULL AS SIGNED ) ) * - - 3 / col0 + 15 >= + 30 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + ( - - ( + ( - COUNT ( ALL col0 ) ) ) ) AS col1 FROM tab0 AS cor0 WHERE + col1 / + ( - + CAST ( NULL AS INTEGER ) ) * - - 3 / col0 + 15 >= + 30 * - col0
----
0

query I rowsort
SELECT + ( + 13 ) + + + col0 FROM tab2 AS cor0
----
59
77
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1651
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - ( + 31 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT CAST ( NULL AS REAL ) + - ( + 31 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT - 86 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1652
SELECT - 86 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-89

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

query I rowsort
SELECT + + 18 * - + col2 FROM tab0 AS cor0 WHERE + 49 IS NOT NULL
----
-1782
-180
-846

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

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

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 52 * + - 62 ) NOT BETWEEN NULL AND col1
----

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

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

query I rowsort
SELECT ALL - 87 + col1 AS col0 FROM tab2
----
-10
-20
-36

query I rowsort
SELECT ( - - ( + col1 ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 4 + + col2 AS col1 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT SUM( ALL - 69 ) AS col0 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-1661
SELECT SUM ( ALL - 69 ) AS col0 FROM tab0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL 49 + - 63 * - COUNT( * ) AS col0 FROM tab0
----
238

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL 49 + - 63 * - COUNT ( * ) AS col0 FROM tab0
----
238

query I rowsort
SELECT - 50 - + + 57 FROM tab1
----
-107
-107
-107

query I rowsort
SELECT + col0 * - 43 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + - + 42 FROM tab2
----
-19
-2
16

query I rowsort
SELECT DISTINCT - 92 + col1 * + col2 AS col1 FROM tab2
----
1081
2988
3794

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

query I rowsort
SELECT col1 + + 11 + - col2 FROM tab1
----
-10
-43
-71

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

skipif mysql # not compatible
query I rowsort label-1669
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1672
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT + ( CAST( - 19 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + ( CAST ( - 19 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-19

query I rowsort
SELECT ALL col0 * - 78 AS col2 FROM tab0 cor0
----
-1170
-6786
-7566

query II rowsort
SELECT DISTINCT + ( + 20 ), + col0 AS col2 FROM tab2 AS cor0
----
20
46
20
64
20
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT DISTINCT MIN( DISTINCT 22 ) AS col2, + 91 AS col2 FROM tab2 AS cor0
----
22
91

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT MIN ( DISTINCT 22 ) AS col2, + 91 AS col2 FROM tab2 AS cor0
----
22
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT DISTINCT CAST( + AVG ( ALL + + 79 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT CAST ( + AVG ( ALL + + 79 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT - COUNT( * ) * - 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-1678
SELECT - COUNT ( * ) * - 79 FROM tab2
----
237

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - col2
----

query I rowsort
SELECT + col2 * + - 47 FROM tab2
----
-1081
-1880
-2726

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

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

query I rowsort
SELECT ALL + 32 * - col1 FROM tab1
----
-1504
-160
-448

query I rowsort
SELECT DISTINCT col2 * 64 AS col1 FROM tab1
----
3776
4352
6144

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 60 ) * - col1 col1, + 60 * + 92 col2 FROM tab2
----
-3060
5520
-4020
5520
-4620
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT + MAX( ALL 27 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + MAX ( ALL 27 ) FROM tab1
----
27

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1689
SELECT + COUNT ( * ), 22 col1 FROM tab1 AS cor0
----
3
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL + 99 * + COUNT( * ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + 99 * + COUNT ( * ) FROM tab1 AS cor0
----
297

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + col2 / + 31 * ( + 59 ) * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + - col2 * + 35 AS col1 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT - COUNT( DISTINCT - 73 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - COUNT ( DISTINCT - 73 ) AS col1 FROM tab2
----
-1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1700
SELECT - col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + 25 AS col0 FROM tab2 AS cor0
----
-2
15
33

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

query I rowsort
SELECT - col2 - + + col2 + - col1 FROM tab2 AS cor0
----
-157
-183
-97

query I rowsort
SELECT + 85 * 19 FROM tab2
----
1615
1615
1615

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1706
SELECT 27 DIV + MIN( 88 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT 27 / + MIN ( 88 ) AS col0 FROM tab2
----
0

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

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

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

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

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 < - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ALL - col1, + col2 + - - 37 AS col0 FROM tab0 AS cor0
----
-1
136
-21
47
-81
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + MAX( - + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-1715
SELECT + MAX ( - + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51

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

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

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

skipif mysql # not compatible
query I rowsort label-1717
SELECT COUNT ( * ) / - + SUM ( DISTINCT + col1 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 68 ) * - 30 + - + col1 col2 FROM tab1 AS cor0
----
-2045
-2054
-2087

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + 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-1720
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + col2 + + 60 + - 47 FROM tab2
----
36
53
71

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 52 AS col2 FROM tab0 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT ALL - 66 * + col2 DIV - col2 - - + 73 * col2 AS col1 FROM tab2 AS cor0
----
1745
2986
4300

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - 66 * + col2 / - col2 - - + 73 * col2 AS col1 FROM tab2 AS cor0
----
1745
2986
4300

query I rowsort
SELECT + 37 * - ( + + col1 ) FROM tab0 cor0
----
-2997
-37
-777

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT - 42 DIV 3 * - col2 FROM tab0 AS cor0
----
1386
140
658

skipif mysql # not compatible
query I rowsort label-1727
SELECT - 42 / 3 * - col2 FROM tab0 AS cor0
----
1386
140
658

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

skipif mysql # not compatible
query I rowsort label-1728
SELECT - + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT 64 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT 64 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ( - 33 ) - + + 74 + - + 14 + - COUNT( * ) FROM tab1
----
-124

skipif mysql # not compatible
query I rowsort label-1730
SELECT ( - 33 ) - + + 74 + - + 14 + - COUNT ( * ) FROM tab1
----
-124

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - MAX( 28 ) FROM tab1 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - MAX ( 28 ) FROM tab1 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + MAX( - 63 ) AS col0 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1734
SELECT + MAX ( - 63 ) AS col0 FROM tab2 cor0
----
-63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT + ( - 41 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 84 * + + 65 <> + - 36 * - - 55 * - 34 + + col2
----

query I rowsort
SELECT ALL + 5 * + - col1 FROM tab2 AS cor0
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < + col1 * + col0 + 25
----
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < + col1 * + col0 + 25
----
0

query II rowsort
SELECT col2, + col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab2
----
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col1
----

query II rowsort
SELECT + col1 AS col0, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT 4 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4
4
4

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 71 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 15 * + - 35 FROM tab1
----
-525
-525
-525

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - col1 * - col0 + + - 52 IS NULL
----

query I rowsort
SELECT - col0 * + - col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT - 23 * + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1749
SELECT DISTINCT - 23 * + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT CAST( NULL AS SIGNED ) + 18 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT CAST ( NULL AS INTEGER ) + 18 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 39 * - col2 + + - 89 + + col1 * col0 + - 77 AS col0 FROM tab2 AS cor0
----
3077
6322
7121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1752
SELECT - 49 + + 19, + MIN( DISTINCT - col2 ) DIV COUNT( - col0 ) AS col0 FROM tab0 cor0
----
-30
-33

skipif mysql # not compatible
query II rowsort label-1752
SELECT - 49 + + 19, + MIN ( DISTINCT - col2 ) / COUNT ( - col0 ) AS col0 FROM tab0 cor0
----
-30
-33

query I rowsort
SELECT ALL - 40 + - - col2 - + - col2 * - 80 + - 70 FROM tab1 AS cor0
----
-4771
-5482
-7694

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL 29 * MIN( + + col1 ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 29 * MIN ( + + col1 ) AS col0 FROM tab0 AS cor0
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 68 <= - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1756
SELECT ALL col0 - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - - 0 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL col0 - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - - 0 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - col2 + - + col1 AS col2 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1758
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT - 79 + + col1 NOT IN ( - - 42 * - col1, col1, - - col0 * col1, - 73 + col1 * - col1, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col1
----

query I rowsort
SELECT col0 * 60 AS col1 FROM tab0
----
5220
5820
900

query I rowsort
SELECT DISTINCT + 54 + 9 * - + col2 * - + col2 + + ( + 86 ) FROM tab1
----
31469
41756
83084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT SUM( 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1764
SELECT SUM ( 42 ) FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT ALL + + COUNT( * ) AS col1, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT + 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT col2 * + col0 AS col0, 35 * - ( - - 77 ) AS col1 FROM tab2 cor0
----
1058
-2695
2560
-2695
4350
-2695

query I rowsort
SELECT + - 76 AS col1 FROM tab1 AS cor0
----
-76
-76
-76

query II rowsort
SELECT - 55 AS col1, + 97 AS col1 FROM tab0
----
-55
97
-55
97
-55
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / - 8 * + - col2 col1 FROM tab1 WHERE NOT + + col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL COUNT( + - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL COUNT ( + - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
3

query II rowsort
SELECT + col2 * + col0 * + 46 AS col1, + col0 + + col1 FROM tab0
----
32430
96
40020
108
441738
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 68 * - + col2, col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE 63 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 63 IS NOT NULL
----
3

query I rowsort
SELECT + + col0 * - ( + col1 ) + col2 + - 45 FROM tab1 AS cor0
----
-411
-4254
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + 64 + + COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 64 + + COUNT ( * ) FROM tab2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT CAST( - ( + SUM( 19 ) ) AS SIGNED ) col0 FROM tab0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1781
SELECT CAST ( - ( + SUM ( 19 ) ) AS INTEGER ) col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + col1 ) + + col1 NOT IN ( - + col2, 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - - 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 89 ) col0, - ( 32 ) col0 FROM tab2 AS cor0
----
89
-32
89
-32
89
-32

query I rowsort
SELECT DISTINCT + 6 * + + col2 - 86 FROM tab0 AS cor0
----
-26
196
508

query II rowsort
SELECT DISTINCT - col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL - MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - MIN ( + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT - COUNT( * ) - 82 - - COUNT( * ) AS col0 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-1789
SELECT - COUNT ( * ) - 82 - - COUNT ( * ) AS col0 FROM tab1
----
-82

query II rowsort
SELECT + col2 - col2, 61 * + - col2 * - col2 AS col0 FROM tab2
----
0
205204
0
32269
0
97600

query I rowsort
SELECT - + 82 FROM tab2 WHERE - 44 >= - 19 * col1
----
-82
-82
-82

query I rowsort
SELECT ALL + 37 * col2 FROM tab0 cor0
----
1739
3663
370

query I rowsort
SELECT DISTINCT + 88 * + col1 * col0 FROM tab1 AS cor0
----
37400
376376
62832

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT 39 DIV + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
7

skipif mysql # not compatible
query I rowsort label-1794
SELECT 39 / + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
7

query I rowsort
SELECT - - 25 AS col0 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT SUM( ALL - col1 ) * + 85 AS col0, - 38 FROM tab0 AS cor0
----
-8755
-38

skipif mysql # not compatible
query II rowsort label-1796
SELECT SUM ( ALL - col1 ) * + 85 AS col0, - 38 FROM tab0 AS cor0
----
-8755
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + COUNT( ALL - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1797
SELECT + COUNT ( ALL - col2 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT 41 AS col0, + col1 AS col1 FROM tab2
----
41
51
41
67
41
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 25 = 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT DISTINCT + col1 DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + col1 / + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + 86 FROM tab2 AS cor0
----
23
86
40
86
58
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1802
SELECT + - MAX( + CAST( - - col1 AS SIGNED ) ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-1802
SELECT + - MAX ( + CAST ( - - col1 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1804
SELECT + - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL + col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT ( 43 ) * + + COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT ( 43 ) * + + COUNT ( * ) FROM tab1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT CAST( - MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT CAST ( - MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab0
----
81

query II rowsort
SELECT ALL 37 + + + 97 AS col1, - 29 FROM tab2
----
134
-29
134
-29
134
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - - MAX( col2 ) FROM tab1 WHERE + 54 >= + col0
----
96

skipif mysql # not compatible
query I rowsort label-1809
SELECT - - MAX ( col2 ) FROM tab1 WHERE + 54 >= + col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT DISTINCT - 87 DIV - col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT - 87 / - col0 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1811
SELECT ALL + 15 * 44 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + 15 * 44 + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL MIN( ALL + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT + ( + col2 ) * - col2 * - + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + ( + col2 ) * - col2 * - + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT - 50 + - - col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - - 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL col0 * + col1 * - - col0 * + - col0 + + 10 - + col2 AS col1 FROM tab0 AS cor0
----
-13828563
-273412
-912762

query I rowsort
SELECT DISTINCT - + 39 - - col2 AS col0 FROM tab2 AS cor0
----
-16
1
19

query I rowsort
SELECT DISTINCT + col0 - + + col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT DISTINCT 65 - + - 96 * + COUNT( * ) AS col2, 66 FROM tab2 AS cor0
----
353
66

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT 65 - + - 96 * + COUNT ( * ) AS col2, 66 FROM tab2 AS cor0
----
353
66

query I rowsort
SELECT DISTINCT + col0 - + 38 + col1 - 70 + - + 71 * + col0 AS col1 FROM tab2 AS cor0
----
-3277
-4511
-5291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + col0 col0 FROM tab0 WHERE NOT + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + MIN( ALL - 18 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + MIN ( ALL - 18 ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL MAX( DISTINCT 73 ) AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL MAX ( DISTINCT 73 ) AS col0 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - MIN( - - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1825
SELECT - MIN ( - - col0 ) FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 0 * + - col0 * - 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( ( + + col0 ) ) AS col1 FROM tab2
----
46
64
75

query II rowsort
SELECT + col0, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 WHERE NOT 76 BETWEEN - col2 * - col1 AND NULL
----
-25

query I rowsort
SELECT ALL - ( + + 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query II rowsort
SELECT ALL 47, 70 AS col1 FROM tab2 AS cor0
----
47
70
47
70
47
70

query I rowsort
SELECT DISTINCT - + 93 AS col2 FROM tab2 cor0
----
-93

query I rowsort
SELECT + + 32 * + - 33 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2193898b11a83d6d9f53c732d7ce76d8

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT COUNT( * ) * + 67 * + ( + - 96 ) FROM tab0
----
-19296

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT COUNT ( * ) * + 67 * + ( + - 96 ) FROM tab0
----
-19296

query I rowsort
SELECT + col1 * + - col2 + - + 84 FROM tab2
----
-1257
-3164
-3970

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
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-1836
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 cor0 WHERE NOT - col0 * - + col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT - ( + 10 ) * + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-510
-670
-770

skipif mysql # not compatible
query I rowsort label-1839
SELECT - ( + 10 ) * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-510
-670
-770

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab1 cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - COUNT( - - 7 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1841
SELECT - COUNT ( - - 7 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 * col0 + + 53 FROM tab2 AS cor0 WHERE NOT - 30 IS NULL
----
1111
2613
4403

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1844
SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT - 19 DIV col2 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 19 / col2 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT SUM ( + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT - col0 + + col0 + + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL col0 * - - col1 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 col2, + col0 * + 84 AS col2 FROM tab2
----
-67
3864
-67
5376
-67
6300

query III rowsort
SELECT * FROM tab1 WHERE + ( - col0 ) * - - 88 IS NULL
----

query II rowsort
SELECT col0 AS col0, - col1 * - col1 FROM tab0
----
15
6561
87
441
97
1

query I rowsort
SELECT ALL col0 + + - 5 FROM tab2
----
41
59
70

query I rowsort
SELECT - 66 + col2 AS col2 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT + col0 + - col2 * + - 34 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT MAX( DISTINCT + - col2 ) + + + MAX( ALL + col2 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1857
SELECT MAX ( DISTINCT + - col2 ) + + + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT + col2 + + col0 DIV col1 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-1858
SELECT + col2 + + col0 / col1 FROM tab2 AS cor0
----
23
40
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 34 col1 FROM tab1 AS cor0
----
-102
-130
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) < 80 + col1
----

query I rowsort
SELECT col1 * col1 - col0 * col0 AS col0 FROM tab1
----
-2405
-6072
-7200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT 41 * col0 + + col1 DIV col0 AS col1 FROM tab2
----
1887
2625
3075

skipif mysql # not compatible
query I rowsort label-1863
SELECT 41 * col0 + + col1 / col0 AS col1 FROM tab2
----
1887
2625
3075

query III rowsort
SELECT * FROM tab1 WHERE 91 * col1 > col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + 24 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT ALL + col0 / - col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT CAST( 66 AS SIGNED ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT CAST ( 66 AS INTEGER ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - SUM( ALL + 51 ) - + 38 AS col1 FROM tab2
----
-191

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - SUM ( ALL + 51 ) - + 38 AS col1 FROM tab2
----
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT + col2 DIV 9 FROM tab1
----
10
6
7

skipif mysql # not compatible
query I rowsort label-1869
SELECT + col2 / 9 FROM tab1
----
10
6
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col1 IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 2 / - col2 + + col1 * - col0 < + col0 * + ( + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 74 > - col1 - + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - col1 ) <= - 71
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE col2 + col1 >= col0
----
-23
-40
-58

query I rowsort
SELECT ( col0 ) * + 60 + col2 AS col2 FROM tab0 WHERE NOT ( + col1 ) <> col2 * + col2 + 91 * - 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT + ( 62 ) FROM tab2 WHERE NOT + col2 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1877
SELECT + ( 62 ) FROM tab2 WHERE NOT + col2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT SUM( ALL CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-1879
SELECT SUM ( ALL CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT + MIN( + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT + MIN ( + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT - MIN( DISTINCT + col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1881
SELECT - MIN ( DISTINCT + col2 ) col0 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT + MIN( ( - ( CAST( NULL AS SIGNED ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + MIN ( ( - ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - + col1 NOT BETWEEN NULL AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1885
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 82 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT - 74 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1888
SELECT - 74 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT DISTINCT + 59 + - col2 FROM tab0 AS cor0 WHERE col1 + CAST( 23 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT + 59 + - col2 FROM tab0 AS cor0 WHERE col1 + CAST ( 23 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT SUM( + 94 ) AS col1 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1890
SELECT SUM ( + 94 ) AS col1 FROM tab0 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT 29 * MAX( ALL col2 ) FROM tab2 AS cor0
----
1682

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 29 * MAX ( ALL col2 ) FROM tab2 AS cor0
----
1682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1892
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT 47 DIV + 33 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1894
SELECT 47 / + 33 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - 69 + 57 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 26 >= ( col1 + 44 * col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - ( + ( - 53 ) )
----

query I rowsort
SELECT DISTINCT col0 + 41 FROM tab0 AS cor0 WHERE NOT ( col1 ) - col0 * + 77 IN ( col0 + 25 )
----
128
138
56

query I rowsort
SELECT + 30 + - col0 AS col2 FROM tab1 AS cor0
----
-21
-55
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 1 <= 5
----

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 1 <= 5
----

query I rowsort
SELECT + col2 + + 73 * 74 FROM tab0 AS cor0
----
5412
5449
5501

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1904
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 10 + - 23 AS col0 FROM tab2
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT ALL CAST( + col1 AS SIGNED ) * + col0 AS col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL CAST ( + col1 AS INTEGER ) * + col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - 43 * + col2 AS col0 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - COUNT( * ) * MIN( ALL - col2 ) * + 26 + + ( - 98 - 46 ) FROM tab2
----
4380

skipif mysql # not compatible
query I rowsort label-1908
SELECT - COUNT ( * ) * MIN ( ALL - col2 ) * + 26 + + ( - 98 - 46 ) FROM tab2
----
4380

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 4 + 83 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 WHERE - 36 BETWEEN NULL AND - col2 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE col1 - - 17 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 63 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 16 + + 26 FROM tab1
----
42

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 WHERE NOT NULL <= NULL OR NOT col1 BETWEEN NULL AND 49 * + 83
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 + + 68 * 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - 55 - + - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 55 - + - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT ALL - - 0 / - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - - 0 / - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND col2
----

query I rowsort
SELECT 26 FROM tab1 WHERE col0 + col1 IS NOT NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - ( 23 ) + + 73 + COUNT( * ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1921
SELECT - ( 23 ) + + 73 + COUNT ( * ) AS col1 FROM tab2
----
53

query I rowsort
SELECT ALL 21 + + - 70 - 12 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT ALL - 96 * - col1 FROM tab0 AS cor0
----
2016
7776
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT + + col0 DIV + - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT + + col0 / + - col2 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT DISTINCT 89 AS col2, col0 FROM tab2 AS cor0
----
89
46
89
64
89
75

query I rowsort
SELECT - col0 * col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 87 > + col0 + - col1
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 5 <= NULL
----

query I rowsort
SELECT ALL - col1 * + ( - col2 ) FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 69 + + - col2 * + 3 BETWEEN + 74 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - + 16 + + MAX( + ( - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - + 16 + + MAX ( + ( - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col0 < NULL
----
NULL

query I rowsort
SELECT ( col2 ) * + - col2 * - col2 * + 49 AS col1 FROM tab2
----
3136000
596183
9560488

query I rowsort
SELECT col1 * 48 AS col2 FROM tab0
----
1008
3888
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1933
SELECT 7 * 14, CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
98
-3

skipif mysql # not compatible
query II rowsort label-1933
SELECT 7 * 14, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
98
-3

query I rowsort
SELECT 25 * - col0 AS col1 FROM tab0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + COUNT( * ) * + MAX( - col1 ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( * ) * + MAX ( - col1 ) AS col1 FROM tab2
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 19 - - col0 = + - 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 81 AS col0 FROM tab2 cor0
----
81

query I rowsort
SELECT - 41 + + col2 AS col0 FROM tab1
----
18
27
55

query I rowsort
SELECT - col2 * + + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( 18 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL + - MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + - MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col1 * + col0 * - 25 FROM tab0 AS cor0
----
2425
30375
45675

query I rowsort
SELECT ALL - - ( col0 ) + - + col0 - + 74 - col0 FROM tab1 AS cor0
----
-125
-159
-165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT + MIN( DISTINCT - col0 ), - COUNT( * ) AS col2 FROM tab1
----
-91
-3

skipif mysql # not compatible
query II rowsort label-1947
SELECT + MIN ( DISTINCT - col0 ), - COUNT ( * ) AS col2 FROM tab1
----
-91
-3

query I rowsort
SELECT col0 * col0 - - 14 FROM tab1
----
2615
7239
8295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / - 5 + + ( + + 95 ) + + - 34 + CAST( 38 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - 5 + + ( + + 95 ) + + - 34 + CAST ( 38 AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT 3 + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1950
SELECT 3 + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT 54 + - + 16 AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT + - 6 + + col0 AS col2 FROM tab2 AS cor0
----
40
58
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1953
SELECT - 29 * - CAST( col1 AS SIGNED ) DIV - + col1 FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-1953
SELECT - 29 * - CAST ( col1 AS INTEGER ) / - + col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - + col0 - - - 9 FROM tab0 AS cor0
----
-106
-24
-96

query I rowsort
SELECT + col2 * 77 AS col0 FROM tab1
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT - COUNT( - 39 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - COUNT ( - 39 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + 50 col2 FROM tab2 cor0
----
4700
4700
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1958
SELECT + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL - COUNT( * ) * + - 23 + + 92 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - COUNT ( * ) * + - 23 + + 92 FROM tab2 AS cor0
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT 90 * + 17 + + + 9 + - MIN( ALL - 20 ) AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
1559
3

skipif mysql # not compatible
query II rowsort label-1960
SELECT 90 * + 17 + + + 9 + - MIN ( ALL - 20 ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1559
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT + CAST( - 17 AS SIGNED ) FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-1961
SELECT + CAST ( - 17 AS INTEGER ) FROM tab2
----
-17
-17
-17

query II rowsort
SELECT - col0 AS col0, - col2 AS col0 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1963
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col1 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT - ( - ( - - ( CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - ( - ( - - ( CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col2 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL MAX( ALL + 43 ) AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL MAX ( ALL + 43 ) AS col0 FROM tab2
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 col2, 12 FROM tab1
----
63
12
63
12
63
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1968
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, CAST( - col1 AS SIGNED ) FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-1968
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CAST ( - col1 AS INTEGER ) FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1969
SELECT ALL col2 + + - CAST( NULL AS DECIMAL ) col2 FROM tab0 WHERE NOT - col2 <= ( + col2 / + + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1969
SELECT ALL col2 + + - CAST ( NULL AS REAL ) col2 FROM tab0 WHERE NOT - col2 <= ( + col2 / + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1971
SELECT + col0 AS col2, - 93 DIV + col1 AS col0 FROM tab0 cor0
----
15
-1
87
-4
97
-93

skipif mysql # not compatible
query II rowsort label-1971
SELECT + col0 AS col2, - 93 / + col1 AS col0 FROM tab0 cor0
----
15
-1
87
-4
97
-93

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NOT - col0 / col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
13

query II rowsort
SELECT ALL 31 + + col2, 90 AS col2 FROM tab1
----
127
90
90
90
99
90

query I rowsort
SELECT 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT - 43 + - - col2 FROM tab0
----
-33
4
56

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 + - + col0 * + + col1 ) NOT IN ( 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( 21 ) AS col2, + col0 FROM tab2 AS cor0
----
-21
46
-21
64
-21
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + - MAX( - col1 ) + MIN( - + col2 ) + + 84 AS col0 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1980
SELECT + - MAX ( - col1 ) + MIN ( - + col2 ) + + 84 AS col0 FROM tab1 AS cor0
----
-7

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
96
47
68
5
59

query I rowsort
SELECT - 69 + 32 AS col1 FROM tab1 AS cor0
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 63 * + - 43 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 42 ) AS col1 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 3 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 11 ) FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47, + col2 col0 FROM tab2
----
47
23
47
40
47
58

query I rowsort
SELECT ALL col0 + col2 + + - 25 AS col1 FROM tab1
----
119
122
134

query I rowsort
SELECT ALL + 60 AS col0 FROM tab1
----
60
60
60

query I rowsort
SELECT DISTINCT col1 + + 96 FROM tab0
----
117
177
97

query I rowsort
SELECT 80 * col0 AS col0 FROM tab1 WHERE NULL <= 74
----

query I rowsort
SELECT DISTINCT + ( 22 ) FROM tab0
----
22

query I rowsort
SELECT ALL + col0 * + col2 + - + 20 FROM tab2
----
1038
2540
4330

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT COUNT( * ) + + 32 col1 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT DISTINCT COUNT ( * ) + + 32 col1 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT + 82 - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + 82 - COUNT ( * ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - + COUNT( - - 97 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1996
SELECT - + COUNT ( - - 97 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 30 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + - 69 - + + 83 FROM tab0 AS cor0
----
-105
-142
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2000
SELECT * FROM tab2 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2000
SELECT * FROM tab2 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT COUNT( * ) DIV + 93 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT DISTINCT COUNT ( * ) / + 93 col2 FROM tab0
----
0

query I rowsort
SELECT 8 * - col0 AS col2 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT + col0 DIV - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-2003
SELECT + col0 / - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
25
81
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2004
SELECT DISTINCT - col0 AS col1, + col0 + - CAST( - 92 AS SIGNED ) FROM tab1 AS cor0
----
-51
143
-85
177
-91
183

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - col0 AS col1, + col0 + - CAST ( - 92 AS INTEGER ) FROM tab1 AS cor0
----
-51
143
-85
177
-91
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT COUNT( - 14 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2005
SELECT COUNT ( - 14 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT ALL - col1, col1 FROM tab0 cor0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, col0 * + 54 * - 80 + + 55 AS col1 FROM tab1 cor0
----
51
-220265
85
-367145
91
-393065

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN ( - 21 ) AND col0
----
75
67
58

query I rowsort
SELECT ALL col0 * - - col1 AS col0 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 84 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col2 + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + + COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2014
SELECT + + COUNT ( col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT - col0 * - - col1 * - - 13 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT - col0 * - - col1 * - - 13 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 81 * + col1 AS col1 FROM tab1
----
1134
3807
405

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2017
SELECT SUM ( ALL + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL + 87 + + - COUNT( * ) + + 26 * - + 37 AS col1 FROM tab2
----
-878

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + 87 + + - COUNT ( * ) + + 26 * - + 37 AS col1 FROM tab2
----
-878

query I rowsort
SELECT - 28 * - + col2 AS col2 FROM tab0
----
1316
2772
280

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) <> col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT + 5 DIV + col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + 5 / + col1 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + MIN( ALL + - col1 ) * 8 FROM tab2 AS cor0
----
-616

skipif mysql # not compatible
query I rowsort label-2022
SELECT + MIN ( ALL + - col1 ) * 8 FROM tab2 AS cor0
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL - + SUM( - col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - + SUM ( - col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2024
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ), col1, - col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-2024
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ), col1, - col0 * + col2 )
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2026
SELECT DISTINCT - SUM( DISTINCT + 26 ) + + 32 * MIN( ALL - 84 ) + 16 + - 20 * + MIN( + 86 ) AS col0, 81 * - + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-4418
-243

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT - SUM ( DISTINCT + 26 ) + + 32 * MIN ( ALL - 84 ) + 16 + - 20 * + MIN ( + 86 ) AS col0, 81 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-4418
-243

query I rowsort
SELECT 83 + - col1 FROM tab1
----
36
69
78

query III rowsort
SELECT ALL * FROM tab1 WHERE 5 >= + 95
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - 25 AS col0, - col0 col2 FROM tab1
----
110
-85
116
-91
76
-51

query I rowsort
SELECT ALL - 9 AS col0 FROM tab1 WHERE NOT - + 4 > ( - - col0 * + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT CAST( NULL AS SIGNED ) - + + col0 + + col0 * col0 * + 12 / + - col1 * col2 + - - 29 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2033
SELECT CAST ( NULL AS INTEGER ) - + + col0 + + col0 * col0 * + 12 / + - col1 * col2 + - - 29 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL COUNT( * ) + + 2 AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL COUNT ( * ) + + 2 AS col2 FROM tab2
----
5

query III rowsort
SELECT * FROM tab1 WHERE - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) * + - col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2037
SELECT + + COUNT( * ) DIV - + 28 FROM tab1 WHERE col0 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT + + COUNT ( * ) / - + 28 FROM tab1 WHERE col0 * + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2038
SELECT COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + col1 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
1
99
21
10
81
47

query I rowsort
SELECT + + 44 AS col1 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT + 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - - SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2042
SELECT - - SUM ( col1 ) FROM tab2 cor0
----
195

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 54 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2045
SELECT COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT + - COUNT( * ), 44 col1 FROM tab2 AS cor0
----
-3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2046
SELECT + - COUNT ( * ), 44 col1 FROM tab2 AS cor0
----
-3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2047
SELECT - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT 0 DIV + - 16 + + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2048
SELECT 0 / + - 16 + + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT + MIN( + 23 ) DIV - 92 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT + MIN ( + 23 ) / - 92 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT + - CAST( + + col0 AS SIGNED ) AS col2, - col1 / col2 FROM tab2 AS cor0 WHERE NULL >= col2
----

skipif mysql # not compatible
query II rowsort label-2050
SELECT + - CAST ( + + col0 AS INTEGER ) AS col2, - col1 / col2 FROM tab2 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT - + col0 * - col1 + 33 AS col0 FROM tab1 AS cor0
----
4310
458
747

query I rowsort
SELECT DISTINCT - + 76 * + + col2 FROM tab2 AS cor0
----
-1748
-3040
-4408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT - COUNT( * ) DIV 22 * SUM( DISTINCT - 96 ) + - ( - + COUNT( * ) ) + - 11 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2053
SELECT - COUNT ( * ) / 22 * SUM ( DISTINCT - 96 ) + - ( - + COUNT ( * ) ) + - 11 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL - + ( + + 63 ) * - 37 AS col2 FROM tab1 AS cor0
----
2331
2331
2331

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT 63 + + COUNT( * ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2056
SELECT 63 + + COUNT ( * ) AS col0 FROM tab2
----
66

query I rowsort
SELECT - + 76 + + col0 - - col1 * + + col2 FROM tab2 AS cor0
----
1143
3068
3885

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - + 69 * - COUNT( * ) FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - + 69 * - COUNT ( * ) FROM tab1 cor0
----
207

query I rowsort
SELECT ALL - + 70 + + - col1 + - col1 FROM tab2 AS cor0
----
-172
-204
-224

query I rowsort
SELECT - - col0 + - col2 * - col1 * - 18 * + - 1 + - col0 FROM tab2 AS cor0
----
21114
55440
69948

query I rowsort
SELECT ( + + col2 ) + + + col1 * + 25 + + col0 * + 80 AS col2 FROM tab1 AS cor0
----
4526
6984
8523

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT + 67 - + 85 * + - MIN( col1 ) FROM tab1 AS cor0
----
492

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + 67 - + 85 * + - MIN ( col1 ) FROM tab1 AS cor0
----
492

query II rowsort
SELECT + + 76, col1 AS col2 FROM tab2 AS cor0 WHERE + 9 <= ( col1 )
----
76
51
76
67
76
77

query I rowsort
SELECT - col1 + - 55 + 3 AS col1 FROM tab2 AS cor0
----
-103
-119
-129

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= col1 * + 45
----

query I rowsort
SELECT + col0 + col1 + + - col1 * - col0 FROM tab2 AS cor0
----
2443
5069
5167

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + - 37 + - col1 + - + col1 / + ( + col0 ), 38, - col1 )
----

query II rowsort
SELECT ( + col2 ), + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 - - + col1 BETWEEN 42 / + 79 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT col2 FROM tab2 WHERE ( ( NULL ) BETWEEN - col1 + - 38 AND - col0 + CAST( + + col2 AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2070
SELECT col2 FROM tab2 WHERE ( ( NULL ) BETWEEN - col1 + - 38 AND - col0 + CAST ( + + col2 AS INTEGER ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL - ( + 29 ) + - COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - ( + 29 ) + - COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2072
SELECT + col0 AS col0, - col0 * CAST( NULL AS SIGNED ) col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2072
SELECT + col0 AS col0, - col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - MIN( + + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2073
SELECT - MIN ( + + col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT - + 16 * + ( + COUNT( * ) ) AS col0 FROM tab2 WHERE NOT 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - + 16 * + ( + COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT 92 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 51 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + - MIN( ALL col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2076
SELECT + - MIN ( ALL col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT + - col2 DIV - 86 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT + - col2 / - 86 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT - col1 DIV ( + + 76 ) FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT - col1 / ( + + 76 ) FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT - - COUNT( * ) DIV + 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT - - COUNT ( * ) / + 66 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL SUM( DISTINCT + ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL SUM ( DISTINCT + ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + ( col1 ), col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / - col0 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2084
SELECT DISTINCT col0, col0 * + + 25 * - + col0 + - 33 + + col0 DIV 12 DIV col1 * col0 * col1 + + col0 - col2 AS col0 FROM tab0
----
15
-5690
87
-189181
97
-234484

skipif mysql # not compatible
query II rowsort label-2084
SELECT DISTINCT col0, col0 * + + 25 * - + col0 + - 33 + + col0 / 12 / col1 * col0 * col1 + + col0 - col2 AS col0 FROM tab0
----
15
-5690
87
-189181
97
-234484

query I rowsort
SELECT ( + + 17 ) FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT + col0 + + 14 FROM tab2
----
60
78
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - COUNT( ALL col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2087
SELECT - COUNT ( ALL col0 ) FROM tab0
----
-3

query II rowsort
SELECT - 33, col1 FROM tab0
----
-33
1
-33
21
-33
81

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-2090
SELECT - col2 + + 27 DIV + 5, - 39 AS col1 FROM tab1 AS cor0
----
-54
-39
-63
-39
-91
-39

skipif mysql # not compatible
query II rowsort label-2090
SELECT - col2 + + 27 / + 5, - 39 AS col1 FROM tab1 AS cor0
----
-54
-39
-63
-39
-91
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query I rowsort label-2091
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT 52 DIV - - 24 AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2093
SELECT 52 / - - 24 AS col1 FROM tab0
----
2
2
2

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 7 IS NULL
----

query I rowsort
SELECT col2 * - 40 AS col2 FROM tab2 AS cor0 WHERE col1 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL + - 98 + + col0 + + 78 + - + CAST( 71 AS SIGNED ) * CAST( - col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
50050
61837
681890

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + - 98 + + col0 + + 78 + - + CAST ( 71 AS INTEGER ) * CAST ( - col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
50050
61837
681890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col2 - - - ( - - 68 ) FROM tab1 cor0
----
-9
0
28

onlyif mysql # DIV for integer division: 
query II rowsort label-2100
SELECT - - 76 - col1 + col1 * - 55 * - 94 + - col1 DIV - col0, - 56 * - + 68 AS col0 FROM tab0 cor0
----
108625
3808
418770
3808
5245
3808

skipif mysql # not compatible
query II rowsort label-2100
SELECT - - 76 - col1 + col1 * - 55 * - 94 + - col1 / - col0, - 56 * - + 68 AS col0 FROM tab0 cor0
----
108625
3808
418770
3808
5245
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + MIN( ALL - col0 ) * - 50 * - + 38 FROM tab0 AS cor0
----
-184300

skipif mysql # not compatible
query I rowsort label-2101
SELECT + MIN ( ALL - col0 ) * - 50 * - + 38 FROM tab0 AS cor0
----
-184300

query I rowsort
SELECT - 26 * + col2 AS col2 FROM tab0
----
-1222
-2574
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col0 ) col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + 54 AS col0 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL + ( + 86 ) AS col2 FROM tab1
----
86
86
86

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 > - - 29 * - 67
----

query I rowsort
SELECT DISTINCT - - col1 * + - col2 / + col2 * - col0 - + col0 * + col1 / + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - + + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - + + col0 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT col2 DIV + - ( + + 17 ) AS col0 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT col2 / + - ( + + 17 ) AS col0 FROM tab0 AS cor0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL COUNT( ALL + - ( 74 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( ALL + - ( 74 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ( - col1 ) * - + col1 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT - - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT - - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT + - 71 DIV - col1 FROM tab0 AS cor0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-2114
SELECT + - 71 / - col1 FROM tab0 AS cor0
----
0
3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT - COUNT( * ) * 55 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - COUNT ( * ) * 55 FROM tab1 AS cor0
----
-165

query II rowsort
SELECT DISTINCT + - 71, 60 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - ( - + ( + 91 ) ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT - - 17 + - col1 AS col2 FROM tab1 AS cor0
----
-30
12
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col0, col1, + 55, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT ALL + 84 + + col1 * - col1 FROM tab0
----
-357
-6477
83

query I rowsort
SELECT ALL col2 + + 13 + + col0 FROM tab1
----
157
160
172

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <= - col0
----

query I rowsort
SELECT + col1 + - ( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0, 61 * col2, + 33 * + 58, 93, + 99, col1 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT + + MAX( col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + + MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT + col2 DIV col1 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2127
SELECT + col2 / col1 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + 85 + col1 * + 57 FROM tab0
----
1282
142
4702

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
1104
2624
4425

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 NOT IN ( + col0 * + col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL COUNT( + 13 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL COUNT ( + 13 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 10 AS col2 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL SUM( DISTINCT - - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL SUM ( DISTINCT - - col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT ALL + col1 * + 10 * - col2 AS col2 FROM tab0
----
-2100
-38070
-990

query I rowsort
SELECT - - 99 AS col2 FROM tab0 WHERE NOT col2 / + 7 IS NULL
----
99
99
99

query I rowsort
SELECT ALL col0 * - 64 AS col1 FROM tab0
----
-5568
-6208
-960

query II rowsort
SELECT ALL - col2 AS col0, col0 * - col1 * - 41 FROM tab2
----
-23
96186
-40
202048
-58
206025

query I rowsort
SELECT + col2 * - + 76 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT ALL col1 * - + col1 * col2 FROM tab1
----
-1475
-150212
-18816

query II rowsort
SELECT DISTINCT + col1 * + col2, ( 41 ) AS col2 FROM tab0
----
210
41
3807
41
99
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT + + col2 DIV - ( + 92 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2143
SELECT DISTINCT + + col2 / - ( + 92 ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT - 68 * + - 43 + - + COUNT( * ) FROM tab0 AS cor0
----
2921

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT - 68 * + - 43 + - + COUNT ( * ) FROM tab0 AS cor0
----
2921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ALL + COUNT( * ) DIV - 45 * - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + COUNT ( * ) / - 45 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col0 + - - ( 45 ) + - 52 * - 90 AS col0 FROM tab0 cor0
----
-10
4812
-47
4740
-99
4822

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT - col1 + - + col2 DIV - col1 + + - 41 * col2 AS col0 FROM tab0
----
-2008
-3961
-431

skipif mysql # not compatible
query I rowsort label-2147
SELECT - col1 + - + col2 / - col1 + + - 41 * col2 AS col0 FROM tab0
----
-2008
-3961
-431

onlyif mysql # aggregate syntax: 
query II rowsort label-2148
SELECT - - 0 AS col2, - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2148
SELECT - - 0 AS col2, - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + 29 + + col0 + + - 53 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ALL + col1 DIV col1 * col0 + col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + col1 / col1 * col0 + col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IN ( - ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT ALL col0 DIV col0, col0 * + 14 AS col1 FROM tab0 AS cor0
----
1
1218
1
1358
1
210

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL col0 / col0, col0 * + 14 AS col1 FROM tab0 AS cor0
----
1
1218
1
1358
1
210

query I rowsort
SELECT + col1 * col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
87
97

query II rowsort
SELECT - 7, + col0 AS col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT 81 * - - COUNT( * ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2157
SELECT 81 * - - COUNT ( * ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + MAX( DISTINCT - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2158
SELECT + MAX ( DISTINCT - + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col0 + - + 98 * + + col0 * 41 FROM tab1
----
-204867
-341445
-365547

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 60 IN ( col1, + col1 - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 41 AS col0, 59 AS col0 FROM tab2
----
41
59
41
59
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT col2 / col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT col2 / col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2164
SELECT DISTINCT col2 DIV - + 57 + + col1, + 85 AS col1 FROM tab0
----
0
85
21
85
81
85

skipif mysql # not compatible
query II rowsort label-2164
SELECT DISTINCT col2 / - + 57 + + col1, + 85 AS col1 FROM tab0
----
0
85
21
85
81
85

query I rowsort
SELECT 37 + col1 AS col0 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT + col1 * col1 + - 66 AS col1 FROM tab0
----
-65
375
6495

query I rowsort
SELECT ALL + col0 * + col0 - + - col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT - + 99 + + 0 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - - col1 + 53 FROM tab2 AS cor0
----
104
120
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT ALL - col1 * + col1 + + - CAST( NULL AS SIGNED ) * - + 19 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - col1 * + col1 + + - CAST ( NULL AS INTEGER ) * - + 19 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

query I rowsort
SELECT ALL + 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2174
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0, col2, + 44 + + + 64, + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2174
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0, col2, + 44 + + + 64, + ( + CAST ( NULL AS INTEGER ) ) )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT - col2 * - ( - col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT + CAST( + 63 AS SIGNED ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) FROM tab2
----
63

query II rowsort
SELECT col1 AS col2, col0 + + 95 AS col2 FROM tab1
----
14
146
47
186
5
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT MIN( DISTINCT + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT MIN ( DISTINCT + - col0 ) AS col2 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL col0 * + - col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + col1 * - 74 * + col1 FROM tab2
----
-192474
-332186
-438746

query I rowsort
SELECT DISTINCT ( 77 ) AS col0 FROM tab0
----
77

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL < - + col1 * + col1 * col1 * + - col2
----

query I rowsort
SELECT ALL - + col0 * 48 + col2 FROM tab2 AS cor0
----
-2185
-3032
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - - COUNT( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2187
SELECT - - COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2188
SELECT + + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * + 47 * + 85 + - + 78 ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) * + - COUNT( ALL - 5 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) * + - COUNT ( ALL - 5 ) FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + MAX( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2194
SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

query II rowsort
SELECT DISTINCT 79 + - 28 AS col0, col0 FROM tab2 AS cor0
----
51
46
51
64
51
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - - 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL - + CAST( + - col0 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - + CAST ( + - col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT + COUNT( * ) + CAST( 59 AS SIGNED ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2198
SELECT + COUNT ( * ) + CAST ( 59 AS INTEGER ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT col0 + + - 48 FROM tab0 AS cor0
----
-33
39
49

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - ( + col2 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2201
SELECT + CAST( + 67 AS SIGNED ) + MAX( + col0 ), + 12 AS col0 FROM tab0 AS cor0
----
164
12

skipif mysql # not compatible
query II rowsort label-2201
SELECT + CAST ( + 67 AS INTEGER ) + MAX ( + col0 ), + 12 AS col0 FROM tab0 AS cor0
----
164
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL + - col2 + + + 33 * - CAST( NULL AS SIGNED ) + + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + - col2 + + + 33 * - CAST ( NULL AS INTEGER ) + + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 + col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col0 * - ( + col0 ) + col1 AS col1 FROM tab2
----
-2065
-4019
-5558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + col1 col0, - 88 FROM tab0
----
100
-88
128
-88
31
-88

query I rowsort
SELECT DISTINCT + 89 + - - col2 + + col2 AS col0 FROM tab2
----
135
169
205

query I rowsort
SELECT - - col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL col1 DIV - - 89 + - col2 + - + col1 * 31 AS col1 FROM tab0
----
-130
-2558
-661

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL col1 / - - 89 + - col2 + - + col1 * 31 AS col1 FROM tab0
----
-130
-2558
-661

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT DISTINCT col0 - 31 DIV + + col2 FROM tab0
----
15
84
97

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT col0 - 31 / + + col2 FROM tab0
----
15
84
97

query II rowsort
SELECT ALL col1 * - col0 * + col1 * - col2 - - col1 AS col0, - 37 FROM tab2 AS cor0
----
15178317
-37
19527217
-37
2751909
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - col1 + col0 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT DISTINCT - - col0 - col1 * - CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-354
-6546
96

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - - col0 - col1 * - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL - COUNT( * ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT SUM( DISTINCT + - 69 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-2215
SELECT SUM ( DISTINCT + - 69 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + SUM( + - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2216
SELECT + SUM ( + - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT - COUNT( * ) DIV + + ( - - 43 ) - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) / + + ( - - 43 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 32 ) <> col1 + + col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + - MAX( + 61 ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + - MAX ( + 61 ) AS col1 FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT COUNT( ALL + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2220
SELECT COUNT ( ALL + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 * + + 9 * + col0 FROM tab2
----
19044
36864
50625

query I rowsort
SELECT ALL - col2 * - + col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2223
SELECT - SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT - + col1 * 52 FROM tab0 AS cor0
----
-1092
-4212
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2226
SELECT SUM( ALL + - col0 ) + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-2226
SELECT SUM ( ALL + - col0 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT - col2 + + col0 + - ( - 31 ) + col1 * 90 * 86 FROM tab0 AS cor0
----
162648
626939
7769

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL - - col2 * + - CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT ALL - - col2 * + - CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + 10 + - + 17 * + - ( col2 ) FROM tab2 AS cor0
----
401
690
996

query II rowsort
SELECT ALL 91 + - + col1 AS col0, + col0 FROM tab1 AS cor0 WHERE NOT - col0 * + + ( - 39 ) + + - col2 + ( + col2 ) >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - col1 col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + ( + - col0 ) * - + col1 + - 10 AS col0 FROM tab2
----
2336
4918
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + 67 - - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 67 - - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT DISTINCT ( + + 39 ) / - col0 - col0 + - + 88 * CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2236
SELECT DISTINCT ( + + 39 ) / - col0 - col0 + - + 88 * CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 <> + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT - COUNT( * ) * + 24 + - COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - COUNT ( * ) * + 24 + - COUNT ( * ) FROM tab0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col0 FROM tab1, tab1 AS cor0
----
89

query I rowsort
SELECT col1 * - 97 + - col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT ALL + col2 * + 26 + + col0 * col2 + + col2 FROM tab1 AS cor0
----
6608
7488
8024

query I rowsort
SELECT + + col2 - - 2 FROM tab0 AS cor0 WHERE + 39 <= col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT 30 AS col0, - ( 91 ) - - + COUNT( * ) FROM tab0 AS cor0
----
30
-88

skipif mysql # not compatible
query II rowsort label-2243
SELECT 30 AS col0, - ( 91 ) - - + COUNT ( * ) FROM tab0 AS cor0
----
30
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT - MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT 24 * col1 AS col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL - ( - 90 ) FROM tab2
----
90
90
90

query I rowsort
SELECT ALL + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 <> NULL
----

query II rowsort
SELECT DISTINCT - - col0, + col2 FROM tab0 AS cor0 WHERE + col2 + - col1 - - + col1 * + - col0 > - col2
----
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT + MAX( - 40 ) col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2250
SELECT DISTINCT + MAX ( - 40 ) col0 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - MIN( - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2251
SELECT - MIN ( - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT COUNT( ALL col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT COUNT ( ALL col1 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 47 IS NULL
----

query I rowsort
SELECT + col0 * + + col2 * - - ( + col2 ) + - col1 + - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL MAX( ALL - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL MAX ( ALL - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT DISTINCT - COUNT( col1 ) + - 34 AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - COUNT ( col1 ) + - 34 AS col1 FROM tab2
----
-37

query II rowsort
SELECT - col1 AS col2, + 67 + - col0 * - - col2 AS col2 FROM tab1 AS cor0
----
-14
-4829
-47
-6121
-5
-4948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab0 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL SUM( - 37 ) AS col1 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL SUM ( - 37 ) AS col1 FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - 74 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 74 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-222

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT + col2 DIV - 41 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT + col2 / - 41 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 76 col0 FROM tab1 AS cor0
----
-1064
-3572
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab2
----
23

query II rowsort
SELECT DISTINCT 12 * - col1 AS col1, - col0 FROM tab0
----
-12
-97
-252
-87
-972
-15

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * + col1 AS col2 FROM tab0
----
100
451
6608

query I rowsort
SELECT - - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT DISTINCT + col2 DIV - + col0 + - 39 AS col1 FROM tab1 AS cor0
----
-39
-40

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + col2 / - + col0 + - 39 AS col1 FROM tab1 AS cor0
----
-39
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT - col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - CAST( + col2 AS SIGNED ) + - col1 - - + 35
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2269
SELECT - col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - CAST ( + col2 AS INTEGER ) + - col1 - - + 35
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT ALL + CAST( NULL AS SIGNED ) - + col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + CAST ( NULL AS INTEGER ) - + col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - SUM( DISTINCT - 97 ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT - SUM ( DISTINCT - 97 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = 17
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> col2 * - col1 * col1 + col1
----

query I rowsort
SELECT - - col0 + - + 15 AS col0 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT DISTINCT - 60 DIV - 50 - col1 - + 58 AS col0 FROM tab2 AS cor0
----
-108
-124
-134

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - 60 / - 50 - col1 - + 58 AS col0 FROM tab2 AS cor0
----
-108
-124
-134

query I rowsort
SELECT + + col1 + + 45 - col1 * 91 AS col0 FROM tab0 AS cor0
----
-1845
-45
-7245

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT + + 56 * + + col0 * - col2 + + col2 - + - col2 + - 62 DIV + + col1 + + ( 4 ) AS col0 FROM tab0 AS cor0
----
-39382
-48698
-537628

skipif mysql # not compatible
query I rowsort label-2276
SELECT + + 56 * + + col0 * - col2 + + col2 - + - col2 + - 62 / + + col1 + + ( 4 ) AS col0 FROM tab0 AS cor0
----
-39382
-48698
-537628

query I rowsort
SELECT DISTINCT + col0 * - - 51 FROM tab1
----
2601
4335
4641

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT ALL col0 DIV - - ( col0 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL col0 / - - ( col0 ) FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + - 36 + col0 col1 FROM tab2
----
108
126
137

query I rowsort
SELECT DISTINCT + col2 + col0 - - 91 FROM tab2 WHERE NOT ( + + 50 ) IS NULL
----
160
195
224

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 <> col1
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT 17 FROM tab1 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT - SUM( 77 ) * 16 * + SUM( col2 ) col1 FROM tab1
----
-824208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT - SUM ( 77 ) * 16 * + SUM ( col2 ) col1 FROM tab1
----
-824208

query I rowsort
SELECT ALL + 44 + + - col1 FROM tab0
----
-37
23
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2287
SELECT CAST( NULL AS SIGNED ), - MIN( ALL + col0 ) AS col2 FROM tab2
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-2287
SELECT CAST ( NULL AS INTEGER ), - MIN ( ALL + col0 ) AS col2 FROM tab2
----
NULL
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + - col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT ALL + ( - COUNT( + col1 ) ) DIV - 90 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + ( - COUNT ( + col1 ) ) / - 90 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 * + col1 * - col2 + - 59 + + + col2 - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = + col1 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT col0 DIV + + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT col0 / + + col2 FROM tab2 AS cor0
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * - - col0 col2 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT + 50 * col1 FROM tab1
----
2350
250
700

query II rowsort
SELECT DISTINCT 3, - col1 AS col0 FROM tab1 AS cor0
----
3
-14
3
-47
3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL MIN( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 61 + + 44 + + col1 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL + 45 - - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----
45

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + 45 - - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + col1 <> + - 40 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( ALL 67 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( ALL 67 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + 77 FROM tab2 WHERE ( - + col2 - + 84 ) <> + ( + 80 )
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT - MAX( - col0 ) + - + 92 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - MAX ( - col0 ) + - + 92 FROM tab1
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 57 ) col2 FROM tab1
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 40 >= - col1 * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 * + 0 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT 35 + + + col1 AS col1, col1 AS col1 FROM tab0
----
116
81
36
1
56
21

query III rowsort
SELECT * FROM tab0 WHERE NULL > - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT DISTINCT - 86 * col2 DIV + ( - - col1 ) + + col0 * + col1 FROM tab2 AS cor0
----
2308
4884
4951

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT - 86 * col2 / + ( - - col1 ) + + col0 * + col1 FROM tab2 AS cor0
----
2308
4884
4951

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) < - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT + ( + col1 ) / CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + ( + col1 ) / CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT DISTINCT col2 - - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT col2 - - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 + - col1 AND col0 + - + ( + 34 ) + - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30 col0, + col1 AS col2 FROM tab0 AS cor0
----
30
1
30
21
30
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 52 >= NULL
----

query I rowsort
SELECT ALL col1 + + 53 FROM tab0
----
134
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT SUM( DISTINCT + col0 ) * - COUNT( * ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-2320
SELECT SUM ( DISTINCT + col0 ) * - COUNT ( * ) FROM tab0
----
-597

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 28
----

query I rowsort
SELECT + col2 * - 63 AS col2 FROM tab0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT col1 * ( - col1 ) FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 54 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col0 * + + ( + - col2 ) AS col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN + - 63 AND + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2328
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2, - MAX( col2 ) FROM tab1 AS cor0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-2328
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2, - MAX ( col2 ) FROM tab1 AS cor0
----
-3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT - MAX( + 76 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - MAX ( + 76 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2331
SELECT DISTINCT - ( + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - ( + - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2332
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) <= CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2332
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) <= CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL CAST( NULL AS SIGNED ) + - 66 + 20 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL CAST ( NULL AS INTEGER ) + - 66 + 20 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + SUM( - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + SUM ( - - col1 ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT ( 70 ) DIV + 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-2335
SELECT ( 70 ) / + 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ( MAX( ALL - 66 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-2336
SELECT ( MAX ( ALL - 66 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query I rowsort
SELECT + col1 * 30 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT - 71 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 BETWEEN + - col2 - + col2 + + 66 * + 94 AND 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT - - COUNT( * ) * + 68 AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - - COUNT ( * ) * + 68 AS col1 FROM tab1 AS cor0
----
204

query I rowsort
SELECT ALL + 20 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT - col2 * - 35 * col2 AS col0 FROM tab0 cor0
----
343035
3500
77315

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT ALL - col1 DIV 39 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - col1 / 39 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT + - COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2344
SELECT + - COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT 26 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2345
SELECT 26 / col2 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + + 23 * col2 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2347
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL MIN( + 25 ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL MIN ( + 25 ) AS col0 FROM tab2 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT - - SUM( col1 ) + - MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - - SUM ( col1 ) + - MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT 30 * - 23 + + + 58 FROM tab0
----
-632
-632
-632

query II rowsort
SELECT ALL 62 AS col1, + col0 AS col2 FROM tab0
----
62
15
62
87
62
97

query III rowsort
SELECT * FROM tab1 WHERE + - 53 = + 15
----

query I rowsort
SELECT DISTINCT 99 + + 13 FROM tab2
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2355
SELECT CAST( NULL AS DECIMAL ) + 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT CAST ( NULL AS REAL ) + 53 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL col1 DIV 71 * + col1 FROM tab0
----
0
0
81

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL col1 / 71 * + col1 FROM tab0
----
0
0
81

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + col0 BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - 23 + - col2 + col2 FROM tab0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 51 * - col1 col0 FROM tab1 WHERE NOT + col1 + col2 + + - 16 * + 0 IS NULL
----
-196
-2329
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT COUNT( * ) * - 23 + - + 95 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-2360
SELECT COUNT ( * ) * - 23 + - + 95 FROM tab1 AS cor0
----
-164

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + 61 + - col2 FROM tab2 AS cor0
----
21
3
38

query I rowsort
SELECT ALL + col2 * - - col0 + col0 FROM tab2 AS cor0
----
1104
2624
4425

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 <> + 91
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2366
SELECT ALL COUNT ( * ) col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2367
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + 43 AS SIGNED ) * + - CAST( - + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2367
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + 43 AS INTEGER ) * + - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2368
SELECT ALL - CAST( + COUNT( - col0 ) AS SIGNED ) AS col0, 5 FROM tab0 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - CAST ( + COUNT ( - col0 ) AS INTEGER ) AS col0, 5 FROM tab0 AS cor0
----
-3
5

query III rowsort
SELECT ALL * FROM tab2 WHERE + 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 95 * - col1 AS col0 FROM tab0
----
-41895
-623295
-95

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT col0 * + 90 AS col0 FROM tab1
----
4590
7650
8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL SUM( - col2 ) * + 16 FROM tab2
----
-1936

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL SUM ( - col2 ) * + 16 FROM tab2
----
-1936

query I rowsort
SELECT - 27 * - 68 FROM tab1 AS cor0
----
1836
1836
1836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 78 col2 FROM tab1 AS cor0
----
-3978
-6630
-7098

query I rowsort
SELECT col2 - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - col1 * - col0 NOT BETWEEN NULL AND ( + ( + 66 ) + - 59 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - + 83 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - + 83 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN - 54 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 < col2
----
85
5
59
91
47
68

query I rowsort
SELECT 98 + + col2 AS col0 FROM tab0
----
108
145
197

query III rowsort
SELECT * FROM tab2 WHERE ( 55 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT DISTINCT col0 + ( 6 + + CAST( NULL AS SIGNED ) * - 62 ) FROM tab1 WHERE - 38 * 21 + + col0 IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT col0 + ( 6 + + CAST ( NULL AS INTEGER ) * - 62 ) FROM tab1 WHERE - 38 * 21 + + col0 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + - 68 col0 FROM tab0
----
-16
-16
-16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + ( - ( - 79 ) ) ) < ( 70 * 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - COUNT( DISTINCT col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2386
SELECT - COUNT ( DISTINCT col0 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 - col0 * + 13 FROM tab0
----
-1218
-1358
-210

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 11 )
----

query I rowsort
SELECT - ( ( + 18 ) ) FROM tab1
----
-18
-18
-18

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE + col0 - col1 / - 92 <= - col0
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + 14 IS NULL
----
59
68
96

query I rowsort
SELECT + col1 - - 55 AS col1 FROM tab2
----
106
122
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 81 + + COUNT( * ) * - 32 FROM tab1 WHERE 52 + col2 * col2 NOT IN ( + col2 )
----
-15

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 81 + + COUNT ( * ) * - 32 FROM tab1 WHERE 52 + col2 * col2 NOT IN ( + col2 )
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab0
----
90
90
90

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) * 46 AS col2 FROM tab1 WHERE NOT ( NULL ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT - COUNT( * ) * + 49 AS col2 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - COUNT ( * ) * + 49 AS col2 FROM tab1
----
-147

query I rowsort
SELECT DISTINCT 21 * + col0 AS col2 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL <> + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL col0 DIV 12 + + col1 AS col2 FROM tab2
----
54
73
82

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col0 / 12 + + col1 AS col2 FROM tab2
----
54
73
82

query I rowsort
SELECT - 56 * + 0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + COUNT( * ) * COUNT( + 48 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2406
SELECT + COUNT ( * ) * COUNT ( + 48 ) FROM tab0
----
9

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE + 31 + 20 <> + col2
----
59
68
96

query I rowsort
SELECT ALL + col1 * + 82 AS col2 FROM tab1
----
1148
3854
410

query I rowsort
SELECT DISTINCT - 56 * col0 + + col2 FROM tab0 cor0
----
-4862
-5333
-793

query I rowsort
SELECT DISTINCT ( col0 ) * col1 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * - col1
----

query I rowsort
SELECT DISTINCT col2 * 64 + col2 FROM tab0
----
3055
6435
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2413
SELECT 17 DIV COUNT( * ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2413
SELECT 17 / COUNT ( * ) AS col0 FROM tab0
----
5

query I rowsort
SELECT col2 + + col2 FROM tab1 WHERE col0 IN ( ( - 97 ) )
----

query I rowsort
SELECT ALL col2 + 13 AS col0 FROM tab2 cor0
----
36
53
71

query I rowsort
SELECT ALL col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT + COUNT( * ) - 14 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + COUNT ( * ) - 14 FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2418
SELECT DISTINCT - MAX( CAST( NULL AS DECIMAL ) ) + SUM( CAST( NULL AS SIGNED ) + - ( col0 + col2 ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - MAX ( CAST ( NULL AS REAL ) ) + SUM ( CAST ( NULL AS INTEGER ) + - ( col0 + col2 ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 / - col2 FROM tab2 AS cor0 WHERE NOT NULL < ( - ( col0 ) )
----

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT COUNT( 52 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2421
SELECT COUNT ( 52 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL 48 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( 68 ) )
----
48

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 48 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( 68 ) )
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( ( col0 ) )
----

query I rowsort
SELECT ALL + 43 * + col0 FROM tab2 AS cor0
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT - - ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT DISTINCT - - ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab1 WHERE NOT ( col1 * + 41 ) = ( NULL )
----

query I rowsort
SELECT 23 * col2 FROM tab2 WHERE NOT + col0 NOT IN ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT 1 * COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2428
SELECT 1 * COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT + col2 * col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT + col2 * col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 9 + + col0 * col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 78 ) FROM tab1 WHERE NOT 72 / - 80 IS NULL
----
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 53 IS NULL OR NOT ( 27 - - ( + col1 + + 62 ) ) BETWEEN - col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND ( col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT - CAST( NULL AS SIGNED ) * + col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT - CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 94 ) col0 FROM tab0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 NOT BETWEEN ( + col2 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ( MAX( 64 ) ) FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-2438
SELECT ( MAX ( 64 ) ) FROM tab0 cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT - col2 DIV + col1 * + col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT - col2 / + col1 * + col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 93 * 33 ) NOT BETWEEN + 63 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT - - 34 DIV + ( - 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2441
SELECT - - 34 / + ( - 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE - 51 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE - 51 IS NULL
----
0

query I rowsort
SELECT - - 74 * + col2 * + + col1 + col0 FROM tab0 AS cor0
----
15627
281733
7423

query I rowsort
SELECT + 30 + col0 AS col1 FROM tab0 AS cor0
----
117
127
45

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col2 ) < ( + 82 * + col0 - + 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT - 34 + + - CAST( NULL AS SIGNED ) * - col0 * ( 40 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT - 34 + + - CAST ( NULL AS INTEGER ) * - col0 * ( 40 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - 2, + col1 FROM tab2 AS cor0
----
2
51
2
67
2
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 + - 14 * 50 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - + COUNT( * ) + - 30 AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2449
SELECT - + COUNT ( * ) + - 30 AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT DISTINCT 39 + - col1 AS col0 FROM tab1
----
-8
25
34

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE ( - 42 ) IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - col2 + - 92 - + col1 * - - col0 + - col1 AS col2 FROM tab2
----
-2512
-5137
-5242

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL + COUNT( * ) + - SUM( 74 ) + - 86 AS col1 FROM tab0
----
-305

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + COUNT ( * ) + - SUM ( 74 ) + - 86 AS col1 FROM tab0
----
-305

query I rowsort
SELECT ALL 55 / - col0 + - col0 AS col2 FROM tab2 WHERE ( + - 58 ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - SUM( - - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2456
SELECT - SUM ( - - col1 ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2458
SELECT DISTINCT + 18 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + 18 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2459
SELECT + - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) <= + 97
----

skipif mysql # not compatible
query I rowsort label-2460
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) <= + 97
----

query I rowsort
SELECT 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT - col2 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT - col2 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col1 FROM tab0 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( col1 ) / ( - ( - col1 ) ) ) >= col0 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - - ( + + 85 ) ) ) = 42 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) = ( col0 )
----

query II rowsort
SELECT col0 AS col2, 47 FROM tab0 AS cor0
----
15
47
87
47
97
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 * - 38 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT ALL + 99 AS col1, COUNT( * ) AS col2 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL + 99 AS col1, COUNT ( * ) AS col2 FROM tab0
----
99
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 92 FROM tab2 WHERE NOT + col2 IS NULL
----
92
92
92

query II rowsort
SELECT + ( - col2 ) AS col1, col0 AS col0 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT 40 * + col0 * + 6 AS col0 FROM tab1
----
12240
20400
21840

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - - SUM( + ( + col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - - SUM ( + ( + col2 ) ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT - + ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) + + 13 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT - + ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) + + 13 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 + - - col1 + + - 48 AS col1 FROM tab2 AS cor0
----
49
93
94

query I rowsort
SELECT ALL 80 * + ( 7 ) FROM tab1 AS cor0
----
560
560
560

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col2 > 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT ALL + 75 + + + col1 + - 63 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + 75 + + + col1 + - 63 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + + 22 * - + col0 FROM tab1 AS cor0
----
-1726
-1843
-975

query I rowsort
SELECT 88 * - + col0 * - 5 AS col2 FROM tab2 AS cor0
----
20240
28160
33000

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - MAX( - 63 ) AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - MAX ( - 63 ) AS col0 FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( + col1 BETWEEN NULL AND + col0 )
----
46
64

query I rowsort
SELECT col0 * + col2 + - col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1012
2496
4275

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 - + 55 - - 92 * - ( + col0 ) FROM tab0
----
-1354
-8038
-8978

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT ALL 88 AS col2, 67 - - COUNT( ALL ( col1 ) ) FROM tab0
----
88
70

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL 88 AS col2, 67 - - COUNT ( ALL ( col1 ) ) FROM tab0
----
88
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT 59 * - 71 + - COUNT( * ) AS col0 FROM tab2
----
-4192

skipif mysql # not compatible
query I rowsort label-2490
SELECT 59 * - 71 + - COUNT ( * ) AS col0 FROM tab2
----
-4192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 * + col1 col1 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT COUNT( * ) - + 36 AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT COUNT ( * ) - + 36 AS col0 FROM tab2
----
-33

query II rowsort
SELECT ALL - + ( - col2 ) + 89, + col1 FROM tab0 AS cor0
----
136
81
188
1
99
21

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT 77 + - col1 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT + + ( + - col1 ) DIV + 92 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT + + ( + - col1 ) / + 92 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 11 * - col1 * - - 49 / + + 65 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( 13, col1, - + col0 )
----

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( 13, col1, - + col0 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col2 FROM tab2
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - + col1 * - col1 / 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 87 IN ( + - ( - 32 ), - col1, + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL + MAX( ALL - - col2 ) AS col2 FROM tab0 AS cor0 WHERE - 34 NOT BETWEEN + ( 57 ) AND NULL
----
99

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + MAX ( ALL - - col2 ) AS col2 FROM tab0 AS cor0 WHERE - 34 NOT BETWEEN + ( 57 ) AND NULL
----
99

query II rowsort
SELECT ( - col2 ) AS col1, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT + - 94 AS col1 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 * col0 + + 19 FROM tab2 AS cor0
----
2365
4947
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col1 FROM tab1 AS cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT DISTINCT + col0 DIV 93 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + col0 / 93 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 64 BETWEEN - - col1 + + col2 + - + col2 AND - + col2 * col0 * - 74 + + 72
----

query I rowsort
SELECT + 79 AS col0 FROM tab0 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + MAX( ALL - 27 ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2513
SELECT + MAX ( ALL - 27 ) AS col0 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - ( - ( - - COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2514
SELECT - ( - ( - - COUNT ( * ) ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + ( - 24 ) * + 55 FROM tab0
----
-1320
-1320
-1320

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT 84 DIV - ( - col1 ) + + + col2 AS col1 FROM tab0
----
14
183
48

skipif mysql # not compatible
query I rowsort label-2516
SELECT 84 / - ( - col1 ) + + + col2 AS col1 FROM tab0
----
14
183
48

query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT DISTINCT col2 DIV - ( + 40 ) AS col1, 34 AS col1 FROM tab2
----
-1
34
0
34

skipif mysql # not compatible
query II rowsort label-2518
SELECT DISTINCT col2 / - ( + 40 ) AS col1, 34 AS col1 FROM tab2
----
-1
34
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab2
----
75

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT + 96 DIV - - ( - col0 ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2521
SELECT + 96 / - - ( - col0 ) FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + SUM ( + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT 34 + col1 AS col2 FROM tab0 AS cor0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2525
SELECT DISTINCT - COUNT( * ) DIV - 45, + COUNT( * ) DIV - 37 * CAST( NULL AS DECIMAL ) - + + ( + MAX( ALL - 91 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2525
SELECT DISTINCT - COUNT ( * ) / - 45, + COUNT ( * ) / - 37 * CAST ( NULL AS REAL ) - + + ( + MAX ( ALL - 91 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE 25 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - ( + AVG ( - 28 ) ) FROM tab0 AS cor0 WHERE + col0 + + 42 + - col2 IN ( - col1 )
----
NULL

query I rowsort
SELECT + - 84 FROM tab1 cor0 WHERE - col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT - 61 + + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 61 + + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT DISTINCT - col2 * + 53 * - col2 * - 61 / + - col0 * - 46 / - 36 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - col2 * + 53 * - col2 * - 61 / + - col0 * - 46 / - 36 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - + col0 + - ( - 25 ) AS col1 FROM tab2 AS cor0
----
-21
-39
-50

query I rowsort
SELECT DISTINCT + ( + - 53 ) AS col2 FROM tab0 cor0
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NULL < col0
----

query I rowsort
SELECT col1 - - - col2 - - + 7 FROM tab1
----
-14
-47
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT + col2 * CAST( NULL AS SIGNED ) * - - 91 * + 4 - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT + col2 * CAST ( NULL AS INTEGER ) * - - 91 * + 4 - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 22 col2 FROM tab2 AS cor0
----
-22

query II rowsort
SELECT ALL + ( + col0 ) * - - col2 AS col0, 3 AS col0 FROM tab1
----
4896
3
5015
3
6188
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT DISTINCT + col0 * col1 + - + col0 * col0 / 20 + + CAST( - 10 AS SIGNED ) FROM tab2 WHERE + col1 / 49 BETWEEN col2 AND - + 12
----

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + col0 * col1 + - + col0 * col0 / 20 + + CAST ( - 10 AS INTEGER ) FROM tab2 WHERE + col1 / 49 BETWEEN col2 AND - + 12
----

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 79 * + 74 FROM tab2 AS cor0
----
5846

query I rowsort
SELECT 20 * - col1 AS col2 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + - COUNT( + col0 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2547
SELECT + - COUNT ( + col0 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - 36 + - col2 * col0 * + col2 <= - col0 )
----
-51
-85
-91

query I rowsort
SELECT - col0 * + + 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 91 * - 13 AS col1 FROM tab2 AS cor0
----
-1183
-1183
-1183

query II rowsort
SELECT ALL - - col0 AS col2, - 33 AS col2 FROM tab2 AS cor0
----
46
-33
64
-33
75
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL - CAST( - 79 AS SIGNED ) FROM tab2 cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - CAST ( - 79 AS INTEGER ) FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT ALL - col0 * + + 97 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ( - SUM( ALL + - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2554
SELECT ( - SUM ( ALL + - col0 ) ) FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT ALL - col1 DIV - - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - col1 / - - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 55 * + - 71 FROM tab1
----
-3905
-3905
-3905

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT DISTINCT ( - - col2 ) DIV + col1 - + col1 AS col0 FROM tab0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT ( - - col2 ) / + col1 - + col1 AS col0 FROM tab0
----
-21
-81
98

query I rowsort
SELECT - 4 * - col2 FROM tab1
----
236
272
384

query I rowsort
SELECT ALL + col1 * - + col2 + - col0 * col1 FROM tab1
----
-2058
-720
-7473

query I rowsort
SELECT ALL + col2 * + 99 + - + col1 FROM tab1
----
5836
6685
9490

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT + 59 DIV - - 82 + + - col2 * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-2564
SELECT + 59 / - - 82 + + - col2 * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2565
SELECT + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT - 77 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - col0 + - - 79 FROM tab2
----
15
33
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT MIN( DISTINCT + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2568
SELECT MIN ( DISTINCT + - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT DISTINCT COUNT( * ) * + 28 + ( + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT COUNT ( * ) * + 28 + ( + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT - + 29 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT - COUNT( * ) - 52 FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - COUNT ( * ) - 52 FROM tab0 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT COUNT( * ) + - + 69 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2 + + col2
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT DISTINCT COUNT ( * ) + - + 69 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2 + + col2
----
-69

query II rowsort
SELECT DISTINCT + col2, + col0 * + - 95 AS col1 FROM tab2
----
23
-4370
40
-6080
58
-7125

query I rowsort
SELECT DISTINCT - col0 + - + col2 FROM tab0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT col2 DIV + + 54 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2576
SELECT col2 / + + 54 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT col0 - + + 78 AS col0 FROM tab1 AS cor0 WHERE ( - 45 ) IS NOT NULL
----
-27
13
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT - + 78 * - CAST( col2 AS SIGNED ) + - 20 FROM tab2 AS cor0
----
1774
3100
4504

skipif mysql # not compatible
query I rowsort label-2578
SELECT - + 78 * - CAST ( col2 AS INTEGER ) + - 20 FROM tab2 AS cor0
----
1774
3100
4504

query I rowsort
SELECT + - 79 FROM tab0 AS cor0 WHERE NOT - 42 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT - ( - COUNT( * ) ) AS col2, + 43 * - 48 AS col1 FROM tab1
----
3
-2064

skipif mysql # not compatible
query II rowsort label-2580
SELECT - ( - COUNT ( * ) ) AS col2, + 43 * - 48 AS col1 FROM tab1
----
3
-2064

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * - - 50 * - col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2582
SELECT - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT - col0 DIV + + col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2583
SELECT - col0 / + + col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT ALL CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) - + 77 FROM tab2 AS cor0 WHERE 27 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - + 77 FROM tab2 AS cor0 WHERE 27 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - + 77 * - 50 * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) = - 90
----
11550

skipif mysql # not compatible
query I rowsort label-2585
SELECT - + 77 * - 50 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) = - 90
----
11550

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT COUNT( * ) + - + 80 AS col2 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) + - + 80 AS col2 FROM tab1
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * + 27 / + - col1 <> - col0
----

query III rowsort
SELECT * FROM tab2 WHERE - 71 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL COUNT( ALL + 91 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL COUNT ( ALL + 91 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT + COUNT( * ) - - - 89 FROM tab1 WHERE NOT NULL = NULL
----
-89

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + COUNT ( * ) - - - 89 FROM tab1 WHERE NOT NULL = NULL
----
-89

query I rowsort
SELECT DISTINCT 94 + - col0 AS col1 FROM tab1 cor0
----
3
43
9

query II rowsort
SELECT + col1 * - + col2 * - - 99, - 8 AS col1 FROM tab2 AS cor0
----
-116127
-8
-304920
-8
-384714
-8

query I rowsort
SELECT - 82 * - col0 * - - col2 FROM tab2 AS cor0
----
209920
356700
86756

query I rowsort
SELECT + 84 * - - col1 AS col0 FROM tab0 AS cor0
----
1764
6804
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2595
SELECT - CAST( + + 82 AS SIGNED ) DIV + 46 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2595
SELECT - CAST ( + + 82 AS INTEGER ) / + 46 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - MIN( ALL + 37 ) * MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3367

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - MIN ( ALL + 37 ) * MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT DISTINCT + 8 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT + 8 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 29 + + col0 * - - col0 AS col1 FROM tab1 cor0
----
2630
7254
8310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT + col1 + col0 * + ( - - CAST( + + 68 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3179
4429
5167

skipif mysql # not compatible
query I rowsort label-2600
SELECT + col1 + col0 * + ( - - CAST ( + + 68 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3179
4429
5167

query I rowsort
SELECT DISTINCT 23 + + col2 AS col2 FROM tab2 AS cor0
----
46
63
81

query I rowsort
SELECT DISTINCT col0 + + col2 + + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
4436
569
861

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT - + MAX( + ( + + 49 ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - + MAX ( + ( + + 49 ) ) FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL + col2 - + col1 + - 63 FROM tab1 AS cor0
----
-42
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT MAX( ALL + 15 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT MAX ( ALL + 15 ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + MAX( + + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2606
SELECT + MAX ( + + col2 ) FROM tab1 cor0
----
96

query II rowsort
SELECT ALL - 35 * 36, col0 AS col1 FROM tab2 AS cor0
----
-1260
46
-1260
64
-1260
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT ALL + - col0 * col2 DIV 90 FROM tab2 AS cor0
----
-11
-28
-48

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + - col0 * col2 / 90 FROM tab2 AS cor0
----
-11
-28
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT + ( + - 24 ) - + col0 DIV - - col0 AS col2 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + ( + - 24 ) - + col0 / - - col0 AS col2 FROM tab0 cor0
----
-25

query II rowsort
SELECT ALL 2 AS col1, col2 FROM tab0
----
2
10
2
47
2
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT MIN( col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT MIN ( col1 ) FROM tab2
----
51

query I rowsort
SELECT + 87 * + + 42 AS col2 FROM tab1
----
3654
3654
3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab2
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + MAX( ALL + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2617
SELECT + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + 0 * + 30 >= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( * ) * + COUNT( ALL - col1 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2621
SELECT + COUNT ( * ) * + COUNT ( ALL - col1 ) AS col0 FROM tab0
----
9

query II rowsort
SELECT + col1 AS col2, 36 * - - 52 AS col1 FROM tab2
----
51
1872
67
1872
77
1872

query I rowsort
SELECT - + col1 * - 25 FROM tab2 cor0
----
1275
1675
1925

query II rowsort
SELECT DISTINCT + + col0 * 91 + + - 43 * 26 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
247
-15
6799
-87
7709
-97

query II rowsort
SELECT ALL - - col2 AS col2, 0 FROM tab0 AS cor0
----
10
0
47
0
99
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - col1 = - 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2627
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + - 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2627
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + - 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 AS col1, + 76 FROM tab2 AS cor0
----
23
76
40
76
58
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2629
SELECT ALL - MIN( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN + col1 / + 74 AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN + col1 / + 74 AND CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2630
SELECT DISTINCT + COUNT( * ), 74 + + 65 col1 FROM tab1 AS cor0
----
3
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2630
SELECT DISTINCT + COUNT ( * ), 74 + + 65 col1 FROM tab1 AS cor0
----
3
139

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT 64, COUNT( * ) AS col2 FROM tab1 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-2632
SELECT 64, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
64
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11 + + 67 col2, + col1 * + 24 AS col0 FROM tab2
----
78
1224
78
1608
78
1848

query I rowsort
SELECT DISTINCT - 8 * - - col2 AS col1 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT DISTINCT col0 * + 95 + col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT - 57 + col1 + - col1 AS col2 FROM tab2
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL + + col2 - + col1 * - 14 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - + 82 * col2 IS NULL AND NOT NULL BETWEEN 39 AND - 20
----

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + + col2 - + col1 * - 14 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + 82 * col2 IS NULL AND NOT NULL BETWEEN 39 AND - 20
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2638
SELECT DISTINCT + - ( + 43 ) FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + - ( + 43 ) FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + + - 68 + col2 + 61 FROM tab0
----
189
55
90

query I rowsort
SELECT ALL + col1 + ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col0 * + 82 + - - 68 * 27 * + + col0 FROM tab0 AS cor0
----
166866
186046
28770

query II rowsort
SELECT DISTINCT - 32, col1 FROM tab0 WHERE - col0 / + 63 * + - col1 BETWEEN NULL AND col2 / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 62 col2 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) + + - col0 + + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) + + - col0 + + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT COUNT( ALL + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT COUNT ( ALL + col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) + ( - 1 ) * col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + + - 77 FROM tab1
----
-30
-63
-72

query I rowsort
SELECT col2 * + col1 * + col1 - - - col1 AS col2 FROM tab1 AS cor0
----
1470
150165
18802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL + COUNT( * ) + - CAST( - MAX( - - 92 ) AS SIGNED ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + COUNT ( * ) + - CAST ( - MAX ( - - 92 ) AS INTEGER ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT - ( - col0 ) - - - col2 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col1 * - + col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT COUNT( * ), + 19 + + 89 AS col0 FROM tab2 cor0
----
3
108

skipif mysql # not compatible
query II rowsort label-2653
SELECT COUNT ( * ), + 19 + + 89 AS col0 FROM tab2 cor0
----
3
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * col2 col0 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT + col2 DIV 46 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + col2 / 46 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL - + col1 * - + CAST( + - col0 AS SIGNED ) + + - col2 AS col2 FROM tab0 AS cor0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - + col1 * - + CAST ( + - col0 AS INTEGER ) + + - col2 AS col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 74 )
----

query I rowsort
SELECT ( + 67 ) * - col2 * col0 AS col1 FROM tab2
----
-171520
-291450
-70886

query I rowsort
SELECT + col0 * + 95 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT DISTINCT 0 * - 44 * col0 FROM tab2 WHERE NOT + 32 + col2 + - - col1 BETWEEN NULL AND ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + col1
----

query II rowsort
SELECT ALL - 2, - 22 FROM tab0 AS cor0 WHERE + 64 * - + 66 = ( NULL )
----

query I rowsort
SELECT + 57 AS col1 FROM tab0 cor0
----
57
57
57

query II rowsort
SELECT - - col2 AS col2, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT - MIN( + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT - MIN ( + col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT col2, - 26 FROM tab1 cor0
----
59
-26
68
-26
96
-26

query I rowsort
SELECT DISTINCT + - 61 AS col0 FROM tab1 cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT - col0 + - - CAST( + col2 AS SIGNED ) + + 70 AS col0 FROM tab2 AS cor0
----
46
47
53

skipif mysql # not compatible
query I rowsort label-2668
SELECT - col0 + - - CAST ( + col2 AS INTEGER ) + + 70 AS col0 FROM tab2 AS cor0
----
46
47
53

query I rowsort
SELECT + col0 + - + 95 FROM tab0 cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT - 31 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2672
SELECT * FROM tab0 WHERE + 64 / + 97 * - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2672
SELECT * FROM tab0 WHERE + 64 / + 97 * - CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col0 + col0 + + 38 AS col0 FROM tab0
----
212
232
68

query I rowsort
SELECT ALL col0 * - - col1 + + 41 FROM tab1
----
4318
466
755

onlyif mysql # DIV for integer division: 
query II rowsort label-2675
SELECT ALL - 0 DIV 11 DIV + 65 + + col1 AS col1, + 45 FROM tab1
----
14
45
47
45
5
45

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - 0 / 11 / + 65 + + col1 AS col1, + 45 FROM tab1
----
14
45
47
45
5
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT DISTINCT COUNT( * ), 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
18

skipif mysql # not compatible
query II rowsort label-2676
SELECT DISTINCT COUNT ( * ), 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
18

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE + 32 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 82 * + col1 * col0 * - - col0 FROM tab0 AS cor0
----
13033818
1494450
771538

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + MIN( 17 ) col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2679
SELECT + MIN ( 17 ) col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT - ( - 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + MAX( - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + MAX ( - + col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + SUM( ALL - col2 ) + 14 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-107

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + SUM ( ALL - col2 ) + 14 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT + 79 DIV col0 * + ( - col1 ) AS col2 FROM tab0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 79 / col0 * + ( - col1 ) AS col2 FROM tab0
----
-405
0
0

query I rowsort
SELECT ALL - 8 * col0 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT 7 * 43 AS col2 FROM tab1
----
301
301
301

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT ALL - 58 DIV - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - 58 / - col2 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 * + 60 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2692
SELECT ALL * FROM tab1 WHERE + col2 IN ( + + col1, col1 / + col0, - col1, - CAST( col0 AS SIGNED ), 61 )
----

skipif mysql # not compatible
query III rowsort label-2692
SELECT ALL * FROM tab1 WHERE + col2 IN ( + + col1, col1 / + col0, - col1, - CAST ( col0 AS INTEGER ), 61 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT ALL - MIN( col1 ) AS col2, 93 AS col2 FROM tab1
----
-5
93

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL - MIN ( col1 ) AS col2, 93 AS col2 FROM tab1
----
-5
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT + col0 DIV + 83 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2694
SELECT + col0 / + 83 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - 33 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COUNT( * ) + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( * ) + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + ( - + col1 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + ( 13 ) AS col1 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 21, + col2 )
----

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 21, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 74 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + MIN( col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2703
SELECT + MIN ( col1 ) col0 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * - 84 col1 FROM tab2
----
4284
4284
4284

query I rowsort
SELECT DISTINCT 4 + - col1 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT ALL col0 + + col0 * - col1 AS col1 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 61 * - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 18 + 99 FROM tab0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL ( 70 ) + COUNT( col0 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL ( 70 ) + COUNT ( col0 ) FROM tab0
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <> - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 / + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + + col1 AS col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT COUNT( * ) + + 46 - 44 col0, CAST( NULL AS SIGNED ) FROM tab2
----
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2714
SELECT COUNT ( * ) + + 46 - 44 col0, CAST ( NULL AS INTEGER ) FROM tab2
----
5
NULL

query I rowsort
SELECT DISTINCT + + col2 - - ( - 31 ) FROM tab2 AS cor0
----
-8
27
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT 41 DIV + col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-2716
SELECT 41 / + col1 FROM tab1
----
0
2
8

query III rowsort
SELECT * FROM tab1 WHERE - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT - COUNT( ALL col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - COUNT ( ALL col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL + + 62 * ( + 0 ) * - - COUNT( DISTINCT + col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + + 62 * ( + 0 ) * - - COUNT ( DISTINCT + col1 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 51 col1, col2 * 24 AS col0 FROM tab1 AS cor0
----
51
1416
51
1632
51
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 65 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2721
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 65 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL - - col2 DIV - col1 + + 51 col0 FROM tab1 AS cor0
----
40
45
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2723
SELECT ALL - - col2 / - col1 + + 51 col0 FROM tab1 AS cor0
----
40
45
50

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2725
SELECT ALL - col2 * + col0 * - col1 * - CAST( + col1 AS SIGNED ) AS col0, col1 FROM tab0
----
-383670
21
-4625505
81
-9603
1

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL - col2 * + col0 * - col1 * - CAST ( + col1 AS INTEGER ) AS col0, col1 FROM tab0
----
-383670
21
-4625505
81
-9603
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT MIN( - ( - - 68 ) ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2726
SELECT MIN ( - ( - - 68 ) ) FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL - MIN( ALL 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - MIN ( ALL 44 ) FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL 70 * COUNT( * ) AS col1 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL 70 * COUNT ( * ) AS col1 FROM tab2
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL col1 col0 FROM tab2 WHERE NOT 51 <> + - CAST( - + col2 AS SIGNED ) + col1 * - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2729
SELECT ALL col1 col0 FROM tab2 WHERE NOT 51 <> + - CAST ( - + col2 AS INTEGER ) + col1 * - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT - - ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + col0 * - - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2730
SELECT - - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + col0 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL COUNT( col2 ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT ALL COUNT ( col2 ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-2732
SELECT - col1 DIV - col1, - col2 AS col1 FROM tab2 AS cor0
----
1
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-2732
SELECT - col1 / - col1, - col2 AS col1 FROM tab2 AS cor0
----
1
-23
1
-40
1
-58

query I rowsort
SELECT - - ( + - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 + - col1 col2 FROM tab2
----
-7
19
3

query III rowsort
SELECT * FROM tab1 WHERE NULL > + ( + 34 )
----

query II rowsort
SELECT 7 AS col0, 9 AS col0 FROM tab2
----
7
9
7
9
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT SUM( DISTINCT - 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2737
SELECT SUM ( DISTINCT - 87 ) FROM tab2
----
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 37 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + - col2 IN ( + - col1, col1 )
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2740
SELECT + - col1 * col1 + col1 AS col2, - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-182
NULL
-20
NULL
-2162
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT + - col1 * col1 + col1 AS col2, - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-182
NULL
-20
NULL
-2162
NULL

query I rowsort
SELECT 25 * - col1 + + + col0 FROM tab0 AS cor0
----
-2010
-438
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - - COUNT( * ) + + MAX( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2742
SELECT - - COUNT ( * ) + + MAX ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2743
SELECT ALL + 55 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - 35 + + - col2 + - - col2
----

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + 55 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - 35 + + - col2 + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) + ( - col0 ) * col2 AS col2, - 48 * + col2 col2 FROM tab0 AS cor0 WHERE col1 >= col0
----
-624
-2256

query I rowsort
SELECT - col2 + + col1 * 96 FROM tab1 AS cor0
----
1248
421
4444

onlyif mysql # DIV for integer division: 
query II rowsort label-2746
SELECT + col1 + + col0 DIV col0 AS col1, 41 AS col1 FROM tab2 AS cor0
----
52
41
68
41
78
41

skipif mysql # not compatible
query II rowsort label-2746
SELECT + col1 + + col0 / col0 AS col1, 41 AS col1 FROM tab2 AS cor0
----
52
41
68
41
78
41

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE NOT - 0 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL MAX( - 57 ) + + + COUNT( * ) col2 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2748
SELECT ALL MAX ( - 57 ) + + + COUNT ( * ) col2 FROM tab0
----
-54

query II rowsort
SELECT 50 * - col0, + col1 FROM tab1
----
-2550
14
-4250
5
-4550
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT DISTINCT col2 DIV 67 + 48 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT col2 / 67 + 48 FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + ( - col1 ) + col2 col1, col0 FROM tab0
----
-200
87
-3760
15
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2752
SELECT col0 * + col1 AS col1, CAST( - - col2 AS SIGNED ) FROM tab1
----
425
59
4277
68
714
96

skipif mysql # not compatible
query II rowsort label-2752
SELECT col0 * + col1 AS col1, CAST ( - - col2 AS INTEGER ) FROM tab1
----
425
59
4277
68
714
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT ALL + COUNT( * ) - ( + COUNT( * ) ) DIV - 80 col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2753
SELECT ALL + COUNT ( * ) - ( + COUNT ( * ) ) / - 80 col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 + - 40 - - 65 * + col2 col2 FROM tab1 cor0
----
4220
6914
8657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= + 19 * 37
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= + 19 * 37
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + ( - + col2 ) * + + 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + col0 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT + col2 DIV 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT + col2 / 99 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 85 * - + 33 FROM tab1 AS cor0
----
2805
2805
2805

query II rowsort
SELECT ALL + + col1, - col1 * col1 AS col2 FROM tab2 AS cor0
----
51
-2601
67
-4489
77
-5929

query I rowsort
SELECT ALL - 71 FROM tab1 cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 82 * - 93 * - 98 + + 94 + col1 AS col1, col2 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * col2 AND + 10
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 * col0 NOT BETWEEN + + 7 AND - + col0 * col1
----

query I rowsort
SELECT ALL + col1 * 82 * 61 AS col0 FROM tab1
----
235094
25010
70028

query I rowsort
SELECT - 67 * - - col1 FROM tab1
----
-3149
-335
-938

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + 32 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT col1 DIV - + ( col2 ) + + ( col0 ) * + col0 FROM tab0 cor0
----
224
7567
9409

skipif mysql # not compatible
query I rowsort label-2767
SELECT col1 / - + ( col2 ) + + ( col0 ) * + col0 FROM tab0 cor0
----
224
7567
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + 94 AS col2 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL col1 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL col1 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + col2 + - ( - col2 ) + + col2 FROM tab1
----
177
204
288

query I rowsort
SELECT ALL col2 + - 22 * ( + col1 ) FROM tab1
----
-212
-51
-966

query I rowsort
SELECT ALL 7 + + + col0 * col1 FROM tab2
----
2353
4935
5032

query I rowsort
SELECT + 63 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT col1 + - 62 + + + ( - 39 ) + col1 FROM tab0
----
-59
-99
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT - + CAST( 8 AS SIGNED ) FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-2777
SELECT - + CAST ( 8 AS INTEGER ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT MAX( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE 48 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT MAX ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE 48 IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 * 26 * - + col0 + - 19 AS col0 FROM tab0 AS cor0
----
-2541
-31609
-47521

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + + ( - COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + + ( - COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - 14 - MIN( DISTINCT - ( + 60 ) ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2782
SELECT - 14 - MIN ( DISTINCT - ( + 60 ) ) AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2783
SELECT ALL - CAST( NULL AS SIGNED ) * - 66 col1, + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2783
SELECT ALL - CAST ( NULL AS INTEGER ) * - 66 col1, + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2784
SELECT - ( - - CAST( NULL AS DECIMAL ) ) + 47 AS col0, COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2784
SELECT - ( - - CAST ( NULL AS REAL ) ) + 47 AS col0, COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT 88 + 49 FROM tab2
----
137
137
137

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN - - col1 AND col1 + + - col2
----

query I rowsort
SELECT ALL - col0 + + - 41 FROM tab1
----
-126
-132
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2788
SELECT ALL CAST( NULL AS SIGNED ) * - - 32 - - col2 / - CAST( NULL AS SIGNED ) * CAST( + + col1 AS SIGNED ) * + - 3 * + - col2, - 73 AS col0 FROM tab0
----
NULL
-73
NULL
-73
NULL
-73

skipif mysql # not compatible
query II rowsort label-2788
SELECT ALL CAST ( NULL AS INTEGER ) * - - 32 - - col2 / - CAST ( NULL AS INTEGER ) * CAST ( + + col1 AS INTEGER ) * + - 3 * + - col2, - 73 AS col0 FROM tab0
----
NULL
-73
NULL
-73
NULL
-73

query I rowsort
SELECT DISTINCT - 97 + + - col0 AS col1 FROM tab0 AS cor0
----
-112
-184
-194

query I rowsort
SELECT ALL + - 45 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT 44 * + MAX( + + col0 ) FROM tab0
----
4268

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT 44 * + MAX ( + + col0 ) FROM tab0
----
4268

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + - ( - 8 ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + + 80 ) * col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * - - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL - MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT MIN( DISTINCT + 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-2796
SELECT MIN ( DISTINCT + 79 ) FROM tab1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT DISTINCT col1 * col2 DIV - - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT col1 * col2 / - - col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT 9 * - col0 / - + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT 9 * - col0 / - + CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL - COUNT( * ) * + + 88 AS col0 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - COUNT ( * ) * + + 88 AS col0 FROM tab0
----
-264

query I rowsort
SELECT DISTINCT + 71 + - - 82 - + 4 FROM tab2
----
149

query I rowsort
SELECT ALL - 76 * - - col2 + col1 FROM tab2
----
-1697
-2963
-4341

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - MAX( DISTINCT - col2 ) + + - 25 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - MAX ( DISTINCT - col2 ) + + - 25 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT 28 - - 94 FROM tab0 WHERE col0 NOT BETWEEN + col2 AND ( col0 )
----
122
122

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col2 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT COUNT( * ) - 63 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT COUNT ( * ) - 63 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - + col1 + + + 29 * + col2 AS col0 FROM tab2 cor0
----
1083
1615
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT - CAST( NULL AS SIGNED ) + 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - CAST ( NULL AS INTEGER ) + 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - col2 ) + + - 78 + - 22 AS col0 FROM tab1 AS cor0
----
-32
-4
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL - 90 * - CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - 90 * - CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 1 ) - - 2 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2816
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( + - col2 AS INTEGER )
----

query II rowsort
SELECT - 68 + col0 AS col1, - 20 AS col2 FROM tab0 AS cor0
----
-53
-20
19
-20
29
-20

query I rowsort
SELECT ALL + + col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 56 * + 75 FROM tab1 AS cor0
----
-51
4200
-85
4200
-91
4200

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT 72 * + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT ALL + COUNT( * ) DIV - 22 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + COUNT ( * ) / - 22 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 BETWEEN - + col2 AND - col2
----

query I rowsort
SELECT ALL col0 + - 99 FROM tab0
----
-12
-2
-84

query III rowsort
SELECT * FROM tab0 WHERE - 14 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE - 77 = + - col1
----

query I rowsort
SELECT ALL - 69 + - col0 * + col0 * col2 FROM tab0
----
-10644
-75759
-931560

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT MIN( DISTINCT + col0 ) - - COUNT( ALL - - col2 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2830
SELECT MIN ( DISTINCT + col0 ) - - COUNT ( ALL - - col2 ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL 34 + COUNT( * ) FROM tab0, tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL 34 + COUNT ( * ) FROM tab0, tab2 cor0
----
43

query II rowsort
SELECT + ( + - col2 ), col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 / 71 + - + ( + - ( + + col2 ) ) < - + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2834
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 / 71 + - + ( + - ( + + col2 ) ) < - + col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2835
SELECT ALL 32 DIV - COUNT( * ) col1, - COUNT( * ) FROM tab1 AS cor0
----
-10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2835
SELECT ALL 32 / - COUNT ( * ) col1, - COUNT ( * ) FROM tab1 AS cor0
----
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT SUM( DISTINCT - + 53 ) AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT SUM ( DISTINCT - + 53 ) AS col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 cor0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT 0 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT 0 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - 73 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT 97 DIV - + col0 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-2841
SELECT 97 / - + col0 FROM tab0
----
-1
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + COUNT( ALL + col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2842
SELECT + COUNT ( ALL + col1 ) col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 36 + + col2 AS col0 FROM tab2
----
-13
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( * ) + - 68 AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( * ) + - 68 AS col1 FROM tab0
----
-65

query I rowsort
SELECT - - col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - MAX( DISTINCT + + col0 ) + + - 49 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-2846
SELECT - MAX ( DISTINCT + + col0 ) + + - 49 FROM tab0 AS cor0
----
-146

query I rowsort
SELECT ALL col0 + + 67 AS col2 FROM tab1
----
118
152
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - 99 * - + MIN( - - col1 ) AS col1 FROM tab2
----
5049

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 99 * - + MIN ( - - col1 ) AS col1 FROM tab2
----
5049

query I rowsort
SELECT DISTINCT - col2 * + - col0 + col0 FROM tab0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query II rowsort
SELECT ( ( col2 ) ) AS col0, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - col0 + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-69
-88
-92

query I rowsort
SELECT 8 - - + col0 AS col0 FROM tab1 cor0
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT DISTINCT col0 - - 19 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT col0 - - 19 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + + 73 ) AS col0 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT DISTINCT - 91 col1, - ( + + 50 ) * ( - + COUNT( * ) ) col1 FROM tab1 cor0
----
-91
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2856
SELECT DISTINCT - 91 col1, - ( + + 50 ) * ( - + COUNT ( * ) ) col1 FROM tab1 cor0
----
-91
150

query I rowsort
SELECT 78 + + - col1 FROM tab0
----
-3
57
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT col1 DIV + 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT col1 / + 89 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - ( + - COUNT( * ) ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2859
SELECT - ( + - COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL - MAX( col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - MAX ( col2 ) AS col0 FROM tab2
----
-58

query II rowsort
SELECT ALL col2 AS col2, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + 23 <> NULL
----

query I rowsort
SELECT DISTINCT + 93 * + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
41013
610173
93

query I rowsort
SELECT + 23 FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 32 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 32 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - col0, - 70 AS col1 FROM tab0 AS cor0
----
-15
-70
-87
-70
-97
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT 82 + + COUNT( - - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 46 ) IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-2867
SELECT 82 + + COUNT ( - - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 46 ) IS NOT NULL
----
82

query I rowsort
SELECT ALL - col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col2 * - + col0 * - 13 FROM tab1 AS cor0
----
63648
65195
80444

query I rowsort
SELECT + ( - - col1 ) * - - ( ( - - col1 ) ) FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT col0 * - col2 * - col2 + - + 23 AS col2 FROM tab2 AS cor0
----
102377
24311
252277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT col0 * CAST( - col0 AS SIGNED ) * - 35 + + col0 + - + 25 + - 60 - - col0 AS col0 FROM tab1 AS cor0
----
252960
289932
91052

skipif mysql # not compatible
query I rowsort label-2872
SELECT col0 * CAST ( - col0 AS INTEGER ) * - 35 + + col0 + - + 25 + - 60 - - col0 AS col0 FROM tab1 AS cor0
----
252960
289932
91052

query I rowsort
SELECT 66 * + col0 + col0 * + col1 FROM tab2 AS cor0
----
5382
9152
9975

query I rowsort
SELECT ALL - col0 + + 20 + + col0 AS col1 FROM tab1
----
20
20
20

query I rowsort
SELECT 17 + - 79 AS col0 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - COUNT( * ) * + 3 + + 9 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COUNT ( * ) * + 3 + + 9 - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab2, tab0 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT ALL + COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 56 + - + col1 + + - col1 FROM tab1 AS cor0
----
-150
-66
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - 95 AS col2, 86 FROM tab1 AS cor0
----
-95
86
-95
86
-95
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 25 + 68 * + 60 )
----

query I rowsort
SELECT ALL ( col0 ) + 58 * + col1 FROM tab1
----
2817
375
863

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2885
SELECT DISTINCT col2 FROM tab0 WHERE NULL IN ( - ( col1 ) * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT col2 FROM tab0 WHERE NULL IN ( - ( col1 ) * CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2886
SELECT CAST( NULL AS DECIMAL ) * + ( + 64 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT CAST ( NULL AS REAL ) * + ( + 64 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 - col0 * - col1 FROM tab0
----
119
1237
1849

query I rowsort
SELECT 15 * col0 AS col1 FROM tab0
----
1305
1455
225

query I rowsort
SELECT 21 + 58 * col0 AS col2 FROM tab2
----
2689
3733
4371

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col1 = col2 * - col1 - - 50
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ( + CAST( + COUNT( - 17 ) AS SIGNED ) ) * + COUNT( ALL CAST( col2 AS SIGNED ) - - 93 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2891
SELECT ( + CAST ( + COUNT ( - 17 ) AS INTEGER ) ) * + COUNT ( ALL CAST ( col2 AS INTEGER ) - - 93 ) AS col2 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
117
125
74

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 69 col2 FROM tab1
----
120
154
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2895
SELECT ALL - ( - COUNT( * ) ) DIV + 23 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - ( - COUNT ( * ) ) / + 23 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab0 WHERE NOT - 16 * + col1 BETWEEN - 95 + - col2 AND ( col1 + col1 )
----
705
870

query III rowsort
SELECT * FROM tab2 WHERE col2 + 4 * 85 BETWEEN + col0 AND 41
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 * + 80 < ( + col0 * 68 + col0 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT + col0 * col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT DISTINCT 39 DIV - COUNT( * ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT 39 / - COUNT ( * ) AS col1 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT 82 * COUNT( * ) AS col1 FROM tab2 WHERE ( + col0 ) NOT BETWEEN - 77 AND ( - col0 + + 69 )
----
246

skipif mysql # not compatible
query I rowsort label-2901
SELECT 82 * COUNT ( * ) AS col1 FROM tab2 WHERE ( + col0 ) NOT BETWEEN - 77 AND ( - col0 + + 69 )
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT COUNT( * ) col0 FROM tab0 WHERE ( 9 ) BETWEEN NULL AND 85
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2902
SELECT COUNT ( * ) col0 FROM tab0 WHERE ( 9 ) BETWEEN NULL AND 85
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2903
SELECT ALL col2 * - ( 28 ) + + 93 DIV CAST( + ( 52 ) AS SIGNED ) col1 FROM tab1
----
-1651
-1903
-2687

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2903
SELECT ALL col2 * - ( 28 ) + + 93 / CAST ( + ( 52 ) AS INTEGER ) col1 FROM tab1
----
-1651
-1903
-2687

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 77 ) * - col0 + col2 col2 FROM tab0
----
-1108
-6689
-7370

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + MIN( - col0 ) - 99 AS col1 FROM tab1
----
-190

skipif mysql # not compatible
query I rowsort label-2909
SELECT + MIN ( - col0 ) - 99 AS col1 FROM tab1
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT + MIN( DISTINCT 27 ) * - 98 FROM tab0 cor0
----
-2646

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT + MIN ( DISTINCT 27 ) * - 98 FROM tab0 cor0
----
-2646

query I rowsort
SELECT col2 + 50 AS col2 FROM tab1
----
109
118
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - 47 + COUNT( * ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 47 + COUNT ( * ) AS col0 FROM tab0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - 14 + SUM( ALL col1 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 14 + SUM ( ALL col1 ) FROM tab0
----
89

query I rowsort
SELECT ALL 34 FROM tab1 WHERE ( 78 ) > ( ( ( - col0 ) ) )
----
34
34
34

query I rowsort
SELECT - 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT + + 47 AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col0 - - col1 * 87 FROM tab1 AS cor0 WHERE NOT ( - col0 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 72 AS col1 FROM tab1 cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT COUNT( * ) * - MIN( DISTINCT col2 * 6 + col0 ) FROM tab1 AS cor0
----
-1317

skipif mysql # not compatible
query I rowsort label-2921
SELECT COUNT ( * ) * - MIN ( DISTINCT col2 * 6 + col0 ) FROM tab1 AS cor0
----
-1317

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col1 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL + + SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + + SUM ( col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2924
SELECT * FROM tab0 AS cor0 WHERE - 1 = 28 * - CAST( NULL AS SIGNED ) + 85 / - col0
----

skipif mysql # not compatible
query III rowsort label-2924
SELECT * FROM tab0 AS cor0 WHERE - 1 = 28 * - CAST ( NULL AS INTEGER ) + 85 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col0 NOT BETWEEN NULL AND 32
----

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE ( 37 / 89 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT + 20 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 * - col0 BETWEEN ( - 31 / - 12 ) AND ( NULL )
----
60

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + 20 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 * - col0 BETWEEN ( - 31 / - 12 ) AND ( NULL )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab1 WHERE ( - col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2928
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 WHERE ( - col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - MAX( ALL - + ( - col0 ) ) * 4 AS col1 FROM tab1
----
-364

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - MAX ( ALL - + ( - col0 ) ) * 4 AS col1 FROM tab1
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT - MAX( + + col1 ) + 16 * COUNT( * ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - MAX ( + + col1 ) + 16 * COUNT ( * ) FROM tab2
----
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE 0 * 8 - - col0 / + 83 >= ( col0 )
----

query I rowsort
SELECT - col1 * + 51 + + 59 FROM tab0
----
-1012
-4072
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 10 ) >= - ( 65 ) + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL + + SUM( DISTINCT 40 ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + + SUM ( DISTINCT 40 ) FROM tab0 cor0
----
40

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 AS cor0 WHERE + col1 >= ( + - col1 )
----
33
33
33

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 * - col2 * - col0 AS col1 FROM tab2 AS cor0
----
51
48668
67
326250
77
163840

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - - ( - COUNT( ALL + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2939
SELECT - - ( - COUNT ( ALL + col1 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + ( + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT col0 DIV col2 AS col0 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT col0 / col2 AS col0 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
0
1
1

query I rowsort
SELECT col0 * - ( 67 ) AS col0 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT + col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( * ) * ( - 75 ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( * ) * ( - 75 ) FROM tab0
----
-225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL SUM( - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL SUM ( - col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - - 42 AS col1 FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 * - 66 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL + 36 * - + CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1440
-2088
-828

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + 36 * - + CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1440
-2088
-828

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 77 + - - 8 * + - col1 + 71 ) <> col2 * 2
----

query III rowsort
SELECT * FROM tab2 WHERE 11 IS NULL
----

query I rowsort
SELECT - 56 AS col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + 64 * COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-2954
SELECT + 64 * COUNT ( * ) FROM tab1
----
192

query I rowsort
SELECT - + col2 * + + col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT CAST( NULL AS SIGNED ) * 42 * 20 + - 54 * + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT CAST ( NULL AS INTEGER ) * 42 * 20 + - 54 * + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 97 + - - col1 + - col2 FROM tab2 cor0
----
106
125
134

query I rowsort
SELECT - + 31 + - col2 AS col1 FROM tab0 AS cor0
----
-130
-41
-78

query I rowsort
SELECT ALL - col2 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT - col1 + - 26 + - 98 DIV ( - 71 ) FROM tab2 AS cor0
----
-102
-76
-92

skipif mysql # not compatible
query I rowsort label-2960
SELECT - col1 + - 26 + - 98 / ( - 71 ) FROM tab2 AS cor0
----
-102
-76
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL CAST( NULL AS SIGNED ) * - + 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL CAST ( NULL AS INTEGER ) * - + 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( col0 + col2 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( col0 + col2 ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT 2 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT 2 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT COUNT( * ) + - 89 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT COUNT ( * ) + - 89 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - 90 - + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - 90 - + COUNT ( * ) FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + - col2 * + - col2 - - col2 + - col0, 66 - - 99 * - col1 AS col1 FROM tab0 AS cor0
----
2241
-7953
23
-2013
9803
-33

query I rowsort
SELECT ALL + 1 - ( - + 50 ) FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + 18 - + 33 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 18 - + 33 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL - 32 - + - col2 FROM tab0 AS cor0
----
-22
15
67

query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab0 AS cor0 WHERE - 93 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT DISTINCT - - col0 DIV ( - 33 ) * - 70 + + + col0 - + - col0 + + col1 AS col0 FROM tab2 cor0
----
213
275
357

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - - col0 / ( - 33 ) * - 70 + + + col0 - + - col0 + + col1 AS col0 FROM tab2 cor0
----
213
275
357

query I rowsort
SELECT col0 + - - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= ( NULL ) AND NULL NOT BETWEEN NULL AND - 79 * + col0 * - - col2 / 49 + col0 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND 32 - + col1
----

query I rowsort
SELECT DISTINCT - + 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 - + col0 * - 82 IS NOT NULL
----

query II rowsort
SELECT + ( - col0 ), col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + col1 + 1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - + 71 - - 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2981
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( 65 AS DECIMAL ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2981
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( 65 AS REAL ) ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 13 AND NULL
----

query I rowsort
SELECT 90 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - - 96 AND NULL
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 3 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 37 * - 52 FROM tab1
----
-1924
-1924
-1924

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT ALL col1 DIV + - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL col1 / + - col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + COUNT( * ) FROM tab1 WHERE NOT col1 IN ( + + col1, 46 )
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT + COUNT ( * ) FROM tab1 WHERE NOT col1 IN ( + + col1, 46 )
----
0

query I rowsort
SELECT 39 * + col0 AS col0 FROM tab0
----
3393
3783
585

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT 80 * + col1 AS col2 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + MAX( + + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT + MAX ( + + 0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2995
SELECT DISTINCT - CAST( - MAX( col2 ) AS SIGNED ), COUNT( * ) AS col2 FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-2995
SELECT DISTINCT - CAST ( - MAX ( col2 ) AS INTEGER ), COUNT ( * ) AS col2 FROM tab1
----
96
3

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL ( - COUNT( * ) ) + + - 70 AS col1 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL ( - COUNT ( * ) ) + + - 70 AS col1 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT 93 * + col2 * + col2 + ( + + 6 ) + - + col1 AS col1 FROM tab2
----
148729
312791
49152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 col0 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - + 18 * + col0 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + SUM( DISTINCT + - col0 ) * - + COUNT( * ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-3003
SELECT + SUM ( DISTINCT + - col0 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT DISTINCT + COUNT( * ) DIV - - 83 * - 6 + + 94 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + COUNT ( * ) / - - 83 * - 6 + + 94 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 43 ) / - col2 + col0 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT + MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3008
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) <= + + col0 OR NOT NULL < ( - + 80 * - ( + + 94 ) )
----

skipif mysql # not compatible
query III rowsort label-3008
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) <= + + col0 OR NOT NULL < ( - + 80 * - ( + + 94 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - - + col1 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT col1 * - 50 + - + col0 AS col1 FROM tab1
----
-2441
-335
-751

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3012
SELECT DISTINCT * FROM tab0 WHERE + CAST( + col2 AS SIGNED ) <> - 3 AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3012
SELECT DISTINCT * FROM tab0 WHERE + CAST ( + col2 AS INTEGER ) <> - 3 AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT 78 + - COUNT( DISTINCT - 68 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-3013
SELECT 78 + - COUNT ( DISTINCT - 68 ) FROM tab1
----
77

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN - col1 + - 98 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL + COUNT( * ) - - + 39 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + COUNT ( * ) - - + 39 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 10 * - col2 + - 74 + - + 2 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND col0
----
394
914

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL > 75
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL - COUNT( * ), + 31 AS col2 FROM tab1
----
-3
31

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL - COUNT ( * ), + 31 AS col2 FROM tab1
----
-3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( + + col0 ) ) col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT - COUNT( DISTINCT - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col1 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - + col1 * 35 * + col0 + + col1 - - col0 ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - + col1 * 35 * + col0 + + col1 - - col0 ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT 54 AS col0, + COUNT( * ) col1 FROM tab0 AS cor0
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3025
SELECT 54 AS col0, + COUNT ( * ) col1 FROM tab0 AS cor0
----
54
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + 62 DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3026
SELECT + 62 / - COUNT ( * ) col1 FROM tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + MIN( - 91 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3028
SELECT + MIN ( - 91 ) AS col2 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT + - COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3029
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - 45 * - col0 * + + ( - + 69 ) AS col0 FROM tab1
----
-158355
-263925
-282555

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT SUM( - col2 ) * COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-3032
SELECT SUM ( - col2 ) * COUNT ( * ) FROM tab1
----
-669

query I rowsort
SELECT ALL + col1 + + col2 FROM tab1 WHERE ( + + col1 + col0 ) <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab2
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 38 / col2 + 79 * col0 NOT IN ( + + col1, - 34 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT + - col0 DIV - - col1 + + 85 * - ( col1 ) FROM tab1 AS cor0
----
-1193
-3996
-442

skipif mysql # not compatible
query I rowsort label-3037
SELECT + - col0 / - - col1 + + 85 * - ( col1 ) FROM tab1 AS cor0
----
-1193
-3996
-442

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col1, + 67 )
----

query I rowsort
SELECT ( col2 ) + - - ( - col1 ) * - col0 AS col2 FROM tab0
----
1262
1837
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col2 + + + col2 col0 FROM tab0
----
-200
-3760
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( ( + + ( - + col0 ) ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - SUM( ALL 51 ) * 17 + 14 + - 20 - ( 30 ) + + + 82 FROM tab1 AS cor0
----
-2555

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - SUM ( ALL 51 ) * 17 + 14 + - 20 - ( 30 ) + + + 82 FROM tab1 AS cor0
----
-2555

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - COUNT( * ) + + 42 * - 85 col2 FROM tab0 AS cor0
----
-3573

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3043
SELECT - COUNT ( * ) + + 42 * - 85 col2 FROM tab0 AS cor0
----
-3573

query I rowsort
SELECT ALL col2 + + + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - 79 + - 94 col1, 90 FROM tab0 AS cor0
----
-14
90
6
90
66
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + ( COUNT( * ) ) * - 70 AS col1 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3046
SELECT + ( COUNT ( * ) ) * - 70 AS col1 FROM tab0 AS cor0
----
-210

query II rowsort
SELECT DISTINCT ( + 51 ), 34 AS col1 FROM tab1
----
51
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL MAX ( ALL + col2 ) FROM tab0
----
99

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( col2 - + col1 ) IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col1 + + - 79, + col2 FROM tab2
----
-12
58
-2
40
-28
23

query I rowsort
SELECT 77 FROM tab2 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * + - col1 - - 9 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - + 95 FROM tab0
----
-14
-74
-94

query II rowsort
SELECT DISTINCT col0 + - 82 AS col2, col2 AS col1 FROM tab1
----
-31
96
3
59
9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT COUNT( * ) - - COUNT( * ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3055
SELECT COUNT ( * ) - - COUNT ( * ) col1 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 77 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + + ( 33 ) + + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - - MAX( - 59 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3059
SELECT - - MAX ( - 59 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3060
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT DISTINCT + + col0 DIV - + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + + col0 / - + col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE 41 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT DISTINCT 58 DIV - 97 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT 58 / - 97 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + ( + ( + + col0 ) ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( col0, col1 + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3066
SELECT ALL + 81 AS col2, - CAST( - col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
81
1058
81
2560
81
4350

skipif mysql # not compatible
query II rowsort label-3066
SELECT ALL + 81 AS col2, - CAST ( - col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
81
1058
81
2560
81
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, 8 FROM tab2 cor0
----
51
8
67
8
77
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3069
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 79 - - CAST( + CAST( ( + - col1 ) AS SIGNED ) AS SIGNED ) / ( + col0 ) ) AND - col1 + col0
----

skipif mysql # not compatible
query III rowsort label-3069
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 79 - - CAST ( + CAST ( ( + - col1 ) AS INTEGER ) AS INTEGER ) / ( + col0 ) ) AND - col1 + col0
----

query I rowsort
SELECT - ( + + 37 ) * 58 * - col0 * + col2 FROM tab2
----
2270468
5493760
9335100

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 49, - 75 + + col0, col2, - col0 + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 12 - + col2 > ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT COUNT( * ) DIV + 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT COUNT ( * ) / + 8 FROM tab1
----
0

query I rowsort
SELECT - 96 * + col0 AS col0 FROM tab2
----
-4416
-6144
-7200

query III rowsort
SELECT col0 AS col2, col0 * + + 49 * + 0, + - 0 FROM tab2
----
9 values hashing to 5de80f83edc14ef05ed3a85466b2fbd4

query I rowsort
SELECT ALL 15 + - col2 * - 61 + - - 57 AS col1 FROM tab2
----
1475
2512
3610

query II rowsort
SELECT + col0 AS col1, 20 + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
71
64
97
75
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3078
SELECT - ( - + col2 ) AS col2 FROM tab1 cor0 WHERE + col0 + col0 * + CAST( NULL AS DECIMAL ) + - col1 - col0 * col2 + - col0 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3078
SELECT - ( - + col2 ) AS col2 FROM tab1 cor0 WHERE + col0 + col0 * + CAST ( NULL AS REAL ) + - col1 - col0 * col2 + - col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - - col2 - + - col2 + - 68 AS col1 FROM tab2 AS cor0
----
-22
12
48

query I rowsort
SELECT - col1 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT ALL + 51 DIV 35 + + col0 - - col0 FROM tab1 cor0
----
103
171
183

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + 51 / 35 + + col0 - - col0 FROM tab1 cor0
----
103
171
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col2 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + SUM( DISTINCT - - 72 ) + - ( - 64 ) AS col1 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-3084
SELECT + SUM ( DISTINCT - - 72 ) + - ( - 64 ) AS col1 FROM tab1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT + MIN( + 40 ) + 99, COUNT( * ) AS col0 FROM tab0
----
139
3

skipif mysql # not compatible
query II rowsort label-3085
SELECT + MIN ( + 40 ) + 99, COUNT ( * ) AS col0 FROM tab0
----
139
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - COUNT( * ) + MAX( 72 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( * ) + MAX ( 72 ) AS col1 FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - col2 col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( - ( - col2 ) ) / + 5 * - 49 + 70
----

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + SUM( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3090
SELECT + SUM ( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3092
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3093
SELECT - + MIN( - + 75 ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) * - - 2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT - + MIN ( - + 75 ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - - 2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT + + col0 DIV - 72 AS col0 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT + + col0 / - 72 AS col0 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - - MAX( + + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - - MAX ( + + col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col1 * - 87 * + 78 AS col1 FROM tab2 AS cor0
----
-346086
-454662
-522522

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 11 IS NULL
----

query I rowsort
SELECT col2 + 95 AS col2 FROM tab1
----
154
163
191

query I rowsort
SELECT - col1 + + 98 AS col0 FROM tab0
----
17
77
97

query I rowsort
SELECT + col0 + + - col1 * + col1 FROM tab0
----
-354
-6546
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL - - col2 + + - col2 + - 43 * 94 * - - col1 - + + CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - - col2 + + - col2 + - 43 * 94 * - - col1 - + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 WHERE col1 / + col0 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 WHERE col1 / + col0 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 63 * - + 94 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col2 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > + + col0 + + - 3
----

query I rowsort
SELECT - - ( 88 ) * 23 AS col1 FROM tab2 AS cor0
----
2024
2024
2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT 57 DIV - - COUNT( * ) FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-3109
SELECT 57 / - - COUNT ( * ) FROM tab0 cor0
----
19

query I rowsort
SELECT + col2 * + + ( + ( 85 ) ) AS col1 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT ALL + ( + - col0 ) * - CAST( - 95 AS SIGNED ) AS col1 FROM tab2
----
-4370
-6080
-7125

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + ( + - col0 ) * - CAST ( - 95 AS INTEGER ) AS col1 FROM tab2
----
-4370
-6080
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 * - col0 col1 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT - 18 + + + 79 FROM tab0 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + SUM( 9 ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + SUM ( 9 ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
30

query I rowsort
SELECT 14 * - col1 AS col1 FROM tab0 AS cor0
----
-1134
-14
-294

query I rowsort
SELECT ALL - 98 - + col0 AS col1 FROM tab0 AS cor0
----
-113
-185
-195

query I rowsort
SELECT DISTINCT - + 80 - - - 15 AS col2 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3119
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - 92 * + 24 - 69 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3119
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - 92 * + 24 - 69 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 51 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3121
SELECT + col1 DIV + col0, col2 AS col0 FROM tab0
----
0
10
0
99
5
47

skipif mysql # not compatible
query II rowsort label-3121
SELECT + col1 / + col0, col2 AS col0 FROM tab0
----
0
10
0
99
5
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3122
SELECT MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT - - MAX( ALL - col0 ) DIV + + 2 AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3123
SELECT - - MAX ( ALL - col0 ) / + + 2 AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT 85 * + col2 col0 FROM tab0 AS cor0 WHERE + col0 * + - col2 BETWEEN + CAST( col1 AS SIGNED ) AND ( + 53 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3124
SELECT DISTINCT 85 * + col2 col0 FROM tab0 AS cor0 WHERE + col0 * + - col2 BETWEEN + CAST ( col1 AS INTEGER ) AND ( + 53 )
----

query I rowsort
SELECT 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT COUNT( * ) * - 43 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-3126
SELECT COUNT ( * ) * - 43 FROM tab2
----
-129

query I rowsort
SELECT col0 * - col0 * + - 7 * + col1 * - 99 FROM tab0
----
-110151657
-12629925
-6520437

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab1 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 - - 50 col0 FROM tab0 AS cor0
----
-2159
-50
-9751

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3130
SELECT MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL + + 95 AS col1, ( + 16 ) * - 50 FROM tab0 cor0
----
95
-800
95
-800
95
-800

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE + col2 <= + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT ( + ( + - MIN( 67 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT ( + ( + - MIN ( 67 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3135
SELECT + 22 + 6 AS col2, COUNT( * ) DIV + - 64 + COUNT( DISTINCT 0 ) AS col2 FROM tab0 WHERE - 4 IN ( - col0 + + col1, ( - col0 ) DIV + - 87 )
----
28
0

skipif mysql # not compatible
query II rowsort label-3135
SELECT + 22 + 6 AS col2, COUNT ( * ) / + - 64 + COUNT ( DISTINCT 0 ) AS col2 FROM tab0 WHERE - 4 IN ( - col0 + + col1, ( - col0 ) / + - 87 )
----
28
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + ( - + ( - COUNT( * ) ) ) + - MAX( DISTINCT + 96 ) + + 46 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + ( - + ( - COUNT ( * ) ) ) + - MAX ( DISTINCT + 96 ) + + 46 FROM tab0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT - CAST( 5 AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
-4
16
76

skipif mysql # not compatible
query I rowsort label-3138
SELECT - CAST ( 5 AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
-4
16
76

query I rowsort
SELECT + col2 * - col2 * - 82 * + - 34 FROM tab0
----
-27325188
-278800
-6158692

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 48 * + col0 + + col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT 7 DIV - - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3141
SELECT 7 / - - COUNT ( * ) FROM tab0
----
2

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab0 AS cor0 WHERE + col2 + + col2 > ( - - 54 )
----
47
81
99
1

query II rowsort
SELECT - col1 - - col1 + + 81, col1 FROM tab2 AS cor0 WHERE col1 <= - + 39
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT DISTINCT 71 DIV + + col1 FROM tab0 cor0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 71 / + + col1 FROM tab0 cor0
----
0
3
71

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE ( NOT NULL >= - - 42 * + col0 + + col2 )
----

query I rowsort
SELECT + 52 * + col0 AS col2 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT + col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT col1 DIV - 17 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT col1 / - 17 FROM tab0
----
-1
-4
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 80 >= NULL
----

query I rowsort
SELECT col0 * + ( 89 ) FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - ( + MAX( ALL - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3152
SELECT - ( + MAX ( ALL - col1 ) ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3154
SELECT DISTINCT - 50 AS col2, + COUNT( * ) FROM tab1
----
-50
3

skipif mysql # not compatible
query II rowsort label-3154
SELECT DISTINCT - 50 AS col2, + COUNT ( * ) FROM tab1
----
-50
3

query II rowsort
SELECT ALL - - 42, + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 77
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT ALL - - 37, COUNT( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-3156
SELECT ALL - - 37, COUNT ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
37
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT + + 53 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + + 53 / + col1 AS col2 FROM tab1 AS cor0
----
1
10
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3159
SELECT - MAX ( + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - ( + ( + col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - MAX( - 99 ) col2 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3161
SELECT - MAX ( - 99 ) col2 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT COUNT( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1
----
0

query II rowsort
SELECT ALL ( + col1 ) AS col1, + 87 * + col0 FROM tab0 AS cor0
----
1
8439
21
7569
81
1305

query I rowsort
SELECT + - col2 + - - 11 AS col2 FROM tab1 AS cor0
----
-48
-57
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT - ( CAST( - col1 AS SIGNED ) ) + col0 + + ( - - col0 ) col0 FROM tab0 AS cor0
----
111
195
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3165
SELECT - ( CAST ( - col1 AS INTEGER ) ) + col0 + + ( - - col0 ) col0 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3166
SELECT CAST( + col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3166
SELECT CAST ( + col0 AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + + col2 ) * 76 + - col2 + + - col1 + 11 AS col1 FROM tab1 AS cor0
----
4431
5064
7197

query I rowsort
SELECT 86 * 8 FROM tab1 WHERE 8 NOT IN ( col2 )
----
688
688
688

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 85 + COUNT( * ) AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 85 + COUNT ( * ) AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
88

query II rowsort
SELECT DISTINCT col2 + + - col2 * - 86, 17 AS col2 FROM tab1
----
5133
17
5916
17
8352
17

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 47 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT - - col2 - + 30 + col1 + + col0 FROM tab1 AS cor0
----
119
131
176

query I rowsort
SELECT DISTINCT - 53 * - col1 AS col0 FROM tab0 AS cor0
----
1113
4293
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 33 - + col2 + + - col0 * + + col1 col2 FROM tab1 AS cor0
----
-4359
-456
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + col2 * - ( + col0 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE NOT - col0 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 FROM tab0 cor0 WHERE col1 NOT IN ( 96 * + - 48 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL - COUNT( * ) * - 48 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - COUNT ( * ) * - 48 FROM tab0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT col2 DIV col1 * - - ( + col1 ) FROM tab1
----
47
55
84

skipif mysql # not compatible
query I rowsort label-3182
SELECT col2 / col1 * - - ( + col1 ) FROM tab1
----
47
55
84

query I rowsort
SELECT ALL col0 * - col0 * - 86 * + col1 AS col1 FROM tab1
----
3106750
3131604
33471802

query I rowsort
SELECT DISTINCT + col2 * - 93 AS col2 FROM tab0
----
-4371
-9207
-930

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3186
SELECT COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col1 FROM tab0 AS cor0
----
74

query II rowsort
SELECT ALL col0, - 30 + - + col2 - + + col1 * + + 2 FROM tab1
----
51
-154
85
-99
91
-192

query I rowsort
SELECT + 58 + + ( col1 ) AS col0 FROM tab1
----
105
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + COUNT( * ) + 68 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3190
SELECT + COUNT ( * ) + 68 FROM tab1
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 58 BETWEEN col2 - col2 AND NULL
----

query I rowsort
SELECT ALL col1 + ( - col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 87 * + 32 AS col1 FROM tab1
----
2784

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 - - col1 < + col2
----
64
77
40
75
67
58

query II rowsort
SELECT - col2, 87 AS col1 FROM tab1
----
-59
87
-68
87
-96
87

query II rowsort
SELECT ALL + col2, col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT 78 AS col0, ( - 90 ) FROM tab2 AS cor0
----
78
-90
78
-90
78
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE ( ( NOT col2 + + col0 > NULL ) )
----

query I rowsort
SELECT - ( 10 ) FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT ALL - ( - ( - CAST( COUNT( * ) AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - ( - ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + col2 / + - 32 AS col0, ( + col2 ) - + ( - + col0 ) FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3204
SELECT DISTINCT + 68, col1 DIV 1 AS col2 FROM tab0 AS cor0
----
68
1
68
21
68
81

skipif mysql # not compatible
query II rowsort label-3204
SELECT DISTINCT + 68, col1 / 1 AS col2 FROM tab0 AS cor0
----
68
1
68
21
68
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT ALL + CAST( + MAX( ( + 26 ) ) AS SIGNED ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + CAST ( + MAX ( ( + 26 ) ) AS INTEGER ) FROM tab0 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 * - col2 IS NULL
----

query I rowsort
SELECT col2 - col1 FROM tab2 WHERE ( 35 ) + col2 IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL COUNT( ALL + 94 ) + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL COUNT ( ALL + 94 ) + - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT 44 + + col1 FROM tab1
----
49
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL + 88 + - MAX( + 0 ) AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + 88 + - MAX ( + 0 ) AS col0 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT COUNT( * ) + 35 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3211
SELECT COUNT ( * ) + 35 FROM tab2
----
38

query I rowsort
SELECT DISTINCT 56 - 71 AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3213
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3213
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + - 9 + 35 IS NOT NULL
----

query I rowsort
SELECT - - ( + - 38 ) AS col2 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT col2 * - - 35 FROM tab0 AS cor0
----
1645
3465
350

query II rowsort
SELECT DISTINCT col0 * - + col1 - + + 48 - - col1 + + - col1 * 83 AS col2, col0 AS col0 FROM tab0
----
-227
97
-3597
87
-7905
15

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3219
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL ( + col1 ) * col0 / - col1 * + col2 * - + 62 + - - col0 - - - 58 FROM tab1 AS cor0 WHERE NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * col1 * + col1 * + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT - 6 DIV col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 6 / col1 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 col2 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3224
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3224
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + MIN( DISTINCT 46 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3225
SELECT + MIN ( DISTINCT 46 ) AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 83 ) + + 69 NOT BETWEEN NULL AND col1 + - - col2 - + - 64 - - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + CAST( - 12 AS SIGNED ) AS col0 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-3228
SELECT + CAST ( - 12 AS INTEGER ) AS col0 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT ALL + 55 * 14 FROM tab2
----
770
770
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT MAX( DISTINCT 41 ) AS col0 FROM tab0 WHERE NOT NULL <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT MAX ( DISTINCT 41 ) AS col0 FROM tab0 WHERE NOT NULL <> + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL + - col2 DIV + col1 col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3231
SELECT ALL + - col2 / + col1 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT - + col1 DIV + 31 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT - + col1 / + 31 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT + 57 * + col1 FROM tab2 cor0
----
2907
3819
4389

query I rowsort
SELECT DISTINCT - + col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + COUNT( - + 70 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3235
SELECT + COUNT ( - + 70 ) FROM tab0
----
3

query I rowsort
SELECT ALL 47 + - - col0 - 19 - - 60 FROM tab2 AS cor0
----
134
152
163

query I rowsort
SELECT DISTINCT + AVG ( 92 ) FROM tab0 AS cor0 WHERE + col0 < + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT - - 37 + + col1 - + + 25 DIV - - col1 FROM tab1 AS cor0
----
37
50
84

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - 37 + + col1 - + + 25 / - - col1 FROM tab1 AS cor0
----
37
50
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT + - CAST( NULL AS SIGNED ) + + 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT + - CAST ( NULL AS INTEGER ) + + 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + SUM( + ( + + 8 ) ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + SUM ( + ( + + 8 ) ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT col0 + + 87 + - col2 * ( + 4 ) + + - 10 + - 85 + + 34 * + 36 * + col2 + + 29 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
112296
67071
76884

query I rowsort
SELECT DISTINCT - - col1 - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 13 col1 FROM tab1 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab0 cor0 WHERE col2 >= col2
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + 0 * - COUNT( * ) * + 25 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 0 * - COUNT ( * ) * + 25 FROM tab0
----
0

query I rowsort
SELECT ALL col1 + - col1 - - col0 * col2 * + ( 3 ) * - col0 AS col2 FROM tab2
----
-146004
-491520
-978750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53, - 28 col2 FROM tab1 WHERE - - 85 <> NULL
----

query I rowsort
SELECT - 25 * 91 * - ( 8 ) FROM tab2
----
18200
18200
18200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + + col1 col1 FROM tab0
----
-33
-53
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT DISTINCT - col1 DIV col1 - - - ( - col0 ) FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - col1 / col1 - - - ( - col0 ) FROM tab1 AS cor0
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL - col2 * col2 * CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - col2 * col2 * CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL - - 59 AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT - col0 * ( + col2 ) * col0 * col2 + - + col1 FROM tab0 AS cor0 WHERE NOT - 51 = NULL
----

query I rowsort
SELECT ALL - 87 + col1 FROM tab0 WHERE NOT + + 15 / - col0 IS NULL
----
-6
-66
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT + SUM( DISTINCT + col0 ) * 68 * 13 DIV COUNT( * ) FROM tab0 cor0
----
58638

skipif mysql # not compatible
query I rowsort label-3257
SELECT + SUM ( DISTINCT + col0 ) * 68 * 13 / COUNT ( * ) FROM tab0 cor0
----
58638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL COUNT( - 39 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL COUNT ( - 39 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 > ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT DISTINCT + 95 * + + ( col0 ) * + - ( CAST( ( - 52 ) AS SIGNED ) ) FROM tab1
----
251940
419900
449540

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT + 95 * + + ( col0 ) * + - ( CAST ( ( - 52 ) AS INTEGER ) ) FROM tab1
----
251940
419900
449540

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT - COUNT( * ), 3 AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-3263
SELECT - COUNT ( * ), 3 AS col2 FROM tab2
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - MIN( - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3265
SELECT - MIN ( - col1 ) FROM tab2
----
77

query I rowsort
SELECT ALL col0 * - - col0 * - col2 AS col1 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT DISTINCT + 70 AS col1, COUNT( DISTINCT + col1 ) AS col0 FROM tab1
----
70
3

skipif mysql # not compatible
query II rowsort label-3267
SELECT DISTINCT + 70 AS col1, COUNT ( DISTINCT + col1 ) AS col0 FROM tab1
----
70
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + - col1 ) <> NULL
----

query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 28 <= NULL
----

query I rowsort
SELECT ALL ( - 65 ) + - ( - col1 ) AS col0 FROM tab2
----
-14
12
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT col2 + + - col1 + - col1 DIV - - col1 FROM tab0
----
-12
-35
97

skipif mysql # not compatible
query I rowsort label-3271
SELECT col2 + + - col1 + - col1 / - - col1 FROM tab0
----
-12
-35
97

query I rowsort
SELECT - col0 * + - 20 + + col2 AS col2 FROM tab2
----
1320
1558
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL CAST( NULL AS SIGNED ) + - - col1 * col0 + col0 + - col1 - + CAST( NULL AS SIGNED ) * + + col2 * + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL CAST ( NULL AS INTEGER ) + - - col1 * col0 + col0 + - col1 - + CAST ( NULL AS INTEGER ) * + + col2 * + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT - col0 * + ( - col0 ) - ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - col0 * + ( - col0 ) - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - - col2 col2, - 54 AS col1 FROM tab0 cor0
----
198
-54
20
-54
94
-54

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL MAX( DISTINCT - ( + + 27 ) ) col2 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3277
SELECT ALL MAX ( DISTINCT - ( + + 27 ) ) col2 FROM tab1
----
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT col0 * + CAST( col2 AS SIGNED ) FROM tab0 WHERE + + 15 NOT BETWEEN + + 31 + col1 AND NULL
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-3279
SELECT col0 * + CAST ( col2 AS INTEGER ) FROM tab0 WHERE + + 15 NOT BETWEEN + + 31 + col1 AND NULL
----
705
870
9603

query I rowsort
SELECT - col0 + - + 96 FROM tab1
----
-147
-181
-187

query I rowsort
SELECT DISTINCT 1 + col0 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL col2 * + ( + col2 ) + 27 AS col0 FROM tab2
----
1627
3391
556

query III rowsort
SELECT * FROM tab0 WHERE + 94 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3284
SELECT DISTINCT - 93 DIV + COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT - 93 / + COUNT ( * ) FROM tab2
----
-31

query III rowsort
SELECT * FROM tab2 WHERE + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - 1 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT 46 AS col2 FROM tab1 WHERE NULL IS NULL
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT + + col2 + + + col2 DIV + + col1 - + 47 FROM tab2 AS cor0 WHERE - 62 > + - 66 * 13 DIV + ( + col0 ) + - col1
----
-24
-7
11

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + + col2 + + + col2 / + + col1 - + 47 FROM tab2 AS cor0 WHERE - 62 > + - 66 * 13 / + ( + col0 ) + - col1
----
-24
-7
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3289
SELECT + CAST( COUNT( + 70 ) AS SIGNED ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3289
SELECT + CAST ( COUNT ( + 70 ) AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT ALL 27 DIV 22 * - - col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL 27 / 22 * - - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL = + col2
----

query II rowsort
SELECT DISTINCT + 15 AS col2, + col1 FROM tab2
----
15
51
15
67
15
77

query I rowsort
SELECT + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + + 65 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < ( - - 30 )
----

query II rowsort
SELECT - 44 AS col1, + 80 * + 81 AS col0 FROM tab1 AS cor0
----
-44
6480
-44
6480
-44
6480

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3298
SELECT + CAST( - col1 AS SIGNED ) + 96 - + + col0 AS col2, col2 * - col0 AS col2 FROM tab1 AS cor0
----
-42
-6188
31
-4896
6
-5015

skipif mysql # not compatible
query II rowsort label-3298
SELECT + CAST ( - col1 AS INTEGER ) + 96 - + + col0 AS col2, col2 * - col0 AS col2 FROM tab1 AS cor0
----
-42
-6188
31
-4896
6
-5015

query I rowsort
SELECT DISTINCT 87 FROM tab2 WHERE + 29 + - 2 IS NOT NULL
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT ALL 88 + + COUNT( * ) * - COUNT( * ) + 50 AS col2, - MAX( + 46 ) FROM tab0 WHERE 9 IS NOT NULL
----
129
-46

skipif mysql # not compatible
query II rowsort label-3300
SELECT ALL 88 + + COUNT ( * ) * - COUNT ( * ) + 50 AS col2, - MAX ( + 46 ) FROM tab0 WHERE 9 IS NOT NULL
----
129
-46

query I rowsort
SELECT - 22 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT col2 * col2 * - + col0 FROM tab0 cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE - ( + 39 ) * + 82 * + 75 + - col2 NOT IN ( + col1 )
----
-15
-87
-97

query I rowsort
SELECT 58 * + ( + 72 ) FROM tab0 AS cor0
----
4176
4176
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT DISTINCT + col0 * 63 DIV - ( - - col2 ) FROM tab1 AS cor0
----
-33
-84
-90

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + col0 * 63 / - ( - - col2 ) FROM tab1 AS cor0
----
-33
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT col1 + + + col1 - col0 + col2 + + CAST( - col0 AS SIGNED ) * - col1 * + - col1 * + + CAST( + 60 AS SIGNED ) FROM tab0
----
-2302055
-5816
-5904706

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT col1 + + + col1 - col0 + col2 + + CAST ( - col0 AS INTEGER ) * - col1 * + - col1 * + + CAST ( + 60 AS INTEGER ) FROM tab0
----
-2302055
-5816
-5904706

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - - 92 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - - 92 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
95

query II rowsort
SELECT + - col2 + ( 0 ), - col0 AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT + col2 * - + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 = - + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3310
SELECT + col2 * - + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 = - + col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 1 * + col1 * + col0 * col0 FROM tab2 AS cor0
----
107916
315392
376875

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3313
SELECT ALL - col0 * col0 / + col2 - col2 + + + col2 * + col0 * CAST( NULL AS SIGNED ) * + col0, - ( - + ( - + col1 ) ) - + 45 AS col0 FROM tab1 AS cor0
----
NULL
-50
NULL
-59
NULL
-92

skipif mysql # not compatible
query II rowsort label-3313
SELECT ALL - col0 * col0 / + col2 - col2 + + + col2 * + col0 * CAST ( NULL AS INTEGER ) * + col0, - ( - + ( - + col1 ) ) - + 45 AS col0 FROM tab1 AS cor0
----
NULL
-50
NULL
-59
NULL
-92

query I rowsort
SELECT DISTINCT - - 96 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 IS NULL )
----
96

query I rowsort
SELECT + col2 * 45 AS col1 FROM tab1 AS cor0
----
2655
3060
4320

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IN ( + ( - 78 ), + col0 * - col0 + col2 * - 10 + - 31 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT DISTINCT COUNT( * ) DIV - - SUM( DISTINCT - - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT COUNT ( * ) / - - SUM ( DISTINCT - - col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT - + 72 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + 72 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT - 40 * - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - 40 * - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT - + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col2 * 75 FROM tab1
----
4425
5100
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL + - COUNT( DISTINCT + 61 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + - COUNT ( DISTINCT + 61 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + + 54 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3325
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT - col0 ), + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
-51
3

skipif mysql # not compatible
query III rowsort label-3325
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT - col0 ), + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT MIN( ALL - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3326
SELECT MIN ( ALL - col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - col1 = NULL
----

query II rowsort
SELECT ALL - 37, + col1 FROM tab1
----
-37
14
-37
47
-37
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3329
SELECT CAST( NULL AS DECIMAL ) AS col1, 91 * - col2 col2 FROM tab1
----
NULL
-5369
NULL
-6188
NULL
-8736

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3329
SELECT CAST ( NULL AS REAL ) AS col1, 91 * - col2 col2 FROM tab1
----
NULL
-5369
NULL
-6188
NULL
-8736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 68 * + + 89 * 19
----

query I rowsort
SELECT DISTINCT 37 + - ( col0 ) FROM tab0
----
-50
-60
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL MIN( ALL 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL MIN ( ALL 72 ) FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3333
SELECT - col2 AS col2, - CAST( + 66 AS SIGNED ) col2 FROM tab0
----
-10
-66
-47
-66
-99
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3333
SELECT - col2 AS col2, - CAST ( + 66 AS INTEGER ) col2 FROM tab0
----
-10
-66
-47
-66
-99
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL col0 + + CAST( - + col1 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL col0 + + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - MAX( + - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3335
SELECT - MAX ( + - col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT col0 + 60 FROM tab2
----
106
124
135

onlyif mysql # DIV for integer division: 
query II rowsort label-3337
SELECT DISTINCT col2 AS col1, col0 + - - 42 + - col2 DIV + 23 AS col1 FROM tab1
----
59
125
68
131
96
89

skipif mysql # not compatible
query II rowsort label-3337
SELECT DISTINCT col2 AS col1, col0 + - - 42 + - col2 / + 23 AS col1 FROM tab1
----
59
125
68
131
96
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - COUNT( * ) - - + COUNT( * ) + - ( - + SUM( ALL - 66 ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT - COUNT ( * ) - - + COUNT ( * ) + - ( - + SUM ( ALL - 66 ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL + COUNT( * ) + + 45 AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + COUNT ( * ) + + 45 AS col2 FROM tab0 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + - ( - 69 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + 7 AS col1 FROM tab0 cor0
----
-8
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3343
SELECT - col1 - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - col1 - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 - - col1 FROM tab0 cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT + + ( MIN( col1 ) ) - + 89 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + + ( MIN ( col1 ) ) - + 89 FROM tab0 AS cor0
----
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < 21 AND ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + col0 ) - - + col0 + - ( + - col2 ) AS col0, col0 + col0 FROM tab2 AS cor0
----
115
92
168
128
208
150

query I rowsort
SELECT ALL - 52 - - + col1 FROM tab1 AS cor0
----
-38
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - COUNT( * ) * - COUNT( * ) * + 24 + SUM( - 33 ) AS col1 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3349
SELECT - COUNT ( * ) * - COUNT ( * ) * + 24 + SUM ( - 33 ) AS col1 FROM tab0 AS cor0
----
117

query I rowsort
SELECT + - col2 AS col0 FROM tab1 cor0 WHERE NOT - 47 * col0 + col0 IS NOT NULL
----

query I rowsort
SELECT - ( + ( + col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT CAST( 83 AS SIGNED ) * + COUNT( col0 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3352
SELECT CAST ( 83 AS INTEGER ) * + COUNT ( col0 ) FROM tab1
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3353
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col0 * + - col0 - CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-3353
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col0 * + - col0 - CAST ( NULL AS INTEGER ) * - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 NOT BETWEEN - col2 AND col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 3 / + col2 AND + - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT + COUNT( 26 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3356
SELECT + COUNT ( 26 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL MIN( ALL col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT ALL MIN ( ALL col2 ) col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT MIN( DISTINCT + 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3360
SELECT MIN ( DISTINCT + 42 ) FROM tab2
----
42

query I rowsort
SELECT DISTINCT - col2 * + 25 AS col1 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT ALL col2 * col1 FROM tab1 WHERE NOT ( + col2 * col2 ) IN ( col2 )
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT 13 + + MIN( ALL + 22 + col2 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3363
SELECT 13 + + MIN ( ALL + 22 + col2 ) FROM tab0
----
45

query I rowsort
SELECT 86 AS col0 FROM tab0 WHERE NOT + 28 + + ( - 81 ) IS NULL
----
86
86
86

query I rowsort
SELECT col0 * col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 84 FROM tab1 WHERE NOT 52 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 27 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + 67 * COUNT( * ) FROM tab2 WHERE NOT NULL <= ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + 67 * COUNT ( * ) FROM tab2 WHERE NOT NULL <= ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT - 41 * - col1 - - 17 AS col2 FROM tab1
----
1944
222
591

query I rowsort
SELECT + 50 * col0 - col1 FROM tab0
----
4329
4849
669

query I rowsort
SELECT ALL - 43 * + col1 + 57 AS col1 FROM tab2
----
-2136
-2824
-3254

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT MAX( ALL - col2 ) * MAX( - 68 ) FROM tab2
----
1564

skipif mysql # not compatible
query I rowsort label-3373
SELECT MAX ( ALL - col2 ) * MAX ( - 68 ) FROM tab2
----
1564

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( 88 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT ( 8 ) - COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT ( 8 ) - COUNT ( * ) FROM tab0
----
5

query I rowsort
SELECT DISTINCT + col1 * - 50 AS col2 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT * FROM tab1 WHERE 54 * 46 < ( NULL )
----

query I rowsort
SELECT - col2 * 1 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT DISTINCT MAX( col0 ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT MAX ( col0 ) FROM tab2 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT + 5 * + col2 FROM tab0
----
235
495
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT ALL - 26 * + ( col0 ) AS col1 FROM tab2 WHERE + col1 + CAST( + col2 + 24 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - 26 * + ( col0 ) AS col1 FROM tab2 WHERE + col1 + CAST ( + col2 + 24 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT - 95 * COUNT( * ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 95 * COUNT ( * ) FROM tab2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + COUNT( * ) * + 15 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) * + 15 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT MAX( col2 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT MAX ( col2 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

query I rowsort
SELECT + 95 - 95 * 75 FROM tab0
----
-7030
-7030
-7030

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + 29 * - 68 NOT BETWEEN - col0 + col2 * + col1 AND 57 + + col1
----

query I rowsort
SELECT ALL 74 * 81 + col2 * ( col0 ) AS col0 FROM tab0
----
15597
6699
6864

query I rowsort
SELECT col2 FROM tab1 WHERE ( - col1 * - col2 ) <= 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + MIN( ALL - 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-3391
SELECT + MIN ( ALL - 78 ) FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT ALL + 32 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + 32 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL ( MIN( col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL ( MIN ( col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3394
SELECT * FROM tab2 cor0 WHERE + col1 * col0 NOT BETWEEN ( NULL ) AND CAST( 96 AS DECIMAL ) / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3394
SELECT * FROM tab2 cor0 WHERE + col1 * col0 NOT BETWEEN ( NULL ) AND CAST ( 96 AS REAL ) / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT - 48 * ( + col2 DIV + col0 ) FROM tab1 cor0
----
-48
0
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 48 * ( + col2 / + col0 ) FROM tab1 cor0
----
-48
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - 14 - - SUM( ALL 49 ) * + SUM( DISTINCT - 55 - 10 * 28 ) AS col0 FROM tab1 AS cor0
----
-49259

skipif mysql # not compatible
query I rowsort label-3396
SELECT - 14 - - SUM ( ALL 49 ) * + SUM ( DISTINCT - 55 - 10 * 28 ) AS col0 FROM tab1 AS cor0
----
-49259

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + COUNT( - col0 ) * - 95 - 62 FROM tab0 AS cor0
----
-347

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COUNT ( - col0 ) * - 95 - 62 FROM tab0 AS cor0
----
-347

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT ( + col0 ) <> 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL COUNT( * ) + 16 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL COUNT ( * ) + 16 FROM tab1
----
19

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT - MAX( DISTINCT + col2 ) FROM tab2 WHERE + CAST( - col1 AS SIGNED ) + + col2 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 WHERE + CAST ( - col1 AS INTEGER ) + + col2 = ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT COUNT( * ) + COUNT( * ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3405
SELECT COUNT ( * ) + COUNT ( * ) col2 FROM tab1
----
6

query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + col0 )
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT MIN( 90 ) AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3407
SELECT MIN ( 90 ) AS col2 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT + COUNT( ALL + CAST( 93 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( ALL + CAST ( 93 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 34 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1 + + 87 * col1
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + col2 / col1 + 25 >= col0 * col1
----
-21
-81

query I rowsort
SELECT 3 + + 46 AS col2 FROM tab1 WHERE NOT + 19 * - col0 >= ( - col1 )
----
49
49
49

query I rowsort
SELECT 56 * - 1 AS col0 FROM tab1
----
-56
-56
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 * 89 AND - 77 + + col1
----

query I rowsort
SELECT 77 AS col1 FROM tab2 WHERE NOT + 36 < 40
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT + ( + - 93 ) AS col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - + 79 AS col1 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT DISTINCT + 25 DIV col1 * - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + 25 / col1 * - col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL 34 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * CAST( col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 34 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * CAST ( col1 AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( + 40 )
----

query I rowsort
SELECT ALL + 29 FROM tab0 WHERE NULL NOT BETWEEN + col1 - 86 * + col1 AND + ( col0 )
----

query I rowsort
SELECT DISTINCT col2 / col1 AS col1 FROM tab2 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL col1 + + + col1 + - col2 AS col2 FROM tab1
----
-49
-68
26

query I rowsort
SELECT ALL + 51 * + + col0 * + col0 + + 73 AS col1 FROM tab0
----
11548
386092
479932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT - ( + COUNT( * ) ) DIV 78 - 99 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - ( + COUNT ( * ) ) / 78 - 99 FROM tab2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT + 91 * - col1 * col0 DIV + col0 FROM tab1
----
-1274
-4277
-455

skipif mysql # not compatible
query I rowsort label-3430
SELECT + 91 * - col1 * col0 / + col0 FROM tab1
----
-1274
-4277
-455

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 30 + - - 6 * + col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
409
469
597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col0 + col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3434
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( CAST( NULL AS DECIMAL ) ) * + col2 NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3434
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( CAST ( NULL AS REAL ) ) * + col2 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3435
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 + + 30 * col1 ) NOT BETWEEN - col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3435
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 + + 30 * col1 ) NOT BETWEEN - col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE + col2 NOT BETWEEN - - col2 AND 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT col0 + - - ( + col1 ) + - + col2 DIV + col0 FROM tab1
----
138
64
90

skipif mysql # not compatible
query I rowsort label-3437
SELECT col0 + - - ( + col1 ) + - + col2 / + col0 FROM tab1
----
138
64
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT COUNT( * ) FROM tab2 WHERE ( - + col1 ) < ( 1 + + ( 22 ) * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT COUNT ( * ) FROM tab2 WHERE ( - + col1 ) < ( 1 + + ( 22 ) * - col2 )
----
0

query I rowsort
SELECT - 26 + 54 + + + 5 FROM tab2
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT - col1 / - 12 * - - col0 * CAST( NULL AS SIGNED ) * + col1 + - 64 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - col1 / - 12 * - - col0 * CAST ( NULL AS INTEGER ) * + col1 + - 64 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL 41 * col1 - + CAST( - - col1 AS SIGNED ) FROM tab0
----
3240
40
840

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 41 * col1 - + CAST ( - - col1 AS INTEGER ) FROM tab0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT + col0 + + CAST( + col2 AS SIGNED ) + col2 AS col1 FROM tab2
----
144
191
92

skipif mysql # not compatible
query I rowsort label-3442
SELECT + col0 + + CAST ( + col2 AS INTEGER ) + col2 AS col1 FROM tab2
----
144
191
92

query I rowsort
SELECT - 24 + - 1 FROM tab1
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE + ( 11 ) + + + CAST( NULL AS SIGNED ) * 47 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3444
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE + ( 11 ) + + + CAST ( NULL AS INTEGER ) * 47 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + + col1 + + 39 AS col2 FROM tab2 AS cor0
----
113
156
164

query I rowsort
SELECT ALL - - ( - + col0 ) - 10 FROM tab1 AS cor0
----
-101
-61
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + col2 IN ( 59 * - 63 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3448
SELECT * FROM tab0 AS cor0 WHERE ( - + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3448
SELECT * FROM tab0 AS cor0 WHERE ( - + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + 58 * - COUNT( * ) + - COUNT( * ) + 86 + 82 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + 58 * - COUNT ( * ) + - COUNT ( * ) + 86 + 82 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT - 97 * + - 37 FROM tab0
----
3589
3589
3589

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT col1 DIV col1 * - - col2 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3452
SELECT col1 / col1 * - - col2 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT + MIN( ALL + + 64 ) FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + MIN ( ALL + + 64 ) FROM tab0 cor0
----
64

query I rowsort
SELECT ALL - col1 + 78 + - - col0 AS col0 FROM tab1 AS cor0 WHERE - 14 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col1 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + 18 AS col0, col2 + - col2 col2 FROM tab2
----
1152
0
1350
0
828
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab1
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT DISTINCT + COUNT( * ) col0, - 70 AS col1 FROM tab2
----
3
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3459
SELECT DISTINCT + COUNT ( * ) col0, - 70 AS col1 FROM tab2
----
3
-70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT DISTINCT MAX( ALL col2 ) AS col0, COUNT( * ) AS col2 FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-3461
SELECT DISTINCT MAX ( ALL col2 ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
96
3

query I rowsort
SELECT + col2 * - col2 * 72 AS col2 FROM tab0
----
-159048
-705672
-7200

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT DISTINCT - 95 * COUNT( * ) AS col2, 1 FROM tab2
----
-285
1

skipif mysql # not compatible
query II rowsort label-3464
SELECT DISTINCT - 95 * COUNT ( * ) AS col2, 1 FROM tab2
----
-285
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL MIN( 30 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL MIN ( 30 ) FROM tab2 cor0
----
30

query II rowsort
SELECT - + 33 AS col1, - col1 FROM tab1 AS cor0
----
-33
-14
-33
-47
-33
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 16 / + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3468
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 - CAST( NULL AS SIGNED ) + - 9
----

skipif mysql # not compatible
query III rowsort label-3468
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 - CAST ( NULL AS INTEGER ) + - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3469
SELECT ALL * FROM tab2 cor0 WHERE NULL >= + col2 - - 0 * - 70 + + - col1 - + CAST( - 8 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-3469
SELECT ALL * FROM tab2 cor0 WHERE NULL >= + col2 - - 0 * - 70 + + - col1 - + CAST ( - 8 AS INTEGER ) * col0
----

query II rowsort
SELECT + ( 73 ) AS col2, - col2 FROM tab2 AS cor0
----
73
-23
73
-40
73
-58

query I rowsort
SELECT DISTINCT ( - 35 ) + - + 52 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( NOT + col2 + - col1 IN ( col1 ) ) ) )
----

query I rowsort
SELECT col2 + - - col0 + - col1 * + + col1 * + col1 FROM tab1 AS cor0
----
-103664
-2597
19

query I rowsort
SELECT ALL + col2 * - col0 * - - col2 - + - col1 AS col2 FROM tab0 AS cor0
----
-33054
-8679
-950696

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT 86 + + + 26, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
112
-3

skipif mysql # not compatible
query II rowsort label-3475
SELECT 86 + + + 26, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
112
-3

query I rowsort
SELECT + 44 - - col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT - 65 * - ( + col2 ) + 54 * col2 <= ( NULL ) )
----

query I rowsort
SELECT DISTINCT + - ( + 50 ) * - + 90 FROM tab2 AS cor0
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ( COUNT( + 39 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3478
SELECT ( COUNT ( + 39 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT COUNT( * ) + - - 47 AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT COUNT ( * ) + - - 47 AS col0 FROM tab0
----
50

query I rowsort
SELECT DISTINCT col1 * col1 * - 47 * - ( - 7 ) FROM tab0
----
-145089
-2158569
-329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 49 col2 FROM tab2
----
-3
15
26

query I rowsort
SELECT DISTINCT col0 + + 95 FROM tab1
----
146
180
186

query I rowsort
SELECT - 85 * col2 - 28 * - 7 * + col1 FROM tab2 AS cor0
----
11692
8041
8202

query I rowsort
SELECT 94 - - col0 AS col2 FROM tab0 AS cor0
----
109
181
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL CAST( NULL AS SIGNED ) - + 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( NULL AS INTEGER ) - + 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL MAX( DISTINCT 20 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL MAX ( DISTINCT 20 ) FROM tab1 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col1 * - col0 NOT BETWEEN 42 AND + + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * + ( ( - 5 ) + col0 ) FROM tab1 WHERE ( + col0 * 3 - - col0 ) <= ( + + ( - + col0 ) ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - 13 * + COUNT( * ) col2 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3494
SELECT - 13 * + COUNT ( * ) col2 FROM tab1
----
-39

query I rowsort
SELECT + 46 * + - col2 AS col0 FROM tab2
----
-1058
-1840
-2668

query II rowsort
SELECT DISTINCT col2, col2 + col2 + + col1 + col2 * - - 86 AS col2 FROM tab0
----
10
901
47
4217
99
8713

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT col0 DIV - 19 AS col0 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-3497
SELECT col0 / - 19 AS col0 FROM tab1
----
-2
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT + 33 DIV + col2 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 33 / + col2 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 * - 38 * - col2 AS col0 FROM tab1 AS cor0
----
-11210
-121448
-51072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 / + 2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - - 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT - - COUNT( * ) + + 55 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - - COUNT ( * ) + + 55 FROM tab2 AS cor0
----
58

query I rowsort
SELECT col1 + - + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT ALL 98 + - MAX( ALL + 7 ) - + - 4, - 73 col1 FROM tab2
----
95
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3505
SELECT ALL 98 + - MAX ( ALL + 7 ) - + - 4, - 73 col1 FROM tab2
----
95
-73

query I rowsort
SELECT + ( + col1 ) * + + col1 + - 64 AS col0 FROM tab2
----
2537
4425
5865

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 BETWEEN col0 AND - ( col1 ) / 52 - - - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col1, col1 AS col0 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT ALL col0, col0 * - ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 94 AND - 17
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + col0 NOT IN ( 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT + - COUNT( * ) - + 11 AS col1 FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + - COUNT ( * ) - + 11 AS col1 FROM tab2 cor0
----
-14

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE + 88 > NULL
----

query I rowsort
SELECT ALL + 28 * + col0 * - ( col0 ) * - - 76 FROM tab2
----
-11970000
-4502848
-8716288

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL 39 * col1 + col1 DIV - + 11 FROM tab1
----
1829
195
545

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL 39 * col1 + col1 / - + 11 FROM tab1
----
1829
195
545

query I rowsort
SELECT 19 + + 20 + - col2 AS col1 FROM tab0
----
-60
-8
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3517
SELECT CAST( NULL AS DECIMAL ) + + CAST( MAX( - - 40 ) AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3517
SELECT CAST ( NULL AS REAL ) + + CAST ( MAX ( - - 40 ) AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + + - col0 AS col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - + 78 + - 52 + + ( + - 25 ) + + - 95 + - 73 * + 75 * - col2 + - ( - col2 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT - COUNT( * ) DIV + 41 + - - 6 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3520
SELECT - COUNT ( * ) / + 41 + - - 6 FROM tab2
----
6

query I rowsort
SELECT ALL - ( + ( col2 ) ) - - 72 FROM tab2
----
14
32
49

query I rowsort
SELECT DISTINCT + 35 + col2 + + - col1 FROM tab0
----
1
133
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 31 * col2 * + + 88 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT + AVG ( DISTINCT col2 ) * - - 65 * - 39 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT + AVG ( DISTINCT col2 ) * - - 65 * - 39 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL - COUNT( * ) * - 56 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - COUNT ( * ) * - 56 FROM tab0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT CAST( - + CAST( - + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT CAST ( - + CAST ( - + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 34, + 84 AS col0 FROM tab2 AS cor0
----
34
84

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 + - ( - col0 ), - col0 )
----

query I rowsort
SELECT ALL + ( + - 38 ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query II rowsort
SELECT col1, + col2 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
14
884736
47
314432
5
205379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL + + CAST( NULL AS SIGNED ) * + 80 AS col2 FROM tab0 AS cor0 WHERE ( NOT + 26 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 80 AS col2 FROM tab0 AS cor0 WHERE ( NOT + 26 IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3535
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 BETWEEN - col2 * - - col2 / - CAST( + 20 AS SIGNED ) AND col1
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-3535
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 BETWEEN - col2 * - - col2 / - CAST ( + 20 AS INTEGER ) AND col1
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 23 * col2 * - 81 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3537
SELECT COUNT( * ) col0, - 19 FROM tab2 cor0
----
3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3537
SELECT COUNT ( * ) col0, - 19 FROM tab2 cor0
----
3
-19

query II rowsort
SELECT + col0 AS col2, col0 + - - ( - col0 ) FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3539
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 70 + - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3539
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 70 + - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT MAX( DISTINCT + 33 ) col0 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT DISTINCT MAX ( DISTINCT + 33 ) col0 FROM tab2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3541
SELECT DISTINCT 36 + + - col0 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT 36 + + - col0 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL ( + 37 ) AS col1 FROM tab0 WHERE col0 = + 45 * - ( + col0 ) + + 9 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - SUM( - col2 ) col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT - SUM ( - col2 ) col0 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ( SUM( col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3544
SELECT ( SUM ( col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT MAX( DISTINCT + 1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT MAX ( DISTINCT + 1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NOT - 23 + 64 > NULL )
----

query I rowsort
SELECT + col2 + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL 42 + - - col2 * col0 AS col2 FROM tab1
----
4938
5057
6230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - + col2 + 4 col1 FROM tab1 AS cor0
----
4900
5019
6192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 BETWEEN + + col1 AND 48 + - col1
----

query I rowsort
SELECT DISTINCT - 89 * - 15 FROM tab0 cor0
----
1335

query I rowsort
SELECT - + col0 + 27 FROM tab1 AS cor0
----
-24
-58
-64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN + 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT - 38 * 3 * - 33 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11286

skipif mysql # not compatible
query I rowsort label-3554
SELECT - 38 * 3 * - 33 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11286

query II rowsort
SELECT - col0 AS col2, - col1 AS col0 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3557
SELECT DISTINCT * FROM tab2 WHERE NOT + 67 + + CAST( NULL AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3557
SELECT DISTINCT * FROM tab2 WHERE NOT + 67 + + CAST ( NULL AS INTEGER ) IN ( col2 )
----

query II rowsort
SELECT ALL col1 AS col0, 62 FROM tab0
----
1
62
21
62
81
62

query I rowsort
SELECT ( - + 88 ) - + col0 FROM tab1
----
-139
-173
-179

query I rowsort
SELECT 95 - + col0 AS col2 FROM tab2
----
20
31
49

query I rowsort
SELECT DISTINCT col2 * + - col0 * + col0 AS col0 FROM tab2 cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT col1, CAST( NULL AS SIGNED ) / - 65 * - - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3562
SELECT col1, CAST ( NULL AS INTEGER ) / - 65 * - - col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL - COUNT( CAST( - - col0 AS SIGNED ) ) * + - 41 AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - COUNT ( CAST ( - - col0 AS INTEGER ) ) * + - 41 AS col2 FROM tab1 AS cor0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 AS col2, col2 col0 FROM tab1 AS cor0
----
-86
59
-86
68
-86
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT + col2 * - col2 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 * - CAST( NULL AS SIGNED ) + + ( + 18 ) * 76 * col0 + + col0 / 42 * col2 ) IS NOT NULL
----
-2162
-90
-9702

skipif mysql # not compatible
query I rowsort label-3565
SELECT + col2 * - col2 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 * - CAST ( NULL AS INTEGER ) + + ( + 18 ) * 76 * col0 + + col0 / 42 * col2 ) IS NOT NULL
----
-2162
-90
-9702

query II rowsort
SELECT 62 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
62
15
62
87
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 50 / col0 / col1 * ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3568
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + CAST( - col1 AS SIGNED ) ) + + 57 + + col1 * + + col0 * + col1 BETWEEN - + 85 AND 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3568
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + CAST ( - col1 AS INTEGER ) ) + + 57 + + col1 * + + col0 * + col1 BETWEEN - + 85 AND 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - 52 ) FROM tab0
----
52

query II rowsort
SELECT ALL - col2 * + 46 AS col0, - 39 FROM tab2
----
-1058
-39
-1840
-39
-2668
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT COUNT( + col2 ) * - MIN( DISTINCT - 52 ) AS col2 FROM tab2 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( + col2 ) * - MIN ( DISTINCT - 52 ) AS col2 FROM tab2 cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 / - + 16 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT ALL - + col1 * - CAST( - ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - + col1 * - CAST ( - ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - 91 * + + 95 AS col1 FROM tab2 AS cor0
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT COUNT( * ) * - MAX( DISTINCT col1 ) + + 87 * - + 11 FROM tab0 AS cor0
----
-1200

skipif mysql # not compatible
query I rowsort label-3577
SELECT COUNT ( * ) * - MAX ( DISTINCT col1 ) + + 87 * - + 11 FROM tab0 AS cor0
----
-1200

query I rowsort
SELECT DISTINCT - - 82 FROM tab0 cor0
----
82

query I rowsort
SELECT DISTINCT 89 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3580
SELECT col1, 44 * - + 91 * - CAST( - 35 AS SIGNED ) AS col0 FROM tab0
----
1
-140140
21
-140140
81
-140140

skipif mysql # not compatible
query II rowsort label-3580
SELECT col1, 44 * - + 91 * - CAST ( - 35 AS INTEGER ) AS col0 FROM tab0
----
1
-140140
21
-140140
81
-140140

query I rowsort
SELECT ALL 36 FROM tab2 WHERE + col2 + - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL COUNT( * ) FROM tab1 WHERE col1 NOT IN ( + 86 )
----
3

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL COUNT ( * ) FROM tab1 WHERE col1 NOT IN ( + 86 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL 34 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL 34 / col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 78 col2 FROM tab1
----
3978
6630
7098

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 43 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 29 * - col1 + 39 * + col2 AS col2 FROM tab1 AS cor0
----
2446
4015
4150

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT - - col0 DIV - 24 + + col1 + 95 FROM tab1 AS cor0
----
107
139
97

skipif mysql # not compatible
query I rowsort label-3588
SELECT - - col0 / - 24 + + col1 + 95 FROM tab1 AS cor0
----
107
139
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3589
SELECT ( - col0 ), - 50 * - col1 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3589
SELECT ( - col0 ), - 50 * - col1 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - col2 = + - col0
----
10
47
99

query I rowsort
SELECT - col0 * + + 22 FROM tab2
----
-1012
-1408
-1650

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 8 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1608
3372
537

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - COUNT( ALL 50 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - COUNT ( ALL 50 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT ALL + col1 DIV + - col0 - - + 41 AS col0 FROM tab0 AS cor0
----
36
41
41

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + col1 / + - col0 - - + 41 AS col0 FROM tab0 AS cor0
----
36
41
41

query I rowsort
SELECT DISTINCT + + 26 - + 44 + + col0 FROM tab0 cor0
----
-3
69
79

query III rowsort
SELECT * FROM tab1 WHERE - 91 = + 11
----

query I rowsort
SELECT col2 + - col0 * + - 55 FROM tab1
----
2901
4734
5073

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( * ) + - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT COUNT( * ) * + 58 DIV - 58 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3601
SELECT COUNT ( * ) * + 58 / - 58 AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 58 IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + ( + col1 ) ) * - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT ( - 77 ) AS col0 FROM tab0 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL MAX( - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL MAX ( - - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL - + COUNT( * ) + 63 AS col0 FROM tab0 AS cor0 WHERE col0 * - ( - CAST( + col0 AS SIGNED ) ) IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - + COUNT ( * ) + 63 AS col0 FROM tab0 AS cor0 WHERE col0 * - ( - CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----
60

query III rowsort
SELECT col1 AS col0, - 13 AS col1, 17 AS col0 FROM tab2
----
9 values hashing to 5d85fbe6cf63a33640c886e21ff2325d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3608
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + 64 AS col2, 81 + - - 86 FROM tab2 AS cor0
----
64
167
64
167
64
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT CAST( NULL AS SIGNED ) + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT CAST ( NULL AS INTEGER ) + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - + col2 + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT col1 + + 32 AS col0 FROM tab0 AS cor0
----
113
33
53

query I rowsort
SELECT ALL col1 * + + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT col1 + + col2 * - 95 + + col0 + 10 AS col0, - col2 * + - col0 FROM tab2
----
-2078
1058
-3649
2560
-5358
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT ALL + 58 * col0 DIV - col1 AS col0 FROM tab1
----
-112
-211
-986

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL + 58 * col0 / - col1 AS col0 FROM tab1
----
-112
-211
-986

query I rowsort
SELECT ALL 41 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab0
----
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( - ( col2 ), ( col1 ) * 46 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + SUM( DISTINCT ( + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + SUM ( DISTINCT ( + col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT CAST( NULL AS SIGNED ) * - 22 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT CAST ( NULL AS INTEGER ) * - 22 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 40 - col1 + + ( + 5 ) * col1 + 79 FROM tab0 AS cor0
----
123
363
43

query I rowsort
SELECT + - col2 + + 94 * col2 AS col2 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT ALL 3 + col1 AS col1 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3625
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL - - 63 AS col1 FROM tab1 AS cor0 WHERE CAST( 54 AS SIGNED ) IN ( + - 92 * + - ( col1 ), - CAST( NULL AS SIGNED ), col0, 73 )
----

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - - 63 AS col1 FROM tab1 AS cor0 WHERE CAST ( 54 AS INTEGER ) IN ( + - 92 * + - ( col1 ), - CAST ( NULL AS INTEGER ), col0, 73 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query II rowsort
SELECT - col2, + col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL - + SUM( DISTINCT + + 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - + SUM ( DISTINCT + + 75 ) FROM tab1 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 17 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 28 AND - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3632
SELECT + 0, COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT ( col2 ) / + CAST( - col1 AS SIGNED ) NOT BETWEEN + ( - + col1 ) AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3632
SELECT + 0, COUNT ( * ) / - CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT ( col2 ) / + CAST ( - col1 AS INTEGER ) NOT BETWEEN + ( - + col1 ) AND NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT - col1 DIV + col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3633
SELECT - col1 / + col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < + col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - SUM( ALL + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3635
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT col1 DIV + col1 - - - col2 * + - col0 FROM tab0 AS cor0
----
706
871
9604

skipif mysql # not compatible
query I rowsort label-3636
SELECT col1 / + col1 - - - col2 * + - col0 FROM tab0 AS cor0
----
706
871
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col1 FROM tab1 AS cor0
----
79

query II rowsort
SELECT - ( + col2 ), + col1 * + + col0 + + + col2 + + col1 * + 32 FROM tab0 WHERE NOT + 97 IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 + + 33 + - + col2 + - 45 * + col2 - + - ( - 12 ) * 74 * - - 70 + - col1 AS col0 FROM tab1 AS cor0
----
-64787
-65234
-66461

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL MAX( ALL + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL MAX ( ALL + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col1, ( - col1 ) * col1 * + + col2 * + 13 + - 0 col2 FROM tab1 AS cor0
----
-51
-244608
-85
-19175
-91
-1952756

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3644
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT col2 * + - 83 FROM tab1 cor0
----
-4897
-5644
-7968

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - - col0 ) IS NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + + ( + - col0 ) * 4 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT col0 + 44 FROM tab0
----
131
141
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT - CAST( - 9 AS SIGNED ) + - - col0 AS col0 FROM tab0
----
106
24
96

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) + - - col0 AS col0 FROM tab0
----
106
24
96

query I rowsort
SELECT DISTINCT 13 + col0 AS col0 FROM tab2
----
59
77
88

query I rowsort
SELECT ALL - 96 + - 83 - - - col2 AS col0 FROM tab2
----
-202
-219
-237

query II rowsort
SELECT DISTINCT col1 * + + col2 AS col1, col1 AS col2 FROM tab1
----
1344
14
295
5
3196
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT 5 DIV + + col0 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT 5 / + + col0 AS col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT + col2 + + + col2 FROM tab0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL - SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL - SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3661
SELECT 73 AS col0, MAX( ALL + col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - + col2 * CAST( NULL AS SIGNED )
----
73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3661
SELECT 73 AS col0, MAX ( ALL + col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - + col2 * CAST ( NULL AS INTEGER )
----
73
NULL

query II rowsort
SELECT + col0 * - + col2 AS col0, col2 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3663
SELECT ALL ( + col1 ) / + - col0 + - + col0 + CAST( NULL AS SIGNED ) * - 42 * + - col1, col2 AS col0, - col1 * - col0 * 25 AS col2 FROM tab1 AS cor0
----
9 values hashing to 24a592ee9d6ddcf936504342e93348eb

skipif mysql # not compatible
query III rowsort label-3663
SELECT ALL ( + col1 ) / + - col0 + - + col0 + CAST ( NULL AS INTEGER ) * - 42 * + - col1, col2 AS col0, - col1 * - col0 * 25 AS col2 FROM tab1 AS cor0
----
9 values hashing to 24a592ee9d6ddcf936504342e93348eb

query I rowsort
SELECT DISTINCT + ( col1 ) * ( - 53 ) FROM tab2
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3665
SELECT CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3665
SELECT CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT DISTINCT - 52 AS col1, COUNT( - col1 ) FROM tab1
----
-52
3

skipif mysql # not compatible
query II rowsort label-3667
SELECT DISTINCT - 52 AS col1, COUNT ( - col1 ) FROM tab1
----
-52
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 3 * - 61 AS col2 FROM tab0 cor0
----
-183

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE ( - 47 = + col0 )
----

query I rowsort
SELECT ALL + + 11 AS col1 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + - 75 ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 24 * - - ( - col2 ) FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3674
SELECT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - ( - ( - col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT DISTINCT + CAST( - - ( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + CAST ( - - ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - + ( COUNT( * ) ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3680
SELECT - + ( COUNT ( * ) ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - 60 * col1 FROM tab2 AS cor0
----
-3060
-4020
-4620

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 75
----

query I rowsort
SELECT - + col1 + + + 34 + col0 FROM tab0 AS cor0
----
-32
100
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + + SUM( ALL col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3684
SELECT ALL + + SUM ( ALL col2 ) col1 FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 57 + - ( 59 ) AS col1 FROM tab2
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3687
SELECT ALL - CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT DISTINCT 55 * SUM( col0 ) + 92 AS col1 FROM tab1
----
12577

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT 55 * SUM ( col0 ) + 92 AS col1 FROM tab1
----
12577

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3690
SELECT ALL + + col1 col1, + CAST( - col0 AS SIGNED ) DIV - - 48 FROM tab0 WHERE NULL IS NULL
----
1
-2
21
-1
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3690
SELECT ALL + + col1 col1, + CAST ( - col0 AS INTEGER ) / - - 48 FROM tab0 WHERE NULL IS NULL
----
1
-2
21
-1
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3691
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3691
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL col0 - + 74 * + 76 + + ( col1 ) DIV + col2 * + 18 AS col1 FROM tab1 AS cor0
----
-5533
-5539
-5573

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL col0 - + 74 * + 76 + + ( col1 ) / + col2 * + 18 AS col1 FROM tab1 AS cor0
----
-5533
-5539
-5573

query I rowsort
SELECT 14 - - 49 AS col2 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3694
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) >= - ( - col0 ) * 70 * - col0
----

skipif mysql # not compatible
query III rowsort label-3694
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) >= - ( - col0 ) * 70 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 86 - - col0 FROM tab0 AS cor0
----
101
173
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT ( + + 92 ) + + SUM( DISTINCT - 62 ) + - - ( - MAX( DISTINCT col2 ) ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT ( + + 92 ) + + SUM ( DISTINCT - 62 ) + - - ( - MAX ( DISTINCT col2 ) ) FROM tab0
----
-69

query I rowsort
SELECT ALL col0 + - 39 AS col0 FROM tab2
----
25
36
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL + 25 DIV - - col1 - + 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + 25 / - - col1 - + 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 10 * + 78 col0, - 72 AS col2 FROM tab2 AS cor0
----
780
-72
780
-72
780
-72

query III rowsort
SELECT 69 AS col0, - col2 AS col0, - - col2 FROM tab2 AS cor0
----
9 values hashing to 97f8b9e9c54a4e1c3dcf93bba3a2a872

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3703
SELECT ALL + + col0, - 99 DIV + + col1 col2 FROM tab1 AS cor0
----
51
-7
85
-19
91
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3703
SELECT ALL + + col0, - 99 / + + col1 col2 FROM tab1 AS cor0
----
51
-7
85
-19
91
-2

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + ( + + col0 ) * - + 20 AS col2 FROM tab1 AS cor0
----
-1020
-1700
-1820

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - 9 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT MIN( ALL + 74 ), 81 * + ( + + COUNT( * ) ) AS col1 FROM tab2
----
74
243

skipif mysql # not compatible
query II rowsort label-3707
SELECT MIN ( ALL + 74 ), 81 * + ( + + COUNT ( * ) ) AS col1 FROM tab2
----
74
243

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT ( - col0 * col0 + + + col2 - + col0 ) BETWEEN NULL AND - col2 * + col1
----

query I rowsort
SELECT - 70 AS col0 FROM tab2
----
-70
-70
-70

query I rowsort
SELECT ALL + 44 AS col2 FROM tab0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / - + 37 - + 94 * + - 21 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT + 0 DIV + 52 AS col1, - ( - col0 ) AS col1 FROM tab0 cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-3712
SELECT + 0 / + 52 AS col1, - ( - col0 ) AS col1 FROM tab0 cor0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # DIV for integer division: 
query II rowsort label-3714
SELECT - col1 DIV - 63, - 23 AS col2 FROM tab0 cor0
----
0
-23
0
-23
1
-23

skipif mysql # not compatible
query II rowsort label-3714
SELECT - col1 / - 63, - 23 AS col2 FROM tab0 cor0
----
0
-23
0
-23
1
-23

query II rowsort
SELECT DISTINCT ( - - col0 ) AS col2, - ( + col2 ) * + + col0 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT ALL + 10 AS col0, MAX( - col0 ) FROM tab0
----
10
-15

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL + 10 AS col0, MAX ( - col0 ) FROM tab0
----
10
-15

query I rowsort
SELECT + - AVG ( + - 75 ) + ( - - ( 7 ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT ALL - 95 AS col1, COUNT( * ) col0 FROM tab2 AS cor0
----
-95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3719
SELECT ALL - 95 AS col1, COUNT ( * ) col0 FROM tab2 AS cor0
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> + col1 - col0 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> + col1 - col0 / - col0
----
0

query II rowsort
SELECT - col1 AS col1, + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 93 * - + col1 / + 23 + + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3723
SELECT DISTINCT - COUNT( * ) + - SUM( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS DECIMAL ) * - col2 / + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - COUNT ( * ) + - SUM ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS REAL ) * - col2 / + + col2 )
----
NULL

query I rowsort
SELECT DISTINCT ( + 38 ) * + 86 * + 32 * - col2 FROM tab1 AS cor0
----
-10039296
-6169984
-7111168

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3725
SELECT ALL SUM( - ( - ( - + col1 ) ) ) + - CAST( NULL AS DECIMAL ) * + - MAX( + + col1 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL SUM ( - ( - ( - + col1 ) ) ) + - CAST ( NULL AS REAL ) * + - MAX ( + + col1 ) AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col1 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND - + 10
----

query II rowsort
SELECT - 75 AS col0, + col1 * - 87 - + 60 FROM tab2 AS cor0
----
-75
-4497
-75
-5889
-75
-6759

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3729
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE col0 * + 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 4 + - - 22 AS col2, + col0 FROM tab2
----
26
46
26
64
26
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT - 20 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT - 20 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 + - 67 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT - ( + 60 ) * + col1 + - CAST( - col0 AS SIGNED ) FROM tab2
----
-3014
-3945
-4556

skipif mysql # not compatible
query I rowsort label-3737
SELECT - ( + 60 ) * + col1 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
-3014
-3945
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT 53 + + SUM( ALL - 98 ) FROM tab0
----
-241

skipif mysql # not compatible
query I rowsort label-3738
SELECT 53 + + SUM ( ALL - 98 ) FROM tab0
----
-241

query II rowsort
SELECT DISTINCT - col0 + - - 75 AS col2, col1 AS col2 FROM tab1
----
-10
5
-16
47
24
14

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT ALL - MIN( ALL + 88 ) col1, COUNT( * ) AS col0 FROM tab2 cor0
----
-88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3741
SELECT ALL - MIN ( ALL + 88 ) col1, COUNT ( * ) AS col0 FROM tab2 cor0
----
-88
3

query I rowsort
SELECT ALL - 69 + - - col2 / col1 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 29 * - col2 AS col0 FROM tab0
----
-20445
-25230
-278487

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 / + + 74 + + - ( + + col0 ) + + - col2 * + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT 17 DIV - - col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT 17 / - - col1 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - 38 * col0 AS col1 FROM tab2 cor0
----
-1748
-2432
-2850

query II rowsort
SELECT DISTINCT - + col1, - 92 AS col0 FROM tab1 cor0
----
-14
-92
-47
-92
-5
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3749
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + 3 AS DECIMAL ) * + col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3749
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + 3 AS REAL ) * + col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( ALL col1 ) col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT - + 69 AS col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3752
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3753
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) * + 33 * + col0 / - 82 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) * + 33 * + col0 / - 82 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL - SUM( ( + col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - SUM ( ( + col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT ALL + 40, + COUNT( * ) + MIN( + - 50 ) AS col0 FROM tab2 AS cor0
----
40
-47

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL + 40, + COUNT ( * ) + MIN ( + - 50 ) AS col0 FROM tab2 AS cor0
----
40
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 / col0 + 26 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 / col0 + 26 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT - MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3758
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - col2 * 56 * - 1 AS col2 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT col0 - 92 AS col0 FROM tab1 WHERE NOT - 16 * - - col1 - + col2 > - col1
----
-1
-41
-7

query II rowsort
SELECT DISTINCT col0 AS col1, + col1 + col0 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - 80 * - COUNT( * ) AS col0 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - 80 * - COUNT ( * ) AS col0 FROM tab2
----
240

query II rowsort
SELECT ALL - 34, col0 * col2 * + col2 * - 35 + - + col0 * col2 - col2 AS col1 FROM tab2
----
-34
-3586600
-34
-852771
-34
-8834908

query I rowsort
SELECT + col1 * + - col0 + 1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3765
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, 99 FROM tab0 WHERE NOT ( NOT ( NULL = NULL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3765
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, 99 FROM tab0 WHERE NOT ( NOT ( NULL = NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT DISTINCT + + COUNT( * ) col1, 53 FROM tab1 AS cor0
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3766
SELECT DISTINCT + + COUNT ( * ) col1, 53 FROM tab1 AS cor0
----
3
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL - - ( + SUM( + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL - - ( + SUM ( + col0 ) ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT - 51 AS col2 FROM tab1 cor0 WHERE + 34 * - ( + + 90 ) IS NOT NULL
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - 84 + - col2 * - col1 AS col2 FROM tab1
----
1260
211
3112

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT DISTINCT + col2 DIV + col0 + - 8 AS col2 FROM tab0 AS cor0
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + col2 / + col0 + - 8 AS col2 FROM tab0 AS cor0
----
-5
-7
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT - 4 + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - 4 + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 75 col2 FROM tab1 cor0
----
-1050
-3525
-375

onlyif mysql # DIV for integer division: 
query II rowsort label-3773
SELECT + col0 DIV + col2 col1, col1 AS col1 FROM tab2 AS cor0
----
1
67
1
77
2
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3773
SELECT + col0 / + col2 col1, col1 AS col1 FROM tab2 AS cor0
----
1
67
1
77
2
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab0 WHERE NULL = + col0 * + col1 / - col0
----

query II rowsort
SELECT ALL - 47 + + + ( - 28 ) AS col1, + 78 FROM tab1
----
-75
78
-75
78
-75
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3777
SELECT col0 DIV col0 AS col0, + 54 col2 FROM tab0 WHERE + - 36 <> + ( 40 ) + col0 + - CAST( - - 27 AS SIGNED ) * - 71
----
1
54
1
54
1
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3777
SELECT col0 / col0 AS col0, + 54 col2 FROM tab0 WHERE + - 36 <> + ( 40 ) + col0 + - CAST ( - - 27 AS INTEGER ) * - 71
----
1
54
1
54
1
54

query I rowsort
SELECT DISTINCT + col2 * + 48 AS col2 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT ALL 43 + + col0 AS col0 FROM tab1
----
128
134
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3780
SELECT + + COUNT( * ) AS col2 FROM tab1 WHERE NULL >= - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL >= - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT col0 + - col2 * + col0 FROM tab0
----
-690
-783
-9506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3782
SELECT ALL - CAST( NULL AS DECIMAL ) - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - CAST ( NULL AS REAL ) - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT 22 - 90 AS col0 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT 15 * - ( - col1 ) - 64 * - + 81 * col1 AS col2 FROM tab2 cor0
----
265149
348333
400323

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - COUNT( * ) + + 72 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - COUNT ( * ) + + 72 FROM tab1 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT 51 * col2 - col2 - - - col2 - - - 45 DIV 25 AS col1 FROM tab2 AS cor0
----
1126
1959
2841

skipif mysql # not compatible
query I rowsort label-3786
SELECT 51 * col2 - col2 - - - col2 - - - 45 / 25 AS col1 FROM tab2 AS cor0
----
1126
1959
2841

query I rowsort
SELECT DISTINCT col1 + - + 27 + col1 AS col0 FROM tab1 AS cor0
----
-17
1
67

query II rowsort
SELECT - 18 AS col0, col0 AS col2 FROM tab2 cor0
----
-18
46
-18
64
-18
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT + col2 * - - col0 * - + ( - + CAST( - 26 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-18330
-22620
-249678

skipif mysql # not compatible
query I rowsort label-3789
SELECT + col2 * - - col0 * - + ( - + CAST ( - 26 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-18330
-22620
-249678

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT - 10, COUNT( * ) - 59 AS col1 FROM tab2 cor0
----
-10
-56

skipif mysql # not compatible
query II rowsort label-3790
SELECT - 10, COUNT ( * ) - 59 AS col1 FROM tab2 cor0
----
-10
-56

query I rowsort
SELECT - - ( + 90 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - - 70 * SUM( - 82 ) FROM tab0 AS cor0
----
-17220

skipif mysql # not compatible
query I rowsort label-3792
SELECT - - 70 * SUM ( - 82 ) FROM tab0 AS cor0
----
-17220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT + - col2 col0 FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) + + - 29 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3793
SELECT + - col2 col0 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) + + - 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 81 + - ( col0 ) + - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT - + CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3796
SELECT - + CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 - - - 42 - + col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 22 FROM tab2 WHERE 32 IS NOT NULL
----
22

query II rowsort
SELECT col1, + ( - col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT DISTINCT col1 DIV - + col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT col1 / - + col1 AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL - MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL - MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3805
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3805
SELECT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 99 * col2 + col0 AS col1 FROM tab0
----
1077
4668
9898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query II rowsort label-3808
SELECT ALL + COUNT( * ), + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3808
SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + col2 + - - col2 AS col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT COUNT( * ) + - COUNT( ALL - + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT COUNT ( * ) + - COUNT ( ALL - + col0 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3812
SELECT DISTINCT CAST( - ( - CAST( + + MIN( ALL + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) AS SIGNED ) * + 46 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT CAST ( - ( - CAST ( + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS REAL ) ) AS INTEGER ) * + 46 FROM tab0
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT ALL + COUNT( DISTINCT col2 ) DIV - COUNT( DISTINCT - + col2 ) + - - 12 + + 67 DIV - - COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + COUNT ( DISTINCT col2 ) / - COUNT ( DISTINCT - + col2 ) + - - 12 + + 67 / - - COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col1 * - col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 61 + - - 74 + - 30 FROM tab1
----
105
105
105

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3817
SELECT - 40 + CAST( + 37 AS SIGNED ) DIV - + col1 + - col2 FROM tab0
----
-176
-51
-87

skipif mysql # not compatible
query I rowsort label-3817
SELECT - 40 + CAST ( + 37 AS INTEGER ) / - + col1 + - col2 FROM tab0
----
-176
-51
-87

query I rowsort
SELECT + 88 + col0 FROM tab1
----
139
173
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT 31 * + MIN( DISTINCT + col2 ) + + + MIN( + - col1 ) AS col0 FROM tab1
----
1782

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT 31 * + MIN ( DISTINCT + col2 ) + + + MIN ( + - col1 ) AS col0 FROM tab1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE + + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 / + col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + + 98 / + + col2 / - 85 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + 10 + 90 AS col0 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT DISTINCT + - col0 * - 74 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 WHERE + 11 * + - col0 IS NULL
----

query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE NOT + + col1 * + col1 * - 22 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 72 * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 72 * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 3 FROM tab2 WHERE NOT - + col2 IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL 85 + MAX( - 4 ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 85 + MAX ( - 4 ) AS col0 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT + 13 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1053
-13
-273

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 13 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT - - ( - col1 ) * + + 90 * - - 34 AS col1 FROM tab0 AS cor0
----
-247860
-3060
-64260

query I rowsort
SELECT ALL + 56 * + ( + col1 ) * col0 * - 27 * - 53 + + - 51 + + - col1 AS col2 FROM tab2 AS cor0
----
187998954
394910080
402683282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 * 81 + + col2 col2 FROM tab0 AS cor0
----
-178882
-793782
-8090

query I rowsort
SELECT ALL 49 + + - 20 - + col1 * - 45 AS col2 FROM tab0 AS cor0
----
3674
74
974

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT SUM( - 95 ) * - 34 + - 59 AS col2 FROM tab2 AS cor0
----
9631

skipif mysql # not compatible
query I rowsort label-3839
SELECT SUM ( - 95 ) * - 34 + - 59 AS col2 FROM tab2 AS cor0
----
9631

query II rowsort
SELECT - + 42, col1 FROM tab2 AS cor0
----
-42
51
-42
67
-42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( * ) - - + COUNT( * ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3841
SELECT DISTINCT + COUNT ( * ) - - + COUNT ( * ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + col0 - - 58 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT DISTINCT + col0 * 51 AS col1 FROM tab2 AS cor0
----
2346
3264
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + 16 - ( + COUNT( * ) ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 16 - ( + COUNT ( * ) ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + COUNT( col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + COUNT ( col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL ( - 9 ) AS col1 FROM tab0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ( + MIN( - col2 ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3848
SELECT ( + MIN ( - col2 ) ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT CAST( - - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3849
SELECT CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3851
SELECT - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL MAX( ALL - + 76 ) AS col2 FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-76

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL MAX ( ALL - + 76 ) AS col2 FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT CAST( AVG ( ALL col2 ) AS SIGNED ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3855
SELECT CAST ( AVG ( ALL col2 ) AS INTEGER ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3856
SELECT + COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT 23 * - + 38, col0 AS col2 FROM tab1 AS cor0
----
-874
51
-874
85
-874
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + + 91 col0 FROM tab0
----
-614
-779
-9512

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL - 75 + - + 88 DIV - 40 FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - 75 + - + 88 / - 40 FROM tab2
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT - COUNT( * ) AS col2, - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3863
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ( + col2 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ( + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + ( - col2 ) IS NULL
----

query I rowsort
SELECT + col2 * - col2 + 90 FROM tab1
----
-3391
-4534
-9126

query I rowsort
SELECT DISTINCT + col2 + + - col2 FROM tab1
----
0

query I rowsort
SELECT 21 + col1 AS col2 FROM tab1
----
26
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL 33 * + COUNT( * ) + + + SUM( + col1 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL 33 * + COUNT ( * ) + + + SUM ( + col1 ) FROM tab1
----
165

query I rowsort
SELECT ALL + 86 AS col0 FROM tab0 WHERE - - col0 < col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3871
SELECT + col2 + + col1 - col0 * + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT + col2 + + col1 - col0 * + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3872
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3872
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT ALL - col0 + - 50 * + CAST( col0 AS SIGNED ) * col0 * 42 * + col0 FROM tab2 cor0
----
-204405646
-550502464
-885937575

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - col0 + - 50 * + CAST ( col0 AS INTEGER ) * col0 * 42 * + col0 FROM tab2 cor0
----
-204405646
-550502464
-885937575

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + COUNT( - col0 ) * + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + COUNT ( - col0 ) * + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL + col2 * col2 * + + 94 * - 86 AS col0 FROM tab0 cor0
----
-17857556
-79231284
-808400

query I rowsort
SELECT DISTINCT + 66 * col0 AS col1 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT DISTINCT + ( + col1 ) * + 44 AS col2 FROM tab1
----
2068
220
616

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT SUM( DISTINCT + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3879
SELECT SUM ( DISTINCT + col2 ) FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3881
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 89 * col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 + 51 AND NULL
----

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE NOT - col1 IN ( col2 )
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT ALL COUNT( ALL - col2 ) DIV - 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL COUNT ( ALL - col2 ) / - 45 FROM tab0
----
0

query I rowsort
SELECT ALL + col1 * + col0 FROM tab2 WHERE NULL NOT IN ( - 54 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3887
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3887
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT col1 + + col2 FROM tab2 WHERE col2 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3888
SELECT col1 + + col2 FROM tab2 WHERE col2 <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT 59 * + CAST( NULL AS SIGNED ) + - 37 * 62 FROM tab0 WHERE NOT - col0 NOT BETWEEN + col1 AND col1 + + 25 / - 70
----

skipif mysql # not compatible
query I rowsort label-3889
SELECT 59 * + CAST ( NULL AS INTEGER ) + - 37 * 62 FROM tab0 WHERE NOT - col0 NOT BETWEEN + col1 AND col1 + + 25 / - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT MIN( ALL col2 ) * - 70 AS col0 FROM tab1
----
-4130

skipif mysql # not compatible
query I rowsort label-3890
SELECT MIN ( ALL col2 ) * - 70 AS col0 FROM tab1
----
-4130

query I rowsort
SELECT 23 * + col2 AS col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT DISTINCT ( col0 ) DIV - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT ( col0 ) / - col0 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - COUNT( * ) FROM tab1 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 64 + 68 AS col1 FROM tab0
----
132
132
132

query I rowsort
SELECT - ( + col2 ) + 58 FROM tab1 WHERE NOT col0 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT 34 * ( ( + COUNT( * ) ) ) AS col0 FROM tab2 WHERE NOT + 20 IS NULL
----
102

skipif mysql # not compatible
query I rowsort label-3898
SELECT 34 * ( ( + COUNT ( * ) ) ) AS col0 FROM tab2 WHERE NOT + 20 IS NULL
----
102

query I rowsort
SELECT 76 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( + ( - col0 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + MAX( DISTINCT col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3900
SELECT + MAX ( DISTINCT col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + MAX( ALL - 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3901
SELECT + MAX ( ALL - 1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3902
SELECT ALL * FROM tab0 WHERE NOT ( - 25 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3902
SELECT ALL * FROM tab0 WHERE NOT ( - 25 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - COUNT( * ) - SUM( DISTINCT - 30 ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - COUNT ( * ) - SUM ( DISTINCT - 30 ) AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT MIN( ALL - 84 ) * + 39 FROM tab0 AS cor0 WHERE NOT col0 / - 92 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT MIN ( ALL - 84 ) * + 39 FROM tab0 AS cor0 WHERE NOT col0 / - 92 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 58 AS col2 FROM tab0 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3906
SELECT - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - SUM( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3907
SELECT ALL - SUM ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT COUNT( * ) DIV 72 + - 65 FROM tab2 AS cor0 CROSS JOIN tab1
----
-65

skipif mysql # not compatible
query I rowsort label-3908
SELECT COUNT ( * ) / 72 + - 65 FROM tab2 AS cor0 CROSS JOIN tab1
----
-65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> 94
----

query I rowsort
SELECT + 98 * - 56 AS col1 FROM tab2
----
-5488
-5488
-5488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT 51 * 3 + MIN( col0 ) FROM tab2
----
199

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT 51 * 3 + MIN ( col0 ) FROM tab2
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT + COUNT( * ) DIV 54 FROM tab1 AS cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT + COUNT ( * ) / 54 FROM tab1 AS cor0 CROSS JOIN tab0
----
0

query I rowsort
SELECT ALL + col2 * + col2 + col2 FROM tab1
----
3540
4692
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT - 71 DIV 80 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT DISTINCT - 71 / 80 col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 32 IS NULL
----

query I rowsort
SELECT + col0 * + ( col0 ) + - 49 FROM tab1 AS cor0
----
2552
7176
8232

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - MIN( col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col0 * + 33 + col1 FROM tab2 AS cor0
----
1569
2189
2542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT ( - 5 ) DIV COUNT( ALL 42 * 61 + col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3921
SELECT ( - 5 ) / COUNT ( ALL 42 * 61 + col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT - 59 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT col2 DIV + 90 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3923
SELECT col2 / + 90 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3924
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + AVG ( col0 ) FROM tab1 WHERE ( NULL ) NOT IN ( 31 )
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - 19 FROM tab0
----
-118
-29
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT - ( COUNT( * ) ) * - 49 FROM tab1 WHERE ( 45 ) <= - CAST( + 32 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT - ( COUNT ( * ) ) * - 49 FROM tab1 WHERE ( 45 ) <= - CAST ( + 32 AS INTEGER )
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col1 NOT BETWEEN ( col0 ) + 88 AND ( col1 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 65 ) col1 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + + col0 - 89 * 11 FROM tab0 AS cor0
----
-882
-892
-964

query I rowsort
SELECT + col0 * - 47 + 58 FROM tab0 AS cor0
----
-4031
-4501
-647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3933
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) <= 88 )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL < 30 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3936
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3936
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col1 FROM tab1 cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN - 70 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 68 + + 79 + col1 * col0 col0 FROM tab0 AS cor0
----
2314
6772
7822

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + 81 * - SUM( DISTINCT 89 ) FROM tab0 AS cor0 WHERE col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + 81 * - SUM ( DISTINCT 89 ) FROM tab0 AS cor0 WHERE col2 = NULL
----
NULL

query II rowsort
SELECT + 95, + col1 FROM tab2 cor0
----
95
51
95
67
95
77

query II rowsort
SELECT - col1 AS col0, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 36 / + 38 >= 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - + col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 - - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 - - 64 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * ( - col1 ) AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT - CAST( col1 AS SIGNED ) * + col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CAST ( col1 AS INTEGER ) * + col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - ( - + 97 ) ) NOT IN ( - 45 * 17 + 91 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
-9
3

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + - COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT + - COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - - col2 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + ( 11 ) * + COUNT( * ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3955
SELECT + ( 11 ) * + COUNT ( * ) AS col2 FROM tab2
----
33

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( col2 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + 87 * - COUNT( * ) - + MAX( - - col0 ) AS col1 FROM tab1 cor0
----
-352

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 87 * - COUNT ( * ) - + MAX ( - - col0 ) AS col1 FROM tab1 cor0
----
-352

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + - 89 * - COUNT( * ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3960
SELECT + - 89 * - COUNT ( * ) FROM tab2 AS cor0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 98 + - + col1 + - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + col0 IN ( - - col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab2 WHERE ( ( - col2 ) <= + 72 )
----
128
150
92

query I rowsort
SELECT DISTINCT 90 * + + col1 + + col2 AS col0 FROM tab2
----
4613
6088
6970

query II rowsort
SELECT col1 + + col2 AS col0, ( col0 ) FROM tab0
----
100
97
128
15
31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL COUNT( * ) + + + 9 col0 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3967
SELECT ALL COUNT ( * ) + + + 9 col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT COUNT( + col1 ) + - MIN( + col2 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( + col1 ) + - MIN ( + col2 ) FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) + - SUM( - + col0 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3969
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - SUM ( - + col0 ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3970
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CAST( + + ( + + 68 ) AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CAST ( + + ( + + 68 ) AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - + col2 FROM tab0 AS cor0 WHERE NOT 18 NOT BETWEEN col2 + + 79 + + col2 AND 71 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + COUNT( * ) * + - 3 AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + COUNT ( * ) * + - 3 AS col0 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL + 31 - - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + 31 - - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT + col0 DIV - - col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT + col0 / - - col1 AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 72 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) IN ( col0 / + 29, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 + 50 col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL 92 FROM tab2 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 59 NOT BETWEEN - 13 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 59 NOT BETWEEN - 13 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT MAX( - + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3981
SELECT MAX ( - + col2 ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT ALL 49, - 35 AS col2 FROM tab1
----
49
-35
49
-35
49
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT - CAST( + 28 AS SIGNED ) FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3983
SELECT - CAST ( + 28 AS INTEGER ) FROM tab0
----
-28
-28
-28

query I rowsort
SELECT + AVG ( ALL - col1 ) AS col0 FROM tab1 WHERE NOT ( - - col0 ) NOT IN ( - 50 + + 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT COUNT( * ) * ( 41 ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3985
SELECT COUNT ( * ) * ( 41 ) AS col1 FROM tab0
----
123

query I rowsort
SELECT ALL col0 * + 79 AS col1 FROM tab2
----
3634
5056
5925

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT ALL - col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + - 48 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 * 41 + + col1 - - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3992
SELECT COUNT( * ) AS col2, COUNT( * ) + + - SUM( - 71 ) FROM tab2 AS cor0
----
3
216

skipif mysql # not compatible
query II rowsort label-3992
SELECT COUNT ( * ) AS col2, COUNT ( * ) + + - SUM ( - 71 ) FROM tab2 AS cor0
----
3
216

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL - 15 * + COUNT( * ) + 1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - 15 * + COUNT ( * ) + 1 FROM tab2
----
-44

query I rowsort
SELECT 64 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT - ( - 19 ) AS col0 FROM tab1, tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL 89 * + - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-801

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL 89 * + - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( - ( + - CAST( NULL AS SIGNED ) ) ) <> col0
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( - ( + - CAST ( NULL AS INTEGER ) ) ) <> col0
----
0

query I rowsort
SELECT DISTINCT - - 88 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + - COUNT( * ) + + + MIN( ALL - col1 ) + - - 97 AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3999
SELECT + - COUNT ( * ) + + + MIN ( ALL - col1 ) + - - 97 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + 93 * + col2 FROM tab1 AS cor0 WHERE NOT 29 NOT IN ( + 90 + + 76 + 92 * - 19 - - col0, - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( col1 + 57 )
----

query I rowsort
SELECT + col2 + col0 * + + col0 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT MIN( ALL col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4003
SELECT MIN ( ALL col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + - col2 * - 63 AS col0 FROM tab2 AS cor0
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - 66 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 46 NOT BETWEEN NULL AND - + col2 * + 2 * - + col1
----
-66

skipif mysql # not compatible
query I rowsort label-4005
SELECT - 66 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 46 NOT BETWEEN NULL AND - + col2 * + 2 * - + col1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NULL = + col0
----

query I rowsort
SELECT DISTINCT 45 * + 48 FROM tab0
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT DISTINCT - COUNT( * ) * + 1 + CAST( - 80 AS SIGNED ) AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - COUNT ( * ) * + 1 + CAST ( - 80 AS INTEGER ) AS col2 FROM tab2
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4009
SELECT ALL - col1 + - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - col1 + - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL - 47 + - - COUNT( * ) AS col0 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - 47 + - - COUNT ( * ) AS col0 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab1 WHERE NULL BETWEEN 87 AND 25 * - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( 42 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col2 NOT BETWEEN + col1 AND NULL
----
14
47
5

query I rowsort
SELECT + + ( - + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - CAST( NULL AS SIGNED ) - + 74 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT - CAST ( NULL AS INTEGER ) - + 74 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 70 < - - 72
----

query I rowsort
SELECT ALL - 13 - - + col1 FROM tab1 AS cor0
----
-8
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT DISTINCT - CAST( + - 82 AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
82

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - CAST ( + - 82 AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + 55 * 77 AS col0 FROM tab1 AS cor0
----
4235
4235
4235

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - MIN( 59 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4022
SELECT - MIN ( 59 ) AS col0 FROM tab1 cor0
----
-59

query II rowsort
SELECT - + 96 AS col2, - col0 FROM tab2 AS cor0
----
-96
-46
-96
-64
-96
-75

query II rowsort
SELECT ALL + col2 AS col2, 24 FROM tab2 AS cor0
----
23
24
40
24
58
24

query II rowsort
SELECT ALL - col1, col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * col2 * - col0 - - col2 >= 15 * + 15
----

query II rowsort
SELECT - - 82 AS col1, 42 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2, + col2 * - col2 + + 71 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND col1 * - 79 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4029
SELECT ALL * FROM tab2 WHERE NOT - CAST( + col1 AS SIGNED ) + + - col2 <> - - 46
----

skipif mysql # not compatible
query III rowsort label-4029
SELECT ALL * FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) + + - col2 <> - - 46
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4030
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( - col2 * + CAST( NULL AS DECIMAL ) + + - 32 + - col2 ) NOT IN ( - col2 + 37 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-4030
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( - col2 * + CAST ( NULL AS REAL ) + + - 32 + - col2 ) NOT IN ( - col2 + 37 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT COUNT( * ) * - 77 AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4031
SELECT COUNT ( * ) * - 77 AS col2 FROM tab2
----
-231

query I rowsort
SELECT col0 * - 48 * + col0 FROM tab0
----
-10800
-363312
-451632

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col2 * + col0 AS col1, col2 AS col1 FROM tab0
----
705
47
870
10
9603
99

query II rowsort
SELECT DISTINCT + ( 72 ) AS col0, col0 - + + col1 AS col2 FROM tab0
----
72
-66
72
66
72
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL MAX( - - col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL MAX ( - - col0 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + col1 * + col2 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1375929
15100996
9486400

query I rowsort
SELECT DISTINCT 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT MIN( + ( - col2 ) ) + - 17 - COUNT( * ) * COUNT( * ) + - + COUNT( * ) FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT MIN ( + ( - col2 ) ) + - 17 - COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL - COUNT( * ) + - 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-30

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - COUNT ( * ) + - 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - + MAX( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4041
SELECT - + MAX ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + ( - + COUNT( * ) ) + + + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + ( - + COUNT ( * ) ) + + + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - COUNT( * ) * - 99 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - COUNT ( * ) * - 99 FROM tab2 AS cor0
----
297

query I rowsort
SELECT 33 * - + 40 AS col2 FROM tab1 AS cor0 WHERE - 7 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 col1 FROM tab2 AS cor0 WHERE + 34 + + col2 IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT + 75 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + 75 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT DISTINCT + - col1 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT ALL - 86 + - 59 + + col0 FROM tab2 AS cor0
----
-70
-81
-99

query III rowsort
SELECT * FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE col1 * - 79 + col2 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col1 col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col1 + 54 * col1 + - col2 * col1 FROM tab2
----
-335
1001
1530

query I rowsort
SELECT + 17 * 34 + + 73 * + - col0 FROM tab2
----
-2780
-4094
-4897

query I rowsort
SELECT ALL col1 + - + 53 AS col1 FROM tab2
----
-2
14
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 23 col0 FROM tab0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT MAX( - 26 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4056
SELECT MAX ( - 26 ) AS col2 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT + 4 + + 78 + 60 FROM tab2 AS cor0
----
142

query II rowsort
SELECT + col0 AS col1, - col2 * + 70 + - col2 FROM tab0
----
15
-3337
87
-710
97
-7029

query I rowsort
SELECT + 95 * + col2 FROM tab1
----
5605
6460
9120

query I rowsort
SELECT ALL - ( + - col0 ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 16 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * 89 + - + col2 col2 FROM tab2 AS cor0 WHERE NOT + 91 IS NULL
----
-227880
-387208
-94185

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT SUM( DISTINCT + 37 ) col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4063
SELECT SUM ( DISTINCT + 37 ) col0 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + COUNT( * ) * - + 39 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + COUNT ( * ) * - + 39 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT + 34 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 34 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col1 * + - col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT 71 * + col1 + - col2 * + col0 FROM tab0
----
-9532
5046
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab0
----
99
99
99

query III rowsort
SELECT ALL col1 AS col0, ( ( - col0 ) ), + - col0 AS col0 FROM tab0
----
9 values hashing to b128e3130f5ff2a66de43aebfea36b65

query I rowsort
SELECT DISTINCT 50 * col1 FROM tab2 WHERE NOT - 72 NOT BETWEEN + + col1 + col2 AND NULL
----

query I rowsort
SELECT - col0 * - + col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col0 + - 76 FROM tab1
----
-25
15
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT + - col2 DIV + ( + col0 ) + + - 36 + + - 31 AS col2 FROM tab1 cor0
----
-67
-67
-68

skipif mysql # not compatible
query I rowsort label-4075
SELECT + - col2 / + ( + col0 ) + + - 36 + + - 31 AS col2 FROM tab1 cor0
----
-67
-67
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + + ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT DISTINCT - 31 + - - 39 AS col0, ( + - 66 ) * + SUM( + col2 ) + - 56 AS col2 FROM tab1 AS cor0
----
8
-14774

skipif mysql # not compatible
query II rowsort label-4077
SELECT DISTINCT - 31 + - - 39 AS col0, ( + - 66 ) * + SUM ( + col2 ) + - 56 AS col2 FROM tab1 AS cor0
----
8
-14774

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT - col1 + - + col1 DIV col0 + + col0 FROM tab2 AS cor0
----
-14
-6
8

skipif mysql # not compatible
query I rowsort label-4078
SELECT - col1 + - + col1 / col0 + + col0 FROM tab2 AS cor0
----
-14
-6
8

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 73 * 89 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + - 52 - col0 * - col0 AS col2 FROM tab0 AS cor0
----
173
7517
9357

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col2 / - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - MAX( DISTINCT - + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - MAX ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL - ( + + col2 ) * col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4086
SELECT - + CAST( - + MIN( ALL + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4086
SELECT - + CAST ( - + MIN ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 59 * - col2 FROM tab1
----
3481
4012
5664

onlyif mysql # DIV for integer division: 
query II rowsort label-4088
SELECT DISTINCT + 82, + 46 DIV - + col2 AS col0 FROM tab1
----
82
0

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT + 82, + 46 / - + col2 AS col0 FROM tab1
----
82
0

query I rowsort
SELECT DISTINCT 18 + col2 + - col2 AS col1 FROM tab2
----
18

query III rowsort
SELECT * FROM tab2 WHERE ( ( + col2 <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL 46 * + COUNT( * ) + ( 4 ) AS col0 FROM tab0, tab2 AS cor0
----
418

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL 46 * + COUNT ( * ) + ( 4 ) AS col0 FROM tab0, tab2 AS cor0
----
418

query I rowsort
SELECT - ( - col2 ) FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL - col2 + + ( + - col2 ) * - 28 FROM tab1
----
1593
1836
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT - ( + MIN( + + 17 ) ) + + CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - ( + MIN ( + + 17 ) ) + + CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 52 * - col0 FROM tab0
----
-4524
-5044
-780

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + col2 * + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4098
SELECT + + col0 AS col2, + CAST( NULL AS SIGNED ) * - 83 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT + + col0 AS col2, + CAST ( NULL AS INTEGER ) * - 83 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - col2 * - col2 + - col0 + - 25 - + 13 + col1 * col2 * + - 78 * + col1 AS col0 FROM tab2 AS cor0
----
-18496982
-20304985
-4665749

query II rowsort
SELECT + - col1 / + - col2 AS col1, + col1 * - 45 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - MIN( + col0 ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4101
SELECT - MIN ( + col0 ) AS col1 FROM tab0 cor0
----
-15

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL + col1 * - col1 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 > 25 + + - 24
----

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + col1 * - col1 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 > 25 + + - 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT DISTINCT col1 DIV - - col0 col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT DISTINCT col1 / - - col0 col1 FROM tab2 cor0
----
0
1

query I rowsort
SELECT + + 69 AS col0 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT + col0 * + col2 / + col0 * 60 + 86 * + + col2 * col1 - + col0 AS col0 FROM tab2 cor0 WHERE NOT 14 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT ALL - - MIN( + - col2 ) AS col0, + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4108
SELECT ALL - - MIN ( + - col2 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + COUNT( DISTINCT - 79 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( DISTINCT - 79 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( col0 )
----

query I rowsort
SELECT ALL - 43 + - col2 FROM tab1
----
-102
-111
-139

query I rowsort
SELECT - ( - - col0 ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 + 44 * + 61 FROM tab0
----
2585
2637
2674

query I rowsort
SELECT - 44 + 3 * + 21 AS col2 FROM tab0
----
19
19
19

query I rowsort
SELECT - ( + col1 ) + + 15 FROM tab1
----
-32
1
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NULL <= + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - - COUNT( * ) FROM tab1 cor0 WHERE NOT - 61 / - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - - COUNT ( * ) FROM tab1 cor0 WHERE NOT - 61 / - col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + + col0 + + - col2 col1 FROM tab0 cor0
----
5906
6497
973

query II rowsort
SELECT - col2 + + + ( + col2 ), col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col1, + col2, - + col1, 59 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 87 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE 66 NOT BETWEEN NULL AND + 31
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4123
SELECT 94 - + + 82 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4123
SELECT 94 - + + 82 - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT - - COUNT( * ) * + COUNT( * ) + MAX( col1 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT - - COUNT ( * ) * + COUNT ( * ) + MAX ( col1 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 - + + col1 + 95 FROM tab2 AS cor0
----
-39
-59
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 - 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4128
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4128
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT - + 10 FROM tab1 WHERE NOT ( + + col0 / + 95 + + col1 + + col1 ) < + 82
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( 92 * + 31, 80 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT AVG ( + 96 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + - col0
----
NULL

query I rowsort
SELECT ALL + 49 * - col0 AS col0 FROM tab0 cor0
----
-4263
-4753
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT + + CAST( - 17 AS SIGNED ) FROM tab2 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-4134
SELECT + + CAST ( - 17 AS INTEGER ) FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT col1 * + col1 * col0 - - - col1 FROM tab0 cor0
----
38346
96
98334

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT - SUM( + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - SUM ( + col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT + - 1 AS col2, + 43 + + col1 FROM tab2 WHERE NOT col0 IS NULL
----
-1
110
-1
120
-1
94

query I rowsort
SELECT ALL col1 * + - col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL col0 * + col2 * + + 97 FROM tab1
----
474912
486455
600236

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - 14 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT MIN( ALL - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT MIN ( ALL - col1 ) FROM tab2
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < ( - ( - col0 ) )
----

query I rowsort
SELECT DISTINCT + 25 * col0 AS col0 FROM tab1 AS cor0
----
1275
2125
2275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4144
SELECT DISTINCT - MAX( - + col0 ) * - COUNT( DISTINCT col2 ) + ( + CAST( NULL AS DECIMAL ) ) * - 39 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - MAX ( - + col0 ) * - COUNT ( DISTINCT col2 ) + ( + CAST ( NULL AS REAL ) ) * - 39 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, col0 * - - col2 + 56 FROM tab2 cor0
----
51
1114
67
4406
77
2616

query I rowsort
SELECT - - ( - col0 ) + + - 82 FROM tab2 AS cor0
----
-128
-146
-157

query I rowsort
SELECT ALL 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL + col2 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT + 79 + - col1 AS col1 FROM tab1 AS cor0
----
32
65
74

query I rowsort
SELECT + AVG ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT 53 >= - 40
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, 87 FROM tab1 AS cor0
----
59
87
68
87
96
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT ( - CAST( NULL AS SIGNED ) ) * ( COUNT( * ) ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ( - CAST ( NULL AS INTEGER ) ) * ( COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + ( col0 ) ) + - 43 * 46 AS col2 FROM tab1
----
-2029
-2063
-2069

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4154
SELECT CAST( - col0 AS SIGNED ) AS col1, 28 * + col2 FROM tab1
----
-51
2688
-85
1652
-91
1904

skipif mysql # not compatible
query II rowsort label-4154
SELECT CAST ( - col0 AS INTEGER ) AS col1, 28 * + col2 FROM tab1
----
-51
2688
-85
1652
-91
1904

query I rowsort
SELECT DISTINCT 40 + col1 AS col2 FROM tab0
----
121
41
61

query I rowsort
SELECT DISTINCT ( + 55 ) + + col0 FROM tab0 AS cor0
----
142
152
70

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 - - - col2 * - col1 AS col2 FROM tab0 cor0
----
198
220
3854

query I rowsort
SELECT - col0 - - col1 + - ( + 90 ) FROM tab1 AS cor0
----
-127
-134
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL MAX( ALL - 52 ) - 92 + 76 AS col1 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL MAX ( ALL - 52 ) - 92 + 76 AS col1 FROM tab1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT DISTINCT + col0 + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + col0 + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL + 12 + + 78 DIV + - COUNT( + - col0 ) AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 12 + + 78 / + - COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4164
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT - - 38 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT - col1, - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-51
-5
-67
8
-77
-13

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - - SUM( ALL + col1 ) * - 99 + + - COUNT( * ) FROM tab0 WHERE NOT - + col0 IS NULL
----
-10200

skipif mysql # not compatible
query I rowsort label-4169
SELECT - - SUM ( ALL + col1 ) * - 99 + + - COUNT ( * ) FROM tab0 WHERE NOT - + col0 IS NULL
----
-10200

query I rowsort
SELECT 24 * + col2 AS col1 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4171
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL MIN( DISTINCT - + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 AS cor0 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT MAX( DISTINCT + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT MAX ( DISTINCT + col2 ) FROM tab2
----
58

query I rowsort
SELECT ( 30 ) * 30 - 37 AS col1 FROM tab2
----
863
863
863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 74 ) col2 FROM tab2 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 46 col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4178
SELECT + MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - - col1 * 91 AS col0 FROM tab1 AS cor0
----
1274
4277
455

query I rowsort
SELECT + 41 * + - 79 FROM tab1 cor0
----
-3239
-3239
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( ALL col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( ALL col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - MIN( + - 79 ) * - 0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - MIN ( + - 79 ) * - 0 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + 95 + 97 AS col0 FROM tab0 WHERE - 49 + + - CAST( NULL AS SIGNED ) + - 43 * - - col1 + - col1 + + 9 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 95 + 97 AS col0 FROM tab0 WHERE - 49 + + - CAST ( NULL AS INTEGER ) + - 43 * - - col1 + - col1 + + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT 5 + + + col1 AS col2 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 74 AS col0, ( - COUNT( * ) ) FROM tab2
----
83
-3

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 74 AS col0, ( - COUNT ( * ) ) FROM tab2
----
83
-3

query I rowsort
SELECT + col0 * 55 + + - col2 FROM tab2
----
2507
3480
4067

query I rowsort
SELECT DISTINCT + 21 + + ( - col2 ) + + ( 73 ) FROM tab2
----
36
54
71

query I rowsort
SELECT 85 + + - col1 AS col0 FROM tab1
----
38
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + MAX( - + col1 ) * 14 + + MAX( - col0 ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-4192
SELECT + MAX ( - + col1 ) * 14 + + MAX ( - col0 ) AS col2 FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col0 FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + 3 FROM tab0 WHERE NULL IS NULL
----
3
3
3

query I rowsort
SELECT DISTINCT - + 34 FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL - 81 * - - 80 AS col1 FROM tab2 AS cor0
----
-6480
-6480
-6480

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT DISTINCT - - COUNT( ALL + 98 ) AS col1, - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT - - COUNT ( ALL + 98 ) AS col1, - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
0

query II rowsort
SELECT ALL + 51, + col0 AS col0 FROM tab0
----
51
15
51
87
51
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT DISTINCT COUNT( * ), 28 AS col2 FROM tab2
----
3
28

skipif mysql # not compatible
query II rowsort label-4200
SELECT DISTINCT COUNT ( * ), 28 AS col2 FROM tab2
----
3
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT - col2 * - + 38 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT + ( + 53 ) FROM tab2
----
53
53
53

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( col2 ) * - col2 - + col0 <> NULL
----

query II rowsort
SELECT ALL 84, col2 FROM tab0
----
84
10
84
47
84
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT - + SUM( ALL 27 ) AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - + SUM ( ALL 27 ) AS col2 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT ALL - col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <= NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4212
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 * + CAST( NULL AS SIGNED ) BETWEEN - col1 * col2 + col1 / col2 * - + col0 + + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4212
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 * + CAST ( NULL AS INTEGER ) BETWEEN - col1 * col2 + col1 / col2 * - + col0 + + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + MAX( ALL - - ( col0 ) ) + 0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4214
SELECT + MAX ( ALL - - ( col0 ) ) + 0 FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 30 AS col1, - col1 FROM tab2 AS cor0
----
30
-51
30
-67
30
-77

query I rowsort
SELECT ALL ( + col0 ) * 85 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col1 + col0 * - - col1 FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 AS col0 FROM tab0
----
196
297
3822

query I rowsort
SELECT DISTINCT - 82 + + - col1 AS col1 FROM tab0 WHERE ( - - 77 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( - + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( - + col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4223
SELECT DISTINCT + + 57 DIV - col2, col1 FROM tab2 AS cor0
----
-1
77
-2
51
0
67

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT + + 57 / - col2, col1 FROM tab2 AS cor0
----
-1
77
-2
51
0
67

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE + col0 / + + col2 + + col2 NOT BETWEEN NULL AND + col2 * col2 + col2 + + - col2
----

query I rowsort
SELECT ALL col1 + + col1 * + - col0 + 48 FROM tab0
----
-1086
-1758
-48

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col1 AND + 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 11 ) col1 FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT ALL col1 DIV - 59 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT ALL col1 / - 59 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93 col1, 9 FROM tab1 AS cor0
----
-93
9
-93
9
-93
9

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT - col1 NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - ( - 66 ) AS col0 FROM tab1 AS cor0
----
59
66
68
66
96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( col0 / - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4233
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col0 / - col2 ) IS NULL
----
3

query II rowsort
SELECT + col0, ( col0 ) AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 - 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT SUM( - - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT SUM ( - - col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL - COUNT( DISTINCT - + 14 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - COUNT ( DISTINCT - + 14 ) FROM tab0
----
-1

query I rowsort
SELECT ALL - + ( + col1 ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 31 * - col0, 59 AS col1 FROM tab1
----
1581
59
2635
59
2821
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT 46 DIV + COUNT( * ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4241
SELECT 46 / + COUNT ( * ) AS col2 FROM tab1
----
15

query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + 24 AND NULL
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT + - SUM( ALL - + col1 ) * - CAST( NULL AS SIGNED ) + + 88 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + - SUM ( ALL - + col1 ) * - CAST ( NULL AS INTEGER ) + + 88 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 / - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4246
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 / - col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col1 + + col0 + 61 FROM tab0 cor0
----
157
159
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4248
SELECT DISTINCT + CAST( + 26 AS SIGNED ) + col1 AS col1, col0 FROM tab2
----
103
64
77
46
93
75

skipif mysql # not compatible
query II rowsort label-4248
SELECT DISTINCT + CAST ( + 26 AS INTEGER ) + col1 AS col1, col0 FROM tab2
----
103
64
77
46
93
75

query I rowsort
SELECT ALL + 82 + + + col2 AS col1 FROM tab1
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - 52 * COUNT( * ) AS col1 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-4250
SELECT - 52 * COUNT ( * ) AS col1 FROM tab2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4251
SELECT + col0 AS col1, ( CAST( - ( - 81 ) AS SIGNED ) ) + + CAST( NULL AS SIGNED ) - + - ( 92 ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4251
SELECT + col0 AS col1, ( CAST ( - ( - 81 ) AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) - + - ( 92 ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - 68 FROM tab2 AS cor0 WHERE + 36 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, ( - 35 ) * + col0 + + - 35 + - ( - 9 ) AS col2 FROM tab2 AS cor0
----
-46
-1636
-64
-2266
-75
-2651

query I rowsort
SELECT 5 + col1 * col1 FROM tab0 AS cor0
----
446
6
6566

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 45 * - ( - - col0 ) = col1 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT COUNT( * ) + + 53 AS col2, - SUM( col2 ) AS col0 FROM tab0
----
56
-156

skipif mysql # not compatible
query II rowsort label-4256
SELECT COUNT ( * ) + + 53 AS col2, - SUM ( col2 ) AS col0 FROM tab0
----
56
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT DISTINCT 25, SUM( col0 ) * 17 AS col1 FROM tab0
----
25
3383

skipif mysql # not compatible
query II rowsort label-4257
SELECT DISTINCT 25, SUM ( col0 ) * 17 AS col1 FROM tab0
----
25
3383

query I rowsort
SELECT 37 + - + col2 AS col0 FROM tab1
----
-22
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 1 + + col2 col2 FROM tab1
----
117
135
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT 24 - + - MIN( ALL col0 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT 24 - + - MIN ( ALL col0 ) FROM tab0
----
39

query I rowsort
SELECT DISTINCT + + 63 + col0 - + col0 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4263
SELECT DISTINCT + COUNT( * ) AS col2, - ( + 73 ) AS col0 FROM tab0 AS cor0
----
3
-73

skipif mysql # not compatible
query II rowsort label-4263
SELECT DISTINCT + COUNT ( * ) AS col2, - ( + 73 ) AS col0 FROM tab0 AS cor0
----
3
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-4264
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col0, + - MAX( ALL - ( - 25 ) ) FROM tab1 AS cor0
----
-3
3
-25

skipif mysql # not compatible
query III rowsort label-4264
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0, + - MAX ( ALL - ( - 25 ) ) FROM tab1 AS cor0
----
-3
3
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT + COUNT( 87 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + COUNT ( 87 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 * 73 col2 FROM tab1 cor0
----
357408
366095
451724

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col0 * - col2 <= - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4268
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col2, 93 FROM tab0 AS cor0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col2, 93 FROM tab0 AS cor0
----
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT - + 30 * - 65 DIV 32 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - + 30 * - 65 / 32 FROM tab0 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4271
SELECT ALL col2 DIV col1 AS col0, ( + col2 ) DIV + ( CAST( - col2 AS SIGNED ) ) + - ( col1 ) + + + ( - col0 ) FROM tab2 AS cor0
----
0
-142
0
-143
0
-98

skipif mysql # not compatible
query II rowsort label-4271
SELECT ALL col2 / col1 AS col0, ( + col2 ) / + ( CAST ( - col2 AS INTEGER ) ) + - ( col1 ) + + + ( - col0 ) FROM tab2 AS cor0
----
0
-142
0
-143
0
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 / + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 47 AS col2 FROM tab2 cor0
----
1081
1880
2726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 14 ) col0 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT - MAX( DISTINCT + 46 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - MAX ( DISTINCT + 46 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT COUNT( DISTINCT + 54 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4276
SELECT COUNT ( DISTINCT + 54 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT - 16 AS col0, + col1 + - 68 FROM tab0
----
-16
-47
-16
-67
-16
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 87 BETWEEN ( NULL ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL 15 DIV - col1 * 79 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 15 / - col1 * 79 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT ALL + 43 DIV + 41 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + 43 / + 41 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + + 8 AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + + 21 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 4 + + col1 + + 97 + - col2 * + col1 + - + col2 FROM tab2
----
-1044
-2942
-3776

query I rowsort
SELECT col2 + - 74 FROM tab2
----
-16
-34
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4286
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 + 55 AS col2 FROM tab0 AS cor0
----
-32
-42
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL + MAX( DISTINCT + - 79 ) FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + MAX ( DISTINCT + - 79 ) FROM tab2 cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - 99 + + COUNT( * ) + 57 AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4289
SELECT - 99 + + COUNT ( * ) + 57 AS col0 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + 50 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - COUNT( * ) * - 62 AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4293
SELECT - COUNT ( * ) * - 62 AS col2 FROM tab0 AS cor0
----
186

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + - ( + col1 ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 + col1 AS col1 FROM tab2
----
148
209
218

query I rowsort
SELECT DISTINCT 21 + col2 + 67 AS col1 FROM tab2
----
111
128
146

query I rowsort
SELECT DISTINCT col2 - + 7 FROM tab1
----
52
61
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + ( COUNT ( * ) ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 >= - 53 - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4301
SELECT 50 + + 32 AS col2, ( COUNT( * ) ) DIV + ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82
0

skipif mysql # not compatible
query II rowsort label-4301
SELECT 50 + + 32 AS col2, ( COUNT ( * ) ) / + ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82
0

query II rowsort
SELECT + + 39, + col2 * 96 AS col1 FROM tab1 AS cor0
----
39
5664
39
6528
39
9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4303
SELECT + CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4303
SELECT + CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col1 - - - 24 AS col1 FROM tab2 AS cor0
----
-2370
-4952
-5049

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL > + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL > + + col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT 69 * + COUNT( * ) AS col0 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-4310
SELECT 69 * + COUNT ( * ) AS col0 FROM tab0
----
207

query I rowsort
SELECT col0 + - 64 + + 75 * 53 AS col0 FROM tab2
----
3957
3975
3986

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT ALL 12 + + 30, MAX( - + 75 ) AS col0 FROM tab1
----
42
-75

skipif mysql # not compatible
query II rowsort label-4312
SELECT ALL 12 + + 30, MAX ( - + 75 ) AS col0 FROM tab1
----
42
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4313
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 6 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 6 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT DISTINCT + + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL - SUM( + 68 ) col2 FROM tab0 cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT ALL - SUM ( + 68 ) col2 FROM tab0 cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT MAX( DISTINCT - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4317
SELECT MAX ( DISTINCT - - col0 ) FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 35 ) * - 2 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT + col2 * col1 + + - col0 * - - 98 AS col0 FROM tab1 AS cor0
----
-3654
-5722
-8035

query I rowsort
SELECT DISTINCT + col0 - col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4321
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 29 - - - CAST( + col1 AS SIGNED ) - + + col1 * - + col2 / - col1 ) >= col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4321
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 29 - - - CAST ( + col1 AS INTEGER ) - + + col1 * - + col2 / - col1 ) >= col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT ALL - + col2 * - - 54 AS col1 FROM tab0 cor0
----
-2538
-5346
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT DISTINCT ( + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT ( + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + 84 + - + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 84 + - + COUNT ( * ) FROM tab0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4327
SELECT - COUNT( * ) DIV COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4327
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT col1 - + col1 - - - col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + COUNT( + col2 ) * - MIN( 35 ) - + 9 AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4329
SELECT + COUNT ( + col2 ) * - MIN ( 35 ) - + 9 AS col2 FROM tab2
----
-114

query II rowsort
SELECT - ( - 73 ), + col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL SUM ( col2 ) FROM tab1 AS cor0
----
223

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT ALL col1, 1 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT + 26 * - col0 + 74 * - col1 FROM tab1 AS cor0
----
-2362
-2580
-5844

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT - - 91 DIV + col1 + + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4335
SELECT - - 91 / + col1 + + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT + + 48 + + col0 FROM tab1 cor0
----
133
139
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - + col2 * - + col2 <= 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT + - 33 + + 59 + CAST( - - col2 AS SIGNED ) * - + col2 AS col0 FROM tab0 cor0
----
-2183
-74
-9775

skipif mysql # not compatible
query I rowsort label-4338
SELECT + - 33 + + 59 + CAST ( - - col2 AS INTEGER ) * - + col2 AS col0 FROM tab0 cor0
----
-2183
-74
-9775

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 90 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - COUNT( - - col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4340
SELECT - COUNT ( - - col1 ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 22 * + col2 AS col2 FROM tab2
----
1276
506
880

query I rowsort
SELECT ALL ( - col0 ) + + - 88 FROM tab1
----
-139
-173
-179

query I rowsort
SELECT DISTINCT + col2 + - 42 + - + col0 FROM tab0
----
-10
-119
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT CAST( 35 AS SIGNED ) FROM tab1
----
35
35
35

skipif mysql # not compatible
query I rowsort label-4344
SELECT CAST ( 35 AS INTEGER ) FROM tab1
----
35
35
35

query I rowsort
SELECT ALL + 97 + + 64 AS col0 FROM tab1 cor0
----
161
161
161

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT + - 84, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-84
3

skipif mysql # not compatible
query II rowsort label-4346
SELECT + - 84, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-84
3

query I rowsort
SELECT - 81 * - col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT + col1 + - col1 DIV - col0 * + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4350
SELECT + col1 + - col1 / - col0 * + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col1 - - 65 + + col0 AS col0 FROM tab2 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT DISTINCT 41 + - col2 FROM tab1
----
-18
-27
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - 96 - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-87

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - 96 - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT ALL + 42 DIV SUM( - col2 ) + + - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + 42 / SUM ( - col2 ) + + - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT COUNT( * ) - + 38 + - MIN( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT COUNT ( * ) - + 38 + - MIN ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT SUM( DISTINCT - + col2 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-156
3

skipif mysql # not compatible
query II rowsort label-4356
SELECT SUM ( DISTINCT - + col2 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-156
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4357
SELECT ALL - - CAST( NULL AS DECIMAL ) * - col0 + + - 98, - 27 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL - - CAST ( NULL AS REAL ) * - col0 + + - 98, - 27 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4358
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + - 57 FROM tab2 cor0
----
-57
-57
-57

query I rowsort
SELECT - 68 + ( + col0 ) / - 36 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 - - col2 + - col2 + - - 14
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT + 16 * - + col2 AS col1 FROM tab1 AS cor0
----
-1088
-1536
-944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT + ( - CAST( NULL AS SIGNED ) ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT + ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - COUNT( * ) - + 19 AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4364
SELECT - COUNT ( * ) - + 19 AS col0 FROM tab1
----
-22

query II rowsort
SELECT DISTINCT - col2, + col2 AS col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col1 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT - 75 AS col2, 83 * - col1 AS col2 FROM tab1
----
-75
-1162
-75
-3901
-75
-415

query II rowsort
SELECT DISTINCT 99 * + 23 - col1 AS col0, col2 FROM tab0 AS cor0
----
2196
47
2256
10
2276
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - + COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4369
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT 40, - col0 + col0 + - + col2 * - col2 AS col2 FROM tab1 AS cor0
----
40
3481
40
4624
40
9216

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT + COUNT ( col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + 23 + MIN( ALL col0 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4374
SELECT + 23 + MIN ( ALL col0 ) FROM tab1
----
74

query I rowsort
SELECT + col1 + + 47 AS col0 FROM tab2
----
114
124
98

query III rowsort
SELECT * FROM tab2 WHERE ( 52 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE - col2 > + col2 - 17
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4377
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE - col2 > + col2 - 17
----
0

query I rowsort
SELECT ALL + col0 - - 47 FROM tab0
----
134
144
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 83 NOT BETWEEN + col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT + 67 * col0 - col0 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT ALL + col1 * + col2 FROM tab1 WHERE NULL IN ( - 70 )
----

query I rowsort
SELECT - 6 FROM tab0 WHERE NOT + ( 23 ) IS NOT NULL
----

query I rowsort
SELECT 53 - col1 AS col0 FROM tab0
----
-28
32
52

query I rowsort
SELECT ALL + ( - 76 ) FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT MIN( - 15 ) col2 FROM tab2 WHERE ( + col2 ) <> + col2 * col0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT MIN ( - 15 ) col2 FROM tab2 WHERE ( + col2 ) <> + col2 * col0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE + 42 NOT BETWEEN NULL AND + 45 * + 61
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL = - 36 + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - COUNT( * ) col0 FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT - COUNT ( * ) col0 FROM tab2 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - SUM( - col1 ) FROM tab2 WHERE col0 + col1 = ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - SUM ( - col1 ) FROM tab2 WHERE col0 + col1 = ( col0 )
----
NULL

query I rowsort
SELECT - col0 * - 22 AS col2 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL 30 * COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 30 * COUNT ( * ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - 69 * COUNT( * ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 69 * COUNT ( * ) FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 18 IN ( + col0 / col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4395
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 18 IN ( + col0 / col1 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN + col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 + - 58 FROM tab0
----
-10

query I rowsort
SELECT - ( 1 ) + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-1059
-2561
-4351

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 72 col2 FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT ALL 21 - 84 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 54 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL 21 - 84 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 54 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT - COUNT( + 23 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 < ( 27 - + 31 / + col1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - COUNT ( + 23 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 < ( 27 - + 31 / + col1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4406
SELECT col1 - + CAST( col2 + col0 DIV - col1 AS SIGNED ) * + col1 FROM tab1
----
-1288
-205
-3102

skipif mysql # not compatible
query I rowsort label-4406
SELECT col1 - + CAST ( col2 + col0 / - col1 AS INTEGER ) * + col1 FROM tab1
----
-1288
-205
-3102

query I rowsort
SELECT DISTINCT - - col0 * 6 + 84 AS col2 FROM tab0 AS cor0
----
174
606
666

query I rowsort
SELECT + 22 + - col1 AS col0 FROM tab1 AS cor0
----
-25
17
8

query I rowsort
SELECT ALL 90 - - col1 FROM tab0 AS cor0
----
111
171
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT SUM( + col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4410
SELECT SUM ( + col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 * 19 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 * 19 + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - 42 ) ) BETWEEN ( + col1 ) AND - 32
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT ALL - col2 DIV 56 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - col2 / 56 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT COUNT( * ) * 36 AS col1 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4417
SELECT COUNT ( * ) * 36 AS col1 FROM tab0 AS cor0
----
108

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT - 94 * - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT SUM( ALL 81 ) * COUNT( * ) FROM tab2
----
729

skipif mysql # not compatible
query I rowsort label-4419
SELECT SUM ( ALL 81 ) * COUNT ( * ) FROM tab2
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT COUNT( ALL + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( ALL + - col2 ) FROM tab1
----
3

query I rowsort
SELECT col0 * + col1 + - 18 * - 98 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 60 * - col0 * + col1 FROM tab1
----
-25500
-256620
-42840

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT COUNT( * ) * + 59 * - ( COUNT( DISTINCT + 32 ) ) AS col1 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-4423
SELECT COUNT ( * ) * + 59 * - ( COUNT ( DISTINCT + 32 ) ) AS col1 FROM tab2
----
-177

query I rowsort
SELECT ALL ( 71 ) * + col2 AS col0 FROM tab0
----
3337
7029
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <> - col1 * - col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT 39 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT 39 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col1 col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col2 + 28
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 / + 62 NOT IN ( + 27 )
----

query I rowsort
SELECT ALL - col1 * + + 55 AS col2 FROM tab2 cor0
----
-2805
-3685
-4235

query I rowsort
SELECT - 53 FROM tab1 cor0
----
-53
-53
-53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 83 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 86 AS col1 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT + ( - col2 ) + + + col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 / + col0 + - col0 NOT BETWEEN + CAST( - col1 AS SIGNED ) * col1 AND ( 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4436
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 / + col0 + - col0 NOT BETWEEN + CAST ( - col1 AS INTEGER ) * col1 AND ( 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + ( - + 0 ) NOT BETWEEN + col0 * col0 - 15 AND NULL
----
51
67
77

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE + 74 * - - 80 IN ( col1 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col2 * col2 / col2
----

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + col1 * + 47 FROM tab2
----
110262
231616
236175

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT - SUM( ALL - + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4443
SELECT - SUM ( ALL - + col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + 54 * - 71 * col1 + - col0 AS col2 FROM tab0
----
-310569
-3931
-80601

query III rowsort
SELECT * FROM tab2 WHERE 81 < ( + ( 60 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - MAX( col1 ) + - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - MAX ( col1 ) + - COUNT ( * ) FROM tab0
----
-84

query I rowsort
SELECT ALL ( + + col2 ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 / col0 col2 FROM tab2 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - - col2 NOT IN ( 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 49 / col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 78 * - - 60 * col1 AND ( + col0 * col1 )
----

query I rowsort
SELECT DISTINCT + + ( - ( - ( + + col2 ) ) ) * + col2 + + col2 FROM tab0 AS cor0
----
110
2256
9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / + 23 * - 45 + col2 col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT + - COUNT( * ) * + + 42 - + - COUNT( * ) + + - CAST( NULL AS SIGNED ) * 59 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT + - COUNT ( * ) * + + 42 - + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * 59 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 76 FROM tab1 cor0 WHERE NOT + 47 + + - 12 + - + col2 IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 59 + - ( SUM( DISTINCT + 89 ) ) - + 71 AS col2 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-4455
SELECT 59 + - ( SUM ( DISTINCT + 89 ) ) - + 71 AS col2 FROM tab2 AS cor0
----
-101

query I rowsort
SELECT ALL 61 FROM tab1 cor0 WHERE 71 IS NOT NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT + - COUNT( 28 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + - COUNT ( 28 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT col1 + - col1 + + 46 * + - col0 - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT col1 + - col1 + + 46 * + - col0 - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 17 / col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN NULL AND 86
----

query I rowsort
SELECT col0 + - - 89 FROM tab1
----
140
174
180

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT - col1 DIV col2 * col0 DIV col0 DIV - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - col1 / col2 * col0 / col0 / - col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 29 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT DISTINCT COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab1 WHERE NOT ( - col2 ) <> ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( 24 + + col0 * + + col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + COUNT( * ) * 44 AS col1 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + COUNT ( * ) * 44 AS col1 FROM tab0
----
132

query I rowsort
SELECT DISTINCT col1 * - 36 FROM tab1
----
-1692
-180
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL ( - 29 ) AS col0 FROM tab2 WHERE - + 39 / + col2 + - col2 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL ( - 29 ) AS col0 FROM tab2 WHERE - + 39 / + col2 + - col2 = - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4473
SELECT ( 35 ) DIV CAST( - ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4473
SELECT ( 35 ) / CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 13
----

query II rowsort
SELECT DISTINCT col1, + ( ( - col2 ) ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-4476
SELECT ALL col0 AS col0, 73 DIV col1 * + col1, col1 FROM tab2 cor0
----
9 values hashing to 627c0acc7bc38f33d1beb7a7c7af0b5b

skipif mysql # not compatible
query III rowsort label-4476
SELECT ALL col0 AS col0, 73 / col1 * + col1, col1 FROM tab2 cor0
----
9 values hashing to 627c0acc7bc38f33d1beb7a7c7af0b5b

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT DISTINCT + col0 DIV - col0 + - 69 + + col0 col2 FROM tab1
----
-19
15
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4477
SELECT DISTINCT + col0 / - col0 + - 69 + + col0 col2 FROM tab1
----
-19
15
21

query I rowsort
SELECT ALL - 9 * + col1 FROM tab1
----
-126
-423
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 - - + 1 col2 FROM tab1 cor0
----
426
4278
715

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= ( + col2 + col0 / col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT DISTINCT + 5 DIV - col2 + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + 5 / - col2 + col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col2 * - col1 + - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT ALL - - 52 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL - MAX( + col0 ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT ALL - MAX ( + col0 ) col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - + ( ( - + col0 ) ) FROM tab2 WHERE NULL = - col0
----

query I rowsort
SELECT ALL - col1 * 18 + + 95 + 82 * - 29 FROM tab0
----
-2301
-2661
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - COUNT( * ) + + 86 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4487
SELECT - COUNT ( * ) + + 86 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4488
SELECT * FROM tab2 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4488
SELECT * FROM tab2 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT + CAST( NULL AS SIGNED ) * + + col1 * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT + CAST ( NULL AS INTEGER ) * + + col1 * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab0 AS cor0
----
-79

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab2 AS cor0 WHERE NOT - col0 + + - 75 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT DISTINCT + + MIN( ALL 6 ) - - - 96 AS col2, - 43 FROM tab0 AS cor0
----
-90
-43

skipif mysql # not compatible
query II rowsort label-4492
SELECT DISTINCT + + MIN ( ALL 6 ) - - - 96 AS col2, - 43 FROM tab0 AS cor0
----
-90
-43

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + col2 * + col2 <= + - col0
----
15
87
97

query I rowsort
SELECT DISTINCT ( 14 ) AS col2 FROM tab0
----
14

query I rowsort
SELECT + col1 - + col0 + - col2 FROM tab2
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT 95 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 92 * + 17 col2, col2 col0 FROM tab2 AS cor0
----
1564
23
1564
40
1564
58

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 40 + 96 + - col1 )
----

query I rowsort
SELECT ALL + ( + ( 67 ) ) AS col1 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT - - col2 + - ( - 13 ) FROM tab0 AS cor0 WHERE NOT ( col0 ) * - + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4502
SELECT - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT + COUNT( - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + COUNT ( - col0 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col1 col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT - 30 * + col0 * + 70 FROM tab0
----
-182700
-203700
-31500

query I rowsort
SELECT ( + 56 ) AS col1 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL 6 AS col1 FROM tab1
----
6
6
6

query I rowsort
SELECT ALL col2 / + ( - 31 ) FROM tab0 WHERE NOT - + 22 <> - 59 + - - col0 + + + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - SUM( - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4511
SELECT - SUM ( - + col1 ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT - + 5 AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - 30 * - col0 FROM tab0
----
2610
2910
450

query II rowsort
SELECT col2, col1 * col2 FROM tab0
----
10
210
47
3807
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4515
SELECT ALL - CAST( NULL AS DECIMAL ) + - + 32 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - CAST ( NULL AS REAL ) + - + 32 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT - - COUNT( * ) * + 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - - COUNT ( * ) * + 79 FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL + + ( + + CAST( + 25 AS SIGNED ) ) FROM tab1 cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + + ( + + CAST ( + 25 AS INTEGER ) ) FROM tab1 cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4518
SELECT DISTINCT 29, CAST( - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
29
-51
29
-85
29
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4518
SELECT DISTINCT 29, CAST ( - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
29
-51
29
-85
29
-91

query I rowsort
SELECT + col1 * - col2 + col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT DISTINCT - CAST( - 55 AS SIGNED ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - ( + SUM( DISTINCT + + 95 ) ) FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - ( + SUM ( DISTINCT + + 95 ) ) FROM tab0 cor0
----
-95

query I rowsort
SELECT 64 * col2 AS col2 FROM tab1 AS cor0
----
3776
4352
6144

onlyif mysql # DIV for integer division: 
query II rowsort label-4524
SELECT 56 DIV col2 AS col2, col0 DIV col1 FROM tab1
----
0
1
0
17
0
3

skipif mysql # not compatible
query II rowsort label-4524
SELECT 56 / col2 AS col2, col0 / col1 FROM tab1
----
0
1
0
17
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT col0 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * - + ( 44 ) + - col2 FROM tab1
----
161
2000
520

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + MIN( - col2 ) + - COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + MIN ( - col2 ) + - COUNT ( * ) FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + ( COUNT( * ) ) - - 88 AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4528
SELECT + ( COUNT ( * ) ) - - 88 AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4529
SELECT SUM ( + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT - 67 * 88 AS col1 FROM tab0 AS cor0
----
-5896
-5896
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT - 8 DIV - 57 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 8 / - 57 FROM tab1
----
0
0
0

query II rowsort
SELECT + 8, + 56 * + - col0 AS col2 FROM tab0
----
8
-4872
8
-5432
8
-840

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 * + + 26 FROM tab0 AS cor0
----
10
546
47
2106
99
26

query I rowsort
SELECT ALL + col2 + + col1 FROM tab2 AS cor0 WHERE + 83 = col2
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 40 - + 98 AS col1 FROM tab2 AS cor0
----
23
-58
40
-58
58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT - + COUNT( * ) AS col2, COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-4537
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT - 98, + COUNT( 11 ) AS col1 FROM tab2 AS cor0
----
-98
3

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 98, + COUNT ( 11 ) AS col1 FROM tab2 AS cor0
----
-98
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4539
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 12 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4539
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 12 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= + col1 * - - col1
----

query I rowsort
SELECT ALL + 78 * - - col0 AS col1 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ( COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4542
SELECT ( COUNT ( * ) ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 84 * - col2 AS col1 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT + col1 * + + 24 FROM tab1
----
1128
120
336

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT + - ( + col0 ) DIV + + 17 + + col0 FROM tab1 AS cor0
----
48
80
86

skipif mysql # not compatible
query I rowsort label-4545
SELECT + - ( + col0 ) / + + 17 + + col0 FROM tab1 AS cor0
----
48
80
86

query I rowsort
SELECT ALL col2 * + + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= + col1 * col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= + col1 * col2 * col0
----
0

query I rowsort
SELECT ALL 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 7 * + col1 AS col1 FROM tab0 WHERE ( NULL IN ( 1 * 61 * - - 45 / + col1 + - + col0, + 37 + col2, - col2 * + col1 * - col0 + ( - 21 ) * - col2 ) )
----

query II rowsort
SELECT - 13 * + 20 * - - col1 AS col0, col2 FROM tab2
----
-13260
23
-17420
58
-20020
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 * + - 84 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 <= col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 <= col0 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * col0 + 80 + col1 FROM tab2 AS cor0
----
-1985
-3939
-5478

query I rowsort
SELECT ALL - col0 * + col0 * - + col1 FROM tab0 cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + col2 * + 97 FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4558
SELECT ALL - 48 * - 7 DIV + MIN( - - col1 ) AS col0 FROM tab0 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - 48 * - 7 / + MIN ( - - col1 ) AS col0 FROM tab0 AS cor0
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT col0 DIV - 60 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT col0 / - 60 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col2 + + 68 * 5 AS col0 FROM tab1
----
399
408
436

query III rowsort
SELECT * FROM tab1 WHERE + 14 IN ( + col1, 45, + - 51 + 86 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL + 95 + - - MAX( + 60 ) AS col0 FROM tab0
----
155

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + 95 + - - MAX ( + 60 ) AS col0 FROM tab0
----
155

query I rowsort
SELECT - col1 + - 70 AS col1 FROM tab1
----
-117
-75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4564
SELECT DISTINCT * FROM tab1 WHERE NOT - 61 - + + CAST( NULL AS SIGNED ) BETWEEN col1 * + - 98 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4564
SELECT DISTINCT * FROM tab1 WHERE NOT - 61 - + + CAST ( NULL AS INTEGER ) BETWEEN col1 * + - 98 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4565
SELECT 94 + - - MIN( col0 ) + COUNT( * ) * CAST( NULL AS DECIMAL ) * - 58 * - 98 + - + 92 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT 94 + - - MIN ( col0 ) + COUNT ( * ) * CAST ( NULL AS REAL ) * - 58 * - 98 + - + 92 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT - 37, 42 AS col1 FROM tab1
----
-37
42
-37
42
-37
42

query I rowsort
SELECT DISTINCT 19 + + - col1 FROM tab2
----
-32
-48
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT - CAST( NULL AS SIGNED ) / 98 * - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - CAST ( NULL AS INTEGER ) / 98 * - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 86 AS col1, + 56 FROM tab2 AS cor0
----
86
56
86
56
86
56

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT + + ( + 74 ) FROM tab2 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4572
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL COUNT( * ) + + ( 39 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
48

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL COUNT ( * ) + + ( 39 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
48

query I rowsort
SELECT ALL - 81 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL 21 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + 88 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > col1
----
88
88
88

query I rowsort
SELECT - - col1 * + 56 AS col0 FROM tab1 AS cor0
----
2632
280
784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - 38 * - MIN( - - 37 ) * - 89 FROM tab2
----
-125134

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 38 * - MIN ( - - 37 ) * - 89 FROM tab2
----
-125134

query I rowsort
SELECT DISTINCT - col2 * - col2 * - ( col1 ) + - 75 AS col2 FROM tab0
----
-179004
-2175
-9876

query I rowsort
SELECT ALL 26 + + ( 71 ) AS col1 FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - MAX( - + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4582
SELECT - MAX ( - + col0 ) AS col0 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 77 col2 FROM tab1
----
-14
77
-47
77
-5
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 NOT BETWEEN col1 AND + col2
----

query I rowsort
SELECT DISTINCT col0 + - ( col1 ) * col2 * - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
25160
290927
68595

query II rowsort
SELECT ALL + col0, col0 FROM tab2 cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4589
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 42 * col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + + col2 + + + 41 * + + 95 AS col1 FROM tab0
----
3818
3897
3927

query I rowsort
SELECT ALL - col1 + - - 98 FROM tab1 cor0
----
51
84
93

query II rowsort
SELECT ALL - col2 * - col2 AS col1, - 72 FROM tab2 cor0
----
1600
-72
3364
-72
529
-72

query I rowsort
SELECT - - ( - + 83 ) * + 40 AS col0 FROM tab0 AS cor0
----
-3320
-3320
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( - 24 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( - 24 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT + - CAST( - 20 AS SIGNED ) col0 FROM tab2 cor0
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT + - CAST ( - 20 AS INTEGER ) col0 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT ALL - + 90 AS col0 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT 56 - ( - COUNT( * ) ) + 78 * + 84 * + - COUNT( * ) AS col0 FROM tab0
----
-19597

skipif mysql # not compatible
query I rowsort label-4599
SELECT 56 - ( - COUNT ( * ) ) + 78 * + 84 * + - COUNT ( * ) AS col0 FROM tab0
----
-19597

query III rowsort
SELECT * FROM tab1 WHERE + 50 + col0 - - ( + 26 ) / + - 37 IS NULL
----

query I rowsort
SELECT ALL + col0 + col0 * + col1 + + + col2 AS col0 FROM tab1
----
4436
569
861

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN - 59 AND NULL
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT col1 DIV + 13 AS col0 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4603
SELECT col1 / + 13 AS col0 FROM tab1
----
0
1
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col2 NOT BETWEEN ( NULL ) AND 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - - 11 FROM tab0 AS cor0
----
1089
110
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE col1 - 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL ( - SUM( DISTINCT - col2 ) ) * + 99 FROM tab2 AS cor0
----
11979

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL ( - SUM ( DISTINCT - col2 ) ) * + 99 FROM tab2 AS cor0
----
11979

query I rowsort
SELECT DISTINCT - 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 5 / - 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2
----

query I rowsort
SELECT ALL col2 * + - 68 AS col0 FROM tab0 AS cor0
----
-3196
-6732
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL MAX( + 46 ) AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL MAX ( + 46 ) AS col2 FROM tab1 AS cor0
----
46

query II rowsort
SELECT col2 AS col2, ( + 1 ) AS col2 FROM tab1 AS cor0
----
59
1
68
1
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT - CAST( - - AVG ( DISTINCT ( 31 ) ) AS SIGNED ) FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4615
SELECT - CAST ( - - AVG ( DISTINCT ( 31 ) ) AS INTEGER ) FROM tab2 cor0
----
-31

query II rowsort
SELECT - 49, - col1 AS col2 FROM tab2 AS cor0
----
-49
-51
-49
-67
-49
-77

query II rowsort
SELECT DISTINCT - col2 + 41 AS col0, col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-17
67
1
77
18
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + col1 * 13 col1 FROM tab1
----
113
230
659

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4619
SELECT CAST( NULL AS DECIMAL ) + + col2, 82 AS col0 FROM tab1
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-4619
SELECT CAST ( NULL AS REAL ) + + col2, 82 AS col0 FROM tab1
----
NULL
82
NULL
82
NULL
82

query II rowsort
SELECT ALL col0 + - - 17 AS col1, + col1 AS col2 FROM tab0
----
104
21
114
1
32
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT SUM( ALL col1 ) + - + SUM( col0 ) + + MAX( + + 34 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4621
SELECT SUM ( ALL col1 ) + - + SUM ( col0 ) + + MAX ( + + 34 ) FROM tab0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT DISTINCT - CAST( + AVG ( ALL CAST( - + CAST( - 76 AS SIGNED ) AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT - CAST ( + AVG ( ALL CAST ( - + CAST ( - 76 AS INTEGER ) AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
-76

query I rowsort
SELECT - 37 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-133
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) * + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) * + - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - 86 + col0 + - 64 FROM tab0 AS cor0
----
1241
7505
8375

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 38 * + col1 * + col1 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col2, + 92 AS col2 FROM tab1 AS cor0
----
-227
92

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col2, + 92 AS col2 FROM tab1 AS cor0
----
-227
92

query II rowsort
SELECT DISTINCT - 3 + - col0 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-100
97
-18
15
-90
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= 53 + - - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT col1 * + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-4633
SELECT col1 * + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT - ( + + 12 ) DIV 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4634
SELECT - ( + + 12 ) / 59 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col2 col0 FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * col1 col0 FROM tab1
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL CAST( NULL AS SIGNED ) * + + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT ALL CAST ( NULL AS INTEGER ) * + + col0 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + 20 * - COUNT( * ) AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 20 * - COUNT ( * ) AS col2 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT MIN( - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4640
SELECT MIN ( - - col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT + 73 * col1 FROM tab1
----
1022
3431
365

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL col2 * - col1 * - ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE - col0 <> col1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL CAST( + - 65 AS SIGNED ) FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL CAST ( + - 65 AS INTEGER ) FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL 4 * - - col0 FROM tab2 AS cor0
----
184
256
300

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4649
SELECT DISTINCT * FROM tab2 WHERE - 24 * col2 + + - col0 > + + CAST( NULL AS DECIMAL ) + - 53
----

skipif mysql # not compatible
query III rowsort label-4649
SELECT DISTINCT * FROM tab2 WHERE - 24 * col2 + + - col0 > + + CAST ( NULL AS REAL ) + - 53
----

query I rowsort
SELECT 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ( + COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4651
SELECT ( + COUNT ( * ) ) col1 FROM tab1
----
3

query I rowsort
SELECT - col0 * col1 + + + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT 45 * + 11 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL NOT IN ( - col2 ) )
----

query I rowsort
SELECT ALL - + col2 * + col0 + - 98 FROM tab1 AS cor0
----
-4994
-5113
-6286

query I rowsort
SELECT ALL + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - SUM( DISTINCT col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4656
SELECT - SUM ( DISTINCT col0 ) col0 FROM tab2
----
-185

query II rowsort
SELECT col0 AS col2, + col2 * - + 64 AS col0 FROM tab1
----
51
-6144
85
-3776
91
-4352

query I rowsort
SELECT DISTINCT + 67 + - ( + 21 ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4660
SELECT ALL + CAST( NULL AS DECIMAL ) + - CAST( col0 AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + CAST ( NULL AS REAL ) + - CAST ( col0 AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0, + col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + 29 * + 92 + + - col1 - - col0 * 2 AS col0 FROM tab0
----
2617
2821
2861

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL 12 + - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL 12 + - COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL + COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + COUNT ( - col1 ) FROM tab2
----
3

query I rowsort
SELECT 84 - ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col2 + - 62 - + 48 col0, - 18 AS col2 FROM tab1 AS cor0
----
4786
-18
4905
-18
6078
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - - MIN( DISTINCT - + col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - - MIN ( DISTINCT - + col0 ) AS col2 FROM tab2 cor0
----
-75

query I rowsort
SELECT + - 12 * + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
-1105
-1183
-663

query I rowsort
SELECT ALL - ( 74 ) AS col0 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT 61 + - - 35 * + - col0 FROM tab2 AS cor0
----
-1549
-2179
-2564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT - COUNT( * ) + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( * ) + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 25 NOT BETWEEN NULL AND - 94
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4674
SELECT ALL + ( - col0 ) * + + 11 - + + col0 DIV + - 65 AS col1, + 58 * + col2 * 4 FROM tab2 AS cor0
----
-506
5336
-704
9280
-824
13456

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL + ( - col0 ) * + + 11 - + + col0 / + - 65 AS col1, + 58 * + col2 * 4 FROM tab2 AS cor0
----
-506
5336
-704
9280
-824
13456

query I rowsort
SELECT DISTINCT + - 71 + + col2 FROM tab0 AS cor0
----
-24
-61
28

query I rowsort
SELECT DISTINCT + col1 - - 37 * + col1 AS col0 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT + + ( + MIN( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + + ( + MIN ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - 96 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 * + 19 AS col0 FROM tab2
----
23
969
40
1463
58
1273

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - - col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT CAST( + col1 AS SIGNED ) col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - 12 * + MIN( ALL - - 34 ) FROM tab0
----
-408

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - 12 * + MIN ( ALL - - 34 ) FROM tab0
----
-408

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT - col1 DIV + + 7 AS col2 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT - col1 / + + 7 AS col2 FROM tab1
----
-2
-6
0

query II rowsort
SELECT + col2 * + 7 * + col2 AS col2, + col2 AS col2 FROM tab2
----
11200
40
23548
58
3703
23

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - + COUNT( - 46 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4690
SELECT - + COUNT ( - 46 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - col2 * + col0 * - + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col1 FROM tab2 cor0
----
18

query I rowsort
SELECT ALL - 90 AS col0 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + 21 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + 21 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4696
SELECT - CAST( MAX( + col0 ) AS SIGNED ) DIV + 26 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4696
SELECT - CAST ( MAX ( + col0 ) AS INTEGER ) / + 26 AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT col2 + + col1 col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4697
SELECT col2 + + col1 col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 84 FROM tab1 AS cor0 WHERE + col2 * + 54 + col1 = NULL
----

query I rowsort
SELECT + col1 + + 77 FROM tab2
----
128
144
154

query I rowsort
SELECT + 75 + + col1 FROM tab1
----
122
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT + COUNT( * ) + - MIN( - col2 ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + COUNT ( * ) + - MIN ( - col2 ) AS col2 FROM tab0
----
102

query III rowsort
SELECT ALL * FROM tab2 WHERE 17 / + col2 IN ( + col0 - - 45 * + col1, + col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT COUNT( * ) + + SUM( + - col2 ) + MAX( + - col0 ) AS col0 FROM tab2
----
-164

skipif mysql # not compatible
query I rowsort label-4703
SELECT COUNT ( * ) + + SUM ( + - col2 ) + MAX ( + - col0 ) AS col0 FROM tab2
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT CAST( NULL AS SIGNED ) + 23 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT CAST ( NULL AS INTEGER ) + 23 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + MAX( ALL - + col1 ) + 18 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4705
SELECT + MAX ( ALL - + col1 ) + 18 FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 90 col1 FROM tab2
----
136
154
165

query I rowsort
SELECT ALL col0 - + 58 FROM tab1
----
-7
27
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT + ( CAST( NULL AS SIGNED ) ) + - - 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT + ( CAST ( NULL AS INTEGER ) ) + - - 61 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + - + 77 + + col0 + + - col0 * + + col0 - + 70 FROM tab0 AS cor0
----
-404
-7639
-9558

query I rowsort
SELECT ALL - + col2 - + 93 FROM tab2 AS cor0
----
-116
-133
-151

query I rowsort
SELECT DISTINCT - col0 * + + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT ALL + - COUNT( * ), MAX( + 3 ) - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL + - COUNT ( * ), MAX ( + 3 ) - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
6

query I rowsort
SELECT DISTINCT - col1 - - ( + + 23 ) FROM tab1 AS cor0
----
-24
18
9

query I rowsort
SELECT DISTINCT + col0 + 74 + - col2 FROM tab1
----
100
29
97

query II rowsort
SELECT ALL + col2, + col0 * + - 47 AS col1 FROM tab1 AS cor0
----
59
-3995
68
-4277
96
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + ( + + MAX( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + ( + + MAX ( col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT - MIN( DISTINCT + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4717
SELECT - MIN ( DISTINCT + - col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL 45 * + + col0 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - + 60 AS col0 FROM tab0 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 <= - 51
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 <= - 51
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT - CAST( - - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4722
SELECT - CAST ( - - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - 4 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL - 45 * CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL - 45 * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT MIN( ALL - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4725
SELECT MIN ( ALL - col0 ) FROM tab0
----
-97

query II rowsort
SELECT + col1 AS col0, + col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT - 70 AS col2, 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ac42fa295c388673df4f8d64c4928dbd

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( * ) + + 21 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( * ) + + 21 FROM tab1
----
18

query I rowsort
SELECT ALL + - ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT col0 DIV col0 + + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4730
SELECT col0 / col0 + + col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL - 45 AS col0 FROM tab2 cor0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( + - col1 ) * + 86 * col0 * - 17 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4733
SELECT + 18, CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4733
SELECT + 18, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
18
NULL
18
NULL
18
NULL

query I rowsort
SELECT + col2 * - + col1 + + col0 + - + 74 AS col2 FROM tab1 AS cor0
----
-1367
-284
-3179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT - 91 DIV COUNT( * ) * - 91 FROM tab0 AS cor0
----
2730

skipif mysql # not compatible
query I rowsort label-4735
SELECT - 91 / COUNT ( * ) * - 91 FROM tab0 AS cor0
----
2730

query II rowsort
SELECT ALL - 71 + col1 AS col1, - 19 FROM tab1
----
-24
-19
-57
-19
-66
-19

query III rowsort
SELECT * FROM tab0 WHERE - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 65 * - + col2 + - - ( - 10 ) AS col1 FROM tab0
----
-3065
-6445
-660

onlyif mysql # DIV for integer division: 
query II rowsort label-4739
SELECT col2 - 23 AS col2, col0 * ( + 81 ) DIV + - col2 - + - col0 + - col2 - col2 + - 93 DIV - col1 AS col1 FROM tab2
----
0
-161
17
-144
35
-144

skipif mysql # not compatible
query II rowsort label-4739
SELECT col2 - 23 AS col2, col0 * ( + 81 ) / + - col2 - + - col0 + - col2 - col2 + - 93 / - col1 AS col1 FROM tab2
----
0
-161
17
-144
35
-144

query I rowsort
SELECT DISTINCT + 5 FROM tab2 WHERE NOT 41 IS NOT NULL AND NOT ( NULL ) <= - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * + 92 col2 FROM tab0 AS cor0
----
3680
3680
3680

query I rowsort
SELECT + + col0 + 59 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT - + 71 + COUNT( * ) AS col2, + COUNT( + col2 ) + - 86 col2 FROM tab0 AS cor0
----
-68
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4744
SELECT - + 71 + COUNT ( * ) AS col2, + COUNT ( + col2 ) + - 86 col2 FROM tab0 AS cor0
----
-68
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT ALL 31 - 36 DIV + 50 + - - col0 + - + col1 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
119723
336781
379551

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 31 - 36 / + 50 + - - col0 + - + col1 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
119723
336781
379551

query I rowsort
SELECT DISTINCT + 67 * - - col2 FROM tab1 AS cor0
----
3953
4556
6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT - CAST( - 81 AS SIGNED ) + - 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - CAST ( - 81 AS INTEGER ) + - 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 / - col0 < - 95
----
-3

skipif mysql # not compatible
query I rowsort label-4748
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 / - col0 < - 95
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 7 ) col1 FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - 10 * + - col1 / 58 * - + col2 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT DISTINCT + ( - 9 ) DIV col1 * + + col1 + - - col2 FROM tab0 AS cor0
----
10
47
90

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + ( - 9 ) / col1 * + + col1 + - - col2 FROM tab0 AS cor0
----
10
47
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT + CAST( + 66 AS SIGNED ) FROM tab0 cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-4752
SELECT + CAST ( + 66 AS INTEGER ) FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - 9, 11 AS col1 FROM tab0 AS cor0
----
-9
11

query I rowsort
SELECT ALL - ( + col2 ) FROM tab2 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL + 44 DIV - + ( 55 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 44 / - + ( 55 ) FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 9 + + col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <> - + 47 + col2 * + ( + col1 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE 73 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 + + - col1 FROM tab2
----
23
-74
40
-117
58
-125

query II rowsort
SELECT DISTINCT col2, - col1 + + col2 AS col2 FROM tab1
----
59
54
68
21
96
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT ( + + col1 ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - COUNT( * ) + ( + + 14 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4766
SELECT - COUNT ( * ) + ( + + 14 ) FROM tab2 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT DISTINCT col0 * CAST( - - ( - 93 ) AS SIGNED ) * + - ( 4 ) * + + 60 + col0 * + 61 * + col1, - 40 col2 FROM tab1
----
1181874
-40
1923125
-40
2292017
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4767
SELECT DISTINCT col0 * CAST ( - - ( - 93 ) AS INTEGER ) * + - ( 4 ) * + + 60 + col0 * + 61 * + col1, - 40 col2 FROM tab1
----
1181874
-40
1923125
-40
2292017
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT col1 * 99 AS col0, - col2 * 66 + col0 AS col1, - col1 * + 89 * - + col2 - + col2 AS col1 FROM tab1
----
9 values hashing to f7bf30201dcb4e3dcdce98c5a06ed0f4

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT SUM( 2 ) + - - 64 AS col0 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT SUM ( 2 ) + - - 64 AS col0 FROM tab1 cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4771
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + CAST( - + 33 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4771
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + CAST ( - + 33 AS REAL )
----

query I rowsort
SELECT DISTINCT + col0 - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT + col1 * + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + col1 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - + col0 * - + col1 * + - col0 > + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 WHERE + - 30 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 WHERE + - 30 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 83 NOT IN ( + col1 + - 12, + 15 - ( + + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - - 87 ) FROM tab0
----
87

query II rowsort
SELECT - - col1 AS col1, col0 FROM tab2 WHERE NULL IS NULL
----
51
46
67
75
77
64

query I rowsort
SELECT - 30 * - ( + col2 ) + - 46 + 95 * - - 62 FROM tab0
----
6144
7254
8814

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT MAX( ALL col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4780
SELECT MAX ( ALL col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + 59 IS NOT NULL
----

query I rowsort
SELECT + col0 * 14 FROM tab0
----
1218
1358
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT - ( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT - ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ( 7 ) FROM tab1 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4787
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT + col2 * + - 37 AS col1 FROM tab1
----
-2183
-2516
-3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, 30 col1 FROM tab2
----
-23
30
-40
30
-58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT - CAST( + + col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4791
SELECT - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + col2 * + 1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col1 + + 83 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT DISTINCT 7 DIV + - SUM( ALL col2 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4794
SELECT DISTINCT 7 / + - SUM ( ALL col2 ) col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - ( + 68 ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 40 + - col1 FROM tab2
----
-11
-27
-37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + 24 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 / + + 42 NOT BETWEEN + col0 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT + COUNT( * ), MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 2 IS NULL
----
3
-99

skipif mysql # not compatible
query II rowsort label-4801
SELECT + COUNT ( * ), MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 2 IS NULL
----
3
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4802
SELECT * FROM tab0 AS cor0 WHERE ( NOT 95 + - + ( - + CAST( NULL AS SIGNED ) ) + + 84 * + col0 * - 83 + col2 <= NULL )
----

skipif mysql # not compatible
query III rowsort label-4802
SELECT * FROM tab0 AS cor0 WHERE ( NOT 95 + - + ( - + CAST ( NULL AS INTEGER ) ) + + 84 * + col0 * - 83 + col2 <= NULL )
----

query I rowsort
SELECT DISTINCT col1 + - 83 FROM tab0
----
-2
-62
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 - col1 + - + 7 < NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT 8 DIV - + 20 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT 8 / - + 20 AS col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT + - col1, - 40 AS col2 FROM tab2 AS cor0
----
-51
-40
-67
-40
-77
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 / + 72 * 5 + + 73 + + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 90 * 69 AS col0 FROM tab0
----
6210
6210
6210

query I rowsort
SELECT col1 - - col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT col2 - - 22 AS col2 FROM tab1
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL 31 + + COUNT( * ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL 31 + + COUNT ( * ) AS col0 FROM tab2
----
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 80 IS NOT NULL OR col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT MIN( + 58 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4814
SELECT MIN ( + 58 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
174

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 + - + col1 + + ( - col0 ) AND NULL
----

query I rowsort
SELECT col0 * - + 13 * ( + col0 ) * - - col0 * + 4 + + col1 FROM tab0 cor0
----
-175419
-34242135
-47458995

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 < - col1 + - col0 * + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - - SUM( - + 71 ) AS col1 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - - SUM ( - + 71 ) AS col1 FROM tab1 cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT MIN( DISTINCT 89 ) AS col2 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT MIN ( DISTINCT 89 ) AS col2 FROM tab2
----
89

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT ALL 68 AS col2, - col2 AS col0 FROM tab1
----
68
-59
68
-68
68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL COUNT( * ) * + + 1 * - SUM( DISTINCT + col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL COUNT ( * ) * + + 1 * - SUM ( DISTINCT + col2 ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT + COUNT( * ) DIV - + 10 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT + COUNT ( * ) / - + 10 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE - 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + + MAX( + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4826
SELECT + + MAX ( + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT 33 * + + col1 FROM tab2 cor0
----
1683
2211
2541

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 34 DIV + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 34 / + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col0, 89 FROM tab1 AS cor0
----
51
89
85
89
91
89

query II rowsort
SELECT ALL col0 AS col2, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - 34
----

query I rowsort
SELECT ALL ( 98 ) AS col0 FROM tab1
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT DISTINCT + col2 DIV - ( - + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + col2 / - ( - + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - COUNT( * ) + 11 AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4834
SELECT - COUNT ( * ) + 11 AS col2 FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT DISTINCT col2 * - 71 * CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) col0, - col1 * + col2 AS col1 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4835
SELECT DISTINCT col2 * - 71 * CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) col0, - col1 * + col2 AS col1 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT 86 + - COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-4836
SELECT 86 + - COUNT ( * ) FROM tab2
----
83

query I rowsort
SELECT ALL col1 * 69 AS col0 FROM tab0
----
1449
5589
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT col0 FROM tab2 WHERE - col1 NOT IN ( col0 * + ( - 49 ), - 29 * - col1 * - + 72 + + CAST( NULL AS SIGNED ), + + col1 + - col0, + 24, col1, - + 77, - 60 * + 40 )
----

skipif mysql # not compatible
query I rowsort label-4838
SELECT col0 FROM tab2 WHERE - col1 NOT IN ( col0 * + ( - 49 ), - 29 * - col1 * - + 72 + + CAST ( NULL AS INTEGER ), + + col1 + - col0, + 24, col1, - + 77, - 60 * + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT SUM( DISTINCT + + col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4839
SELECT DISTINCT SUM ( DISTINCT + + col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT - + col1 + - col1 + + 32 + col0 * + col2 FROM tab2 AS cor0
----
2438
4248
988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + - CAST( - 53 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT + - CAST ( - 53 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - MAX( DISTINCT + 8 ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4842
SELECT - MAX ( DISTINCT + 8 ) AS col0 FROM tab2 AS cor0
----
-8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 29 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 62 - col2 AS col1 FROM tab2
----
22
39
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= + 23
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + col0 - - + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT + ( 26 ) + + + col2 FROM tab1 AS cor0
----
122
85
94

query II rowsort
SELECT ALL + col0, - col1 + - col2 FROM tab2
----
46
-74
64
-117
75
-125

query I rowsort
SELECT DISTINCT ( + col0 ) + - 25 FROM tab1
----
26
60
66

query I rowsort
SELECT ( - + col1 ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 74 * + - col0 AS col1 FROM tab0
----
-1110
-6438
-7178

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + - 39
----

query II rowsort
SELECT DISTINCT - col0, 46 AS col0 FROM tab2
----
-46
46
-64
46
-75
46

query II rowsort
SELECT DISTINCT 60, 89 AS col1 FROM tab0
----
60
89

query II rowsort
SELECT - 16 AS col1, 67 FROM tab1
----
-16
67
-16
67
-16
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 94 >= - ( + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT + COUNT( * ) * + 69 AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + COUNT ( * ) * + 69 AS col2 FROM tab1 AS cor0
----
207

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4860
SELECT + MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + + 12 + - col1 * + 73 AS col2 FROM tab2 AS cor0
----
-3711
-4879
-5609

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT 90 col1, MIN( ALL - - 30 ) AS col1 FROM tab2
----
90
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4862
SELECT 90 col1, MIN ( ALL - - 30 ) AS col1 FROM tab2
----
90
30

query I rowsort
SELECT + 12 FROM tab0 WHERE NOT + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT MAX( 59 ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-4864
SELECT MAX ( 59 ) AS col2 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4865
SELECT MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE - 12 * 64 - - col0 + - 39 IS NULL
----

query II rowsort
SELECT 8, - col1 AS col2 FROM tab1
----
8
-14
8
-47
8
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT ALL COUNT( * ) AS col0, 0 AS col1 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL COUNT ( * ) AS col0, 0 AS col1 FROM tab2
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + MIN( ALL + - 57 ) AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-4869
SELECT + MIN ( ALL + - 57 ) AS col0 FROM tab1
----
-57

query II rowsort
SELECT - col2 * - + 63 * + - 28, col2 * 20 AS col0 FROM tab2 AS cor0
----
-102312
1160
-40572
460
-70560
800

query I rowsort
SELECT + col2 + - - ( 29 ) AS col1 FROM tab1 AS cor0
----
125
88
97

query I rowsort
SELECT + col2 + + + 24 AS col1 FROM tab0 AS cor0
----
123
34
71

query I rowsort
SELECT ALL - - ( - col0 ) + col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + 14 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT 38 * col0 AS col0 FROM tab2
----
1748
2432
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT COUNT( ALL col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT COUNT ( ALL col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( - 66 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( + CAST( col2 AS SIGNED ) * + col2 ) <= CAST( NULL AS SIGNED ) * 24
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( + CAST ( col2 AS INTEGER ) * + col2 ) <= CAST ( NULL AS INTEGER ) * 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4879
SELECT ALL - ( - COUNT( * ) ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - ( - COUNT ( * ) ) / - COUNT ( * ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col1 >= NULL
----

query I rowsort
SELECT ALL + 75 * ( - col2 ) FROM tab2
----
-1725
-3000
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT DISTINCT - 49 DIV 78 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT - 49 / 78 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4883
SELECT ALL ( + 56 ) * MIN( col0 DIV col1 - 10 ) FROM tab1
----
-504

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL ( + 56 ) * MIN ( col0 / col1 - 10 ) FROM tab1
----
-504

query I rowsort
SELECT + 75 + - ( 81 ) AS col1 FROM tab2 WHERE NULL NOT IN ( 8 )
----

query I rowsort
SELECT - 11 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT ALL - 90 DIV ( + col2 ) FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - 90 / ( + col2 ) FROM tab0
----
-1
-9
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 / col1 ) NOT IN ( col0 * col2 - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4888
SELECT DISTINCT * FROM tab2 WHERE ( + 2 / - 6 ) <= - CAST( NULL AS SIGNED ) / - 41
----

skipif mysql # not compatible
query III rowsort label-4888
SELECT DISTINCT * FROM tab2 WHERE ( + 2 / - 6 ) <= - CAST ( NULL AS INTEGER ) / - 41
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT COUNT( * ) DIV 79 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4889
SELECT COUNT ( * ) / 79 col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 36 * - col0 ) IS NULL
----

query I rowsort
SELECT col1 - col1 * col0 FROM tab0
----
-1134
-1806
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT ALL 46 DIV 19 + col2 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL 46 / 19 + col2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + col1 col0 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - col0 * 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT MAX ( col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 4 * + 9 + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
36

skipif mysql # not compatible
query I rowsort label-4897
SELECT 4 * + 9 + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4898
SELECT ALL 37 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 37 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 64 + ( + col0 ) * col0 < - 42
----
-3

skipif mysql # not compatible
query I rowsort label-4899
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 64 + ( + col0 ) * col0 < - 42
----
-3

query I rowsort
SELECT - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( 55 ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT + 85 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT COUNT( * ) + - 47 AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT COUNT ( * ) + - 47 AS col0 FROM tab0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT col0 DIV - 4 AS col2 FROM tab2
----
-11
-16
-18

skipif mysql # not compatible
query I rowsort label-4904
SELECT col0 / - 4 AS col2 FROM tab2
----
-11
-16
-18

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col0 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - col2 ) * + col0 + col0 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 18 * ( - ( ( ( col0 ) ) ) ) FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT + SUM( ALL col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT + SUM ( ALL col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * ( + col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 22 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 54 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 71 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - MAX( ALL - col0 ) * + 76 AS col0 FROM tab0 AS cor0
----
1140

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - MAX ( ALL - col0 ) * + 76 AS col0 FROM tab0 AS cor0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col2 col2 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab2 WHERE 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + MAX( - col0 ) col1 FROM tab2 WHERE + col2 / + ( col1 ) IS NOT NULL
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4916
SELECT + MAX ( - col0 ) col1 FROM tab2 WHERE + col2 / + ( col1 ) IS NOT NULL
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - ( + 27 ) col0 FROM tab1
----
24
58
64

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + col1 * - 41 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 19 + - col0 AS col0 FROM tab0
----
-68
-78
4

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 22 + - col2 FROM tab2 AS cor0
----
-1
-18
-36

query I rowsort
SELECT 79 + col2 AS col0 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - COUNT( * ) * 89 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - COUNT ( * ) * 89 FROM tab1 AS cor0
----
-267

query I rowsort
SELECT col1 * - col0 * - col2 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 87 NOT BETWEEN col0 - - col0 * col0 AND + 96 + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 35 <> NULL
----

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab2 AS cor0 WHERE NOT 15 BETWEEN col1 AND NULL
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col2 AND ( 99 + + col0 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4929
SELECT + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col2 AND ( 99 + + col0 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN col1 * + col1 AND col1 / col0 + 55
----

query I rowsort
SELECT 21 - - - 70 FROM tab1
----
-49
-49
-49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 31 + + col1 AS col0 FROM tab0
----
112
32
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - col2 DIV - 79 + + col2 * col0 FROM tab0 AS cor0
----
705
870
9604

skipif mysql # not compatible
query I rowsort label-4934
SELECT - col2 / - 79 + + col2 * col0 FROM tab0 AS cor0
----
705
870
9604

query I rowsort
SELECT DISTINCT - col2 - + 89 + - + 18 * + 1 FROM tab0 AS cor0
----
-117
-154
-206

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4936
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 12 + + 20 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 12 + + 20 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT - CAST( NULL AS SIGNED ) - 29 * + CAST( 14 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 <= ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT - CAST ( NULL AS INTEGER ) - 29 * + CAST ( 14 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 <= ( col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + col0 * 65 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 89 * + - ( - 90 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + + 28 * - col1 NOT IN ( + col1 * col2 )
----

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col0 FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 * - + col0 col0, + 90 FROM tab1
----
1734
90
2890
90
3094
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + 82 * - + MAX( ALL - 3 ) AS col1 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 82 * - + MAX ( ALL - 3 ) AS col1 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL COUNT( ALL - 54 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL COUNT ( ALL - 54 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT ALL - ( + COUNT( * ) ), - 48 col1 FROM tab0
----
-3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4948
SELECT ALL - ( + COUNT ( * ) ), - 48 col1 FROM tab0
----
-3
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT ALL 48 * - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 48 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT - SUM( DISTINCT - 96 ) * - COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - SUM ( DISTINCT - 96 ) * - COUNT ( * ) FROM tab2
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT MIN( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= ( + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT MIN ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= ( + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT DISTINCT + 5 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + 5 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4956
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( - 74 AS SIGNED ) + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4956
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( - 74 AS INTEGER ) + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL COUNT( * ) * - - 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
450

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL COUNT ( * ) * - - 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4958
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + 47 BETWEEN + 53 * col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + 47 BETWEEN + 53 * col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + col2 AND NULL
----

query I rowsort
SELECT - + 56 + + col2 AS col2 FROM tab0 AS cor0
----
-46
-9
43

query I rowsort
SELECT - - col1 / 87 - col2 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 9 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 17 col0, + col1 AS col2 FROM tab0 AS cor0
----
17
1
17
21
17
81

query II rowsort
SELECT - - 50 AS col0, - col2 FROM tab0 cor0
----
50
-10
50
-47
50
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 26 col1 FROM tab1
----
122
85
94

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( NULL NOT IN ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + COUNT( DISTINCT 36 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4968
SELECT + COUNT ( DISTINCT 36 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - 30 * col0 AS col1 FROM tab2
----
-1380
-1920
-2250

query I rowsort
SELECT ALL + - 94 + - - col2 FROM tab0 cor0
----
-47
-84
5

query I rowsort
SELECT DISTINCT - 51 - - 7 FROM tab2 AS cor0
----
-44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN - 84 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - + COUNT( * ) - + MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - + COUNT ( * ) - + MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
-8

query II rowsort
SELECT DISTINCT - + 37 / + col0, col2 + + col2 * + col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + + SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + + SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT SUM( - 34 ) AS col2 FROM tab2 AS cor0 WHERE ( col0 + + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT SUM ( - 34 ) AS col2 FROM tab2 AS cor0 WHERE ( col0 + + col1 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + col0 col2 FROM tab0 cor0
----
118
128
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 73 + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4978
SELECT 73 + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col2 * - + col1 + ( ( 35 ) ) ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 39 <= + 35 - + + col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 * + 44 * - - 81 AS col0 FROM tab1 cor0
----
181764
302940
324324

query I rowsort
SELECT DISTINCT + col0 * - 14 FROM tab0 AS cor0
----
-1218
-1358
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT CAST( + col0 AS SIGNED ) col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT CAST ( + col0 AS INTEGER ) col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4985
SELECT ALL - - 13 DIV - COUNT( * ) + + - 93 * ( 45 ) DIV COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4189

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - - 13 / - COUNT ( * ) + + - 93 * ( 45 ) / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col2 / 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL CAST( - - 20 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL CAST ( - - 20 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT col0 DIV - - col2 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT col0 / - - col2 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
0
1

query I rowsort
SELECT + 46 AS col1 FROM tab1 WHERE NOT NULL <> + - col0
----

query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ( - + ( - COUNT( * ) ) ) * + - 37 AS col2 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-4992
SELECT ( - + ( - COUNT ( * ) ) ) * + - 37 AS col2 FROM tab0
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT DISTINCT 97 DIV - + col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT 97 / - + col2 FROM tab0
----
-2
-9
0

query I rowsort
SELECT ALL - 36 * - - col2 * - + 78 FROM tab0
----
131976
277992
28080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 83 col0 FROM tab2
----
51
83
67
83
77
83

query I rowsort
SELECT - 18 + - col0 AS col1 FROM tab0 AS cor0
----
-105
-115
-33

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL AND NOT NULL NOT IN ( 2 + - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) = + + ( col2 ) - + col2 * - CAST( + col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + + ( col2 ) - + col2 * - CAST ( + col2 AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 90 / - col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 + - + 43 <= ( 13 )
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 79 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + + col2
----

query I rowsort
SELECT + col1 * - - 48 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT DISTINCT + col2 / + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - - COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT - - COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - - 73 * + COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5006
SELECT - - 73 * + COUNT ( * ) FROM tab0 AS cor0
----
219

query II rowsort
SELECT col1 - 65 AS col2, col0 AS col0 FROM tab2 cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + 50 col0 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL COUNT( * ) + + + 38 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL COUNT ( * ) + + + 38 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - COUNT( 38 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - COUNT ( 38 ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + - 15 - + col2 col0 FROM tab0
----
-109
-213
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 19 + - 63 AS col0 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT COUNT( * ) + - 8 col1 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5014
SELECT COUNT ( * ) + - 8 col1 FROM tab0
----
-5

query I rowsort
SELECT ALL - 62 - + - 19 AS col2 FROM tab1
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + - MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5016
SELECT + - MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL - + col0 - CAST( ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - + col0 - CAST ( ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT - 23 * + col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5018
SELECT - 23 * + col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5022
SELECT * FROM tab2 WHERE NOT ( 56 ) BETWEEN - CAST( NULL AS SIGNED ) AND + + ( col2 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-5022
SELECT * FROM tab2 WHERE NOT ( 56 ) BETWEEN - CAST ( NULL AS INTEGER ) AND + + ( col2 )
----
46
51
23
64
77
40

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 AS col0, 17 + - - 58 AS col2 FROM tab1 AS cor0
----
14
75
47
75
5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + ( + + 20 ) - + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 <= NULL
----
20

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + ( + + 20 ) - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 <= NULL
----
20

query I rowsort
SELECT col0 * - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT DISTINCT ( + + col2 ) * + col1 * - col2 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL - ( 49 ) * col0 AS col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
75

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT ALL - col2 DIV 35 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - col2 / 35 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col0 * + - col1 / + - col1 * - col2 FROM tab2 WHERE NOT ( 8 * - col0 * - col0 + 70 > - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5034
SELECT ALL + 65 AS col2 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + 65 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) = NULL
----

query II rowsort
SELECT ALL + col0 * - - 1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT - col0 * 56 - - 76 DIV - 87 * - col2 * + col1 FROM tab0 AS cor0
----
-4872
-5432
-840

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - col0 * 56 - - 76 / - 87 * - col2 * + col1 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT col2 + 74 FROM tab2
----
114
132
97

query II rowsort
SELECT + col2 + + 57 + + 15 AS col2, - col1 AS col2 FROM tab1
----
131
-5
140
-47
168
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + COUNT( * ) + 4 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + COUNT ( * ) + 4 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT DISTINCT - + CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT SUM( ALL - - col1 ) * - MIN( ALL + - 54 ) AS col0 FROM tab2 AS cor0
----
10530

skipif mysql # not compatible
query I rowsort label-5043
SELECT SUM ( ALL - - col1 ) * - MIN ( ALL + - 54 ) AS col0 FROM tab2 AS cor0
----
10530

query I rowsort
SELECT - col2 * - 87 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + CAST( NULL AS SIGNED ) / - + col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT + CAST ( NULL AS INTEGER ) / - + col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + 36 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + 87 FROM tab0 AS cor0
----
108
168
88

query I rowsort
SELECT 73 * col1 AS col2 FROM tab1
----
1022
3431
365

query I rowsort
SELECT ALL col1 * 30 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT DISTINCT + 35 * + 90 + + 97 * - col2 * - col2 + + + col2 * - 46 * col0 AS col0 FROM tab1
----
110117
167030
671886

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE + ( + ( - col1 ) ) * + + col1 + - 61 + - 79 * + col0 / 67 IS NULL
----

query I rowsort
SELECT - 80 FROM tab1 WHERE - col0 IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + + 39 * - col2 + col0 FROM tab0 AS cor0
----
-1818
-303
-3764

query I rowsort
SELECT - col0 + + 70 + + col1 AS col2 FROM tab1 AS cor0
----
-10
26
33

query I rowsort
SELECT ALL + 56 + + - col0 AS col2 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT + col0 + - col2 + - + col0 * + 23 FROM tab2 AS cor0
----
-1035
-1448
-1708

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT - col1 DIV CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - col1 / CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + col2 * - col0 + + col2 AS col0 FROM tab0 cor0
----
-658
-860
-9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT + 27 * col0 DIV col2 FROM tab1 AS cor0
----
14
36
38

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 27 * col0 / col2 FROM tab1 AS cor0
----
14
36
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + MAX( DISTINCT - - 31 ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5063
SELECT + MAX ( DISTINCT - - 31 ) AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT + - SUM( + 49 ) AS col1 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + - SUM ( + 49 ) AS col1 FROM tab1 AS cor0
----
-147

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 24 * - 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) * - 45 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

query III rowsort
SELECT ALL * FROM tab1 WHERE + 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( DISTINCT + + col0 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( DISTINCT + + col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col2 + 47 + col0 FROM tab1
----
191
194
206

query I rowsort
SELECT DISTINCT + 40 + - col1 + + col0 AS col2 FROM tab0
----
-26
106
136

query I rowsort
SELECT col1 + col2 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-4786
-4951
-6073

onlyif mysql # aggregate syntax: 
query II rowsort label-5074
SELECT DISTINCT + 89 col2, COUNT( * ) col2 FROM tab2 AS cor0
----
89
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5074
SELECT DISTINCT + 89 col2, COUNT ( * ) col2 FROM tab2 AS cor0
----
89
3

query I rowsort
SELECT - 27 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ALL 4 + + + col2 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT - COUNT( * ) - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT - COUNT ( * ) - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query I rowsort
SELECT - col1 - - 27 AS col0 FROM tab2 AS cor0
----
-24
-40
-50

query I rowsort
SELECT 8 - + col0 + col0 * + - 38 FROM tab1 AS cor0
----
-1981
-3307
-3541

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT + 19 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + 19 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT - col1 * + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT col2 + col2 + - col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
119
137
193

skipif mysql # not compatible
query I rowsort label-5082
SELECT col2 + col2 + - col0 / + - col0 AS col1 FROM tab1 AS cor0
----
119
137
193

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 IS NOT NULL AND NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( 96 ) + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + + 85 FROM tab2
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT col2 FROM tab1 WHERE ( + + col0 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5086
SELECT col2 FROM tab1 WHERE ( + + col0 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5087
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 5 * col0 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - SUM( ALL - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5089
SELECT - SUM ( ALL - col2 ) FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT - col0 DIV - + 60 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col0 / - + 60 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL - CAST( NULL AS SIGNED ) * + - 34 + col1 * - 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 34 + col1 * - 23 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT - COUNT( * ) DIV + - MIN( ALL 89 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5092
SELECT - COUNT ( * ) / + - MIN ( ALL 89 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5093
SELECT ALL * FROM tab1 WHERE + 21 BETWEEN ( - - col0 / + + col1 - - + col0 ) AND - ( - + col0 ) * - col1 + - 94 * + 13 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5093
SELECT ALL * FROM tab1 WHERE + 21 BETWEEN ( - - col0 / + + col1 - - + col0 ) AND - ( - + col0 ) * - col1 + - 94 * + 13 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT + 74 * + CAST( - col0 AS SIGNED ) + + col2 + + - CAST( NULL AS SIGNED ) - + - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT + 74 * + CAST ( - col0 AS INTEGER ) + + col2 + + - CAST ( NULL AS INTEGER ) - + - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT + 39 FROM tab2 WHERE NOT + CAST( + + col1 AS SIGNED ) + 38 + - 43 + 74 = NULL
----

skipif mysql # not compatible
query I rowsort label-5095
SELECT + 39 FROM tab2 WHERE NOT + CAST ( + + col1 AS INTEGER ) + 38 + - 43 + 74 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT DISTINCT COUNT( * ) AS col2, 19 FROM tab0 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-5096
SELECT DISTINCT COUNT ( * ) AS col2, 19 FROM tab0 AS cor0
----
3
19

query II rowsort
SELECT + col1, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT + - COUNT( * ) * - + MAX( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT DISTINCT + - COUNT ( * ) * - + MAX ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL COUNT( * ) * - - COUNT( DISTINCT + 76 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL COUNT ( * ) * - - COUNT ( DISTINCT + 76 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL MAX ( - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - - + ( - ( - ( + + col2 ) ) ) <= col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 78 ) col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab0 WHERE ( + ( + col0 ) ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + MAX( + 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5107
SELECT + MAX ( + 78 ) AS col0 FROM tab0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT ALL col0 + - 9 DIV + 24 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL col0 + - 9 / + 24 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + COUNT( + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5109
SELECT + COUNT ( + - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5112
SELECT ALL - CAST( CAST( - - col0 AS DECIMAL ) AS SIGNED ) + 12 FROM tab0
----
-3
-75
-85

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - CAST ( CAST ( - - col0 AS REAL ) AS INTEGER ) + 12 FROM tab0
----
-3
-75
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 17, - col0 col1 FROM tab2
----
17
-46
17
-64
17
-75

query I rowsort
SELECT col2 + 96 AS col2 FROM tab2 AS cor0
----
119
136
154

query II rowsort
SELECT - - col1 + - col0 * - col0, col1 FROM tab0 cor0
----
306
81
7590
21
9410
1

query I rowsort
SELECT ALL col2 * + col0 + - col1 AS col0 FROM tab1
----
4882
5010
6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT CAST( - 18 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif mysql # not compatible
query I rowsort label-5118
SELECT CAST ( - 18 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL 88 - - + 71 AS col2 FROM tab0 AS cor0
----
159
159
159

query I rowsort
SELECT + - col2 * + + col1 + + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # DIV for integer division: 
query III rowsort label-5121
SELECT * FROM tab2 AS cor0 WHERE col2 DIV - - col2 = - + 49 DIV col0 * 42 DIV - ( + + col2 )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-5121
SELECT * FROM tab2 AS cor0 WHERE col2 / - - col2 = - + 49 / col0 * 42 / - ( + + col2 )
----
46
51
23

query I rowsort
SELECT DISTINCT - + col2 - - 67 FROM tab2 cor0
----
27
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT 66 * + COUNT( * ) AS col1 FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-5123
SELECT 66 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - COUNT( * ) * + + 24 + - - 88 + + COUNT( * ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - COUNT ( * ) * + + 24 + - - 88 + + COUNT ( * ) AS col0 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5126
SELECT DISTINCT + COUNT( ALL + + col0 ) AS col0, - 24 + + COUNT( * ) FROM tab1
----
3
-21

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT + COUNT ( ALL + + col0 ) AS col0, - 24 + + COUNT ( * ) FROM tab1
----
3
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab0 WHERE NOT - col1 <= + col0 + 7
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - 70
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 56 NOT IN ( + col0 * - col1 )
----

query II rowsort
SELECT + col1 * - 23 AS col2, - col2 AS col1 FROM tab2 cor0
----
-1173
-23
-1541
-58
-1771
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5131
SELECT ALL - CAST( col0 AS SIGNED ) DIV + col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - CAST ( col0 AS INTEGER ) / + col1 FROM tab1 cor0
----
-1
-17
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 94 * col0 AS col1 FROM tab0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-6

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5136
SELECT + + CAST( - 93 AS SIGNED ) DIV - + ( - col2 ) FROM tab0 cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT + + CAST ( - 93 AS INTEGER ) / - + ( - col2 ) FROM tab0 cor0
----
-1
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT ALL col1 DIV - - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL col1 / - - col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) * - COUNT( * ) FROM tab1, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5138
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-81

query I rowsort
SELECT ALL - ( - - 55 ) + ( - 20 ) * - col0 FROM tab2
----
1225
1445
865

query I rowsort
SELECT col0 + - + col1 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - 34 * + col2 + - 53 FROM tab1
----
-2059
-2365
-3317

query I rowsort
SELECT DISTINCT ( - 50 ) * + col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT CAST( NULL AS SIGNED ) + - col1 + + col0 col2 FROM tab1 AS cor0 WHERE - 43 BETWEEN - col1 + col1 AND - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5145
SELECT CAST ( NULL AS INTEGER ) + - col1 + + col0 col2 FROM tab1 AS cor0 WHERE - 43 BETWEEN - col1 + col1 AND - col1
----

query II rowsort
SELECT DISTINCT - + col2 + - + col0 - col1 AS col2, - 74 AS col2 FROM tab0 AS cor0
----
-118
-74
-143
-74
-197
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL > - col0 + - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL > - col0 + - CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 63 * - 16 FROM tab0 AS cor0 WHERE ( - col1 >= - 52 )
----
-1008
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL MAX( DISTINCT - 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL MAX ( DISTINCT - 57 ) FROM tab1
----
-57

query II rowsort
SELECT - col0 * + + col0 AS col0, + col1 + + - ( - + col0 ) FROM tab1
----
-2601
65
-7225
90
-8281
138

query II rowsort
SELECT + col0 AS col2, 39 AS col2 FROM tab0
----
15
39
87
39
97
39

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - - col0 + - col0 / + + col0 * + col2 AS col1 FROM tab0 WHERE NOT + - 33 + 41 + - 12 / - col1 + + + col2 <> + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5156
SELECT * FROM tab2 WHERE NOT - + col0 + + - ( - + col0 ) + - - 61 * + - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5156
SELECT * FROM tab2 WHERE NOT - + col0 + + - ( - + col0 ) + - - 61 * + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT col2 * 69 DIV col1 FROM tab2
----
31
35
59

skipif mysql # not compatible
query I rowsort label-5157
SELECT col2 * 69 / col1 FROM tab2
----
31
35
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + col2 col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL + 98 * col1 * col2 AS col2 FROM tab1
----
131712
28910
313208

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL - MAX( DISTINCT col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab1
----
-47

query II rowsort
SELECT col2 AS col2, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col1 * + 33 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - + 1 / + + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT 82 * + COUNT( * ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT 82 * + COUNT ( * ) FROM tab2 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 96 ) col1 FROM tab2 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5167
SELECT DISTINCT 64 * + CAST( NULL AS SIGNED ) AS col2, col0 * + 26 FROM tab0
----
NULL
2262
NULL
2522
NULL
390

skipif mysql # not compatible
query II rowsort label-5167
SELECT DISTINCT 64 * + CAST ( NULL AS INTEGER ) AS col2, col0 * + 26 FROM tab0
----
NULL
2262
NULL
2522
NULL
390

query I rowsort
SELECT DISTINCT 49 * + - 41 FROM tab2
----
-2009

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT SUM( DISTINCT + 26 ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT SUM ( DISTINCT + 26 ) AS col0 FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT DISTINCT - col2 + - col0 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL >= + - 53
----

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col2 + - col0 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL >= + - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 32 ) col0, col2 col0 FROM tab0 cor0
----
-32
10
-32
47
-32
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 93 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT + col1 / - 77 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT + col1 / - 77 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT + - 8 DIV 41 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - 8 / 41 AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT col2, + col1 + + 52 FROM tab0
----
10
73
47
133
99
53

query I rowsort
SELECT DISTINCT col0 * - + col2 + + 65 FROM tab0
----
-640
-805
-9538

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + 4 / - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 89 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT - + COUNT( * ) * + ( + COUNT( 30 ) ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT - + COUNT ( * ) * + ( + COUNT ( 30 ) ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5180
SELECT ALL - 47 + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-26
NULL
-46
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-5180
SELECT ALL - 47 + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-26
NULL
-46
NULL
34
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5181
SELECT - col2 * + - col2 + col0 + + + 95 + col0 * col0 DIV + col0 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10090
99
2334
47
369
10

skipif mysql # not compatible
query II rowsort label-5181
SELECT - col2 * + - col2 + col0 + + + 95 + col0 * col0 / + col0 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10090
99
2334
47
369
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 * - col0 + + - col2 + + - 11 col1 FROM tab0 AS cor0
----
1427
8592
9493

query I rowsort
SELECT DISTINCT - + 27 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5184
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + + 38 ) FROM tab1 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT ( - 63 ) * - ( - - col2 ) FROM tab1
----
3717
4284
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 9 col1 FROM tab1
----
459
765
819

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL - MIN( + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - MIN ( + col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT DISTINCT + - col2 FROM tab1 WHERE col1 <> + + 3 * + + 61 + + col1 + + CAST( NULL AS SIGNED ) + + 29
----

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + - col2 FROM tab1 WHERE col1 <> + + 3 * + + 61 + + col1 + + CAST ( NULL AS INTEGER ) + + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT COUNT( DISTINCT + 34 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT COUNT ( DISTINCT + 34 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT col0 DIV + 21 col1 FROM tab2
----
2
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT col0 / + 21 col1 FROM tab2
----
2
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT 11 DIV - 89 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT 11 / - 89 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL < + col1 )
----

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5198
SELECT DISTINCT * FROM tab0 WHERE + col2 < ( - col0 + - 19 * + CAST( - col0 AS SIGNED ) * - + ( + col0 ) - + 27 )
----

skipif mysql # not compatible
query III rowsort label-5198
SELECT DISTINCT * FROM tab0 WHERE + col2 < ( - col0 + - 19 * + CAST ( - col0 AS INTEGER ) * - + ( + col0 ) - + 27 )
----

query II rowsort
SELECT - col1, 73 AS col1 FROM tab0 AS cor0
----
-1
73
-21
73
-81
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT - MAX( - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - MAX ( - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5201
SELECT MIN( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT MIN ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL col2, col1 * + col1 AS col2 FROM tab2
----
23
2601
40
5929
58
4489

query I rowsort
SELECT DISTINCT - - 3 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT - 20 * col1 * + col2 FROM tab0 AS cor0
----
-1980
-4200
-76140

query I rowsort
SELECT - 23 * - 37 * + col1 + + - 85 + 0 AS col1 FROM tab1 cor0
----
11829
39912
4170

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - + SUM( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - + SUM ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT + + ( - ( CAST( + - 69 AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5208
SELECT + + ( - ( CAST ( + - 69 AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - 88 AS col0 FROM tab2 cor0
----
-88
-88
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT col2 DIV - 91 + + col2 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-5211
SELECT col2 / - 91 + + col2 FROM tab0 AS cor0
----
10
47
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - ( + ( - col0 ) ) * - 60 FROM tab2 WHERE NULL IS NULL
----
-2760
-3840
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT col0 DIV col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5214
SELECT col0 / col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
1

query I rowsort
SELECT - col0 + + + col1 FROM tab0
----
-66
-96
66

query II rowsort
SELECT DISTINCT col2 + col1 AS col0, + 68 - col0 FROM tab2
----
117
4
125
-7
74
22

query I rowsort
SELECT ALL ( - + col2 ) + col1 AS col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT ALL - CAST( NULL AS SIGNED ) / col0 - + - col1 * - + ( - + col2 ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 - + - col1 * - + ( - + col2 ) * - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL 6 * - - 59 + COUNT( * ) FROM tab0
----
357

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL 6 * - - 59 + COUNT ( * ) FROM tab0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT 32 * - COUNT( * ) AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5220
SELECT 32 * - COUNT ( * ) AS col2 FROM tab2
----
-96

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 cor0 WHERE - col2 - 69 < + ( + - col1 ) + + - 21 - 41 + - - col2 * + col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + SUM( DISTINCT col2 ) - + 8 + COUNT( * ) FROM tab1
----
218

skipif mysql # not compatible
query I rowsort label-5222
SELECT + SUM ( DISTINCT col2 ) - + 8 + COUNT ( * ) FROM tab1
----
218

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5223
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5223
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT - 38 DIV + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 38 / + COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT DISTINCT - + 11 AS col1 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL - + col1 * 32 FROM tab2 cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5228
SELECT + MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT + col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-5229
SELECT + col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + 38 * + col0 + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT 31 DIV - COUNT( * ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5231
SELECT 31 / - COUNT ( * ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT - - CAST( - ( + col1 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - - CAST ( - ( + col1 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * col0 + + + col2 * + + col2 col1, 68 * - 65 AS col0 FROM tab1 cor0
----
3906
-4420
8901
-4420
9930
-4420

query I rowsort
SELECT + + col0 * - - 63 - + 56 AS col0 FROM tab2 AS cor0
----
2842
3976
4669

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT 41 * - col1 * + 57 * col2 + + col1 DIV + - col0 FROM tab1
----
-3140928
-689415
-7469052

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT 41 * - col1 * + 57 * col2 + + col1 / + - col0 FROM tab1
----
-3140928
-689415
-7469052

query I rowsort
SELECT DISTINCT 49 * + - col0 + + ( + + col1 ) FROM tab2
----
-2203
-3059
-3608

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5237
SELECT 10 + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5237
SELECT 10 + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL - 43 AS col2 FROM tab2 cor0
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 43 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT ( + CAST( NULL AS SIGNED ) ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT ( + CAST ( NULL AS INTEGER ) ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 38 * + col0 + col0 + + 98 AS col1 FROM tab2 AS cor0
----
1892
2594
3023

query I rowsort
SELECT ALL - + 94 * col2 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT col2 * - + 34 AS col2 FROM tab2 cor0
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT COUNT( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT COUNT ( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 * + - col2 + - - col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT col1 * 10 FROM tab0
----
10
210
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * - - 54 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * - - 54 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 + col2 + + ( - col2 ) FROM tab1
----
-14
-47
-5

query II rowsort
SELECT ALL + col0 + - col1 AS col1, col0 AS col1 FROM tab2
----
-13
64
-5
46
8
75

query I rowsort
SELECT + 28 + - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1243
125
1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 66 / - col0 NOT BETWEEN NULL AND 0 * col2 * + + 64 * - - 75
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 7 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - COUNT( * ) * - - 57 col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT - COUNT ( * ) * - - 57 col1 FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT ALL + col1 DIV - 8 AS col2 FROM tab1 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + col1 / - 8 AS col2 FROM tab1 cor0
----
-1
-5
0

query II rowsort
SELECT DISTINCT - col0, col2 - - col1 AS col1 FROM tab0
----
-15
128
-87
31
-97
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5262
SELECT DISTINCT - col2 col0, 62 DIV 90 + + col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5262
SELECT DISTINCT - col2 col0, 62 / 90 + + col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

query II rowsort
SELECT ALL 52 AS col1, - col2 AS col1 FROM tab0
----
52
-10
52
-47
52
-99

query II rowsort
SELECT 0 + 75 * col2 AS col1, - 30 FROM tab1
----
4425
-30
5100
-30
7200
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT COUNT( * ) * - 12 AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT COUNT ( * ) * - 12 AS col0 FROM tab2 AS cor0
----
-36

query II rowsort
SELECT 5 + + + col0 * - + col1, ( + col2 ) FROM tab1 AS cor0
----
-420
59
-4272
68
-709
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5268
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 99 ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5268
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 99 ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL COUNT( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5269
SELECT ALL COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT DISTINCT + 96 + + 9 AS col2, + COUNT( * ) FROM tab0
----
105
3

skipif mysql # not compatible
query II rowsort label-5271
SELECT DISTINCT + 96 + + 9 AS col2, + COUNT ( * ) FROM tab0
----
105
3

query I rowsort
SELECT DISTINCT - 69 + - 32 - col2 AS col0 FROM tab2
----
-124
-141
-159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL 88 * col1 + + - col2 AS col2 FROM tab0 AS cor0
----
-11
1838
7081

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5275
SELECT ALL + CAST( + ( col2 ) AS SIGNED ) * + col2 + + col1 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
3487
4672
9231

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) * + col2 + + col1 + col0 / col0 AS col2 FROM tab1 AS cor0
----
3487
4672
9231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT + + CAST( + 63 AS SIGNED ) + - + col0 * - 89 FROM tab1 AS cor0
----
4602
7628
8162

skipif mysql # not compatible
query I rowsort label-5276
SELECT + + CAST ( + 63 AS INTEGER ) + - + col0 * - 89 FROM tab1 AS cor0
----
4602
7628
8162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5277
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col1 - + col0 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5277
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col1 - + col0 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT CAST( NULL AS SIGNED ) * - col1 + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT CAST ( NULL AS INTEGER ) * - col1 + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 98 / - col1 + - - col1 AS col1 FROM tab0 WHERE NOT + col0 IN ( - - col0, col2, + col1, + + 97 * - col2 - + col1 )
----

query I rowsort
SELECT DISTINCT - 92 * - 75 AS col1 FROM tab0
----
6900

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT DISTINCT + 36 DIV - col1 + - 23 col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5281
SELECT DISTINCT + 36 / - col1 + - 23 col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT col2 * - 85 + 23 AS col0 FROM tab0
----
-3972
-827
-8392

query I rowsort
SELECT - 2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 2 * col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - - col2 - + + col1 * - 41 + - 58 AS col0 FROM tab1 AS cor0
----
1937
206
612

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL + + 67 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + + 67 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
201

query I rowsort
SELECT ALL + - 73 AS col2 FROM tab1 AS cor0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT - 81, + col0 FROM tab0
----
-81
15
-81
87
-81
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < - col1
----
15
81
47

query I rowsort
SELECT 53 * + col1 AS col1 FROM tab0 AS cor0
----
1113
4293
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 col2, col0 FROM tab1 AS cor0
----
87
51
87
85
87
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - ( + col2 ) AND - + col1
----
3

skipif mysql # not compatible
query I rowsort label-5293
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - ( + col2 ) AND - + col1
----
3

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NOT + col0 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT + SUM( ALL col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT + SUM ( ALL col1 ) AS col1 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * + + col2 col0 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT - 92 AS col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN + + col2 * ( - + col1 ) AND - 66 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5297
SELECT - 92 AS col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN + + col2 * ( - + col1 ) AND - 66 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + MAX( - col2 ) * + 48 * 60 FROM tab2
----
-66240

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + MAX ( - col2 ) * + 48 * 60 FROM tab2
----
-66240

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NOT - - 64 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + - 76 AS col2 FROM tab1
----
-17
-8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - SUM( - + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
549

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - SUM ( - + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
549

query I rowsort
SELECT DISTINCT 29 + col1 AS col0 FROM tab1
----
34
43
76

query II rowsort
SELECT DISTINCT col1, col1 + - 52 FROM tab1 cor0
----
14
-38
47
-5
5
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL AVG ( - - col1 ) FROM tab1 AS cor0 WHERE NOT + col0 + - col2 + ( - col0 ) + + ( - CAST( NULL AS SIGNED ) ) / + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL AVG ( - - col1 ) FROM tab1 AS cor0 WHERE NOT + col0 + - col2 + ( - col0 ) + + ( - CAST ( NULL AS INTEGER ) ) / + - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL COUNT( DISTINCT + col1 ) - SUM( col0 ) AS col1 FROM tab1 cor0
----
-224

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL COUNT ( DISTINCT + col1 ) - SUM ( col0 ) AS col1 FROM tab1 cor0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + - COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5306
SELECT ALL + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - 11 + + 71 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5309
SELECT - - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT + + CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT + + CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5311
SELECT + COUNT( * ) AS col2, + CAST( - MAX( ALL - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-5311
SELECT + COUNT ( * ) AS col2, + CAST ( - MAX ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT DISTINCT + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL col0 + - 34 AS col0, 32 AS col0 FROM tab2
----
12
32
30
32
41
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL - CAST( NULL AS SIGNED ) - 38 * + ( - col2 ) + 54 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - CAST ( NULL AS INTEGER ) - 38 * + ( - col2 ) + 54 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + col1 AND 92
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5317
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + col2 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 85 col1 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5319
SELECT MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - ( - col0 ) * - + col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + 93 * 78 FROM tab1 AS cor0
----
7254

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5322
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( + + 27 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= + col1 * + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT DISTINCT + col1 DIV - 37 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + col1 / - 37 FROM tab2
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + - COUNT( + + col0 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5327
SELECT + - COUNT ( + + col0 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + - COUNT( + col2 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5328
SELECT + - COUNT ( + col2 ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - + COUNT( - + 18 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5329
SELECT - + COUNT ( - + 18 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col2 / + - col2 / + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 7 + + col0 + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 + 28 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT DISTINCT COUNT( * ) DIV + SUM( DISTINCT + 51 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT COUNT ( * ) / + SUM ( DISTINCT + 51 ) FROM tab2
----
0

query I rowsort
SELECT ALL 27 * + col1 * - + col1 FROM tab1
----
-5292
-59643
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - COUNT( * ) + - + SUM( - col0 ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - COUNT ( * ) + - + SUM ( - col0 ) FROM tab1
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + 60 + - col0 NOT IN ( + ( col1 ) + + - col1, col0, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + 60 + - col0 NOT IN ( + ( col1 ) + + - col1, col0, + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT MAX( col1 ) + - + COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5338
SELECT MAX ( col1 ) + - + COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT ALL + col2 + - + col0 * - ( + 18 ) FROM tab0
----
1576
1845
317

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT ALL + 49 DIV 29 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + 49 / 29 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT ALL - 0 AS col1, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT + SUM( 57 ) + + 17 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-5344
SELECT + SUM ( 57 ) + + 17 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5345
SELECT ALL + + COUNT( * ) + - CAST( NULL AS DECIMAL ) * - 33 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + + COUNT ( * ) + - CAST ( NULL AS REAL ) * - 33 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 96 FROM tab1 AS cor0 WHERE - col1 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT - 16 + + 36 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT 20 - col1 - + 89 FROM tab1 AS cor0
----
-116
-74
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT + - MIN( - 60 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + - MIN ( - 60 ) FROM tab2 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND - col0 + - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT + col2 * - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 WHERE ( NOT col0 * col1 + + col0 > NULL )
----

skipif mysql # not compatible
query I rowsort label-5352
SELECT + col2 * - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 WHERE ( NOT col0 * col1 + + col0 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col2 FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5354
SELECT DISTINCT + 58 col0, CAST( NULL AS SIGNED ) * col0 / + - 16 FROM tab0
----
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5354
SELECT DISTINCT + 58 col0, CAST ( NULL AS INTEGER ) * col0 / + - 16 FROM tab0
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - ( + COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT ALL - ( + COUNT ( * ) ) col1 FROM tab1
----
-3

query II rowsort
SELECT col2, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5357
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 1 AS col1 FROM tab0 WHERE + col2 * - col2 - - 17 BETWEEN - 39 * col2 AND ( - col2 - 59 )
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 79 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT MAX( - 84 ) + + COUNT( * ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5362
SELECT MAX ( - 84 ) + + COUNT ( * ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * col2 col2 FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT + 11 * - col0 FROM tab1
----
-1001
-561
-935

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IN ( + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5367
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT + col2 * - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) <= ( CAST( NULL AS SIGNED ) + - 80 )
----

skipif mysql # not compatible
query I rowsort label-5368
SELECT + col2 * - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) <= ( CAST ( NULL AS INTEGER ) + - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - 33 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - 33 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT COUNT( * ) - + ( - 82 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5371
SELECT COUNT ( * ) - + ( - 82 ) FROM tab0
----
85

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
2116
4096
5625

query I rowsort
SELECT - col0 + ( - col0 ) FROM tab1 WHERE + col1 > ( 25 * - col0 )
----
-102
-170
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * + col0 col1 FROM tab1
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL 77 * - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL 77 * - COUNT ( * ) FROM tab2
----
-231

query III rowsort
SELECT * FROM tab2 WHERE + 97 IN ( + col1 * col0 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col2 * + 20 FROM tab1
----
1180
1360
1920

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT - MIN( - 19 ) + 33 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - MIN ( - 19 ) + 33 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT 37 * col0 FROM tab1 AS cor0
----
1887
3145
3367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 - col0 * col2 ) <= + col0 * ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 + 60 * + col1 ) IN ( + 17 * - col1 )
----

query I rowsort
SELECT col2 + 43 AS col2 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT ALL 3 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - col1 * 18 AS col0 FROM tab2
----
-1206
-1386
-918

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1 WHERE ( 91 * + ( - 42 / col0 ) ) IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL COUNT( * ) * - SUM( col1 * - col1 ) - 98 FROM tab0 AS cor0
----
20911

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL COUNT ( * ) * - SUM ( col1 * - col1 ) - 98 FROM tab0 AS cor0
----
20911

query I rowsort
SELECT + col2 - + 38 FROM tab1 AS cor0
----
21
30
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT - col0 FROM tab2 AS cor0 WHERE + col2 < ( ( CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-5395
SELECT - col0 FROM tab2 AS cor0 WHERE + col2 < ( ( CAST ( NULL AS INTEGER ) ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT - 59 - COUNT( * ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - 59 - COUNT ( * ) FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 88 * + COUNT( * ) AS col0 FROM tab1 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 88 * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 * + ( col1 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 * + ( col1 * col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5400
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( + 54 AS SIGNED ) * col2 + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-5400
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( + 54 AS INTEGER ) * col2 + col0 >= NULL
----

query I rowsort
SELECT + 38 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 38 * 17 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col0 - + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 + col1 * + col0 FROM tab0 WHERE NOT - 64 + - 43 IS NULL
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT MAX ( - - col1 ) FROM tab2
----
77

query I rowsort
SELECT ALL 24 FROM tab1 WHERE NOT col2 IS NULL
----
24
24
24

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 / 51 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5409
SELECT ALL 21 col1 FROM tab0 WHERE + ( col0 ) - CAST( - 72 + ( + col0 ) AS DECIMAL ) < 91 / + 67
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5409
SELECT ALL 21 col1 FROM tab0 WHERE + ( col0 ) - CAST ( - 72 + ( + col0 ) AS REAL ) < 91 / + 67
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT AVG ( + 50 ) FROM tab0 WHERE NOT + 4 / - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 35 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( 57 )
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL + + MIN( DISTINCT + 95 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + + MIN ( DISTINCT + 95 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5417
SELECT + ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-5417
SELECT + ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col2 * - 16 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL COUNT( * ) + - - 47 AS col0 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL COUNT ( * ) + - - 47 AS col0 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5420
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5422
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5422
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 * + + 52 FROM tab0 AS cor0
----
-4524
-5044
-780

query I rowsort
SELECT - + col1 * - 70 AS col2 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT COUNT( * ), + ( + COUNT( ALL 72 ) ) AS col0 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5425
SELECT COUNT ( * ), + ( + COUNT ( ALL 72 ) ) AS col0 FROM tab1 cor0
----
3
3

query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 + 37 FROM tab0 AS cor0
----
-3755
-86
35

query II rowsort
SELECT ALL - 75 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-75
10
-75
47
-75
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT DISTINCT * FROM tab2 WHERE NULL <= NULL AND NOT ( + 11 NOT BETWEEN col1 * 55 + CAST( - col2 + col0 AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT DISTINCT * FROM tab2 WHERE NULL <= NULL AND NOT ( + 11 NOT BETWEEN col1 * 55 + CAST ( - col2 + col0 AS INTEGER ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT MIN( - ( - col0 ) ) + COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5429
SELECT MIN ( - ( - col0 ) ) + COUNT ( * ) AS col1 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - COUNT( * ) * - 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - COUNT ( * ) * - 64 FROM tab2
----
192

query I rowsort
SELECT DISTINCT + 71 + - 32 FROM tab0 WHERE ( + col2 - + col2 ) IS NULL
----

query I rowsort
SELECT + 67 FROM tab1 WHERE - 82 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) + ( + col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT 36 + + - ( + col0 ) FROM tab2
----
-10
-28
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT - col0 + col1 FROM tab2 WHERE + col0 * + col0 / CAST( NULL AS SIGNED ) IN ( + ( - 72 ) + col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-5435
SELECT - col0 + col1 FROM tab2 WHERE + col0 * + col0 / CAST ( NULL AS INTEGER ) IN ( + ( - 72 ) + col2 * col1 )
----

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT col2 * + col0 * + col1 + - 17 FROM tab0
----
18253
57088
9586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 - col0 + - + 10 * - col0 + col0 col0 FROM tab2
----
406
586
696

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - 13 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5440
SELECT ALL + col0 + + CAST( - col2 AS SIGNED ) + - ( 6 ) + - col0 DIV col1 FROM tab2
----
10
17
18

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + col0 + + CAST ( - col2 AS INTEGER ) + - ( 6 ) + - col0 / col1 FROM tab2
----
10
17
18

query I rowsort
SELECT DISTINCT - - col0 * - col0 - 18 FROM tab1 AS cor0
----
-2619
-7243
-8299

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL 24 - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL 24 - COUNT ( * ) FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT COUNT( * ) FROM tab1 WHERE ( col1 ) <= ( 89 )
----
3

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( * ) FROM tab1 WHERE ( col1 ) <= ( 89 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5445
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5445
SELECT + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - SUM( 61 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5447
SELECT - SUM ( 61 ) FROM tab2 AS cor0
----
-183

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT - col1 > + + col2
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + 8 * col0 col1 FROM tab0 cor0
----
1800
60552
75272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 + + col0 col0 FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
-20
52
62

query I rowsort
SELECT DISTINCT - 68 * - col1 FROM tab2 AS cor0
----
3468
4556
5236

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col0 + ( col0 ) )
----

query I rowsort
SELECT col1 * - 10 FROM tab0
----
-10
-210
-810

query II rowsort
SELECT DISTINCT 74 AS col0, + col1 FROM tab0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT 44 * + ( + + col2 ) / + 33 * col1 + - col2 + + col2 + 79 * col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 5 * col0 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT - 44 AS col1, SUM( - col0 ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-5458
SELECT - 44 AS col1, SUM ( - col0 ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-44
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT col1 * CAST( col0 AS SIGNED ) col2 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5459
SELECT col1 * CAST ( col0 AS INTEGER ) col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT - 53 AS col2, col0 FROM tab2
----
-53
46
-53
64
-53
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT 14 * - 59 * - - COUNT( * ) AS col2 FROM tab1
----
-2478

skipif mysql # not compatible
query I rowsort label-5461
SELECT 14 * - 59 * - - COUNT ( * ) AS col2 FROM tab1
----
-2478

query I rowsort
SELECT DISTINCT + 9 * + col0 + - col1 + + col1 * - col0 / - col1 FROM tab2 WHERE NOT ( + 69 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + COUNT( DISTINCT + + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 77 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col1 + - 98 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col1 + + + col2 * ( + 45 ) AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( + col1 AS SIGNED ) + + col1 * + col2 FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( + col1 AS INTEGER ) + + col1 * + col2 FROM tab0
----
100
231
3888

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 34 AND NULL
----

query I rowsort
SELECT 8 + col2 * + col2 AS col1 FROM tab1 cor0
----
3489
4632
9224

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL CAST( - - col1 AS SIGNED ) * - 3 * + col2 + + col0 + col2 FROM tab0
----
-101
-11359
-533

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL CAST ( - - col1 AS INTEGER ) * - 3 * + col2 + + col0 + col2 FROM tab0
----
-101
-11359
-533

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 + + col0 ) = col2 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT - col0 DIV - col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5473
SELECT - col0 / - col0 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COUNT( + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5474
SELECT COUNT ( + - col2 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 79 ) + col2 col1 FROM tab2
----
102
119
137

query III rowsort
SELECT ALL * FROM tab2 WHERE - 56 > ( - 25 )
----

query II rowsort
SELECT ALL col0 * + col2 - - col1 AS col2, col2 AS col2 FROM tab0
----
786
47
891
10
9604
99

query I rowsort
SELECT ALL 38 - 69 AS col0 FROM tab0 WHERE + 69 IS NULL
----

query I rowsort
SELECT - - 73 + - 53 + - - 78 * + 57 AS col2 FROM tab2 AS cor0
----
4466
4466
4466

query I rowsort
SELECT ALL - ( + col2 ) - col2 + - 41 + 94 AS col2 FROM tab0 AS cor0
----
-145
-41
33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5481
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, + ( - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-5481
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, + ( - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT - - CAST( NULL AS SIGNED ) / + - 5 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT - - CAST ( NULL AS INTEGER ) / + - 5 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + - 35 * - + 53 * - - COUNT( + 49 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
16695

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + - 35 * - + 53 * - - COUNT ( + 49 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
16695

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 > 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5485
SELECT DISTINCT col0 * + col0 + - + CAST( - col0 AS SIGNED ), - col0 AS col0 FROM tab1 AS cor0
----
2652
-51
7310
-85
8372
-91

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT col0 * + col0 + - + CAST ( - col0 AS INTEGER ), - col0 AS col0 FROM tab1 AS cor0
----
2652
-51
7310
-85
8372
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT DISTINCT ( - col0 ) DIV 8 FROM tab0 AS cor0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT ( - col0 ) / 8 FROM tab0 AS cor0
----
-1
-10
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * - + col1 col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + 97 + - col1, + col1 + - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5488
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 30 * col2 AS col1 FROM tab2 cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT MAX( - col0 ) AS col2, 46 FROM tab1 AS cor0
----
-51
46

skipif mysql # not compatible
query II rowsort label-5490
SELECT MAX ( - col0 ) AS col2, 46 FROM tab1 AS cor0
----
-51
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 14 ) col1 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 42 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 59 )
----

query II rowsort
SELECT ALL + col0 AS col0, - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col1 * - 97 AS col2 FROM tab1
----
1358
4559
485

query I rowsort
SELECT ALL - 87 * + col0 FROM tab2
----
-4002
-5568
-6525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 + + ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + 44 * col2 * - col0 FROM tab2
----
14355000
2141392
7208960

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + col2 * col1 DIV - ( col2 ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5500
SELECT + col2 * col1 / - ( col2 ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 42 + 19 ) NOT BETWEEN 32 - + 28 AND + col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 21 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + + MIN( + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + + MIN ( + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT ALL 82, - COUNT( * ) AS col1 FROM tab1 cor0
----
82
-3

skipif mysql # not compatible
query II rowsort label-5504
SELECT ALL 82, - COUNT ( * ) AS col1 FROM tab1 cor0
----
82
-3

query I rowsort
SELECT DISTINCT 75 + 62 + - col0 FROM tab1 AS cor0
----
46
52
86

query I rowsort
SELECT ALL col1 + 18 + + col2 AS col1 FROM tab0
----
118
146
49

query II rowsort
SELECT DISTINCT 50, col0 AS col0 FROM tab0
----
50
15
50
87
50
97

query II rowsort
SELECT col1, 87 FROM tab0
----
1
87
21
87
81
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( + col1 )
----

query I rowsort
SELECT ALL ( - 88 ) + + col2 FROM tab0
----
-41
-78
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 < - 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( - 53 AS SIGNED ) FROM tab1 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( - 53 AS INTEGER ) FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT - + MAX( - 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - + MAX ( - 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - col0 - + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT 67 DIV - + 73 + - - 55 + - - col1 AS col0 FROM tab2 cor0
----
106
122
132

skipif mysql # not compatible
query I rowsort label-5515
SELECT 67 / - + 73 + - - 55 + - - col1 AS col0 FROM tab2 cor0
----
106
122
132

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT DISTINCT + ( COUNT( * ) ) AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5516
SELECT DISTINCT + ( COUNT ( * ) ) AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT ALL col1 + + + col2, + col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - COUNT( - + 45 ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - COUNT ( - + 45 ) FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT - MAX( - col2 ) + - 57 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - MAX ( - col2 ) + - 57 FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ALL col2 DIV - col2 + + ( - 94 ) col1 FROM tab2
----
-95
-95
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT ALL col2 / - col2 + + ( - 94 ) col1 FROM tab2
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + col2 DIV - 21 AS col0 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-5521
SELECT + col2 / - 21 AS col0 FROM tab1
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT MIN( + - 35 ) AS col2 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5522
SELECT MIN ( + - 35 ) AS col2 FROM tab2
----
-35

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 77 + - ( + 38 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5525
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5525
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL - CAST( + + 42 AS SIGNED ) * + MIN( col2 ) AS col1 FROM tab1
----
-2478

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - CAST ( + + 42 AS INTEGER ) * + MIN ( col2 ) AS col1 FROM tab1
----
-2478

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5528
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( CAST( 34 AS SIGNED ) AS SIGNED ) * + 33 / - 47 * col0 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5528
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( CAST ( 34 AS INTEGER ) AS INTEGER ) * + 33 / - 47 * col0 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 * - col0 * 37, + col2 + - 98 + 15 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + + 43, AVG ( ALL col1 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----
43
NULL

query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT - COUNT( * ), + 25 AS col0 FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-5532
SELECT - COUNT ( * ), + 25 AS col0 FROM tab1 AS cor0
----
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, 17 * + 8 col2 FROM tab2 AS cor0
----
51
136
67
136
77
136

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col0 + - col2
----

query I rowsort
SELECT col2 * - + 78 - - col2 - + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-560
-7524
188

query I rowsort
SELECT + col2 * 37 * - col1 AS col2 FROM tab0
----
-140859
-3663
-7770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5537
SELECT * FROM tab2 WHERE NOT ( + col1 * - col2 + col2 + - col0 + - 7 + CAST( - - col2 AS SIGNED ) + + ( - col2 ) / col1 * + - col1 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5537
SELECT * FROM tab2 WHERE NOT ( + col1 * - col2 + col2 + - col0 + - 7 + CAST ( - - col2 AS INTEGER ) + + ( - col2 ) / col1 * + - col1 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * + col0 col2 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT + col0 * + 97 + - + 31 + 11 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT DISTINCT COUNT( * ) * - 29 AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT COUNT ( * ) * - 29 AS col1 FROM tab1
----
-87

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - COUNT( + ( + 0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5542
SELECT - COUNT ( + ( + 0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + ( + 68 ) + 7 AS col2 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT ALL + COUNT( * ) + + COUNT( * ) DIV + MAX( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / + MAX ( - col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - 68 + + COUNT( * ) col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5545
SELECT ALL - 68 + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT ( + col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 <= col1 + + 79 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5548
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT COUNT( * ) * - - ( - 12 ) col1 FROM tab1 cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5549
SELECT COUNT ( * ) * - - ( - 12 ) col1 FROM tab1 cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5550
SELECT col1, 62 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5550
SELECT col1, 62 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT col0 - - - col2 - - 15 DIV col2 * col2 * + 39 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5551
SELECT col0 - - - col2 - - 15 / col2 * col2 * + 39 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL CAST( NULL AS SIGNED ) + - col0 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 * + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 85 - - SUM( ALL + col2 ) AS col2 FROM tab1
----
308

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 85 - - SUM ( ALL + col2 ) AS col2 FROM tab1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT MAX( + + col2 ) - - + 18 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5554
SELECT MAX ( + + col2 ) - - + 18 FROM tab2
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + + col0 - - - col2 * - + col2 col2 FROM tab0
----
2314
277
9988

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT + col2 + - 22 DIV + 9 FROM tab0
----
45
8
97

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + col2 + - 22 / + 9 FROM tab0
----
45
8
97

query I rowsort
SELECT 92 FROM tab2 WHERE + col0 IS NOT NULL
----
92
92
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5558
SELECT ALL COUNT( * ) DIV + 92 + 66 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL COUNT ( * ) / + 92 + 66 AS col1 FROM tab2
----
66

query I rowsort
SELECT col2 + 21 AS col1 FROM tab2
----
44
61
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 19 * - col2 IS NULL
----

query I rowsort
SELECT col2 + - 39 * + col0 AS col1 FROM tab0 cor0
----
-3383
-3684
-538

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + COUNT( * ) * + SUM( + + col1 ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5562
SELECT + COUNT ( * ) * + SUM ( + + col1 ) AS col2 FROM tab1 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - - COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5564
SELECT - - COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT col2 AS col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 37 FROM tab2 cor0
----
-1480
-2146
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col1 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + + COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT + + COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT + 95 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5570
SELECT + 95 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + - MIN( - - 33 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5571
SELECT + - MIN ( - - 33 ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT DISTINCT 89 * - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-227840
-387150
-94162

query II rowsort
SELECT ALL - col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT col2 * + + col2 * + ( 68 ) AS col2 FROM tab2
----
108800
228752
35972

query I rowsort
SELECT - AVG ( + + col1 ) AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( + - col2, ( - - ( + col1 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT SUM( ALL - col0 ) + - 43 AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5576
SELECT SUM ( ALL - col0 ) + - 43 AS col0 FROM tab2
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5577
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( - CAST( - + 27 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5577
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( - CAST ( - + 27 AS INTEGER ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab1
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT + + 24 DIV col0 DIV col1 * 89 * 89 + col2 * - 27 FROM tab2 AS cor0
----
-1080
-1566
-621

skipif mysql # not compatible
query I rowsort label-5579
SELECT + + 24 / col0 / col1 * 89 * 89 + col2 * - 27 FROM tab2 AS cor0
----
-1080
-1566
-621

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 35 / + ( + col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT DISTINCT - col1 DIV - col0 + + 68 FROM tab2
----
68
69

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - col1 / - col0 + + 68 FROM tab2
----
68
69

query I rowsort
SELECT - 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL COUNT( * ) * + 28 - 82 * - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0
----
333

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL COUNT ( * ) * + 28 - 82 * - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0
----
333

query I rowsort
SELECT DISTINCT + col0 + 82 FROM tab2 AS cor0
----
128
146
157

query I rowsort
SELECT - + col0 * col2 * + col1 + - 84 + - + col0 AS col2 FROM tab0 AS cor0
----
-18441
-57204
-9784

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL - ( col0 ) - - 35 AS col0 FROM tab0 AS cor0
----
-52
-62
20

query I rowsort
SELECT DISTINCT + col1 * + - 26 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 78
----

query I rowsort
SELECT ALL - - ( + + ( - + col2 ) ) * + + col2 * - 18 + 99 + - col0 * - 41 AS col2 FROM tab2 cor0
----
11507
31523
63726

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT COUNT( * ) * + ( - MIN( - col1 ) ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT COUNT ( * ) * + ( - MIN ( - col1 ) ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT - 10 + + COUNT( * ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - 10 + + COUNT ( * ) AS col1 FROM tab2
----
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5594
SELECT + CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5594
SELECT + CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL 48 + ( col2 ), col2 FROM tab1
----
107
59
116
68
144
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + COUNT( ALL - ( - 96 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + COUNT ( ALL - ( - 96 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5598
SELECT DISTINCT - CAST( NULL AS DECIMAL ), col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5598
SELECT DISTINCT - CAST ( NULL AS REAL ), col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT ALL + - col1 AS col1, - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + SUM( + 65 ) AS col1 FROM tab0 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + SUM ( + 65 ) AS col1 FROM tab0 cor0
----
195

query I rowsort
SELECT + 8 * + + col0 FROM tab2 AS cor0
----
368
512
600

query II rowsort
SELECT 2 * - 87, + col2 AS col0 FROM tab2
----
-174
23
-174
40
-174
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT col1 * col0 DIV - col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5603
SELECT col1 * col0 / - col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

skipif mysql # not compatible
query I rowsort label-5606
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - - col1 * + col2 + - col2 AS col2 FROM tab1 cor0 WHERE NOT 25 + - - col0 NOT BETWEEN - col0 AND + 23 / col2 * 38
----

query I rowsort
SELECT DISTINCT ( + - 19 ) FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( 47 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( 47 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + ( - 2 ) AS col0 FROM tab0 AS cor0 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ( + SUM( col2 ) ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5613
SELECT ( + SUM ( col2 ) ) AS col1 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab0
----
-43
-43
-43

query I rowsort
SELECT + col1 * + 71 AS col2 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT ALL + ( - + 14 ) AS col1 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT 5 + + 42 AS col0 FROM tab0
----
47

query III rowsort
SELECT * FROM tab1 WHERE - 36 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 36 FROM tab2 AS cor0 WHERE + col0 - + ( 66 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5620
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5620
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT - + 50 + + col2 FROM tab0 AS cor0
----
-3
-40
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 + - col0 + - + 44 * col0 * - 45 + col2 * 83 * + 20 + - 14 * + col0 AS col0, + col1 col2 FROM tab2 AS cor0
----
128578
51
192168
77
243663
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ALL - - 74 + - 3 DIV + - 62 * + MAX( ALL 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - - 74 + - 3 / + - 62 * + MAX ( ALL 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL - col2 + col0 + - col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + 6 * - - col2 - col2 AND - - col1 * + col2 + col0
----

query I rowsort
SELECT - 39 + + + col0 AS col1 FROM tab1
----
12
46
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5626
SELECT AVG ( + + CAST( NULL AS DECIMAL ) ) + COUNT( + 7 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT AVG ( + + CAST ( NULL AS REAL ) ) + COUNT ( + 7 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 14 - - col0 AS col0 FROM tab0 cor0
----
101
111
29

query II rowsort
SELECT 17 AS col0, - col1 FROM tab0 AS cor0
----
17
-1
17
-21
17
-81

query II rowsort
SELECT col0, col2 FROM tab2 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT DISTINCT - 44 - - + col2 AS col2 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + - COUNT( * ) * - MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5631
SELECT + - COUNT ( * ) * - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL col0 - - col2 AS col0 FROM tab2 cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab1 AS cor0 WHERE NULL <= + 7
----

query I rowsort
SELECT - 43 - ( - + col2 ) * 92 AS col2 FROM tab0 AS cor0
----
4281
877
9065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT + - MAX( - 39 ) - - SUM( 43 ) + + + 52 * + CAST( - + 66 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3264

skipif mysql # not compatible
query I rowsort label-5635
SELECT + - MAX ( - 39 ) - - SUM ( 43 ) + + + 52 * + CAST ( - + 66 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL 25 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-42
-52

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL 25 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-42
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT + COUNT( * ) - - 31 AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-5637
SELECT + COUNT ( * ) - - 31 AS col1 FROM tab1
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 6 NOT IN ( - ( - 16 ) * - col1, col1 / - 33, - + col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT + COUNT( - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + COUNT ( - col0 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5640
SELECT CAST( NULL AS DECIMAL ) / 35 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT CAST ( NULL AS REAL ) / 35 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5641
SELECT 36 DIV + col2 AS col0, + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5641
SELECT 36 / + col2 AS col0, + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL + + 15 * - COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + + 15 * - COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - + col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL ) OR - col1 <= + 14 * - - col2
----
0
0
0

query I rowsort
SELECT + col2 * 13 AS col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT DISTINCT + + 94 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
94

query I rowsort
SELECT ALL 76 * - col2 AS col2 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT MIN( + 68 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT MIN ( + 68 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----
NULL

query I rowsort
SELECT + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ( ( - 87 ) ) AS col2, col0 * col0 AS col1 FROM tab0 AS cor0
----
-87
225
-87
7569
-87
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT MAX( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 3 * 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT MAX ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 3 * 14 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT 56 DIV SUM( col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5653
SELECT 56 / SUM ( col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 - - col1 NOT BETWEEN + 34 + + 22 AND NULL
----

query II rowsort
SELECT ALL col2 AS col2, - 9 AS col1 FROM tab2
----
23
-9
40
-9
58
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT DISTINCT - 16 + - CAST( NULL AS SIGNED ) col0, + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5656
SELECT DISTINCT - 16 + - CAST ( NULL AS INTEGER ) col0, + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab0 WHERE + - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL MIN( - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL MIN ( - col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL + col1 * 2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + col1 * 2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 32 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 40 * col2 + - - 49 FROM tab2
----
1649
2369
969

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT SUM( ALL + - 42 ) + + 79 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5662
SELECT SUM ( ALL + - 42 ) + + 79 FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT + 94 DIV - - 26 + col2 FROM tab0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 94 / - - 26 + col2 FROM tab0
----
102
13
50

query I rowsort
SELECT col2 + - + 15 + - 22 FROM tab2
----
-14
21
3

query II rowsort
SELECT 48 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
48
1
48
21
48
81

query I rowsort
SELECT - 2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2
-2
-2

query II rowsort
SELECT DISTINCT 85 AS col2, + col1 FROM tab1 AS cor0
----
85
14
85
47
85
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT + 55 - col0 AS col1 FROM tab0
----
-32
-42
40

query I rowsort
SELECT col1 + 76 + - col2 * - + 30 FROM tab0 cor0
----
1567
3047
397

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col0 / - col2 + col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL - 64 * - + SUM( - - col1 ) col1 FROM tab1 cor0
----
4224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5673
SELECT ALL - 64 * - + SUM ( - - col1 ) col1 FROM tab1 cor0
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5674
SELECT + MAX ( - - col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col1 * col0, + 50 + + 22 col0 FROM tab2
----
-119646
72
-336675
72
-379456
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + - col1 col1 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT MIN( col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5677
SELECT DISTINCT MIN ( col2 ) col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5678
SELECT DISTINCT COUNT( * ) col2, - ( 65 ) FROM tab0
----
3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5678
SELECT DISTINCT COUNT ( * ) col2, - ( 65 ) FROM tab0
----
3
-65

query I rowsort
SELECT DISTINCT 41 * - col1 AS col2 FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT - 0 + + col1 * + col0 FROM tab0 WHERE NOT + - col1 < - 16
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 78 * - col2 col2 FROM tab1
----
104832
23010
249288

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5682
SELECT - ( + - ( - - col1 ) ) / col2 - 14 + - col0 + - CAST( NULL AS DECIMAL ) * - + col2 col1, col1 FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT - ( + - ( - - col1 ) ) / col2 - 14 + - col0 + - CAST ( NULL AS REAL ) * - + col2 col1, col1 FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 98 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + - MAX( + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5684
SELECT + - MAX ( + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT ALL - 77 DIV MIN( DISTINCT - - col2 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - 77 / MIN ( DISTINCT - - col2 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - COUNT( ALL - col1 ) + 63 AS col0 FROM tab1 AS cor0 WHERE col2 + col2 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COUNT ( ALL - col1 ) + 63 AS col0 FROM tab1 AS cor0 WHERE col2 + col2 IS NULL
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT ALL col2 DIV - - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL col2 / - - 87 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * col2 + - col0 FROM tab1 cor0
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL + - MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + - MAX ( + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT ( 44 ) + - - col1 * + + col0 FROM tab1
----
4321
469
758

query I rowsort
SELECT DISTINCT - 81 + - 86 FROM tab0
----
-167

query I rowsort
SELECT DISTINCT + ( + + col1 ) + - col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + - col0 <= + 85 * - col2 * + col1 * + - col0 + + col0
----

query I rowsort
SELECT - col0 + 80 FROM tab2 AS cor0
----
16
34
5

query II rowsort
SELECT 0 AS col2, + col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 60 * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT ALL + + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - + SUM( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5701
SELECT - + SUM ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col0 + col2 IS NOT NULL
----

query II rowsort
SELECT - + col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query II rowsort
SELECT + + col0 AS col1, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab1
----
-20

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) * + + 95 + - - 79 + 81 <= + 79
----

query I rowsort
SELECT DISTINCT + 27 * - - 15 AS col1 FROM tab2
----
405

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + 65 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT col2 * - col0 FROM tab0 WHERE NOT + 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 IN ( - col1, 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 39 * - col2 / + col0 FROM tab1 WHERE NOT NULL = + - col2 - + - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5714
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE - 85 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT col2 AS col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + col0 * - col2 * + - col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT + + 81 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5718
SELECT + + 81 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL - COUNT( * ) AS col1, ( - 7 ) AS col0 FROM tab0 AS cor0
----
-3
-7

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL - COUNT ( * ) AS col1, ( - 7 ) AS col0 FROM tab0 AS cor0
----
-3
-7

query I rowsort
SELECT - ( + - 54 ) + col0 AS col1 FROM tab1 AS cor0
----
105
139
145

query I rowsort
SELECT DISTINCT - col0 + 76 FROM tab1 AS cor0
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT DISTINCT COUNT( * ) AS col1, 32 AS col2 FROM tab1 cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-5724
SELECT DISTINCT COUNT ( * ) AS col1, 32 AS col2 FROM tab1 cor0
----
3
32

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col1 + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT CAST( NULL AS SIGNED ) + - 32 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT CAST ( NULL AS INTEGER ) + - 32 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + 3 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col2
----

query I rowsort
SELECT - 11 * - col0 FROM tab0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT + 44 + MIN( ALL col0 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + 44 + MIN ( ALL col0 ) FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT COUNT( DISTINCT + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5731
SELECT COUNT ( DISTINCT + col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + - - 71 AS col0 FROM tab0
----
152
72
92

query II rowsort
SELECT ALL + 82 + 13 AS col0, - 23 AS col2 FROM tab2 AS cor0
----
95
-23
95
-23
95
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT DISTINCT + COUNT( * ) DIV + 72 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + COUNT ( * ) / + 72 * + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 27 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 93 col0, 45 FROM tab0 AS cor0
----
-93
45
-93
45
-93
45

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 69 * 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col0 * - + col0 > col0
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * - + col0 > col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT + + ( - COUNT( DISTINCT + col0 ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5740
SELECT + + ( - COUNT ( DISTINCT + col0 ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 <> NULL
----

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18

query I rowsort
SELECT + + 28 FROM tab2 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT 13, - 40 AS col2 FROM tab1
----
13
-40

query I rowsort
SELECT col0 * + - 78 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT DISTINCT 29 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT 29 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5748
SELECT DISTINCT + 5 AS col2, MIN( - + col1 ) AS col0 FROM tab2
----
5
-77

skipif mysql # not compatible
query II rowsort label-5748
SELECT DISTINCT + 5 AS col2, MIN ( - + col1 ) AS col0 FROM tab2
----
5
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IN ( 44, + 20 * - col2, + col2, + 72 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT - + COUNT( * ) - 47 + + COUNT( 44 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5750
SELECT - + COUNT ( * ) - 47 + + COUNT ( 44 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 96 * + + 41 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 96 * + + 41 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5752
SELECT DISTINCT - - 49 + + ( + col1 ) + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - - 49 + + ( + col1 ) + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 87, - col1, - col2 * + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT - col0 >= NULL ) )
----

query I rowsort
SELECT - col0 * - + col2 + + col0 * + col1 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
10455
10506
16653

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5756
SELECT + 50 DIV + - CAST( col0 AS SIGNED ) + 50 - + 90 AS col2 FROM tab2 cor0
----
-40
-40
-41

skipif mysql # not compatible
query I rowsort label-5756
SELECT + 50 / + - CAST ( col0 AS INTEGER ) + 50 - + 90 AS col2 FROM tab2 cor0
----
-40
-40
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + MAX( - col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5757
SELECT DISTINCT + MAX ( - col1 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT MAX( DISTINCT + CAST( 39 AS SIGNED ) ) + 3 AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT MAX ( DISTINCT + CAST ( 39 AS INTEGER ) ) + 3 AS col0 FROM tab1
----
42

query III rowsort
SELECT * FROM tab2 WHERE - 73 * - col0 + - 99 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 62 - + COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5760
SELECT 62 - + COUNT ( * ) FROM tab2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT ALL + col2 + + - 5 AS col2 FROM tab2
----
18
35
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + MAX( 10 ) - + MIN( - col1 ) * 64 + - - 61 FROM tab1
----
3079

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + MAX ( 10 ) - + MIN ( - col1 ) * 64 + - - 61 FROM tab1
----
3079

query I rowsort
SELECT 56 * - col2 - - ( - ( + + 81 ) ) AS col0 FROM tab0
----
-2713
-5625
-641

query II rowsort
SELECT + - 67 + + col2 + + 38 + + + 93, col0 FROM tab2 WHERE - - col1 - + 17 < NULL
----

query I rowsort
SELECT 70 + - 11 AS col0 FROM tab0
----
59
59
59

query II rowsort
SELECT - + col0 * - col2 + col1, col1 AS col0 FROM tab0 AS cor0
----
786
81
891
21
9604
1

query I rowsort
SELECT col2 + - 42 FROM tab0 AS cor0
----
-32
5
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5769
SELECT CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5770
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 55 * + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5770
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 55 * + + col2 IS NULL
----

query II rowsort
SELECT - col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT + - COUNT( * ) * + 5 * + 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-810

skipif mysql # not compatible
query I rowsort label-5772
SELECT + - COUNT ( * ) * + 5 * + 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - + col0
----

query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query I rowsort
SELECT ( - + 58 ) FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 13 NOT BETWEEN + col2 AND - - 82
----

query I rowsort
SELECT DISTINCT - 57 * - col0 + + 54 AS col0 FROM tab0 AS cor0
----
5013
5583
909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT ALL - COUNT( * ) DIV + COUNT( * ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5778
SELECT ALL - COUNT ( * ) / + COUNT ( * ) col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT col2 * + col1 DIV col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT col2 * + col1 / col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT + ( - COUNT( - + 35 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5780
SELECT + ( - COUNT ( - + 35 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT DISTINCT - COUNT( + 72 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT - COUNT ( + 72 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5782
SELECT * FROM tab2 cor0 WHERE NOT - CAST( ( col2 ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5782
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( ( col2 ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT col0 DIV + col0 + - + col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT col0 / + col0 + - + col1 FROM tab0
----
-20
-80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5785
SELECT - CAST( 34 AS SIGNED ) DIV 30 + 9 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5785
SELECT - CAST ( 34 AS INTEGER ) / 30 + 9 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT COUNT( + col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5786
SELECT DISTINCT COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5787
SELECT ALL + col2 + + col1 - - 29 * - 91 * 16 * - CAST( NULL AS SIGNED ) + - col0 + + col0 * + col1 + + col0 AS col2, col2 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5787
SELECT ALL + col2 + + col1 - - 29 * - 91 * 16 * - CAST ( NULL AS INTEGER ) + - col0 + + col0 * + col1 + + col0 AS col2, col2 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2, col2 * 14 * + + col0 AS col1 FROM tab0 AS cor0
----
10
12180
47
9870
99
134442

query I rowsort
SELECT DISTINCT - 8 * - 46 FROM tab0 AS cor0
----
368

query I rowsort
SELECT DISTINCT - - 80 * 84 AS col0 FROM tab0 AS cor0
----
6720

query II rowsort
SELECT ALL 45 * 92, - 80 AS col1 FROM tab1
----
4140
-80
4140
-80
4140
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 69 AS col1, + 12 col0 FROM tab2
----
-69
12
-69
12
-69
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5793
SELECT - 55 + + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 55 + + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT + + ( - col1 ) / + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT + + ( - col1 ) / + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT DISTINCT - 72 * + ( - - 27 ) * + + col0 + + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - 72 * + ( - - 27 ) * + + col0 + + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 94 AND col1
----

query I rowsort
SELECT ALL + col1 - + + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT 43 + + - MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5798
SELECT 43 + + - MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5799
SELECT ( - - 40 ) + - - 61 + + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 55 IS NOT NULL AND NOT - CAST( NULL AS DECIMAL ) + - ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5799
SELECT ( - - 40 ) + - - 61 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 55 IS NOT NULL AND NOT - CAST ( NULL AS REAL ) + - ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL col2 + + col2 + 97 FROM tab2
----
143
177
213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5802
SELECT * FROM tab1 WHERE + CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5802
SELECT * FROM tab1 WHERE + CAST ( + - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT CAST( NULL AS SIGNED ) * - + ( 31 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT CAST ( NULL AS INTEGER ) * - + ( 31 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT - COUNT( * ) + - 78 + + ( COUNT( * ) ) + + - 8 AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - COUNT ( * ) + - 78 + + ( COUNT ( * ) ) + + - 8 AS col2 FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL COUNT( * ) - - + 19 col0 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5805
SELECT ALL COUNT ( * ) - - + 19 col0 FROM tab2
----
22

query I rowsort
SELECT + col1 FROM tab1 WHERE + 60 <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT + 34 * + ( + + COUNT( * ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT + 34 * + ( + + COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT DISTINCT + 4 DIV - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + 4 / - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 39 * + col2 AS col0 FROM tab0
----
1833
3861
390

query I rowsort
SELECT + 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 56 IS NOT NULL
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL - col1 * - - col1 AS col2 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT + 69 DIV - COUNT( * ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 69 / - COUNT ( * ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - COUNT( DISTINCT + + ( + 46 ) ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - COUNT ( DISTINCT + + ( + 46 ) ) AS col1 FROM tab0 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 61 * + col1 FROM tab1 AS cor0
----
2867
305
854

query I rowsort
SELECT ALL col1 / + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL >= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5817
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT ALL - 20 DIV - 54 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - 20 / - 54 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT - ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5820
SELECT - ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL col1 AS col0, 90 FROM tab2 AS cor0
----
51
90
67
90
77
90

query I rowsort
SELECT ( - 17 ) FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - COUNT( DISTINCT ( 18 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5823
SELECT - COUNT ( DISTINCT ( 18 ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5824
SELECT SUM ( DISTINCT - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL + COUNT( * ) + + - 49 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + COUNT ( * ) + + - 49 FROM tab0
----
-46

query II rowsort
SELECT DISTINCT - col2 * 77 * + col1 + + col1 AS col0, - col2 AS col0 FROM tab0
----
-16149
-10
-293058
-47
-7622
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col1 FROM tab2 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT - COUNT( * ) * + SUM( DISTINCT + col1 ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + col1 ) FROM tab2
----
-585

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5830
SELECT ALL * FROM tab1 WHERE NULL IN ( + col2 * CAST( NULL AS DECIMAL ), + 35 )
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT ALL * FROM tab1 WHERE NULL IN ( + col2 * CAST ( NULL AS REAL ), + 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col0 ), col1 col2 FROM tab0 cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5832
SELECT DISTINCT + 41 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - col0, 44 + - CAST( NULL AS DECIMAL ) + - 30 * col0 )
----

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + 41 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - col0, 44 + - CAST ( NULL AS REAL ) + - 30 * col0 )
----

query I rowsort
SELECT + 55 * 33 + + 25 FROM tab2 AS cor0
----
1840
1840
1840

query I rowsort
SELECT ALL + 11 * + 46 * + col2 AS col2 FROM tab2 AS cor0
----
11638
20240
29348

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - 64 + + COUNT( * ) FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5835
SELECT - 64 + + COUNT ( * ) FROM tab0 cor0
----
-61

query I rowsort
SELECT DISTINCT col0 + col0 + + col2 AS col2 FROM tab2
----
115
168
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + + CAST( 49 AS SIGNED ) FROM tab2 WHERE ( NOT + 75 * - - col2 IS NULL )
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5837
SELECT + + CAST ( 49 AS INTEGER ) FROM tab2 WHERE ( NOT + 75 * - - col2 IS NULL )
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5838
SELECT COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL - COUNT( ALL 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - COUNT ( ALL 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT + 2, ( - 5 ) AS col0 FROM tab1 AS cor0
----
2
-5
2
-5
2
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 14 * + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - col2 - + - col2 * - col1 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + ( 10 ) * - COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5844
SELECT + ( 10 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT + + 33 * - ( + col2 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT + + 33 * - ( + col2 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + 1 AS col2 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT - col1 - + - col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - ( - 72 ) AS col0 FROM tab1 AS cor0
----
72
72
72

query II rowsort
SELECT col2 - + col2 AS col0, col0 + - 55 FROM tab0
----
0
-40
0
32
0
42

query I rowsort
SELECT - col2 * + 99 + + - col1 FROM tab0
----
-1011
-4734
-9802

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT ALL 33 AS col2, 29 * + + COUNT( - col2 ) FROM tab1
----
33
87

skipif mysql # not compatible
query II rowsort label-5851
SELECT ALL 33 AS col2, 29 * + + COUNT ( - col2 ) FROM tab1
----
33
87

query I rowsort
SELECT DISTINCT col0 * 24 AS col1 FROM tab0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query II rowsort label-5853
SELECT ALL + - 52 DIV + 27 AS col0, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-5853
SELECT ALL + - 52 / + 27 AS col0, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query II rowsort
SELECT col0, 31 * col1 AS col1 FROM tab0 cor0
----
15
2511
87
651
97
31

query I rowsort
SELECT ALL col0 + + 38 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + - 89 AS col2, + col1 - + col2 * + col2 * 1 AS col1 FROM tab2 cor0
----
-89
-1523
-89
-3297
-89
-478

query II rowsort
SELECT + col1 AS col0, + col2 * + col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
14
470067
47
420875
5
295970

query II rowsort
SELECT DISTINCT - + col1 AS col0, 81 * + 10 AS col2 FROM tab0 AS cor0
----
-1
810
-21
810
-81
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5859
SELECT + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5860
SELECT * FROM tab2 WHERE NOT ( + 29 ) * + - col1 > col0 * col1 - + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5860
SELECT * FROM tab2 WHERE NOT ( + 29 ) * + - col1 > col0 * col1 - + ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT - 9 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * col2 * + - 50 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT - - col1 DIV col2 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5864
SELECT - - col1 / col2 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL + CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5865
SELECT ALL + CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - - SUM( DISTINCT - col0 ) AS col0, 14 AS col1 FROM tab2 AS cor0
----
-185
14

skipif mysql # not compatible
query II rowsort label-5866
SELECT - - SUM ( DISTINCT - col0 ) AS col0, 14 AS col1 FROM tab2 AS cor0
----
-185
14

query I rowsort
SELECT DISTINCT - 82 + 47 FROM tab2
----
-35

query I rowsort
SELECT DISTINCT 19 + + col2 FROM tab1
----
115
78
87

query I rowsort
SELECT + col1 + - 36 * + + ( - + col0 ) AS col0 FROM tab0
----
3153
3493
621

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT SUM( - - col2 ) + - COUNT( * ) AS col2 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-5870
SELECT SUM ( - - col2 ) + - COUNT ( * ) AS col2 FROM tab2
----
118

query II rowsort
SELECT col0, - 70 FROM tab0 AS cor0
----
15
-70
87
-70
97
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5872
SELECT DISTINCT + + COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT + + COUNT ( * ) AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5873
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-5873
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + COUNT( * ) FROM tab1 WHERE + col1 BETWEEN ( NULL ) AND - 15 * col0 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT + COUNT ( * ) FROM tab1 WHERE + col1 BETWEEN ( NULL ) AND - 15 * col0 - - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT MIN( + col1 ) - + 36 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5876
SELECT MIN ( + col1 ) - + 36 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 - + col1 * col1 col0 FROM tab2
----
-2697
-4585
-6025

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + 73 / col0 NOT IN ( 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT 70 DIV - 48 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5879
SELECT 70 / - 48 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE 4 BETWEEN 12 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT 76 DIV SUM( ALL col2 * 4 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT 76 / SUM ( ALL col2 * 4 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL MAX( col1 ) + + COUNT( * ) col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5882
SELECT ALL MAX ( col1 ) + + COUNT ( * ) col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT ALL + col2 + - 87 AS col2 FROM tab1
----
-19
-28
9

query I rowsort
SELECT + col2 * - 35 FROM tab2
----
-1400
-2030
-805

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 / 99 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT ALL + 52 DIV ( + col2 ) FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL + 52 / ( + col2 ) FROM tab2
----
0
1
2

query I rowsort
SELECT - 71 * col1 AS col0 FROM tab1
----
-3337
-355
-994

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col0 - + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( - col2 ) * col0 - 23 ) NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5890
SELECT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5890
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * col0 ) IS NOT NULL
----

query I rowsort
SELECT - col2 / col1 FROM tab1 WHERE col1 IN ( col2 / 17 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 * 36 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( + 20 ) NOT IN ( 26 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab2
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col1 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT COUNT( ALL + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5896
SELECT COUNT ( ALL + col2 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 48 * 86 NOT IN ( + 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= col0 * - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT COUNT( * ) * + COUNT( ALL - col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL - col2 ) FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT SUM( + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5902
SELECT SUM ( + col2 ) AS col2 FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT DISTINCT - 50 AS col1 FROM tab0 WHERE NOT col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
-50

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT - 50 AS col1 FROM tab0 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT - 8 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + 28 ) IN ( col2 )
----
-24

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - 8 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + 28 ) IN ( col2 )
----
-24

query I rowsort
SELECT DISTINCT + + ( - 52 ) FROM tab1 AS cor0
----
-52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + ( - 1 ) - + col2 ) IN ( - ( + col0 ) )
----
104
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL + + SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + + SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 73 + + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 91 * + ( col0 * col1 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT DISTINCT 74 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT 74 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - 79 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 21 + 59 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT - col2 * 0 + - col0 AS col1 FROM tab0 WHERE - 75 / CAST( NULL AS SIGNED ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5918
SELECT - col2 * 0 + - col0 AS col1 FROM tab0 WHERE - 75 / CAST ( NULL AS INTEGER ) NOT IN ( col0 )
----

query I rowsort
SELECT col0 * + 92 + 70 FROM tab1 WHERE ( 50 + - 70 ) IN ( col0 * 30 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col2 NOT IN ( 20 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 + + 63 NOT BETWEEN ( NULL ) AND NULL AND NOT col0 = col1 + + 99 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT + - COUNT( * ) * - 0 + + MAX( DISTINCT - CAST( col0 AS SIGNED ) + + col2 ) * + COUNT( * ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5922
SELECT + - COUNT ( * ) * - 0 + + MAX ( DISTINCT - CAST ( col0 AS INTEGER ) + + col2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
135

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 >= - 87 + 96
----

query I rowsort
SELECT ALL + 12 + + + col0 + 33 AS col0 FROM tab2 AS cor0
----
109
120
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL - COUNT( * ) - + 33 AS col0 FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-42

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - COUNT ( * ) - + 33 AS col0 FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-42

query I rowsort
SELECT - - col1 - + col1 * - col0 * + col0 FROM tab1 AS cor0
----
36130
36428
389254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5927
SELECT ALL + - CAST( + col1 AS SIGNED ) - - col2 DIV col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + - CAST ( + col1 AS INTEGER ) - - col2 / col1 FROM tab0 AS cor0
----
-21
-81
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( * ) - - 82 + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( * ) - - 82 + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - COUNT( * ) * + 99 + - 92 FROM tab0 AS cor0
----
-389

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COUNT ( * ) * + 99 + - 92 FROM tab0 AS cor0
----
-389

query II rowsort
SELECT - 38 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-38
15
-38
87
-38
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT + 83 * col0 * col0 * - CAST( + col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-13192746
-1512594
-780946

skipif mysql # not compatible
query I rowsort label-5932
SELECT + 83 * col0 * col0 * - CAST ( + col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-13192746
-1512594
-780946

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - - ( 66 ) * + COUNT( * ) FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-5933
SELECT - - ( 66 ) * + COUNT ( * ) FROM tab0 cor0
----
198

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col0 ) + 49
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5935
SELECT 29 AS col2, COUNT( ALL + + 36 ) DIV + MAX( DISTINCT 55 * 2 ) FROM tab2 AS cor0
----
29
0

skipif mysql # not compatible
query II rowsort label-5935
SELECT 29 AS col2, COUNT ( ALL + + 36 ) / + MAX ( DISTINCT 55 * 2 ) FROM tab2 AS cor0
----
29
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5936
SELECT - CAST( NULL AS SIGNED ) * - col2 col1, 94 AS col1 FROM tab1
----
NULL
94
NULL
94
NULL
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5936
SELECT - CAST ( NULL AS INTEGER ) * - col2 col1, 94 AS col1 FROM tab1
----
NULL
94
NULL
94
NULL
94

query I rowsort
SELECT + 67 * + 92 AS col0 FROM tab0
----
6164
6164
6164

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( + 3 + + + 40 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( + 3 + + + 40 ) IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT IN ( 38 * col0 + 69 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT ALL COUNT( * ) DIV + 33 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL COUNT ( * ) / + 33 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col0 * + col0 FROM tab2 WHERE - 77 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT - col2 + CAST( + col0 AS SIGNED ) FROM tab1 cor0 WHERE ( - - col0 NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - col2 + CAST ( + col0 AS INTEGER ) FROM tab1 cor0 WHERE ( - - col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT MAX( - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5948
SELECT MAX ( - 2 ) FROM tab2
----
-2

query II rowsort
SELECT ( + col0 ) * + col1, col0 AS col0 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT ALL col0 * + col2 * - - col1 + col1 FROM tab1
----
25080
290883
68558

query II rowsort
SELECT ALL col0 AS col2, + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL - + MAX( ALL + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col2 * + col0 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT - ( - - 40 ) * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1600
-2320
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + MAX( ALL - - 25 ) FROM tab1 AS cor0 WHERE NULL <> ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT + MAX ( ALL - - 25 ) FROM tab1 AS cor0 WHERE NULL <> ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - + 93 * + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-4
1866
7518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT - + CAST( NULL AS SIGNED ) + - 9 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT - + CAST ( NULL AS INTEGER ) + - 9 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 25 * + col1 AS col2 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT DISTINCT + + 61 FROM tab0 cor0
----
61

query I rowsort
SELECT ALL + ( - col2 ) + col2 + - 59 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT 48 * + 8 FROM tab2, tab2 AS cor0
----
9 values hashing to af6ba67e280190d1bd38bd7e5d1849fb

query I rowsort
SELECT ALL col0 + + col0 + 16 * + + col1 FROM tab0
----
1326
210
510

query I rowsort
SELECT DISTINCT + col0 + ( 51 ) FROM tab0
----
138
148
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + - - col0 + + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + - - col0 + + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 98 ) FROM tab1
----
98
98
98

query I rowsort
SELECT + ( + 13 ) AS col2 FROM tab1
----
13
13
13

query III rowsort
SELECT * FROM tab1 WHERE - + col0 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col1 ) * + - col2 * + col2 + col0 - col2 FROM tab1 cor0
----
-129069
-17379
-217305

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5970
SELECT ALL col0 * - 38 col0, - CAST( - 34 AS SIGNED ) + + + col0 AS col0 FROM tab2
----
-1748
80
-2432
98
-2850
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5970
SELECT ALL col0 * - 38 col0, - CAST ( - 34 AS INTEGER ) + + + col0 AS col0 FROM tab2
----
-1748
80
-2432
98
-2850
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - ( + col0 ) AS col2, + 39 FROM tab2 AS cor0
----
-46
39
-64
39
-75
39

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 = + 27 + + col1 + ( 42 )
----
-108
-96
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 * - + 13
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 78 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 - - 1 BETWEEN ( NULL ) AND col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT MAX( ALL + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT MAX ( ALL + col2 ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL - COUNT( DISTINCT + ( + + 87 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - COUNT ( DISTINCT + ( + + 87 ) ) FROM tab0
----
-1

query II rowsort
SELECT ALL col2 AS col2, + col0 * - 94 AS col0 FROM tab0
----
10
-8178
47
-1410
99
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5982
SELECT ALL - COUNT( * ) col1, + 83 DIV - 37 AS col0 FROM tab1
----
-3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5982
SELECT ALL - COUNT ( * ) col1, + 83 / - 37 AS col0 FROM tab1
----
-3
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5983
SELECT + col0, + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5983
SELECT + col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5984
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5984
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT ALL - 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + 10 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT col0 * 61 + + col0 FROM tab2
----
2852
3968
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT + - SUM( col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5989
SELECT + - SUM ( col1 ) col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL + COUNT( ALL col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + COUNT ( ALL col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL - COUNT( * ) + + - COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - COUNT ( * ) + + - COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - + MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5993
SELECT - + MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * + 25 + - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * + 25 + - - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + + 40 * - col1 * col1 FROM tab0
----
21257640
370440
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT - ( - CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5996
SELECT - ( - CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT ( + 39 ) + col1 AS col2 FROM tab2
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT 53 - - COUNT( * ) col2 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5998
SELECT 53 - - COUNT ( * ) col2 FROM tab1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 - col2 col0 FROM tab1
----
-55
-64
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT 22 DIV - 43 - col1 * - + col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6000
SELECT 22 / - 43 - col1 * - + col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 83 + + - ( + + col1 ) FROM tab0
----
2
62
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT - CAST( 76 AS SIGNED ) + - - col0 FROM tab1 AS cor0
----
-25
15
9

skipif mysql # not compatible
query I rowsort label-6002
SELECT - CAST ( 76 AS INTEGER ) + - - col0 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT DISTINCT - AVG ( ALL + + col0 ) AS col1, COUNT( * ) FROM tab1 WHERE NOT - col1 * - + col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6004
SELECT DISTINCT - AVG ( ALL + + col0 ) AS col1, COUNT ( * ) FROM tab1 WHERE NOT - col1 * - + col1 IS NOT NULL
----
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + + ( + + 85 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT 8 * MAX( ALL - ( + col0 ) ) AS col1 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT 8 * MAX ( ALL - ( + col0 ) ) AS col1 FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - MAX( 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6007
SELECT - MAX ( 80 ) FROM tab0 AS cor0
----
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 + + col2 * 62 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - ( + col2 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL - 53 * + COUNT( * ) FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - 53 * + COUNT ( * ) FROM tab2 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + MIN( - - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6011
SELECT + MIN ( - - col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT COUNT( * ) * + - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-6012
SELECT COUNT ( * ) * + - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT + SUM( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6013
SELECT + SUM ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + + ( + - ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 32 * col0 <> - col2
----

query I rowsort
SELECT DISTINCT col0 * - 76 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-3876
-6460
-6916

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 65 * + 39 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + 41 FROM tab2 AS cor0
----
64
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( + - 12 ) AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6022
SELECT - 64 DIV - - 91 + - COUNT( - - col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 64 / - - 91 + - COUNT ( - - col0 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - - 39 + - - 39 AS col2 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT ALL + 42, COUNT( * ) col0 FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6024
SELECT ALL + 42, COUNT ( * ) col0 FROM tab2 AS cor0
----
42
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT ALL - - 70 FROM tab0 AS cor0 WHERE NOT ( NOT CAST( - col1 AS SIGNED ) IS NOT NULL )
----
70
70
70

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL - - 70 FROM tab0 AS cor0 WHERE NOT ( NOT CAST ( - col1 AS INTEGER ) IS NOT NULL )
----
70
70
70

query I rowsort
SELECT DISTINCT + - ( col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + 71 + - + col2 / - 70 FROM tab1 AS cor0 WHERE NOT - col0 * - + 33 * - - col2 / col1 * - + col2 + + + 54 * + 25 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 + + - 33 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 20 FROM tab0 WHERE - col0 < + - col1
----
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - COUNT( * ) col1 FROM tab2 WHERE NULL BETWEEN - - col1 AND ( + col1 * + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6030
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NULL BETWEEN - - col1 AND ( + col1 * + col0 )
----
0

query I rowsort
SELECT ALL + 17 + - - col1 FROM tab1
----
22
31
64

query I rowsort
SELECT + 55 FROM tab2 cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 col2, - 37 + - - col1 FROM tab1 cor0 WHERE NULL BETWEEN - 20 AND - 2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT BETWEEN + 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - 52 - - + COUNT( * ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6035
SELECT - 52 - - + COUNT ( * ) FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT + + 76 * + - col0 - 38 AS col0 FROM tab1 AS cor0
----
-3914
-6498
-6954

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + + 52 + + 21 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6038
SELECT - ( CAST( NULL AS SIGNED ) ) * + + col2, + col2 DIV - - col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-6038
SELECT - ( CAST ( NULL AS INTEGER ) ) * + + col2, + col2 / - - col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 / - 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0 cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT DISTINCT - col2 DIV ( - - 23 ) FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - col2 / ( - - 23 ) FROM tab0 AS cor0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - SUM( 85 ) FROM tab2 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - SUM ( 85 ) FROM tab2 cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT - AVG ( col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT - AVG ( col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 58 * + + col2
----

query II rowsort
SELECT ALL col0 * + 63, col1 FROM tab2
----
2898
51
4032
77
4725
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab2
----
74

query II rowsort
SELECT + 36 AS col2, ( 22 ) * col1 + 48 * - 68 FROM tab1
----
36
-2230
36
-2956
36
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT COUNT( 42 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6049
SELECT COUNT ( 42 ) FROM tab0
----
3

query I rowsort
SELECT col1 * col1 * - + 55 AS col2 FROM tab1
----
-10780
-121495
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL + 90 + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + 90 + COUNT ( * ) FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT ALL + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT + MAX( + col2 ) * + - COUNT( * ) + - 48 - - 1 AS col1 FROM tab1
----
-335

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + MAX ( + col2 ) * + - COUNT ( * ) + - 48 - - 1 AS col1 FROM tab1
----
-335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT ALL - MAX( + - col2 ) DIV + + SUM( - 53 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT ALL - MAX ( + - col2 ) / + + SUM ( - 53 ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL MIN ( - col1 ) FROM tab1 cor0
----
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 27 BETWEEN - col2 * + 45 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 23 col2, - col1 FROM tab1 AS cor0
----
23
-14
23
-47
23
-5

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE 35 + - col2 + + col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - col0 + + col2 * - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT 65 * - - col2 + col0 + - + col1 FROM tab1
----
3915
4464
6277

query I rowsort
SELECT 54 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query II rowsort
SELECT + col1 * col1, + col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - ( + 57 ) NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + col2 + - col1 * 39 * - col0 + - + col1 AS col1 FROM tab0 cor0
----
3881
47351
71242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT - CAST( - AVG ( ALL - col1 ) AS SIGNED ) FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6068
SELECT - CAST ( - AVG ( ALL - col1 ) AS INTEGER ) FROM tab0 cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - + 98 - CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-149
-165
-175

skipif mysql # not compatible
query I rowsort label-6069
SELECT - + 98 - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-149
-165
-175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col0 * + - col0 col2 FROM tab0 AS cor0
----
-3375
-658503
-912673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT CAST( + col2 AS SIGNED ) - - col1 AS col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6071
SELECT CAST ( + col2 AS INTEGER ) - - col1 AS col2 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * - col1 col0 FROM tab2
----
4233
5561
6391

query I rowsort
SELECT col2 - + + col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT CAST( ( 27 ) AS SIGNED ) - + col1 FROM tab0 WHERE 91 <> - - col2 + + + 90
----
-54
26
6

skipif mysql # not compatible
query I rowsort label-6074
SELECT CAST ( ( 27 ) AS INTEGER ) - + col1 FROM tab0 WHERE 91 <> - - col2 + + + 90
----
-54
26
6

query I rowsort
SELECT + 74 + col2 FROM tab0
----
121
173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT + SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT + SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6078
SELECT SUM ( - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT - COUNT( * ) + + 80 AS col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
80
0

skipif mysql # not compatible
query II rowsort label-6079
SELECT - COUNT ( * ) + + 80 AS col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL SUM( - 86 ) AS col0 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL SUM ( - 86 ) AS col0 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + - COUNT( col0 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT + - COUNT ( col0 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 98 * col1 BETWEEN - 46 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col2 / - 48 + + + col2 - - + 15 + + col2 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 24 * - col1 * - col0 + + col0 AS col1 FROM tab1
----
102739
10285
17187

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 < - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - COUNT( * ) + + 63 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-6088
SELECT - COUNT ( * ) + + 63 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT COUNT( + + col2 ) + - + ( + ( - + 52 ) ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-6089
SELECT COUNT ( + + col2 ) + - + ( + ( - + 52 ) ) FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + COUNT( * ) + + + SUM( - - ( - + col2 ) ) AS col2 FROM tab2 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-6090
SELECT + COUNT ( * ) + + + SUM ( - - ( - + col2 ) ) AS col2 FROM tab2 cor0
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT + col0 DIV 4 + - + 94 FROM tab2 AS cor0
----
-76
-78
-83

skipif mysql # not compatible
query I rowsort label-6091
SELECT + col0 / 4 + - + 94 FROM tab2 AS cor0
----
-76
-78
-83

query I rowsort
SELECT ALL - col1 + - ( 84 ) FROM tab1 AS cor0
----
-131
-89
-98

query I rowsort
SELECT + 71 + - - 23 + + - col2 * + ( + col2 ) + + 10 * - 37 AS col2 FROM tab2 AS cor0
----
-1876
-3640
-805

query I rowsort
SELECT + col2 + - 49 AS col0 FROM tab0 AS cor0
----
-2
-39
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT DISTINCT + - 74 * 52 DIV + COUNT( * ) + - 15 AS col0 FROM tab1 AS cor0
----
-1297

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + - 74 * 52 / + COUNT ( * ) + - 15 AS col0 FROM tab1 AS cor0
----
-1297

query I rowsort
SELECT ALL - 20 FROM tab2 WHERE NOT - 44 IS NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT MAX( DISTINCT + + ( + col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6097
SELECT MAX ( DISTINCT + + ( + col1 ) ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - COUNT( * ) * - 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6098
SELECT - COUNT ( * ) * - 19 FROM tab2
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT DISTINCT 11 DIV + col1 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT 11 / + col1 FROM tab1
----
0
2

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6102
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 57 - + col0 / - col2 + col2 = col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-6102
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 57 - + col0 / - col2 + col2 = col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + MAX( - ( - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + MAX ( - ( - col1 ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 + - col1 IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, + 38 AS col2 FROM tab0 AS cor0
----
1
38
21
38
81
38

query II rowsort
SELECT DISTINCT - ( - col2 ) * - col0, 51 AS col1 FROM tab2 AS cor0
----
-1058
51
-2560
51
-4350
51

query I rowsort
SELECT - 19 + + + col1 / + col2 FROM tab2 AS cor0 WHERE NOT NULL < ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, + col1 FROM tab1 AS cor0 WHERE 98 = 70 - - col0 * - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT DISTINCT + 31 DIV + - 98 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col2 AND - col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + 31 / + - 98 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col2 AND - col2 * - col1
----
0

query II rowsort
SELECT ALL col0 AS col0, + 78 FROM tab1 AS cor0
----
51
78
85
78
91
78

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6115
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( - col2 )
----
0

query I rowsort
SELECT DISTINCT col1 * - 89 AS col0 FROM tab2
----
-4539
-5963
-6853

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT IN ( + col1, - 95, 38, + 74, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 13 + - col2 FROM tab1
----
-109
-72
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 32 + + col0 * - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 32 + + col0 * - - col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT ALL + 45 + + 39 * - SUM( DISTINCT - + col2 ) col1, MAX( ALL - - col1 ) FROM tab0
----
6129
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6120
SELECT ALL + 45 + + 39 * - SUM ( DISTINCT - + col2 ) col1, MAX ( ALL - - col1 ) FROM tab0
----
6129
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 66 + 15 + + col2 ) < ( - - col0 )
----

query I rowsort
SELECT DISTINCT - 96 * + 0 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT - - 28 * + 56 AS col1, - 56 + - + col0 FROM tab0 AS cor0
----
1568
-143
1568
-153
1568
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 <= NULL
----

query I rowsort
SELECT + + col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - 2 IS NULL
----

query I rowsort
SELECT ( + 30 ) AS col2 FROM tab2 cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT + col1 - - col0 DIV - + col1 AS col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-6128
SELECT + col1 - - col0 / - + col1 AS col1 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 77 * + col0 <> - col1 * + col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT ALL 34 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL 34 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT + CAST( - - 30 AS SIGNED ) AS col0 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6132
SELECT + CAST ( - - 30 AS INTEGER ) AS col0 FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT DISTINCT + ( + + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 22 * + col0 - - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT + 22 * - - MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-1782

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT + 22 * - - MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-1782

query I rowsort
SELECT ALL - 64 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 + 33 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT + MAX( - col1 ) * 24 AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6140
SELECT + MAX ( - col1 ) * 24 AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-6141
SELECT + - 8 DIV 97 AS col1, + 7 * - 58 FROM tab0 AS cor0
----
0
-406
0
-406
0
-406

skipif mysql # not compatible
query II rowsort label-6141
SELECT + - 8 / 97 AS col1, + 7 * - 58 FROM tab0 AS cor0
----
0
-406
0
-406
0
-406

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + 68 * + 89 * col1
----

query I rowsort
SELECT - + col2 * - - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 58 col0, - col2 AS col2 FROM tab2 AS cor0
----
2668
-23
3712
-40
4350
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + - 39 IS NOT NULL
----

query I rowsort
SELECT - - col1 + + + ( + 41 ) AS col2 FROM tab2 cor0
----
108
118
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT COUNT( - - CAST( + + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT COUNT ( - - CAST ( + + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL - SUM( DISTINCT col1 ) + COUNT( DISTINCT - 42 ) + - 85 * + COUNT( * ) + 96 * - + SUM( ALL + + col0 ) AS col0 FROM tab0 WHERE - col0 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL - SUM ( DISTINCT col1 ) + COUNT ( DISTINCT - 42 ) + - 85 * + COUNT ( * ) + 96 * - + SUM ( ALL + + col0 ) AS col0 FROM tab0 WHERE - col0 > + col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 56 >= 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + 15 + + col0 AS col0 FROM tab1
----
105
153
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 14 + + + 25 + 27 + col1 col1 FROM tab0
----
66
66
66

query II rowsort
SELECT col0 AS col0, 74 AS col2 FROM tab1
----
51
74
85
74
91
74

query II rowsort
SELECT DISTINCT ( + 20 ) * - + col1 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-1020
23
-1340
58
-1540
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - col0 AS col0, + col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT col1 DIV 65 + col0 + col0 * + - col0 FROM tab2
----
-2070
-4031
-5549

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT col1 / 65 + col0 + col0 * + - col0 FROM tab2
----
-2070
-4031
-5549

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6157
SELECT * FROM tab0 WHERE + col0 BETWEEN + CAST( NULL AS DECIMAL ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-6157
SELECT * FROM tab0 WHERE + col0 BETWEEN + CAST ( NULL AS REAL ) AND + - col2
----

query I rowsort
SELECT ALL 22 + - col1 FROM tab1 AS cor0
----
-25
17
8

query I rowsort
SELECT DISTINCT - 85 - - + col2 AS col2 FROM tab0 AS cor0
----
-38
-75
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT - - CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT - - CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT DISTINCT - col0 * 96 / + col1 + ( 84 ) - col2 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT - col0 * 96 / + col1 + ( 84 ) - col2 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6162
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 30 * CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6162
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 30 * CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 87 * - col1 * + 50 + - 7 NOT BETWEEN + 58 + - col0 AND 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 45 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - MIN( 13 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-6165
SELECT - MIN ( 13 ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - COUNT( + + col2 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6166
SELECT ALL - COUNT ( + + col2 ) col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6167
SELECT CAST( + col2 AS SIGNED ) * - 78 AS col2, + col0 DIV - 19 AS col2 FROM tab1
----
-4602
-4
-5304
-4
-7488
-2

skipif mysql # not compatible
query II rowsort label-6167
SELECT CAST ( + col2 AS INTEGER ) * - 78 AS col2, + col0 / - 19 AS col2 FROM tab1
----
-4602
-4
-5304
-4
-7488
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 * - col1 BETWEEN + - 17 / - col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-6168
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 * - col1 BETWEEN + - 17 / - col1 AND NULL
----
3

query I rowsort
SELECT ( 1 ) FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT 1 DIV - - col0 * - - ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT 1 / - - col0 * - - ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 54 * + - col0 AS col2 FROM tab1 cor0
----
-2754
-4590
-4914

query I rowsort
SELECT DISTINCT - ( 14 ) AS col1 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL COUNT( * ) * + ( + 37 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL COUNT ( * ) * + ( + 37 ) FROM tab1
----
111

query I rowsort
SELECT DISTINCT - 67 * + col2 FROM tab0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6175
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6176
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 - + CAST( + + col2 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-6176
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 - + CAST ( + + col2 AS INTEGER ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 / + col1 > col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6178
SELECT ALL + CAST( - col0 AS SIGNED ) AS col1, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col1, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL - 73 FROM tab1 cor0
----
-73
-73
-73

query II rowsort
SELECT ALL - col1, col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6181
SELECT - MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT 29 AS col2, col0 * 76 AS col0 FROM tab0 AS cor0
----
29
1140
29
6612
29
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - COUNT( - - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6183
SELECT - COUNT ( - - col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL col1 / + - col2 + - col2 AS col2 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6185
SELECT 80 * - CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-6185
SELECT 80 * - CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + col1 = + 63
----

query I rowsort
SELECT ALL col0 * + 99 * + + col2 + col1 * col1 FROM tab0
----
76356
86571
950698

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT - 35 + + + COUNT( * ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT - 35 + + + COUNT ( * ) AS col2 FROM tab2
----
-32

query I rowsort
SELECT ( - + col0 ) + ( + + col0 ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL + COUNT( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + COUNT ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 59 + + + col2 FROM tab0 AS cor0
----
-12
-49
40

query II rowsort
SELECT - col2 * - col2 - col1 + + col0 * - col2, + col0 FROM tab2 AS cor0
----
-1037
64
-1053
75
-580
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT - col0 DIV + - col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT - col0 / + - col0 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT 59 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query II rowsort
SELECT DISTINCT col0, col0 * - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6197
SELECT - + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col1 AS col0, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6199
SELECT ALL + - col0, - col2 DIV - col1 col0 FROM tab1 AS cor0
----
-51
6
-85
11
-91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6199
SELECT ALL + - col0, - col2 / - col1 col0 FROM tab1 AS cor0
----
-51
6
-85
11
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + 90 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6200
SELECT + 90 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query II rowsort label-6201
SELECT + col1, + col1 DIV 10 AS col0 FROM tab1 cor0
----
14
1
47
4
5
0

skipif mysql # not compatible
query II rowsort label-6201
SELECT + col1, + col1 / 10 AS col0 FROM tab1 cor0
----
14
1
47
4
5
0

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( - col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE - - 34 + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE - - 34 + - col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - 49 col1 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6206
SELECT ALL * FROM tab2 WHERE NOT col1 + - 42 >= + CAST( + + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6206
SELECT ALL * FROM tab2 WHERE NOT col1 + - 42 >= + CAST ( + + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6207
SELECT ALL COUNT( * ) DIV - 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL COUNT ( * ) / - 65 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 20 < NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + col0 / - - col1 IS NULL
----
51
67
77

query II rowsort
SELECT + ( - 20 ) AS col2, ( + col0 ) - - col2 FROM tab2 cor0
----
-20
104
-20
133
-20
69

query I rowsort
SELECT ALL + col0 * - 78 + - col0 * - col1 FROM tab0
----
-4959
-7469
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) + - 64 + + - COUNT( * ) + - 95 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) + - 64 + + - COUNT ( * ) + - 95 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) * - col1 * - col2 + col2 * - + col0 * - + col1 col2 FROM tab0 cor0
----
-121824
-198
16170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6214
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) + 31, - 59 AS col0 FROM tab2 AS cor0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-6214
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 31, - 59 AS col0 FROM tab2 AS cor0
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - + 65 + - 49 + - SUM( + 62 ) col0 FROM tab2 AS cor0
----
-300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6215
SELECT - + 65 + - 49 + - SUM ( + 62 ) col0 FROM tab2 AS cor0
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT ALL + 27, 7 + - ( - + 20 ) * ( - 6 ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
27
367

skipif mysql # not compatible
query II rowsort label-6216
SELECT ALL + 27, 7 + - ( - + 20 ) * ( - 6 ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
27
367

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL + MAX( - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL + MAX ( - col0 ) FROM tab1 cor0
----
-51

query II rowsort
SELECT - col2 + col1 * - col2, 33 AS col2 FROM tab1 cor0
----
-1440
33
-3264
33
-354
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col1 + - col0 AS col1, + 96 col0 FROM tab0 AS cor0
----
1
96
21
96
81
96

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL + SUM( + col2 ) + - COUNT( * ) * + COUNT( * ) FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + SUM ( + col2 ) + - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - - col0 + - - col2 - + col1 * + + col0 col2 FROM tab2
----
-2261
-4808
-4876

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 / - 34 IS NULL
----

query I rowsort
SELECT ALL ( 72 ) + + - col2 FROM tab1
----
-24
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT - col1 + + CAST( col0 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - col1 + + CAST ( col0 AS INTEGER ) FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + COUNT( * ) + - 62 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + COUNT ( * ) + - 62 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ( ( - + COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6227
SELECT ( ( - + COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT col0 * col2 * 5 FROM tab2
----
12800
21750
5290

query II rowsort
SELECT ALL - col1 AS col2, + col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT - COUNT( * ) * 60 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-6230
SELECT - COUNT ( * ) * 60 FROM tab0
----
-180

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - COUNT( col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6233
SELECT - COUNT ( col2 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 53 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT + + CAST( 1 AS SIGNED ) AS col0, - col2 FROM tab2 AS cor0
----
1
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-6235
SELECT + + CAST ( 1 AS INTEGER ) AS col0, - col2 FROM tab2 AS cor0
----
1
-23
1
-40
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL + MIN( + 20 ) * - ( 9 ) * + + 67 + + COUNT( * ) col1 FROM tab0 AS cor0
----
-12057

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6236
SELECT ALL + MIN ( + 20 ) * - ( 9 ) * + + 67 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-12057

query I rowsort
SELECT ALL 69 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col1 * - 24 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT col0 * - 89 AS col1 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6240
SELECT - col2 AS col1, - CAST( NULL AS SIGNED ) - - - col0 + col2 * + + col0 + col0 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6240
SELECT - col2 AS col1, - CAST ( NULL AS INTEGER ) - - - col0 + col2 * + + col0 + col0 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT ALL col1 * - 34 AS col0 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - 53 * + COUNT( * ) FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 53 * + COUNT ( * ) FROM tab2
----
-159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT - MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT - MIN ( + col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col1 * - + col2 * 44 * + - col1 AS col2 FROM tab1 AS cor0
----
64900
6609328
827904

query II rowsort
SELECT + 63 AS col0, col1 / - col1 FROM tab2 cor0 WHERE NOT NULL = 65
----

query I rowsort
SELECT - 80 * + col2 + + col2 + - col0 * - 61 AS col2 FROM tab0 cor0
----
-1904
-2798
4517

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - col1, 56 * + - col2, col1, - col0, + - ( col0 ) )
----

query I rowsort
SELECT DISTINCT 59 * + col1 * - + col2 + + 58 + + col1 FROM tab1
----
-17342
-188459
-79224

query I rowsort
SELECT DISTINCT col0 + + - col2 * - col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT - MAX( DISTINCT - 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - MAX ( DISTINCT - 54 ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT ALL col2 - 97 FROM tab1 AS cor0
----
-1
-29
-38

query I rowsort
SELECT ALL + + col2 * + - 57 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT - 54 * + 2 AS col1 FROM tab0 AS cor0
----
-108
-108
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) * 77 * - col0 col0 FROM tab1 AS cor0
----
376992
386155
476476

query I rowsort
SELECT ( 17 ) FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT 39 - - col0 - + col2 FROM tab2
----
56
62
63

query I rowsort
SELECT 47 * - 65 * + 48 - - 76 AS col1 FROM tab2
----
-146564
-146564
-146564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT - col1 * - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT - col1 * - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT ALL - 34 - + + col0 DIV - - col2 FROM tab0
----
-34
-34
-42

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - 34 - + + col0 / - - col2 FROM tab0
----
-34
-34
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + COUNT( * ) + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6261
SELECT + COUNT ( * ) + 84 FROM tab1
----
87

query I rowsort
SELECT ALL col1 + - - ( - 85 ) + - + col2 AS col1 FROM tab2 AS cor0
----
-48
-57
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT ALL 76 DIV 40 * - 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 76 / 40 * - 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + - 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6265
SELECT DISTINCT + col1, + CAST( NULL AS SIGNED ) + - + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6265
SELECT DISTINCT + col1, + CAST ( NULL AS INTEGER ) + - + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6266
SELECT + col2 col0, col2 DIV col1 DIV + col1 FROM tab2 cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6266
SELECT + col2 col0, col2 / col1 / + col1 FROM tab2 cor0
----
23
0
40
0
58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL - col1 DIV 71 - + 25 FROM tab2 AS cor0
----
-25
-25
-26

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - col1 / 71 - + 25 FROM tab2 AS cor0
----
-25
-25
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 36 <= NULL
----

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-50

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ALL - ( + 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col1 AS col0, 80 col2, + col2 - + - col0 + + - col0 FROM tab1 AS cor0
----
9 values hashing to 60e9fc83061aad25af45ed2327780de1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - - col1 * - 6 + 46 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT - col1 DIV - col2 FROM tab2 WHERE NOT col2 IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6274
SELECT - col1 / - col2 FROM tab2 WHERE NOT col2 IS NULL
----
1
1
2

query I rowsort
SELECT 54 * + col1 * - col2 + 98 + + col2 AS col1 FROM tab2
----
-166182
-209688
-63221

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6277
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + + ( - 3 ) - - - 24 + + + col2 FROM tab2 AS cor0
----
-4
13
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6279
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + 50 FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 3 - + ( - ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT - col2 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6282
SELECT ALL - CAST( NULL AS SIGNED ), + col2 * 3 AS col0 FROM tab0 AS cor0
----
NULL
141
NULL
297
NULL
30

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL - CAST ( NULL AS INTEGER ), + col2 * 3 AS col0 FROM tab0 AS cor0
----
NULL
141
NULL
297
NULL
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ALL + COUNT( * ) DIV 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + COUNT ( * ) / 96 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - SUM( DISTINCT - + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6284
SELECT - SUM ( DISTINCT - + col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT ALL CAST( + - 75 AS SIGNED ) + - COUNT( DISTINCT col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL CAST ( + - 75 AS INTEGER ) + - COUNT ( DISTINCT col1 ) FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - COUNT( * ) * ( - 34 ) AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-6287
SELECT - COUNT ( * ) * ( - 34 ) AS col2 FROM tab1
----
102

query I rowsort
SELECT ALL ( col2 ) - col0 AS col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT ALL * FROM tab1 WHERE + 1 IS NULL
----

query I rowsort
SELECT ALL + col0 * + col1 + - col2 FROM tab2
----
2323
4888
4967

query II rowsort
SELECT DISTINCT 28 - + - col0, - col2 + + 63 AS col0 FROM tab1
----
113
4
119
-5
79
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 * + - col1 NOT BETWEEN 89 - - ( + 97 ) AND NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NULL >= + col2 + - 50 * col0
----

query I rowsort
SELECT ALL - + col1 * - 33 FROM tab2 AS cor0
----
1683
2211
2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6295
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 19 AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6295
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 19 AS col1 FROM tab0
----
57

query II rowsort
SELECT + col0 AS col0, + col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT + - CAST( - 40 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif mysql # not compatible
query I rowsort label-6297
SELECT + - CAST ( - 40 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 63, - 93 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-63
-93

query I rowsort
SELECT DISTINCT + + col1 * + col2 + + col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT ALL + col1, + col0 AS col2 FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + ( + 31 ) FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - col1 + - + 57 FROM tab1 AS cor0
----
-104
-62
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL + 6 DIV + ( 75 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + 6 / + ( 75 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT + 67 * 4 FROM tab0
----
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - ( + + 29 ) FROM tab0
----
-15
-29
-87
-29
-97
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT 29 = col2 / + - col2 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT DISTINCT - col0 DIV col2 * + col0 + + 83 FROM tab2
----
-9
19
8

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - col0 / col2 * + col0 + + 83 FROM tab2
----
-9
19
8

query II rowsort
SELECT 99 AS col0, + col0 AS col0 FROM tab0
----
99
15
99
87
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( + - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col0 + col0 + + + ( - + col1 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 44 FROM tab0
----
-43
-53
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL - 28 + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - 28 + COUNT ( * ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT 43 AS col2 FROM tab2 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6315
SELECT ALL + col2 - 32 AS col2, + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-22
21
15
81
67
1

skipif mysql # not compatible
query II rowsort label-6315
SELECT ALL + col2 - 32 AS col2, + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-22
21
15
81
67
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 4 * col0 * - ( + - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT 69 * - 27 * col1 * + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) - - + col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT 69 * - 27 * col1 * + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) - - + col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 - - + 6 + + + 7 * col0 AS col0 FROM tab2 AS cor0
----
282
390
456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + 44 + - col2 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + + MAX( DISTINCT - col1 ) - COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + MAX ( DISTINCT - col1 ) - COUNT ( * ) FROM tab2 AS cor0
----
-54

query I rowsort
SELECT ALL - col0 * col2 + + 56 FROM tab2
----
-1002
-2504
-4294

query I rowsort
SELECT 52 * - ( + col1 ) + + col0 FROM tab0
----
-1005
-4197
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT - 79 + + 44 * - 10 * 93 AS col0, + MIN( ALL - col0 ) FROM tab2 WHERE NOT NULL <= NULL
----
-40999
NULL

skipif mysql # not compatible
query II rowsort label-6323
SELECT - 79 + + 44 * - 10 * 93 AS col0, + MIN ( ALL - col0 ) FROM tab2 WHERE NOT NULL <= NULL
----
-40999
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * MAX( - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * MAX ( - col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + ( col0 ) AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - 26 * + col0 AS col2 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT 62 + COUNT( - col0 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-6327
SELECT 62 + COUNT ( - col0 ) FROM tab2
----
65

query I rowsort
SELECT ALL 23 + 3 AS col2 FROM tab0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT MAX( ALL 2 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT MAX ( ALL 2 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT MAX( ALL + 46 ) AS col0 FROM tab0 WHERE NOT + col0 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT MAX ( ALL + 46 ) AS col0 FROM tab0 WHERE NOT + col0 * + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col1 FROM tab1 WHERE NOT col0 * col0 + + col1 IS NULL
----
-425
-4277
-714

query I rowsort
SELECT 19 * - col2 + col0 AS col0 FROM tab1
----
-1036
-1201
-1773

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col1 >= - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN ( col1 ) AND col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT - CAST( 48 AS SIGNED ) * 74 AS col0 FROM tab1
----
-3552
-3552
-3552

skipif mysql # not compatible
query I rowsort label-6337
SELECT - CAST ( 48 AS INTEGER ) * 74 AS col0 FROM tab1
----
-3552
-3552
-3552

query I rowsort
SELECT 3 * 54 AS col0 FROM tab0
----
162
162
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6339
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( + col0 * CAST( NULL AS DECIMAL ) ) BETWEEN - col2 AND ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( + col0 * CAST ( NULL AS REAL ) ) BETWEEN - col2 AND ( + col0 )
----
0

query I rowsort
SELECT DISTINCT - col1 * + col2 - - 14 AS col2 FROM tab1
----
-1330
-281
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT SUM( ALL col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT SUM ( ALL col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6342
SELECT col1 AS col2 FROM tab1 WHERE + CAST( CAST( col1 AS SIGNED ) AS DECIMAL ) IN ( col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-6342
SELECT col1 AS col2 FROM tab1 WHERE + CAST ( CAST ( col1 AS INTEGER ) AS REAL ) IN ( col2 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 11
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE 84 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ( - MAX( - col0 ) ) * SUM( DISTINCT col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT ( - MAX ( - col0 ) ) * SUM ( DISTINCT col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT SUM( - col0 ) * ( 95 ) AS col1 FROM tab2
----
-17575

skipif mysql # not compatible
query I rowsort label-6346
SELECT SUM ( - col0 ) * ( 95 ) AS col1 FROM tab2
----
-17575

query I rowsort
SELECT DISTINCT col0 * - col1 + - col0 AS col1 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL + 45 * - COUNT( * ) + COUNT( * ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + 45 * - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL MAX( ALL - col0 ) AS col0 FROM tab2 WHERE - col1 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL MAX ( ALL - col0 ) AS col0 FROM tab2 WHERE - col1 + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT - MIN( - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT - MIN ( - col2 ) FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT 29 DIV 41 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT 29 / 41 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 62 col1 FROM tab0 cor0
----
2914
6138
620

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT 39 DIV - col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT 39 / - col2 FROM tab2 cor0
----
-1
0
0

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-6355
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 34 + 59 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6355
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 34 + 59 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT DISTINCT - CAST( + 9 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 / 27 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - CAST ( + 9 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 / 27 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 + + col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6359
SELECT - CAST( - ( 38 ) AS SIGNED ) - 29 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-6359
SELECT - CAST ( - ( 38 ) AS INTEGER ) - 29 FROM tab2
----
9
9
9

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( col0 )
----

query I rowsort
SELECT ALL 29 - 29 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT BETWEEN col1 AND - col1 + 45
----
91
47
68

query I rowsort
SELECT 13 * 16 + col1 FROM tab2
----
259
275
285

query I rowsort
SELECT DISTINCT 14 - - 24 * + col1 AS col0 FROM tab2
----
1238
1622
1862

query I rowsort
SELECT + 40 * + 61 + - col2 * + ( - 54 ) AS col0 FROM tab2 AS cor0
----
3682
4600
5572

query I rowsort
SELECT - 68 + col0 AS col1 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL COUNT( * ) - - SUM( col2 ) AS col1 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL COUNT ( * ) - - SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
226

query I rowsort
SELECT DISTINCT - col0 - + 16 AS col2 FROM tab1 cor0
----
-101
-107
-67

query I rowsort
SELECT col2 + + col0 FROM tab1 AS cor0 WHERE ( - col2 + + 51 ) NOT IN ( 38 )
----
144
147
159

query I rowsort
SELECT ALL - + col1 - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col1 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) = NULL
----

query I rowsort
SELECT ( + 11 ) * + col1 AS col1 FROM tab0
----
11
231
891

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 34 NOT BETWEEN ( col1 ) AND - col0
----

query I rowsort
SELECT DISTINCT 62 * - + col1 * - 34 AS col1 FROM tab2
----
107508
141236
162316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - col2 col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 41 * - - col2 FROM tab1
----
2419
2788
3936

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT SUM( DISTINCT + 25 ) col0 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6380
SELECT SUM ( DISTINCT + 25 ) col0 FROM tab0
----
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 41 - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= + 32
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6384
SELECT DISTINCT CAST( NULL AS DECIMAL ), 79 + - col0 col0 FROM tab1
----
NULL
-12
NULL
-6
NULL
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6384
SELECT DISTINCT CAST ( NULL AS REAL ), 79 + - col0 col0 FROM tab1
----
NULL
-12
NULL
-6
NULL
28

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 / col2 + + 61 >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT col1 + - ( - + CAST( NULL AS SIGNED ) ) + + col2 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT col1 + - ( - + CAST ( NULL AS INTEGER ) ) + + col2 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6389
SELECT DISTINCT + - SUM( - + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + - SUM ( - + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT - CAST( 48 AS SIGNED ) FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6390
SELECT - CAST ( 48 AS INTEGER ) FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( col0 * - col1 + - ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL col1 * + CAST( + + 10 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
140
470
50

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL col1 * + CAST ( + + 10 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT ALL - + col0 * + col0 + - - 17 + CAST( + 79 AS SIGNED ) * 83 col0 FROM tab0 AS cor0
----
-2835
-995
6349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6395
SELECT ALL - + col0 * + col0 + - - 17 + CAST ( + 79 AS INTEGER ) * 83 col0 FROM tab0 AS cor0
----
-2835
-995
6349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT 29 DIV ( MIN( ALL + - col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT 29 / ( MIN ( ALL + - col0 ) ) FROM tab2
----
0

query I rowsort
SELECT - col2 * - + 45 FROM tab0
----
2115
4455
450

query I rowsort
SELECT DISTINCT - ( + + col2 ) + 41 + col0 AS col2 FROM tab1
----
-4
64
67

query I rowsort
SELECT ALL ( + 7 ) + col2 + - col1 FROM tab2
----
-2
-21
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT 53 + - COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT 53 + - COUNT ( * ) FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - col1 + 4 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6403
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 64 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6403
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 64 * CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 + - 98 * col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + - 98 FROM tab2
----
-23
-34
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 * - 44 = NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT 17 - - 47 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE 16 <= - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * col2 col2 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6411
SELECT - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, col1 * - col1 FROM tab2 AS cor0
----
46
-2601
64
-5929
75
-4489

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( NULL ) AND - - col2 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6415
SELECT COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + col1 ) NOT BETWEEN - ( 54 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 23 - - col1 * col1 + + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - + 55, + col2 FROM tab1 AS cor0
----
-55
59
-55
68
-55
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT + MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT + MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL - 11 FROM tab0 WHERE + col1 IN ( col2 / + - col0 )
----

query I rowsort
SELECT ALL + 76 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL - - col0 / + ( + col2 ) - - ( + col2 ) * + col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT + COUNT( * ) + - ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT + COUNT ( * ) + - ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT 56 * - - 20 + - col1 AS col0 FROM tab1 AS cor0
----
1073
1106
1115

query I rowsort
SELECT + col1 + + ( 89 ) AS col2 FROM tab2 AS cor0
----
140
156
166

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6429
SELECT + 57 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IN ( + + 30 )
----

skipif mysql # not compatible
query I rowsort label-6429
SELECT + 57 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) IN ( + + 30 )
----

query I rowsort
SELECT DISTINCT + + col1 * - col1 * col2 + - 85 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT 96 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col2 ) + - col0 + + 24 FROM tab0
----
-172
-38
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT MIN( DISTINCT 21 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6433
SELECT MIN ( DISTINCT 21 ) AS col0 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT + MAX( 30 ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6434
SELECT + MAX ( 30 ) AS col0 FROM tab2
----
30

query I rowsort
SELECT - - col0 * - 58 * col1 FROM tab0 AS cor0
----
-105966
-5626
-70470

query I rowsort
SELECT + ( + col1 ) * - 75 FROM tab0 AS cor0
----
-1575
-6075
-75

query I rowsort
SELECT + - ( + col2 ) * 13 FROM tab2 AS cor0
----
-299
-520
-754

query I rowsort
SELECT ALL + + col2 * 81 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT SUM( - + col0 ) * + 88 AS col0 FROM tab1 AS cor0
----
-19976

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT SUM ( - + col0 ) * + 88 AS col0 FROM tab1 AS cor0
----
-19976

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT + col2 DIV - - 80 + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-6440
SELECT + col2 / - - 80 + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT DISTINCT 33 * col1 DIV 98 FROM tab0 AS cor0
----
0
27
7

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT 33 * col1 / 98 FROM tab0 AS cor0
----
0
27
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT ALL SUM( ALL + + ( - + 20 ) ) + 13 AS col0, - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 + - 6 >= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6444
SELECT ALL SUM ( ALL + + ( - + 20 ) ) + 13 AS col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 + - 6 >= NULL
----
NULL
0

query I rowsort
SELECT ALL 79 AS col1 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 54 FROM tab2 WHERE NOT ( - - ( + col0 ) ) IN ( col1 * + + col2 )
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT + MAX( ALL - col0 ) * + 82 AS col1 FROM tab0
----
-1230

skipif mysql # not compatible
query I rowsort label-6448
SELECT + MAX ( ALL - col0 ) * + 82 AS col1 FROM tab0
----
-1230

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 99
----

query I rowsort
SELECT - ( + 26 ) FROM tab0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL - COUNT( 1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - COUNT ( 1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT ALL + COUNT( * ) AS col0, MIN( DISTINCT - ( - col2 ) ) FROM tab1 cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL + COUNT ( * ) AS col0, MIN ( DISTINCT - ( - col2 ) ) FROM tab1 cor0
----
3
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col1 * + 34 ) NOT BETWEEN col1 + + - col2 * + 96 AND NULL
----

query I rowsort
SELECT + 82 * + 51 + - col1 FROM tab2
----
4105
4115
4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT - col0 + + ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-6456
SELECT - col0 + + ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT 58 + + - COUNT( - 86 ) AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6457
SELECT 58 + + - COUNT ( - 86 ) AS col2 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 / - - ( - + col2 ) / + + ( - 35 ) + - + col1 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 / - - ( - + col2 ) / + + ( - 35 ) + - + col1 * + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6459
SELECT - CAST( - 39 AS SIGNED ) * + + col0 * + col0, col2 * ( - - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
159744
1677
219375
3431
82524
580

skipif mysql # not compatible
query II rowsort label-6459
SELECT - CAST ( - 39 AS INTEGER ) * + + col0 * + col0, col2 * ( - - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
159744
1677
219375
3431
82524
580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - col2 / - 29 + - col2 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT - - COUNT( + - ( + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6461
SELECT - - COUNT ( + - ( + col0 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL - CAST( - + 83 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
1162
3901
415

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - CAST ( - + 83 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
1162
3901
415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 76 col2 FROM tab2 AS cor0
----
18
36
53

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( 24 + + + 38 ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT - 96 + - col1 + - 99 * - - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - 96 + - col1 + - 99 * - - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + ( + - col0 ) * + col2 * col1 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 96 col1 FROM tab1
----
-28
-37
0

query III rowsort
SELECT * FROM tab2 WHERE + 92 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( + col1 ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( + col1 ) * + + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT SUM( DISTINCT - + 85 ) + + ( 22 ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT SUM ( DISTINCT - + 85 ) + + ( 22 ) AS col0 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL 46 + + COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL 46 + + COUNT ( * ) FROM tab0
----
49

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 * - col2 >= ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + - MAX( DISTINCT - - col0 ) + ( + + 78 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + - MAX ( DISTINCT - - col0 ) + ( + + 78 ) FROM tab0 AS cor0
----
-19

query II rowsort
SELECT DISTINCT - col2, + col2 - + col2 AS col2 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT 75 DIV + + col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6476
SELECT 75 / + + col1 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT + SUM( + col1 ) * 29 FROM tab2
----
5655

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + SUM ( + col1 ) * 29 FROM tab2
----
5655

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 26 IS NULL )
----

query I rowsort
SELECT ALL ( + + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + - col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + - col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 40 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-40

query I rowsort
SELECT ALL col1 * + 38 AS col1 FROM tab1 AS cor0
----
1786
190
532

query I rowsort
SELECT + + ( 3 ) AS col0 FROM tab2 AS cor0 WHERE NOT 78 * col2 IS NULL
----
3
3
3

query II rowsort
SELECT ALL + 8 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
8
46
8
64
8
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + COUNT( - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6485
SELECT + COUNT ( - - col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 AS col1, - col1 col1 FROM tab2 AS cor0
----
59
-51
59
-67
59
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT - 64 * - MIN( DISTINCT + col1 ) FROM tab2
----
3264

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 64 * - MIN ( DISTINCT + col1 ) FROM tab2
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 29 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT COUNT( * ) * + 32 AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT COUNT ( * ) * + 32 AS col2 FROM tab2
----
96

query II rowsort
SELECT ALL ( + - col2 ), + col1 * - + col0 AS col1 FROM tab2
----
-23
-2346
-40
-4928
-58
-5025

query I rowsort
SELECT + 51 * - - 6 + col2 FROM tab0 AS cor0
----
316
353
405

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT DISTINCT - col0 DIV 78 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - col0 / 78 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col0 * 31 AS col2 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT + 92 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - 36 + 7 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-29

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 * - 36 + - 14 - - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 * - 36 + - 14 - - - col2 IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - 45 ) IS NOT NULL
----

query I rowsort
SELECT + + 2 + + col2 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - + COUNT( * ) + + 90 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6503
SELECT - + COUNT ( * ) + + 90 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL SUM( DISTINCT - 59 ) col2 FROM tab2 AS cor0 WHERE NOT - 97 - 16 + + col1 * - col1 IS NULL
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6504
SELECT ALL SUM ( DISTINCT - 59 ) col2 FROM tab2 AS cor0 WHERE NOT - 97 - 16 + + col1 * - col1 IS NULL
----
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6506
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-6506
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
3
3

query II rowsort
SELECT col0 AS col0, ( - col2 ) FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT - col2 * + 35 + 87 FROM tab0
----
-1558
-263
-3378

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + COUNT( * ) - + + 30 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6509
SELECT + COUNT ( * ) - + + 30 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL - + 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col0 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + col1 * + + col2 / - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT - MAX( + 72 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-6513
SELECT - MAX ( + 72 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT ALL + 83 + + col2 FROM tab1 WHERE + 35 / col0 >= col0 + - col2
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6515
SELECT + COUNT( * ) * - - 55, + CAST( NULL AS SIGNED ) col0 FROM tab1
----
165
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6515
SELECT + COUNT ( * ) * - - 55, + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
165
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6516
SELECT ALL + col2 * - - CAST( col0 AS SIGNED ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
705
47
870
10
9603
99

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL + col2 * - - CAST ( col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
705
47
870
10
9603
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - ( - 71 ) * + col1 AS col1 FROM tab1 AS cor0
----
3337
355
994

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT + MAX( - 32 ) AS col2 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + MAX ( - 32 ) AS col2 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col0 * - col1 + 5 AS col1 FROM tab2 AS cor0
----
2351
4933
5030

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT col2 * ( - col1 ), + 49 AS col1, + + col2 AS col2 FROM tab2
----
9 values hashing to b582a2550901391b0fa5c44b9b2b1195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 51, 18 col0 FROM tab1
----
-51
18
-51
18
-51
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT ALL 28 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 28 / + col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT 53 * + COUNT( * ) AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-6526
SELECT 53 * + COUNT ( * ) AS col1 FROM tab1
----
159

query II rowsort
SELECT ALL col2 AS col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - SUM( DISTINCT + 82 ) AS col2 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6528
SELECT - SUM ( DISTINCT + 82 ) AS col2 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT col1 + - + 77 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 / - 93 + col2, 37 * + + 6, col0 )
----

query I rowsort
SELECT 54 * - + 73 * col0 + 22 FROM tab0 AS cor0
----
-342932
-382352
-59108

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT DISTINCT CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 col2 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT ALL 69 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT 85 FROM tab1 AS cor0 WHERE NULL IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT + - ( + + 7 ) - + MIN( ALL - - 99 ) * + SUM( DISTINCT 52 ) AS col0 FROM tab2 cor0
----
-5155

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT + - ( + + 7 ) - + MIN ( ALL - - 99 ) * + SUM ( DISTINCT 52 ) AS col0 FROM tab2 cor0
----
-5155

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT + col0 DIV col0 - - col1 AS col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-6539
SELECT + col0 / col0 - - col1 AS col2 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT DISTINCT + - CAST( 13 AS SIGNED ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + - CAST ( 13 AS INTEGER ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + + col2 - + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT COUNT( * ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6542
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT + 53 - + 24 + - + COUNT( * ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6543
SELECT + 53 - + 24 + - + COUNT ( * ) AS col1 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT COUNT( * ) + + SUM( - col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-6544
SELECT COUNT ( * ) + + SUM ( - col1 ) FROM tab0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT - CAST( + col2 AS SIGNED ) FROM tab1 WHERE + CAST( col1 AS SIGNED ) NOT IN ( + + 40, col2 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6545
SELECT - CAST ( + col2 AS INTEGER ) FROM tab1 WHERE + CAST ( col1 AS INTEGER ) NOT IN ( + + 40, col2 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + + 62 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + + 62 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT COUNT( * ) + COUNT( * ) - - - MIN( DISTINCT + 6 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) - - - MIN ( DISTINCT + 6 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL + ( - COUNT( DISTINCT - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + ( - COUNT ( DISTINCT - col1 ) ) FROM tab0
----
-3

query II rowsort
SELECT ( + - col0 ), col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT + 7 * COUNT( * ) DIV 54 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT + 7 * COUNT ( * ) / 54 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT + + col1 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + - col0 - ( - - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col2, 33 - + col2 AS col0 FROM tab0 cor0
----
-1
-66
-21
23
-81
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT + col0 DIV - col2 + 57 AS col0 FROM tab2 AS cor0
----
55
56
56

skipif mysql # not compatible
query I rowsort label-6556
SELECT + col0 / - col2 + 57 AS col0 FROM tab2 AS cor0
----
55
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6557
SELECT ALL col0 AS col2, - CAST( NULL AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL col0 AS col2, - CAST ( NULL AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 + + col1 - - col0 + - - 27 * + 65 AND + col2 * + 11 * 77
----

query I rowsort
SELECT ALL 61 + - 27 + + col2 * col0 * - col1 AS col0 FROM tab1 AS cor0
----
-25041
-290802
-68510

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE - + 53 IS NULL
----

query II rowsort
SELECT DISTINCT - 26 * + col2 AS col1, + col0 AS col1 FROM tab0
----
-1222
15
-2574
97
-260
87

query I rowsort
SELECT ( col0 ) * + col0 + + 51 AS col1 FROM tab2
----
2167
4147
5676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT - MAX( DISTINCT + col0 ) DIV - 32 + + + MIN( col2 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-6563
SELECT - MAX ( DISTINCT + col0 ) / - 32 + + + MIN ( col2 ) FROM tab2
----
25

query I rowsort
SELECT - + 38 FROM tab1 cor0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT + - col2 DIV - 70 * col0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6565
SELECT + - col2 / - 70 * col0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - MAX ( col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT col0 * + 46 AS col1 FROM tab1 AS cor0
----
2346
3910
4186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT col0 FROM tab0 WHERE - 87 IN ( CAST( - + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6568
SELECT col0 FROM tab0 WHERE - 87 IN ( CAST ( - + col1 AS INTEGER ) )
----

query I rowsort
SELECT 76 + - 4 * 26 * + - 13 + - + col2 FROM tab1
----
1332
1360
1369

query I rowsort
SELECT 95 + - 38 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - - 55 * 8 + + 72 FROM tab1 AS cor0
----
512

query II rowsort
SELECT ALL - col2 AS col1, - col0 + + col1 * - 44 AS col1 FROM tab0 AS cor0
----
-10
-1011
-47
-3579
-99
-141

query I rowsort
SELECT ALL + 52 * col2 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + - 62 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6574
SELECT + - 62 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT ALL + + col0 - + col1 - + - col0 + - col2 FROM tab0 AS cor0
----
-98
143
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT - 93 - COUNT( * ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - 93 - COUNT ( * ) FROM tab2 AS cor0
----
-96

query II rowsort
SELECT col0 * col1, col1 AS col2 FROM tab0
----
1215
81
1827
21
97
1

query II rowsort
SELECT ALL + ( col0 ), + 40 AS col1 FROM tab1
----
51
40
85
40
91
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT 91 * + MAX( ALL + col0 ) * COUNT( * ) FROM tab0
----
26481

skipif mysql # not compatible
query I rowsort label-6579
SELECT 91 * + MAX ( ALL + col0 ) * COUNT ( * ) FROM tab0
----
26481

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6581
SELECT 14 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT 14 / - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - - ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT col1 DIV - 88 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT col1 / - 88 * col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6586
SELECT COUNT( * ) DIV + ( - ( + 96 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6586
SELECT COUNT ( * ) / + ( - ( + 96 ) ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - - 60 AS col1 FROM tab0 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6588
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) - - 86 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6588
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) - - 86 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * + col1 + - - col0 + col0 * - 53 * 68 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 86 ) = - 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 30 * col0 AS col1 FROM tab0 AS cor0
----
-2610
-2910
-450

query I rowsort
SELECT DISTINCT 30 + + col0 AS col2 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT ALL 22 + - 0 DIV - col1 * 71 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL 22 + - 0 / - col1 * 71 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL MAX( - - col1 ) + + SUM( - - col1 ) FROM tab2
----
272

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL MAX ( - - col1 ) + + SUM ( - - col1 ) FROM tab2
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + MIN( DISTINCT 5 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6596
SELECT + MIN ( DISTINCT 5 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT ALL - 3 + - 99 AS col0 FROM tab0
----
-102
-102
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6598
SELECT + MIN ( + col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6599
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6599
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT COUNT( * ) + + - 65 FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6600
SELECT COUNT ( * ) + + - 65 FROM tab2 cor0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT ALL 42 * 36 * + COUNT( - col0 ), - ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
4536
-3

skipif mysql # not compatible
query II rowsort label-6601
SELECT ALL 42 * 36 * + COUNT ( - col0 ), - ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
4536
-3

query I rowsort
SELECT DISTINCT - + col1 * + - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + ( + 21 ) + + + col2 * col2 AS col1 FROM tab1
----
3502
4645
9237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT DISTINCT ( - 40 ) + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT ( - 40 ) + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col2 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6606
SELECT + COUNT( * ) - + + COUNT( * ), + 8 DIV - 61 FROM tab0 cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-6606
SELECT + COUNT ( * ) - + + COUNT ( * ), + 8 / - 61 FROM tab0 cor0
----
0
0

query II rowsort
SELECT + + col1 - - 25, ( col0 ) AS col1 FROM tab0 AS cor0
----
106
15
26
97
46
87

query I rowsort
SELECT ALL + ( + 83 ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6609
SELECT - col1 * - + 3 AS col2, + ( + CAST( NULL AS SIGNED ) ) * - col0 * - - col1 AS col1 FROM tab1 AS cor0
----
141
NULL
15
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT - col1 * - + 3 AS col2, + ( + CAST ( NULL AS INTEGER ) ) * - col0 * - - col1 AS col1 FROM tab1 AS cor0
----
141
NULL
15
NULL
42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + + col2 DIV + col0 FROM tab1 cor0 WHERE NOT - 53 * - + col0 DIV + col2 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT + + col2 / + col0 FROM tab1 cor0 WHERE NOT - 53 * - + col0 / + col2 IS NULL
----
0
0
1

query II rowsort
SELECT ALL - col2 AS col1, - 79 FROM tab2
----
-23
-79
-40
-79
-58
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT ALL col1 DIV + col1 - + col2 + + + col1 AS col0 FROM tab1 WHERE ( col2 + col2 * + 8 ) IS NOT NULL
----
-20
-53
-81

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL col1 / + col1 - + col2 + + + col1 AS col0 FROM tab1 WHERE ( col2 + col2 * + 8 ) IS NOT NULL
----
-20
-53
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT 11 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT 11 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL - SUM( ALL - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - SUM ( ALL - col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL COUNT( * ) * - 66 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL COUNT ( * ) * - 66 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-3

query II rowsort
SELECT ALL + col1, 80 * col0 FROM tab0
----
1
7760
21
6960
81
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * 1 < col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6620
SELECT 45 col2, MAX( ALL - 66 ) * - MAX( + 76 ) + + SUM( col0 ) FROM tab0 AS cor0
----
45
5215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6620
SELECT 45 col2, MAX ( ALL - 66 ) * - MAX ( + 76 ) + + SUM ( col0 ) FROM tab0 AS cor0
----
45
5215

query I rowsort
SELECT ALL 53 * + col1 FROM tab2 AS cor0
----
2703
3551
4081

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT - SUM( - + ( - CAST( + + 28 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6623
SELECT - SUM ( - + ( - CAST ( + + 28 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT DISTINCT COUNT( * ) + 80 AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT COUNT ( * ) + 80 AS col2 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + COUNT( * ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE + ( 89 ) * 14 IS NULL
----

query I rowsort
SELECT DISTINCT 17 + + col2 * - + col0 * + ( - col1 ) * 36 + - col0 FROM tab1
----
10470022
2467550
902632

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - + col2 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col1 + + 16 AS col0 FROM tab2
----
67
83
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 35
----

query I rowsort
SELECT ALL + - ( col2 ) * + col1 - - 39 + - col0 AS col0 FROM tab1 AS cor0
----
-1356
-3248
-341

query I rowsort
SELECT ALL + col2 * - - col2 + + - 21 FROM tab2 AS cor0
----
1579
3343
508

query III rowsort
SELECT * FROM tab2 WHERE - + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT ALL col1 + - + col1 DIV 12 AS col2 FROM tab1
----
13
44
5

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL col1 + - + col1 / 12 AS col2 FROM tab1
----
13
44
5

query II rowsort
SELECT + col0 + + col1 AS col0, col2 FROM tab0
----
108
10
96
47
98
99

query I rowsort
SELECT + col0 + + + col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 86 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, ( - col1 ) FROM tab2 cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL ( + - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL ( + - COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + col0 > - - col2 * - - col0 + col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col1 FROM tab0
----
67
67
67

query I rowsort
SELECT DISTINCT 69 * + - col1 AS col0 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT MAX( DISTINCT + 81 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6647
SELECT MAX ( DISTINCT + 81 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT + 54 * CAST( 47 AS SIGNED ) + - - 33 AS col1 FROM tab0 AS cor0
----
2571

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + 54 * CAST ( 47 AS INTEGER ) + - - 33 AS col1 FROM tab0 AS cor0
----
2571

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - col1 + + 56 FROM tab1 WHERE NOT NULL > + 60 * - col2 * - + 84 + + 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 55, col2 + - 0 col0 FROM tab0 AS cor0
----
55
10
55
47
55
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 + 29 AND NULL
----

query I rowsort
SELECT - 47 FROM tab2 AS cor0 WHERE 18 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 71 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6655
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT + col0, 94 FROM tab0 AS cor0
----
15
94
87
94
97
94

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col1 * - + col0 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( + col0 ) + 87 + col0 FROM tab0
----
117
261
281

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 0 * - 16, 62, - col2, - col0 * col0 + col2 * 24 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL - COUNT( + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - COUNT ( + + col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT - + SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT - + SUM ( - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT - 6 * AVG ( ALL + + 33 ) + - 71 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT - 6 * AVG ( ALL + + 33 ) + - 71 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6667
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6667
SELECT + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 42 col0, + col1 AS col2 FROM tab1 cor0
----
42
14
42
47
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT + - ( + + MAX( DISTINCT col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + - ( + + MAX ( DISTINCT col0 ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + 49 + - 53 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT COUNT( - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( - - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( 53 ) FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT + ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL - MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6676
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - CAST( + col2 AS SIGNED ) NOT BETWEEN col1 * - 46 AND - ( + - col2 ) * + - col2 - - col0
----

skipif mysql # not compatible
query III rowsort label-6676
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - CAST ( + col2 AS INTEGER ) NOT BETWEEN col1 * - 46 AND - ( + - col2 ) * + - col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL ( + MIN( col0 ) ) * 81 + - COUNT( DISTINCT - col1 ) FROM tab2
----
3723

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL ( + MIN ( col0 ) ) * 81 + - COUNT ( DISTINCT - col1 ) FROM tab2
----
3723

query II rowsort
SELECT col1, col1 + - 60 FROM tab0
----
1
-59
21
-39
81
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col0 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - 80 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL - - col2 AS col2, + col2 * col0 AS col2 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + 1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT ALL - 85, COUNT( * ) + - 93 AS col0 FROM tab0 AS cor0
----
-85
-90

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL - 85, COUNT ( * ) + - 93 AS col0 FROM tab0 AS cor0
----
-85
-90

query I rowsort
SELECT ( - col1 ) + + col2 - - ( - col1 ) FROM tab0 WHERE col0 NOT IN ( - col1, 45, + - 21, - + col2 )
----
-115
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT 0 * - COUNT( * ) + + 80 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT 0 * - COUNT ( * ) + + 80 FROM tab1
----
80

query I rowsort
SELECT + 43 + + + col1 FROM tab0 AS cor0
----
124
44
64

query I rowsort
SELECT DISTINCT - 71 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col1, 11 FROM tab1
----
14
11
47
11
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - COUNT( * ) * + 20 AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6692
SELECT - COUNT ( * ) * + 20 AS col1 FROM tab1
----
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 + - 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - 72 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 54 * + 89 NOT BETWEEN 64 + + 80 AND - 17
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6698
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= + col1
----

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6699
SELECT - + CAST( col2 AS SIGNED ) AS col0, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-6699
SELECT - + CAST ( col2 AS INTEGER ) AS col0, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab1 AS cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT COUNT( DISTINCT + + col0 ) * + - MIN( ALL + ( + + 16 ) ) AS col2 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) * + - MIN ( ALL + ( + + 16 ) ) AS col2 FROM tab1 cor0
----
-48

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT + COUNT( * ) * 71 AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT + COUNT ( * ) * 71 AS col2 FROM tab1
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) * - col1 + - 58 col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN + - 13 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT ( + + CAST( NULL AS SIGNED ) ) * - + 57 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT ( + + CAST ( NULL AS INTEGER ) ) * - + 57 * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 39 * - col2 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT DISTINCT + 90 * col0 * col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) * + 5 - ( - col2 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 IS NULL )
----

query II rowsort
SELECT - col0 + col1 * - + col2 AS col2, - ( - + col2 ) + - - 58 + - col1 AS col0 FROM tab2 AS cor0
----
-1219
30
-3144
21
-3961
49

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE - 48 <> NULL
----

query I rowsort
SELECT + col1 + - 71 AS col2 FROM tab0
----
-50
-70
10

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL <= - + 91
----

query I rowsort
SELECT DISTINCT - 55 + + - col2 AS col1 FROM tab1 cor0
----
-114
-123
-151

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0 * col1 + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6719
SELECT - + ( 26 ) DIV - + ( col1 ), col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-6719
SELECT - + ( 26 ) / - + ( col1 ), col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT - 86 * + SUM( ALL - col2 ) col0 FROM tab2 cor0
----
10406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6720
SELECT DISTINCT - 86 * + SUM ( ALL - col2 ) col0 FROM tab2 cor0
----
10406

query I rowsort
SELECT DISTINCT col2 * - col2 + + - 58 AS col0 FROM tab2 AS cor0
----
-1658
-3422
-587

query I rowsort
SELECT ALL - 27 + ( - col0 ) - + 78 FROM tab0 AS cor0
----
-120
-192
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - 20 - + COUNT( ALL + 15 ) * + 13 AS col0 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 20 - + COUNT ( ALL + 15 ) * + 13 AS col0 FROM tab0
----
-59

query I rowsort
SELECT DISTINCT - col0 + - - 27 AS col1 FROM tab0
----
-60
-70
12

query I rowsort
SELECT ALL 89 + - col1 FROM tab2 WHERE 21 IS NOT NULL
----
12
22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - COUNT( * ) + - - 34 * - 12 * 54 FROM tab2
----
-22035

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - COUNT ( * ) + - - 34 * - 12 * 54 FROM tab2
----
-22035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + ( - 72 ) col1 FROM tab1
----
-13
-4
24

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT 52 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <= + col1
----
52
52
52

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( - 13 IS NOT NULL )
----
59
68
96

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col2 * - col2 * - col1 >= + + col1
----

query I rowsort
SELECT ALL - + ( - 48 ) FROM tab1 AS cor0
----
48
48
48

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT col1 AS col2, - 82 AS col0 FROM tab1 AS cor0
----
14
-82
47
-82
5
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - MAX( 30 ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6737
SELECT - MAX ( 30 ) AS col1 FROM tab0 AS cor0
----
-30

query II rowsort
SELECT - 95 + 15 + + + col0 AS col1, col0 FROM tab2 WHERE NOT + + col1 * + 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL - col0 + + col0 + + 57 * - CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
-1197
-4617
-57

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - col0 + + col0 + + 57 * - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
-1197
-4617
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + col2 col1 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6742
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 * 23 + - col1 * - 39 - 51 AS col0 FROM tab2
----
2996
4287
4424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 40 col2 FROM tab2 AS cor0
----
-18
0
17

query I rowsort
SELECT col1 - 7 FROM tab0 AS cor0 WHERE col0 * - + 58 = + - ( 10 ) + + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT - + SUM( + col1 ) - COUNT( * ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - + SUM ( + col1 ) - COUNT ( * ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - - col1 - + col1 * - ( - ( - col1 ) ) FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT DISTINCT - 18 * - - col2 DIV - - col2 AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT - 18 * - - col2 / - - col2 AS col0 FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT + ( col0 ) + col0 * - 19 * - ( CAST( NULL AS SIGNED ) ) * - col1 + - - 17 + - 82 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT + ( col0 ) + col0 * - 19 * - ( CAST ( NULL AS INTEGER ) ) * - col1 + - - 17 + - 82 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6750
SELECT ALL - + CAST( + COUNT( - col1 ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - + CAST ( + COUNT ( - col1 ) AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT MIN( DISTINCT + col1 ) + ( - - COUNT( * ) ) * + 30 AS col2 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6751
SELECT MIN ( DISTINCT + col1 ) + ( - - COUNT ( * ) ) * + 30 AS col2 FROM tab2 AS cor0
----
141

query I rowsort
SELECT ALL - 59 + + col1 AS col2 FROM tab1
----
-12
-45
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT + 93 * - 20 - 18 * COUNT( * ) AS col0 FROM tab0 WHERE - 92 IS NOT NULL
----
-1914

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 93 * - 20 - 18 * COUNT ( * ) AS col0 FROM tab0 WHERE - 92 IS NOT NULL
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT COUNT( * ) * - 72 * + 83 col2 FROM tab1
----
-17928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT DISTINCT COUNT ( * ) * - 72 * + 83 col2 FROM tab1
----
-17928

query II rowsort
SELECT - 45, - ( - col2 ) AS col1 FROM tab0
----
-45
10
-45
47
-45
99

query I rowsort
SELECT + ( + + col0 ) - - + col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT - col1 DIV + 57 col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6757
SELECT - col1 / + 57 col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT MIN( ALL col0 ) * - 94 FROM tab0
----
-1410

skipif mysql # not compatible
query I rowsort label-6758
SELECT MIN ( ALL col0 ) * - 94 FROM tab0
----
-1410

query I rowsort
SELECT DISTINCT + ( col1 ) * + - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - 90 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6762
SELECT - 90 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT DISTINCT + - MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT + - MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL - + COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - + COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT - MAX( ALL col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6766
SELECT - MAX ( ALL col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT ( + + col0 ) AS col2 FROM tab0 WHERE NOT col2 - + col1 NOT IN ( CAST( + + 54 AS SIGNED ) * + col1 * + col2 * - 66, 44 + + col2, + col2 )
----

skipif mysql # not compatible
query I rowsort label-6767
SELECT ( + + col0 ) AS col2 FROM tab0 WHERE NOT col2 - + col1 NOT IN ( CAST ( + + 54 AS INTEGER ) * + col1 * + col2 * - 66, 44 + + col2, + col2 )
----

query I rowsort
SELECT + ( - - col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT SUM( - 84 ) AS col0 FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT SUM ( - 84 ) AS col0 FROM tab0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL col0 + + 1 - 52 AS col1 FROM tab0
----
-36
36
46

query II rowsort
SELECT + col0, + 51 FROM tab1
----
51
51
85
51
91
51

query I rowsort
SELECT DISTINCT - col1 + + - 0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT DISTINCT 41 + - 99 * + 58, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-5701
3

skipif mysql # not compatible
query II rowsort label-6773
SELECT DISTINCT 41 + - 99 * + 58, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-5701
3

query II rowsort
SELECT ALL 17, col0 FROM tab1 AS cor0
----
17
51
17
85
17
91

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 * - 60 * col0 + + + col2 FROM tab1 AS cor0
----
14
-155964
47
-496792
5
-433441

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab1 WHERE NULL <> - col1
----

query I rowsort
SELECT ALL - 41 + 20 FROM tab1
----
-21
-21
-21

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT ALL col2 * + 79 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT DISTINCT - 82 * col2 FROM tab0
----
-3854
-8118
-820

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) > - 57
----

query III rowsort
SELECT * FROM tab2 WHERE ( 45 ) <> NULL
----

query I rowsort
SELECT ( 57 ) FROM tab2
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT CAST( MIN( col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6785
SELECT CAST ( MIN ( col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT + ( 46 ) * - col0 + - col0 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT MIN( + 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6787
SELECT MIN ( + 74 ) AS col0 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 54 + SUM( ALL + col2 ) AS col2 FROM tab1
----
277

skipif mysql # not compatible
query I rowsort label-6788
SELECT 54 + SUM ( ALL + col2 ) AS col2 FROM tab1
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL 82 * - COUNT( * ) AS col0 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL 82 * - COUNT ( * ) AS col0 FROM tab2
----
-246

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 85 * + 40 + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 83 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT ( + col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT 9 DIV 77 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT 9 / 77 FROM tab1
----
0
0
0

query I rowsort
SELECT 78 - + col2 * col0 FROM tab2
----
-2482
-4272
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT 15 - col0 DIV - col2 FROM tab0
----
15
15
23

skipif mysql # not compatible
query I rowsort label-6795
SELECT 15 - col0 / - col2 FROM tab0
----
15
15
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 59 * + col0 + col2 AS col2 FROM tab0 WHERE ( + 73 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6799
SELECT + CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6799
SELECT + CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - COUNT( * ) * 20 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( * ) * 20 FROM tab0
----
-60

query I rowsort
SELECT DISTINCT - col1 * - 11 + col2 * 89 FROM tab1 WHERE col2 IS NOT NULL
----
5306
6569
8698

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + COUNT( * ) FROM tab2 WHERE NOT + 43 + - col1 <= - col2
----
3

skipif mysql # not compatible
query I rowsort label-6803
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + 43 + - col1 <= - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT MIN( ALL + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT MIN ( ALL + col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <> col1
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 15 * col0 AS col1 FROM tab1 AS cor0
----
1275
1365
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT ALL 60 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL 60 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT - ( - 13 ) FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT col1 * 63 AS col0 FROM tab1
----
2961
315
882

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) NOT IN ( - col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT MIN( DISTINCT col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6815
SELECT MIN ( DISTINCT col0 ) col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6816
SELECT - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - 48
----

query I rowsort
SELECT - col2 + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + + 43 AS col1 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6821
SELECT - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - col0 * + col0 + 28 AS col1 FROM tab2 AS cor0
----
2144
4124
5653

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT + + col2 DIV - col2 + 84 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-6823
SELECT + + col2 / - col2 + 84 FROM tab0 AS cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6825
SELECT DISTINCT - col1 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - col1 + - - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) + - col1 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT + COUNT( * ) FROM tab2 WHERE CAST( 6 AS SIGNED ) = + col2 + col0
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT + COUNT ( * ) FROM tab2 WHERE CAST ( 6 AS INTEGER ) = + col2 + col0
----
0

query I rowsort
SELECT - col0 + col2 + ( - col1 ) AS col2 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( - ( col1 ) / - 37 ) BETWEEN 10 AND col2
----

query I rowsort
SELECT col1 * + 20 * - 57 FROM tab1
----
-15960
-53580
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6831
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT + SUM( + - col0 ) DIV 86 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6832
SELECT + SUM ( + - col0 ) / 86 AS col0 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6834
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL - col2 + - col1 - 0 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT ( + - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6837
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT - COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-6838
SELECT - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT DISTINCT 23 FROM tab2, tab0 cor0
----
23

query I rowsort
SELECT + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT ALL COUNT( * ) - - - 57 DIV 11 * - MIN( col2 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL COUNT ( * ) - - - 57 / 11 * - MIN ( col2 ) FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - COUNT( * ) + - COUNT( * ) col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6842
SELECT - COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 cor0
----
-6

query I rowsort
SELECT 94 + col2 FROM tab1 AS cor0 WHERE ( + 8 + - + col2 ) BETWEEN + ( - col0 ) AND ( - ( col1 ) )
----
153
162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + - col0 AND ( + col0 / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE - 45 + - 5 * col1 IN ( col2 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT ALL + col0 - - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + col0 - - col0 / - col2 AS col0 FROM tab0 AS cor0
----
15
79
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 31 * - 52 + col1 * 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL - MAX( DISTINCT - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - MAX ( DISTINCT - 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT col2 * - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * ( + col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col1 * + + col2 AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col1 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - COUNT( * ) col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 79 / col0 AND ( + 32 + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6854
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 79 / col0 AND ( + 32 + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - ( col2 ) ) * col0 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL - ( - COUNT( + + 84 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - ( - COUNT ( + + 84 ) ) FROM tab1
----
3

query II rowsort
SELECT + 91 * col2, + col0 * + + col1 AS col2 FROM tab0
----
4277
1215
9009
97
910
1827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6858
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * col1 + 22 / + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6858
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 + 22 / + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT col0 DIV col2 col2 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT col0 / col2 col2 FROM tab0 cor0
----
0
0
8

query I rowsort
SELECT 13 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) * + col0 AS col0 FROM tab0
----
33135
8700
950697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6862
SELECT ALL - COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT 1 * + - MAX( DISTINCT + + 94 ) DIV + 96 * - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6863
SELECT 1 * + - MAX ( DISTINCT + + 94 ) / + 96 * - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT COUNT( - + 48 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( - + 48 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 84 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT MAX( DISTINCT - + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6867
SELECT MAX ( DISTINCT - + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL + SUM( ALL 9 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + SUM ( ALL 9 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - 27 + + - col2 AS col2 FROM tab2 AS cor0
----
-50
-67
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab2 AS cor0
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) >= col2 - - col1 - - 87 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89, col0 col2 FROM tab0
----
89
15
89
87
89
97

query II rowsort
SELECT ALL - ( - col1 ) + + col2 * - 31 AS col2, + 34 + + col0 FROM tab0
----
-1376
49
-289
121
-3068
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL COUNT( * ) + - - ( - 93 ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL COUNT ( * ) + - - ( - 93 ) AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT COUNT( * ) + - SUM( ALL + col1 ) * COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-582

skipif mysql # not compatible
query I rowsort label-6875
SELECT COUNT ( * ) + - SUM ( ALL + col1 ) * COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT col0 * + + col2 + + col2 FROM tab0 cor0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col1 + col0 col1 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ( - col2 ) * col1 + - col2 + + + 34 AS col1 FROM tab2 AS cor0
----
-1162
-3086
-3910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT - - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT - - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 70 AS col2 FROM tab1
----
-26
11
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 29 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE + 69 <> + + CAST( 19 AS SIGNED ) / + col0 + - 74 + col1 + + col1 * 17
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE + 69 <> + + CAST ( 19 AS INTEGER ) / + col0 + - 74 + col1 + + col1 * 17
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT - + MIN( ALL - col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - + MIN ( ALL - col0 ) FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT + + 94 AS col2 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT - ( + + 30 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1530
-2010
-2310

query I rowsort
SELECT col2 * 77 * + col0 AS col1 FROM tab1
----
376992
386155
476476

query I rowsort
SELECT ALL - 27 * - col2 + col0 AS col1 FROM tab1 WHERE NOT ( - 41 ) BETWEEN col1 AND ( + + col2 + + - 14 )
----
1678
1927
2643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab2
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * col0 col2 FROM tab2
----
2806
3904
4575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT + 3 BETWEEN NULL AND + col2 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6897
SELECT - + col2 AS col1, ( - + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6897
SELECT - + col2 AS col1, ( - + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT DISTINCT - col1 * + col0 + - - col0 DIV + col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-424
-4276
-713

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - col1 * + col0 + - - col0 / + col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-424
-4276
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT 84 DIV + + col1 col0 FROM tab0 AS cor0
----
1
4
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6899
SELECT 84 / + + col1 col0 FROM tab0 AS cor0
----
1
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT + col2 + + col2, + col1 + - 85 / + col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab0 AS cor0
----
37
37
37

query II rowsort
SELECT + col1 AS col0, col2 * col1 AS col1 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / + + col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT col2 * + CAST( + col2 AS SIGNED ) FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-6905
SELECT col2 * + CAST ( + col2 AS INTEGER ) FROM tab0
----
100
2209
9801

query II rowsort
SELECT ALL - ( 63 ), col2 FROM tab2 AS cor0
----
-63
23
-63
40
-63
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT + ( - + 13 ) + + col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT + ( - + 13 ) + + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - + col0 * + col0 + 97 * - 35 FROM tab1 AS cor0
----
-10561
-11608
-5900

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN + col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 7 + - col2 AS col1 FROM tab2
----
-16
-33
-51

query I rowsort
SELECT ALL - 27 - + col1 AS col1 FROM tab1
----
-32
-41
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col0 FROM tab0 AS cor0
----
44
44
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 66 - + - col0 >= NULL
----

query I rowsort
SELECT + + col1 - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - col1 >= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT ALL + + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT CAST( - col0 AS SIGNED ) + - - col1 col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6918
SELECT CAST ( - col0 AS INTEGER ) + - - col1 col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT - col1 + - 70 FROM tab1
----
-117
-75
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT + + COUNT( * ) AS col1, 46 FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-6920
SELECT + + COUNT ( * ) AS col1, 46 FROM tab2 AS cor0
----
3
46

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6922
SELECT + - 17, col0 DIV 17 AS col1 FROM tab0 cor0
----
-17
0
-17
5
-17
5

skipif mysql # not compatible
query II rowsort label-6922
SELECT + - 17, col0 / 17 AS col1 FROM tab0 cor0
----
-17
0
-17
5
-17
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 AS col0, - 71 col0 FROM tab1 cor0
----
-14
-71
-47
-71
-5
-71

query II rowsort
SELECT col1 * + col0 AS col2, + col1 * + + ( col1 ) FROM tab1
----
425
25
4277
2209
714
196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT col1 * col1 AS col0, ( col2 ) + - col0 - - col2 / 60 * + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

skipif mysql # not compatible
query II rowsort label-6925
SELECT col1 * col1 AS col0, ( col2 ) + - col0 - - col2 / 60 * + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

query I rowsort
SELECT 30 * + col2 AS col2 FROM tab2
----
1200
1740
690

query I rowsort
SELECT ALL + ( ( + + 37 ) ) FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT 59 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-2501
-4291
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT + + SUM( + col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + + SUM ( + col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6932
SELECT SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + ( - ( - - ( col0 ) ) ) AS col2 FROM tab0 cor0 WHERE NOT ( ( NULL ) > 67 * + col1 + - - col1 )
----

query II rowsort
SELECT + 79 AS col1, - 26 FROM tab1 AS cor0
----
79
-26
79
-26
79
-26

query II rowsort
SELECT + + col2 AS col2, - 94 AS col1 FROM tab2 AS cor0
----
23
-94
40
-94
58
-94

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( + 88 IS NULL )
----

query I rowsort
SELECT DISTINCT - 93 + + + ( - col0 ) FROM tab2
----
-139
-157
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - COUNT( * ) - + + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6938
SELECT - COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + col1 * 58 FROM tab2
----
2958
3886
4466

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6940
SELECT 5 * 39 * - 98 + COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT 5 * 39 * - 98 + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + ( + 34 ) + - + 62 FROM tab2
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( + col2 ) * + 73 - - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - - 72 * col2 FROM tab1
----
4333
4987
6963

query II rowsort
SELECT ALL 68 AS col1, - col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT - 8 IN ( - - 70 * 53 + col2 + col0 / - - 55 * - 64, - col1 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( + + 7 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6948
SELECT + + COUNT( * ) DIV - CAST( 86 AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT + + COUNT ( * ) / - CAST ( 86 AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 87 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT DISTINCT + + 33 DIV col0 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6950
SELECT DISTINCT + + 33 / col0 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( + 32 ) AS col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT + col2, 70 FROM tab0 cor0
----
10
70
47
70
99
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT MAX( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6953
SELECT MAX ( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - 49 <= + col1 / col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + COUNT( col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + COUNT ( col1 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 76 col0 FROM tab0
----
1140
6612
7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab1
----
-93
-93
-93

query II rowsort
SELECT ALL col0 AS col1, + col2 FROM tab2
----
46
23
64
40
75
58

query II rowsort
SELECT ALL 38 AS col0, col1 * - + 41 FROM tab0
----
38
-3321
38
-41
38
-861

query I rowsort
SELECT ALL - 65 * - 51 AS col0 FROM tab1
----
3315
3315
3315

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 / + 62 + + 73, + col1 / col1 * - col1, - ( - 19 ) + + - col2, + col2 * + col0 + - 87 + col0 + 35 + 46 )
----

query I rowsort
SELECT DISTINCT - + 41 FROM tab2 AS cor0 WHERE ( NOT ( NOT 40 * 11 / - + col1 * - 39 + + 48 * col2 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6963
SELECT DISTINCT col0, col1 + + CAST( + + col2 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-6963
SELECT DISTINCT col0, col1 + + CAST ( + + col2 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT - 9 AS col0, col2 FROM tab2 AS cor0
----
-9
23
-9
40
-9
58

query I rowsort
SELECT ALL + col2 + + - 31 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT + MIN( DISTINCT + ( + 95 ) ) AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6966
SELECT + MIN ( DISTINCT + ( + 95 ) ) AS col1 FROM tab0 AS cor0
----
95

query I rowsort
SELECT col2 + - 71 + + + col0 FROM tab2
----
-2
33
62

query I rowsort
SELECT ALL ( 90 ) FROM tab1
----
90
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > NULL AND ( NOT - col1 IS NOT NULL )
----

query II rowsort
SELECT - 98 + + 1 AS col0, - col0 AS col0 FROM tab2 cor0
----
-97
-46
-97
-64
-97
-75

query I rowsort
SELECT col1 + + 98 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT - + 0 * + COUNT( * ) + - MAX( 57 ) + - - MIN( ALL - col1 ) col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6972
SELECT DISTINCT - + 0 * + COUNT ( * ) + - MAX ( 57 ) + - - MIN ( ALL - col1 ) col2 FROM tab0 AS cor0
----
-138

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * ( + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT - MIN( DISTINCT + 24 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-6974
SELECT - MIN ( DISTINCT + 24 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-24

query I rowsort
SELECT col0 + 89 AS col0 FROM tab0 AS cor0
----
104
176
186

query I rowsort
SELECT - ( + col2 ) + - - col0 + + col1 FROM tab1 AS cor0
----
-31
31
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col1 * - 14 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6978
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col1 * - 14 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL 1 + COUNT( * ) + + 5 * + - MIN( + col2 ) AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL 1 + COUNT ( * ) + + 5 * + - MIN ( + col2 ) AS col0 FROM tab0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT col0 DIV + - col2 col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6981
SELECT col0 / + - col2 col0 FROM tab0
----
-8
0
0

query II rowsort
SELECT 1 AS col1, - col0 FROM tab1
----
1
-51
1
-85
1
-91

query I rowsort
SELECT - ( + 8 ) FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT - 32 + + - MAX( + 70 ) col1 FROM tab0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6984
SELECT DISTINCT - 32 + + - MAX ( + 70 ) col1 FROM tab0
----
-102

query I rowsort
SELECT ALL col1 - 59 + - 35 * 5 * - col2 AS col2 FROM tab2
----
10158
4017
7018

query I rowsort
SELECT - 32 - - - col1 * - col2 - + 2 * - col1 * - ( - col2 ) FROM tab0
----
11389
265
598

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6987
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + col1 AS DECIMAL ) + + - col2 + + 73 + col0 * + ( + + col2 ) + + + col0 * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6987
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + col1 AS REAL ) + + - col2 + + 73 + col0 * + ( + + col2 ) + + + col0 * - col2 IS NULL
----

query I rowsort
SELECT + + col1 - col1 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + - col0 AS col0, - 17 AS col0 FROM tab0 AS cor0
----
-15
-17
-87
-17
-97
-17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL ( ( - + col2 ) ) * + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NOT 89 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 71 * - col0 FROM tab2
----
-3266
-4544
-5325

query I rowsort
SELECT DISTINCT col0 * + 11 AS col2 FROM tab1
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 * + + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 * + + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT col1 / - + CAST( NULL AS SIGNED ) * - + 38 * - 55 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT col1 / - + CAST ( NULL AS INTEGER ) * - + 38 * - 55 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL NOT IN ( - col2, - 45 / col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT ( - + 28 ) DIV - 13 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6998
SELECT ( - + 28 ) / - 13 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - - col0 * + 62 * - + 15 * + ( + col1 ) FROM tab2 cor0
----
-2181780
-4583040
-4673250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - COUNT( * ) * 36 AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7002
SELECT - COUNT ( * ) * 36 AS col1 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT ALL + 23 + + col2 AS col1 FROM tab1
----
119
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - SUM( ALL 44 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7004
SELECT - SUM ( ALL 44 ) FROM tab1
----
-132

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL COUNT( * ) * - - 73 * COUNT( * ) FROM tab2
----
657

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL COUNT ( * ) * - - 73 * COUNT ( * ) FROM tab2
----
657

query II rowsort
SELECT DISTINCT col0 AS col2, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT DISTINCT + col2 DIV - ( + - col1 ) FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + col2 / - ( + - col1 ) FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL - - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + - col0 * col1 FROM tab1 AS cor0 WHERE NOT ( + 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT ( - - 78 ) DIV + 73 + - MAX( DISTINCT + 56 ) + + + SUM( ALL 92 ) * + 19 AS col2 FROM tab2
----
5189

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT ( - - 78 ) / + 73 + - MAX ( DISTINCT + 56 ) + + + SUM ( ALL 92 ) * + 19 AS col2 FROM tab2
----
5189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT ALL - + ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - + ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7015
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 - + col2 * - + 61 * - + col2 * + col2 col0 FROM tab1 cor0
----
-12528081
-19180314
-53968858

query I rowsort
SELECT 21 * col0 AS col1 FROM tab2 cor0 WHERE - col2 + 10 IS NOT NULL
----
1344
1575
966

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT + col2 - col2 DIV col0 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-7018
SELECT + col2 - col2 / col0 FROM tab0 AS cor0
----
10
44
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT + MIN( + - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + MIN ( + - col0 ) FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT 33 * - CAST( NULL AS SIGNED ) - col2 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-7020
SELECT 33 * - CAST ( NULL AS INTEGER ) - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT - col2 DIV - col1 - - col0 FROM tab1 AS cor0
----
57
92
96

skipif mysql # not compatible
query I rowsort label-7022
SELECT - col2 / - col1 - - col0 FROM tab1 AS cor0
----
57
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7024
SELECT ( - CAST( NULL AS DECIMAL ) ) + + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ( - CAST ( NULL AS REAL ) ) + + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 89 + col1 AS col0 FROM tab1
----
103
136
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT ALL + col0 DIV - col1 + - 78 col2 FROM tab2
----
-78
-78
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7026
SELECT ALL + col0 / - col1 + - 78 col2 FROM tab2
----
-78
-78
-79

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + ( - col1 ), 7 col2 FROM tab0 AS cor0
----
-1215
7
-1827
7
-97
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col1 col0, + col2 FROM tab0 cor0
----
1
99
441
10
6561
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT SUM( DISTINCT + col0 ) * + 33 AS col0 FROM tab0 AS cor0
----
6567

skipif mysql # not compatible
query I rowsort label-7030
SELECT SUM ( DISTINCT + col0 ) * + 33 AS col0 FROM tab0 AS cor0
----
6567

query III rowsort
SELECT 43 * - col2 AS col1, - 15, - - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to e1b8d87766019d2f1f6bf40695ef32b1

query I rowsort
SELECT + + col2 * + col1 * - + col0 + 2 FROM tab2 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - 77 * COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-702

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 77 * COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-702

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 NOT IN ( - col2 * 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col2 FROM tab0 AS cor0
----
79
79
79

query II rowsort
SELECT ALL + - col1, + 47 AS col0 FROM tab1 AS cor0
----
-14
47
-47
47
-5
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT - 24 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 24 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col0 + - - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - 29 + - + SUM( ALL 96 ) FROM tab1
----
-317

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 29 + - + SUM ( ALL 96 ) FROM tab1
----
-317

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE NULL IN ( - 83, col1 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 17 / - col0 NOT BETWEEN + + col0 AND col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT ALL + 88 DIV + - 83 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + 88 / + - 83 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT - COUNT( * ) + - 51 FROM tab0 WHERE ( NULL BETWEEN 91 AND col1 )
----
-51

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT - COUNT ( * ) + - 51 FROM tab0 WHERE ( NULL BETWEEN 91 AND col1 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + COUNT( * ) + - + 92 FROM tab1 WHERE - 20 IS NOT NULL
----
-89

skipif mysql # not compatible
query I rowsort label-7046
SELECT + COUNT ( * ) + - + 92 FROM tab1 WHERE - 20 IS NOT NULL
----
-89

query III rowsort
SELECT * FROM tab0 WHERE - 85 + + 13 IS NULL
----

query I rowsort
SELECT + - 52 AS col1 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT - 66 * + - COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT - 66 * + - COUNT ( * ) FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT col0 + - CAST( - - col0 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT col0 + - CAST ( - - col0 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT - 24 + + - col1 * - ( - ( - 51 ) ) + + col1 AS col1 FROM tab2 AS cor0
----
2628
3460
3980

query I rowsort
SELECT DISTINCT - - col2 - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - - 55 * - col0 + col0 + + - col1 - + - ( + - ( - + 96 ) ) FROM tab1 AS cor0
----
-2672
-4499
-4865

query I rowsort
SELECT DISTINCT 2 + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
707
872
9605

query II rowsort
SELECT + 49 AS col1, 15 FROM tab0 AS cor0
----
49
15
49
15
49
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - ( COUNT( - - 20 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - ( COUNT ( - - 20 ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - 9 AS col1 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT + ( + - 56 ) + - + COUNT( * ) AS col1, SUM( + col1 ) FROM tab1 WHERE NOT - - 76 > NULL
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-7058
SELECT + ( + - 56 ) + - + COUNT ( * ) AS col1, SUM ( + col1 ) FROM tab1 WHERE NOT - - 76 > NULL
----
-56
NULL

query II rowsort
SELECT + col1, col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + ( + - 64 ) + 32 + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9
26
8

query I rowsort
SELECT col1 * - + col2 * + 94 AS col0 FROM tab2
----
-110262
-289520
-365284

query II rowsort
SELECT + col2 AS col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT - - col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT 31 AS col2, COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
31
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7064
SELECT 31 AS col2, COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT - + MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7065
SELECT - + MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

query II rowsort
SELECT - 52, col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

query I rowsort
SELECT DISTINCT - + ( - - ( 8 ) ) FROM tab1 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - COUNT( DISTINCT + ( + - col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7070
SELECT - COUNT ( DISTINCT + ( + - col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + + ( - 12 ) FROM tab0 cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + ( + SUM( - 14 ) ) * 51 * - MAX( col0 ) FROM tab2 AS cor0
----
160650

skipif mysql # not compatible
query I rowsort label-7073
SELECT + ( + SUM ( - 14 ) ) * 51 * - MAX ( col0 ) FROM tab2 AS cor0
----
160650

query I rowsort
SELECT ALL - - 20 AS col2 FROM tab0 cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT ALL - 54 + CAST( - col2 AS SIGNED ) FROM tab1
----
-113
-122
-150

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - 54 + CAST ( - col2 AS INTEGER ) FROM tab1
----
-113
-122
-150

query I rowsort
SELECT ALL 95 - - 74 + - col0 + col1 * - col0 FROM tab0 WHERE NULL IS NULL
----
-1061
-1745
-25

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT MAX( - + 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7078
SELECT MAX ( - + 89 ) FROM tab2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT CAST( - COUNT( * ) AS SIGNED ) + 63 - - ( + 47 ) AS col2 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-7079
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + 63 - - ( + 47 ) AS col2 FROM tab0
----
107

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 FROM tab1
----
-4800
-4956
-6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + + + 66 col0 FROM tab1 AS cor0
----
161
161
161

query I rowsort
SELECT + 17 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 * 98 FROM tab1 AS cor0
----
4998
8330
8918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT col2 * + 3 + - col1 * CAST( NULL AS SIGNED ) / + 69 - + + col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT col2 * + 3 + - col1 * CAST ( NULL AS INTEGER ) / + 69 - + + col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + ( - + 45 ) FROM tab1 AS cor0
----
50
59
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 - - col1 col2 FROM tab0 AS cor0
----
-11
69
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT + - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 87 * col2 * + 12 FROM tab2 AS cor0
----
24012
41760
60552

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND 81 * col1 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT ALL + COUNT( DISTINCT + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + COUNT ( DISTINCT + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7092
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * 67 * + 74 * col1 col2 FROM tab0
----
20481498
252858
5310018

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL < col1 * + col1 )
----

query I rowsort
SELECT ALL + 54 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ALL - MIN( + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - MIN ( + col0 ) FROM tab1
----
-51

query I rowsort
SELECT ALL + col0 * + - 13 AS col0 FROM tab2 AS cor0
----
-598
-832
-975

query I rowsort
SELECT DISTINCT - 8 * - col0 + 8 * - - col1 * 63 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
26072
34368
39320

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= + 67 + + 67
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON ( NOT NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL 36 * - 24 FROM tab1
----
-864
-864
-864

query II rowsort
SELECT ALL col0, col0 * - col0 + - col2 FROM tab1
----
51
-2697
85
-7284
91
-8349

query II rowsort
SELECT ALL - col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT ALL + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7104
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT col2 + + col2 * CAST( NULL AS SIGNED ) * - + col1 * - 82 * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT col2 + + col2 * CAST ( NULL AS INTEGER ) * - + col1 * - 82 * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( ( - + col1 ) ) FROM tab2 AS cor0 WHERE col1 + - 14 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT - 83 + COUNT( * ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7107
SELECT - 83 + COUNT ( * ) FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT + - SUM( + - 42 ) AS col2 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + - SUM ( + - 42 ) AS col2 FROM tab1 AS cor0
----
126

query I rowsort
SELECT + 96 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96
96
96

query I rowsort
SELECT - col0 + + 27 * + col2 AS col2 FROM tab0 AS cor0
----
1254
183
2576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT - - 51 + + - ( + CAST( NULL AS SIGNED ) ) + + 50 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - - 51 + + - ( + CAST ( NULL AS INTEGER ) ) + + 50 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - + col2 + - col2 * + ( + col1 ) * + col1 FROM tab2
----
-240240
-264248
-60996

query I rowsort
SELECT col0 * - - col0 * - 46 AS col1 FROM tab0
----
-10350
-348174
-432814

query I rowsort
SELECT ALL + 62 AS col0 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL + - ( - 46 ) FROM tab0 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7117
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7117
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + + 35 FROM tab2 AS cor0
----
11
29
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL - CAST( 71 AS SIGNED ) * COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - CAST ( 71 AS INTEGER ) * COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-213

query I rowsort
SELECT ALL - 83 + - + col2 * + + 72 FROM tab1
----
-4331
-4979
-6995

query I rowsort
SELECT DISTINCT + 73 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
73

query I rowsort
SELECT col1 + col1 + + + ( col2 ) - + col0 * - - 54 * + + col1 FROM tab1
----
-22881
-230796
-38432

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 94 * - 70 * - col0 + - 66 FROM tab0
----
572394
638194
98634

query I rowsort
SELECT ALL col1 * + col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT DISTINCT - ( - 54 ) * col0 + + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
4611
5141
795

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - ( - 54 ) * col0 + + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
4611
5141
795

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col2 ) + 52 <= + - col2
----

query I rowsort
SELECT - ( - - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT COUNT( * ) * - + 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT COUNT ( * ) * - + 87 FROM tab1 AS cor0
----
-261

query II rowsort
SELECT ALL col2 AS col0, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL - + 85 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + col0 FROM tab2 cor0 WHERE NOT - col2 * - ( + + col1 ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT col1 DIV 61 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT col1 / 61 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT MIN( DISTINCT - - 39 ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-7134
SELECT MIN ( DISTINCT - - 39 ) AS col2 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * - col2 col2 FROM tab2
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL - COUNT( * ) * + 40 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL - COUNT ( * ) * + 40 FROM tab1
----
-120

query I rowsort
SELECT col2 * ( - - col0 ) FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT - 56 DIV + ( - 2 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - 56 / + ( - 2 ) AS col0 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT col0 * - + col2 * + - 52 FROM tab0 AS cor0
----
36660
45240
499356

query I rowsort
SELECT ALL - 93 + + - ( - 31 ) AS col2 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT col0 + - 6 FROM tab0
----
81
9
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7142
SELECT * FROM tab0 WHERE NULL <> + col1 + + col0 * + 97 + + + col2 / 78 * - - col1 + + 34 + - CAST( NULL AS SIGNED ) * + 88
----

skipif mysql # not compatible
query III rowsort label-7142
SELECT * FROM tab0 WHERE NULL <> + col1 + + col0 * + 97 + + + col2 / 78 * - - col1 + + 34 + - CAST ( NULL AS INTEGER ) * + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT ALL + col1 DIV - ( + - col2 ) AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + col1 / - ( + - col2 ) AS col2 FROM tab0 cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7144
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 + - col0 AND NULL
----
0

query I rowsort
SELECT 76 * + 99 FROM tab2 AS cor0
----
7524
7524
7524

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + 33 ) AS col0 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - 66 + 46 + + col1 FROM tab0
----
-19
1
61

query I rowsort
SELECT col0 + - + col0 * col0 AS col0 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT + 66 FROM tab2 WHERE NULL <> + 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 + col2 AS col1, - col0 * 57 + col1 col0 FROM tab2
----
55
-2571
72
-3571
90
-4208

query I rowsort
SELECT + col0 + + + 5 FROM tab0
----
102
20
92

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT + CAST( NULL AS SIGNED ) + + 92 * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT + CAST ( NULL AS INTEGER ) + + 92 * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + MAX( - 65 ) * - 28 FROM tab2
----
1820

skipif mysql # not compatible
query I rowsort label-7158
SELECT + MAX ( - 65 ) * - 28 FROM tab2
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL - COUNT( * ) * - 95 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - COUNT ( * ) * - 95 FROM tab2
----
285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + MAX( ALL - + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + ( - 75 ) * - 88 - col2 + - col2 AS col0 FROM tab2
----
6484
6520
6554

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL - COUNT( * ) * + - 34 AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL - COUNT ( * ) * + - 34 AS col2 FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL MAX( DISTINCT - 27 ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL MAX ( DISTINCT - 27 ) AS col2 FROM tab1
----
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 > + + ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT col0 DIV + 60 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT col0 / + 60 AS col1 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * + col2 col1 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT + - col1 * 17 + - col0 FROM tab0 AS cor0
----
-114
-1392
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - MIN( ALL col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - MIN ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + + SUM( 48 ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + + SUM ( 48 ) FROM tab0 AS cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - SUM( + 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-7172
SELECT - SUM ( + 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + 26 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT ( - col0 ) + - 7 DIV + col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7174
SELECT ( - col0 ) + - 7 / + col0 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + - 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 58 IS NULL
----

query I rowsort
SELECT + + col0 + - - col1 * - + 23 FROM tab1 AS cor0
----
-271
-30
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT 81 + - COUNT( * ) AS col1, + 16 AS col1 FROM tab0 AS cor0
----
78
16

skipif mysql # not compatible
query II rowsort label-7178
SELECT 81 + - COUNT ( * ) AS col1, + 16 AS col1 FROM tab0 AS cor0
----
78
16

query I rowsort
SELECT + col2 * - ( - col0 ) * 95 + 17 + 90 AS col0 FROM tab0 AS cor0
----
67082
82757
912392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT col1 * CAST( + - col0 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

skipif mysql # not compatible
query I rowsort label-7180
SELECT col1 * CAST ( + - col0 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT + - 26 / - 74 + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT + - 26 / - 74 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) > ( CAST( + + col0 AS SIGNED ) / + col1 )
----

skipif mysql # not compatible
query I rowsort label-7182
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) > ( CAST ( + + col0 AS INTEGER ) / + col1 )
----

query I rowsort
SELECT col2 * + 51 AS col1 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT COUNT( DISTINCT + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7184
SELECT COUNT ( DISTINCT + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 29 + + col2 AS col2 FROM tab0
----
128
39
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col2 * - 40 - + CAST( NULL AS SIGNED ) + - 65 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col2 * - 40 - + CAST ( NULL AS INTEGER ) + - 65 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT MIN( DISTINCT + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7187
SELECT MIN ( DISTINCT + + col2 ) FROM tab2
----
23

query II rowsort
SELECT col1 AS col2, ( - - col1 ) FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - MIN( - - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7189
SELECT - MIN ( - - col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT ALL col2 * - CAST( NULL AS SIGNED ) - - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) - - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 AS col2, - ( 24 ) col1 FROM tab0 AS cor0
----
43
-24
43
-24
43
-24

query I rowsort
SELECT ( + + col0 ) + - 13 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col2 col2 FROM tab2 cor0
----
51
23
67
58
77
40

query II rowsort
SELECT ALL + col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT - COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7196
SELECT - COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col2, 76 - + - col0 + - 73 - ( + col1 ), col2 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - MIN( 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - MIN ( 96 ) FROM tab0 AS cor0
----
-96

query II rowsort
SELECT - col0 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > - + col1
----

query I rowsort
SELECT + col2 * - + 28 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab0
----
95

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 BETWEEN - + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 53 BETWEEN NULL AND + - col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL MIN( DISTINCT - ( 34 ) ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL MIN ( DISTINCT - ( 34 ) ) AS col0 FROM tab1
----
-34

query I rowsort
SELECT DISTINCT 20 * - 4 * - col2 AS col1 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT col2 * - - col0 * + 28 * - col1 FROM tab2
----
-1510824
-5519360
-8160600

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL COUNT( * ) * 31 * 80 AS col1 FROM tab1
----
7440

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL COUNT ( * ) * 31 * 80 AS col1 FROM tab1
----
7440

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + COUNT( col2 ) * + - 46 AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-7210
SELECT + COUNT ( col2 ) * + - 46 AS col2 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col1 - + col0 + + col1 * + col2 AS col0 FROM tab0 cor0
----
144
3
3873

query I rowsort
SELECT ALL + ( - 84 ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - col2 * - 17 - + col0 FROM tab0 AS cor0
----
1586
784
83

query I rowsort
SELECT col2 - - col1 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
4413
543
906

query I rowsort
SELECT + - col0 - - - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + 98 - - + col0 AS col2 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT ALL col1 + + - ( + col0 ) FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 28 * + - col0 + + + col1 FROM tab1
----
-1414
-2375
-2501

query I rowsort
SELECT ALL + col1 - - 52 AS col1 FROM tab0
----
133
53
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7223
SELECT ALL CAST( NULL AS DECIMAL ) + - + ( - + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL CAST ( NULL AS REAL ) + - + ( - + COUNT ( * ) ) FROM tab2
----
NULL

query II rowsort
SELECT + col2 * + + ( col0 ) AS col1, col1 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
-37
5015
-80
6188
-44

query I rowsort
SELECT DISTINCT col2 - - 53 AS col1 FROM tab1 AS cor0
----
112
121
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - MIN( DISTINCT col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7226
SELECT - MIN ( DISTINCT col2 ) FROM tab0 cor0
----
-10

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 36 * - - ( + col2 ) <> - col2
----

query I rowsort
SELECT ALL + col0 * - - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7229
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + + col0 AS col0 FROM tab2 WHERE NULL < col1
----

query I rowsort
SELECT + col0 * - - col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7233
SELECT * FROM tab0 WHERE NOT CAST( + ( col1 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT * FROM tab0 WHERE NOT CAST ( + ( col1 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-7234
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL + - SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + - SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 41 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7238
SELECT + MAX( + + col0 ) DIV - + MAX( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7238
SELECT + MAX ( + + col0 ) / - + MAX ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
6

query II rowsort
SELECT col2, col0 * - + 5 AS col2 FROM tab1 cor0
----
59
-425
68
-455
96
-255

query I rowsort
SELECT DISTINCT + + ( - 93 ) AS col0 FROM tab2 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + - 52 ) - - + col2 * + - col2 AS col1 FROM tab2 cor0 WHERE col1 <= + + col2
----

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + - 52 ) - - + col2 * + - col2 AS col1 FROM tab2 cor0 WHERE col1 <= + + col2
----

query I rowsort
SELECT ALL col0 + 76 FROM tab2 AS cor0
----
122
140
151

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT col2 + - - col2 DIV col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7243
SELECT col2 + - - col2 / col2 AS col0 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - 63 + + + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7245
SELECT - 63 + + + COUNT ( * ) FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - ( + 69 ) + + COUNT( * ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - ( + 69 ) + + COUNT ( * ) AS col1 FROM tab0
----
-66

query II rowsort
SELECT ALL - col1, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT + COUNT( * ) col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7248
SELECT + COUNT ( * ) col1, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL - ( 79 ) FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7250
SELECT DISTINCT + - col2 AS col1, CAST( NULL AS SIGNED ) * col0 + + 59 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7250
SELECT DISTINCT + - col2 AS col1, CAST ( NULL AS INTEGER ) * col0 + + 59 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + + 73 AS col2 FROM tab2 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + COUNT( * ) * 4 col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7252
SELECT + COUNT ( * ) * 4 col0 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL COUNT( * ) * SUM( + 35 ) col0 FROM tab1 AS cor0
----
315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7253
SELECT ALL COUNT ( * ) * SUM ( + 35 ) col0 FROM tab1 AS cor0
----
315

query I rowsort
SELECT 42 * + + col2 FROM tab1 AS cor0
----
2478
2856
4032

query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT + COUNT( * ) * - - 0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + COUNT ( * ) * - - 0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT + 99 + CAST( NULL AS SIGNED ) + + col1, col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7257
SELECT + 99 + CAST ( NULL AS INTEGER ) + + col1, col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + + col0 * + 49 - col0 AS col1 FROM tab2 AS cor0
----
2208
3072
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT - col0 + + - 29 + col1 DIV + col2 col1 FROM tab1 AS cor0
----
-114
-120
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7259
SELECT - col0 + + - 29 + col1 / + col2 col1 FROM tab1 AS cor0
----
-114
-120
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7260
SELECT DISTINCT + CAST( - 91 AS SIGNED ) + + CAST( NULL AS DECIMAL ) AS col0, - 4 col2 FROM tab1 AS cor0
----
NULL
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7260
SELECT DISTINCT + CAST ( - 91 AS INTEGER ) + + CAST ( NULL AS REAL ) AS col0, - 4 col2 FROM tab1 AS cor0
----
NULL
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7261
SELECT DISTINCT COUNT( * ) * + 15, - 57 DIV + 74 AS col1 FROM tab1 cor0
----
45
0

skipif mysql # not compatible
query II rowsort label-7261
SELECT DISTINCT COUNT ( * ) * + 15, - 57 / + 74 AS col1 FROM tab1 cor0
----
45
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT ALL col0 DIV + 9 AS col0 FROM tab0
----
1
10
9

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL col0 / + 9 AS col0 FROM tab0
----
1
10
9

query I rowsort
SELECT 55 - + col2 AS col2 FROM tab0
----
-44
45
8

query I rowsort
SELECT + col1 * 18 FROM tab1
----
252
846
90

query II rowsort
SELECT ALL - col0, - 20 AS col2 FROM tab1
----
-51
-20
-85
-20
-91
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-7266
SELECT DISTINCT - + col0, - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-51
-1
-85
-1
-91
-1

skipif mysql # not compatible
query II rowsort label-7266
SELECT DISTINCT - + col0, - col1 / col1 AS col0 FROM tab1 AS cor0
----
-51
-1
-85
-1
-91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT - MIN( DISTINCT + 52 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - MIN ( DISTINCT + 52 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + MAX( col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7268
SELECT + MAX ( col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + SUM( + ( 72 ) ) AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7269
SELECT + SUM ( + ( 72 ) ) AS col1 FROM tab2
----
216

query I rowsort
SELECT + 86 + col0 AS col1 FROM tab1 WHERE + col1 * 48 IS NOT NULL
----
137
171
177

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT col2 IN ( col0 )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT col2 + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 * col0 + col2 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7274
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT COUNT( * ) + 39 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7275
SELECT COUNT ( * ) + 39 FROM tab1
----
42

query I rowsort
SELECT ALL 51 * - col0 + 56 * + col1 FROM tab2 WHERE + 32 IS NOT NULL
----
-73
1048
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT - col2 * ( - col0 ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT - col2 * ( - col0 ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 50 FROM tab2
----
114
125
96

query I rowsort
SELECT DISTINCT 18 + 87 AS col1 FROM tab1 WHERE NULL IS NULL
----
105

query I rowsort
SELECT ALL col1 + - ( - col2 - + col0 ) * col1 AS col0 FROM tab1 WHERE - 91 * - col1 < 9 * + col2
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT COUNT( * ) + 18 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT COUNT ( * ) + 18 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT SUM( col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7282
SELECT SUM ( col2 ) AS col0 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT col0 + - col2 DIV col2 AS col2 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-7283
SELECT col0 + - col2 / col2 AS col2 FROM tab1
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7284
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7284
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * col0 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 28 + + col2 AS col1 FROM tab0
----
127
38
75

query I rowsort
SELECT 71 FROM tab1 WHERE NOT NULL NOT BETWEEN + 8 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7288
SELECT * FROM tab1 WHERE NOT ( 67 ) NOT BETWEEN NULL AND col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7288
SELECT * FROM tab1 WHERE NOT ( 67 ) NOT BETWEEN NULL AND col2 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT - MIN( 51 ) AS col1 FROM tab0 WHERE 71 NOT BETWEEN - col2 AND ( - col0 * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT - MIN ( 51 ) AS col1 FROM tab0 WHERE 71 NOT BETWEEN - col2 AND ( - col0 * - col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 35 + - 30 BETWEEN ( - 45 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7291
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 47 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7291
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 47 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 * - 77 - + 93 FROM tab0
----
-170
-1710
-6330

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * - 63 ) < col1 * 62
----

query I rowsort
SELECT DISTINCT col1 * 89 FROM tab2
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT COUNT( * ) * 59 + 25 * - 87 AS col1 FROM tab2 WHERE NOT col0 + col0 IS NULL
----
-1998

skipif mysql # not compatible
query I rowsort label-7295
SELECT COUNT ( * ) * 59 + 25 * - 87 AS col1 FROM tab2 WHERE NOT col0 + col0 IS NULL
----
-1998

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - 81 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL ( + ( 92 ) ) * - COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL ( + ( 92 ) ) * - COUNT ( * ) FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT ALL + 69 - - col1 FROM tab0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT 42 * + SUM( col2 ) FROM tab1
----
9366

skipif mysql # not compatible
query I rowsort label-7302
SELECT 42 * + SUM ( col2 ) FROM tab1
----
9366

query I rowsort
SELECT DISTINCT 59 FROM tab2 WHERE col1 IS NOT NULL
----
59

query I rowsort
SELECT 80 * col0 AS col1 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7305
SELECT ALL + COUNT( * ) DIV - 68 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + COUNT ( * ) / - 68 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 + + 68 * + col2 AS col0 FROM tab2 AS cor0
----
1587
2760
4002

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7308
SELECT * FROM tab2 AS cor0 WHERE ( col0 * CAST( 66 AS SIGNED ) ) NOT BETWEEN + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7308
SELECT * FROM tab2 AS cor0 WHERE ( col0 * CAST ( 66 AS INTEGER ) ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT + col2 DIV col2 col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7309
SELECT + col2 / col2 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE - ( + col0 ) / col0 + + 85 NOT BETWEEN NULL AND + 69 * col2 + - col1
----

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 AS col2 FROM tab0 cor0
----
0
420
6480

query I rowsort
SELECT DISTINCT - col0 - - col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL COUNT( * ) - 89 col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7313
SELECT ALL COUNT ( * ) - 89 col0 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT - AVG ( DISTINCT ( - col1 ) ) / - 23 AS col2 FROM tab0 cor0 WHERE + col0 + col0 NOT IN ( ( col2 ) * CAST( NULL AS SIGNED ) + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT - AVG ( DISTINCT ( - col1 ) ) / - 23 AS col2 FROM tab0 cor0 WHERE + col0 + col0 NOT IN ( ( col2 ) * CAST ( NULL AS INTEGER ) + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT - COUNT( * ) - + 28 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT - COUNT ( * ) - + 28 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT ALL + col0 * + 69 - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
13572
16102

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 NOT IN ( - 44 )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - 14 - - 70 IS NULL
----

query I rowsort
SELECT - 25 * 1 + col0 FROM tab2 AS cor0
----
21
39
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 46 + + 71 col2 FROM tab0 AS cor0
----
4073
4533
761

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - 18 + + ( SUM( + col0 ) ) FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-7322
SELECT - 18 + + ( SUM ( + col0 ) ) FROM tab2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT SUM( ALL col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT SUM ( ALL col0 ) FROM tab2
----
185

query I rowsort
SELECT ( + 81 ) * col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7325
SELECT - COUNT( * ) DIV 14 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7325
SELECT - COUNT ( * ) / 14 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( + col0 * 18 + ( 55 ) )
----

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0 WHERE 27 * ( + 38 ) <> - 15 * + col1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7328
SELECT CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab1 WHERE NOT NULL > - col1
----

skipif mysql # not compatible
query I rowsort label-7328
SELECT CAST ( NULL AS REAL ) * col0 AS col2 FROM tab1 WHERE NOT NULL > - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - 97 ) AND ( - col1 ) * 92
----

query I rowsort
SELECT ALL col0 * - col1 + - col1 * col0 AS col1 FROM tab1 WHERE + col1 BETWEEN - 91 / - col0 AND col1 + + 37
----
-1428
-850
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT col2 FROM tab2 WHERE NOT col1 >= ( 17 + col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7331
SELECT col2 FROM tab2 WHERE NOT col1 >= ( 17 + col0 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 / - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT - + COUNT( * ) DIV + 33 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT - + COUNT ( * ) / + 33 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 93 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT + ( + COUNT( * ) ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7335
SELECT + ( + COUNT ( * ) ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 - 99 NOT IN ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + 62 AS col2, - ( + + ( - col0 ) ) AS col2 FROM tab0
----
62
15
62
87
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + + COUNT( * ) + 73 * 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4608

skipif mysql # not compatible
query I rowsort label-7339
SELECT + + COUNT ( * ) + 73 * 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4608

query I rowsort
SELECT ALL - + col1 * + col0 + - + col1 FROM tab2 cor0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7341
SELECT DISTINCT - COUNT( * ) DIV - + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT - COUNT ( * ) / - + 72 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - col2 )
----

query I rowsort
SELECT - + col0 * - - col0 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-15138
-18818
-450

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN 18 AND NULL OR NOT col1 / + col2 <> ( 36 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT ALL - SUM( 4 ) DIV MIN( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - SUM ( 4 ) / MIN ( col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7347
SELECT ALL * FROM tab2 cor0 WHERE - 62 - + col0 >= ( + col0 ) + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7347
SELECT ALL * FROM tab2 cor0 WHERE - 62 - + col0 >= ( + col0 ) + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT ALL + - 81 + - 42 DIV - MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL + - 81 + - 42 / - MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + - 26 + + COUNT( * ) * + MIN( ALL - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-251

skipif mysql # not compatible
query I rowsort label-7349
SELECT + - 26 + + COUNT ( * ) * + MIN ( ALL - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-251

query I rowsort
SELECT + col2 + col2 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT ALL - + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0 WHERE - 27 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0 WHERE - 27 IS NULL
----

query I rowsort
SELECT - 72 * - + 41 * - + col1 + + col2 - col0 AS col2 FROM tab1
----
-138767
-14786
-41283

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL COUNT( * ) + - COUNT( * ) col2 FROM tab0 WHERE col2 >= - col1 + 34
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7353
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 WHERE col2 >= - col1 + 34
----
0

query I rowsort
SELECT DISTINCT 37 * + 54 AS col1 FROM tab2
----
1998

query III rowsort
SELECT * FROM tab2 WHERE + 82 IS NOT NULL AND NOT ( col2 * col1 ) BETWEEN NULL AND + 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + + + col0 + col0 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT MAX( DISTINCT - ( - col0 ) ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT MAX ( DISTINCT - ( - col0 ) ) AS col1 FROM tab0
----
97

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-15
-87
-97

query II rowsort
SELECT ( + 79 ), col2 + + col2 AS col1 FROM tab1 AS cor0
----
79
118
79
136
79
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT + ( + - ( + - COUNT( * ) ) ) * - 5 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + ( + - ( + - COUNT ( * ) ) ) * - 5 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + col2 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - 90 AS col1 FROM tab0 AS cor0 WHERE + 32 IS NULL
----

query I rowsort
SELECT + + col2 - 37 FROM tab2 AS cor0
----
-14
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL + MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + MIN ( + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - 77 IS NULL
----

query I rowsort
SELECT DISTINCT - 90 * col2 AS col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL ) OR NOT ( + 25 ) IN ( - col0 + 30 )
----
-5310
-6120
-8640

query I rowsort
SELECT ALL - col1 + col0 * + col2 AS col0 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT 51 * + + 5 + + COUNT( * ) AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-7370
SELECT 51 * + + 5 + + COUNT ( * ) AS col1 FROM tab2
----
258

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7371
SELECT DISTINCT + ( + 75 ) + + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7371
SELECT DISTINCT + ( + 75 ) + + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT ALL col2 * + - col0 - 72 + - col1 * col0 + - 69 * - col2 AS col0 FROM tab2
----
-1889
-4800
-5445

query I rowsort
SELECT - col2 + + - col1 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT + COUNT( * ) AS col0, 99 AS col0 FROM tab0 AS cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-7375
SELECT + COUNT ( * ) AS col0, 99 AS col0 FROM tab0 AS cor0
----
3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + + COUNT( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7376
SELECT + + COUNT ( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * + col1 + - + col0 + - - 31 * - + col0 - + col2 * col0 FROM tab0 AS cor0
----
-12608
-3444
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE col2 * + 50 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7378
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col2 * + 50 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT 69 * col0 AS col0 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT MIN( + + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT MIN ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL col0 AS col1, + 29 AS col0 FROM tab1 AS cor0
----
51
29
85
29
91
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 BETWEEN NULL AND - 83 * - 47 + + col1
----

query I rowsort
SELECT 6 * - + col2 AS col2 FROM tab0
----
-282
-594
-60

query II rowsort
SELECT DISTINCT 94 AS col2, ( - + 78 ) FROM tab0
----
94
-78

query II rowsort
SELECT ALL - col0 AS col2, col2 + - col2 FROM tab2
----
-46
0
-64
0
-75
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - + 31 + + - col1 <> ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL MIN( ALL - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL MIN ( ALL - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT 55 * - - col2 FROM tab1
----
3245
3740
5280

query II rowsort
SELECT ALL + col0 AS col2, col2 * - col1 * - col1 FROM tab1
----
51
18816
85
1475
91
150212

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT - + col1 / + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col1 col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7393
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col1 col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + ( + ( + + 48 ) ) AS col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - + 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
12
12
12

query II rowsort
SELECT + - col0 * + + col1 AS col2, + col1 * col1 + + + 20 FROM tab2 AS cor0
----
-2346
2621
-4928
5949
-5025
4509

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT DISTINCT + 28 DIV + - 25 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + 28 / + - 25 AS col0 FROM tab0 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 1 * - - col1 + + 6 + - - col2 ) IN ( col0 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7403
SELECT - CAST( + 29 AS SIGNED ) DIV - 96 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT - CAST ( + 29 AS INTEGER ) / - 96 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab0 AS cor0 WHERE col0 + + + 13 >= ( - - col2 + - - ( - col1 ) )
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col2 + + col1 + + + col2 + - - col2 FROM tab0 AS cor0
----
222
298
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT COUNT( * ) + - - 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT COUNT ( * ) + - - 53 FROM tab2
----
56

query I rowsort
SELECT + 2 * + col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT - 33 + col1 * + col1 * 79 FROM tab0
----
34806
46
518286

query I rowsort
SELECT col1 + - - 41 AS col2 FROM tab1
----
46
55
88

query I rowsort
SELECT ALL 62 * - col2 * + col0 + - - 38 FROM tab0
----
-43672
-53902
-595348

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7412
SELECT * FROM tab2 WHERE ( + - 16 + + CAST( - col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7412
SELECT * FROM tab2 WHERE ( + - 16 + + CAST ( - col2 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT + 1 + - 27 AS col1 FROM tab1
----
-26
-26
-26

query III rowsort
SELECT * FROM tab1 WHERE - - ( + col1 ) * + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + 60 + + + col0 * col0 FROM tab0
----
300
7716
9566

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL ( - COUNT( * ) ) + + ( + 36 ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL ( - COUNT ( * ) ) + + ( + 36 ) AS col2 FROM tab2
----
33

query I rowsort
SELECT + 21 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 58 AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT CAST( + col1 AS SIGNED ) - - 99 * + col0 col2 FROM tab0 cor0
----
1566
8634
9604

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7419
SELECT DISTINCT CAST ( + col1 AS INTEGER ) - - 99 * + col0 col2 FROM tab0 cor0
----
1566
8634
9604

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + + 66 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT + 45 * MIN( DISTINCT + 92 ) AS col2 FROM tab1 AS cor0
----
4140

skipif mysql # not compatible
query I rowsort label-7421
SELECT + 45 * MIN ( DISTINCT + 92 ) AS col2 FROM tab1 AS cor0
----
4140

query II rowsort
SELECT 48 AS col0, col1 AS col1 FROM tab0 AS cor0
----
48
1
48
21
48
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7424
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL <> + ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-7424
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL <> + ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - ( - 52 ) - col2 + col2 + 42 * + col0 AS col2 FROM tab0
----
3706
4126
682

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 62 * + col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT + - 41 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - + 76 FROM tab0 cor0
----
-76
-76
-76

query I rowsort
SELECT + - col1 * - col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT COUNT( * ) * + ( + 73 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
219

skipif mysql # not compatible
query I rowsort label-7431
SELECT COUNT ( * ) * + ( + 73 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 col2 FROM tab0 cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND ( NULL )
----

query II rowsort
SELECT ( col2 ), + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 + col0 ) NOT BETWEEN + col2 AND - 20 * + col2 + col1 / col2
----

query I rowsort
SELECT 44 * + 1 * col2 AS col0 FROM tab2
----
1012
1760
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + 73 * + ( - MIN( DISTINCT col2 ) ) FROM tab0
----
-730

skipif mysql # not compatible
query I rowsort label-7437
SELECT + 73 * + ( - MIN ( DISTINCT col2 ) ) FROM tab0
----
-730

query I rowsort
SELECT + - 28 + + col2 FROM tab2 WHERE NOT + 46 NOT IN ( + col2, + col2 )
----

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( + 32 * - col0 + + col2 ) AND - col2 * - - col1 - + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7440
SELECT - SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT ( + 65 ) AS col1 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT - + COUNT( + + col1 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7442
SELECT DISTINCT - + COUNT ( + + col1 ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT - - 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT - MIN( ALL + ( + 65 ) ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - MIN ( ALL + ( + 65 ) ) FROM tab0
----
-65

query I rowsort
SELECT - 28 * - - col1 FROM tab1 WHERE NULL NOT IN ( + 15, + ( - col2 ) / 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT + - col2 DIV - - col0 + + 45 + 11 FROM tab2 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7447
SELECT + - col2 / - - col0 + + 45 + 11 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT - col2 + + + 85 FROM tab2 AS cor0
----
27
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + + COUNT( * ) + + + 11 AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7449
SELECT + + COUNT ( * ) + + + 11 AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT + 80 + - - col1 FROM tab2 AS cor0
----
131
147
157

query I rowsort
SELECT ALL + + col0 * + 13 AS col0 FROM tab2 AS cor0
----
598
832
975

query I rowsort
SELECT + 85 + col0 FROM tab2 AS cor0
----
131
149
160

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + col2 + col1 * + col1 BETWEEN col2 + ( 57 ) AND - col2 * - col2 + + 49 * + 30
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT MIN( col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7456
SELECT MIN ( col0 ) FROM tab0
----
15

query I rowsort
SELECT ALL ( col2 ) * 68 FROM tab0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT - ( + 13 ) * - COUNT( * ) + MAX( - + 55 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - ( + 13 ) * - COUNT ( * ) + MAX ( - + 55 ) FROM tab1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7459
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * - col1 + 55 col0 FROM tab0
----
-2861
-701
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT 67 * - + 62 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-4151

skipif mysql # not compatible
query I rowsort label-7461
SELECT 67 * - + 62 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-4151

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ( - - 48 ) - + COUNT( * ) FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7462
SELECT ( - - 48 ) - + COUNT ( * ) FROM tab2 cor0
----
45

query I rowsort
SELECT ALL - - col2 * + + 57 AS col1 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT CAST( col2 AS SIGNED ) NOT IN ( - + ( 59 ) )
----

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT CAST ( col2 AS INTEGER ) NOT IN ( - + ( 59 ) )
----

query I rowsort
SELECT + 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query II rowsort
SELECT DISTINCT 2 AS col0, col1 FROM tab0
----
2
1
2
21
2
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT + 13 * + COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + 13 * + COUNT ( * ) FROM tab1 AS cor0
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + AVG ( DISTINCT - col2 ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT + AVG ( DISTINCT - col2 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT MAX( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7471
SELECT MAX ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT col2 DIV + 51 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT col2 / + 51 FROM tab0
----
0
0
1

query I rowsort
SELECT + col2 * ( + 87 ) FROM tab1
----
5133
5916
8352

query I rowsort
SELECT + col1 * + 93 * col2 FROM tab2 AS cor0
----
109089
286440
361398

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT - col1 DIV + ( col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT - col1 / + ( col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT ALL + 29 * - - col2 DIV col2 * 72 + - + 9 - - 95 col1 FROM tab2 AS cor0
----
2174
2174
2174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7476
SELECT ALL + 29 * - - col2 / col2 * 72 + - + 9 - - 95 col1 FROM tab2 AS cor0
----
2174
2174
2174

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7477
SELECT * FROM tab2 cor0 WHERE NOT NULL <> NULL AND NOT 23 NOT BETWEEN CAST( col2 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7477
SELECT * FROM tab2 cor0 WHERE NOT NULL <> NULL AND NOT 23 NOT BETWEEN CAST ( col2 AS REAL ) AND NULL
----

query I rowsort
SELECT ALL 41 * + col0 AS col0 FROM tab1 AS cor0
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + 28 + - COUNT( * ) + - COUNT( * ) FROM tab1, tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + 28 + - COUNT ( * ) + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 52 + + - 4 AS col2 FROM tab0
----
48

query I rowsort
SELECT 38 * + 70 AS col1 FROM tab2
----
2660
2660
2660

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT ALL - 5 AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL - 5 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + + MAX( - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7483
SELECT + + MAX ( - + col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - - col2 NOT BETWEEN + ( col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MIN( ALL - 69 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MIN ( ALL - 69 ) FROM tab1
----
NULL

query I rowsort
SELECT 69 + col2 FROM tab0
----
116
168
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL + 24 + + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + 24 + + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT - ( - + col0 ) + + - col2 * + + col2 AS col1 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT ALL 13 + + col2 AS col2 FROM tab0
----
112
23
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT 94 * - CAST( - COUNT( DISTINCT 88 ) AS SIGNED ) + - ( - COUNT( * ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7490
SELECT 94 * - CAST ( - COUNT ( DISTINCT 88 ) AS INTEGER ) + - ( - COUNT ( * ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT DISTINCT + + 28 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( + col2 + + col0 )
----

query I rowsort
SELECT ALL - 91 - col1 AS col0 FROM tab2 AS cor0
----
-142
-158
-168

query II rowsort
SELECT DISTINCT + col2, - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT ( - + 80 ) * - col2 / - - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT ( - + 80 ) * - col2 / - - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query II rowsort
SELECT ( + + 96 ) AS col1, col0 * col2 * 41 - col0 + + col2 FROM tab1 AS cor0
----
96
200781
96
205589
96
253685

query I rowsort
SELECT ALL - col1 * - - 39 + - col2 * - - 49 FROM tab1 AS cor0
----
-3086
-5165
-5250

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT ALL col2 DIV + ( - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL col2 / + ( - col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT DISTINCT - col2 * + - 75 - + - 46 + 93 AS col1 FROM tab0 AS cor0
----
3664
7564
889

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7501
SELECT ALL + + col2 DIV col0 AS col0, + CAST( NULL AS SIGNED ) - + + 85 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7501
SELECT ALL + + col2 / col0 AS col0, + CAST ( NULL AS INTEGER ) - + + 85 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT ALL - 37 DIV - - COUNT( 99 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - 37 / - - COUNT ( 99 ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT + 91 + + 72 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
163
163
163

query II rowsort
SELECT col2 AS col1, + 15 AS col2 FROM tab2
----
23
15
40
15
58
15

query I rowsort
SELECT - col1 * + col1 * - - ( col1 ) AS col0 FROM tab2
----
-132651
-300763
-456533

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - COUNT( * ) * + 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-7508
SELECT - COUNT ( * ) * + 88 FROM tab0
----
-264

query I rowsort
SELECT ALL + 23 * - 4 AS col1 FROM tab1
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 70 * - + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT - MAX( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT - MAX ( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7512
SELECT * FROM tab1 WHERE NOT NULL > - - 7 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7512
SELECT * FROM tab1 WHERE NOT NULL > - - 7 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT DISTINCT + 11 AS col1 FROM tab1 AS cor0 WHERE - CAST( - col0 AS SIGNED ) + CAST( 36 AS SIGNED ) IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + 11 AS col1 FROM tab1 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) + CAST ( 36 AS INTEGER ) IS NOT NULL
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7514
SELECT DISTINCT + 73, COUNT( * ) AS col0 FROM tab1 AS cor0
----
73
3

skipif mysql # not compatible
query II rowsort label-7514
SELECT DISTINCT + 73, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
73
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 11 * 88 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL CAST( NULL AS SIGNED ) / - col0 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 41 - + - col1 AS col2 FROM tab1 AS cor0
----
46
55
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7520
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 16 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7520
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 16 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 + col1 + - 6 + + 22 AS col1, col0 FROM tab2 AS cor0
----
21
46
29
64
8
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + COUNT( ALL + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + COUNT ( ALL + - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT DISTINCT - COUNT( ALL - CAST( - 50 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - COUNT ( ALL - CAST ( - 50 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT - - MIN( - - col2 ) + + + MAX( - col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT - - MIN ( - - col2 ) + + + MAX ( - col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

query II rowsort
SELECT + + col1 AS col2, - 82 + + ( + 13 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT DISTINCT col1 DIV + - ( - col0 ) + - 3 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT col1 / + - ( - col0 ) + - 3 AS col2 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 7 - col0 FROM tab1
----
-44
-78
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7529
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND + 19 / - col1
----

skipif mysql # not compatible
query III rowsort label-7529
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND + 19 / - col1
----

query I rowsort
SELECT + ( + 47 ) * + - col1 + + 52 FROM tab0 cor0
----
-3755
-935
5

query I rowsort
SELECT DISTINCT - col0 * - 89 * + 12 AS col0 FROM tab2 cor0
----
49128
68352
80100

query I rowsort
SELECT 81 * + col1 + col0 FROM tab0 cor0
----
178
1788
6576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT - 42 DIV COUNT( * ) * + COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-7533
SELECT - 42 / COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-42

query I rowsort
SELECT DISTINCT col0 * + 66 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7535
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT - 60 * - col2 - + + 97 FROM tab2 AS cor0
----
1283
2303
3383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT - 78 * - 63 + - - COUNT( * ) + + MAX( DISTINCT + col1 ) + ( + - COUNT( * ) ) * + - CAST( + 23 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
5063

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - 78 * - 63 + - - COUNT ( * ) + + MAX ( DISTINCT + col1 ) + ( + - COUNT ( * ) ) * + - CAST ( + 23 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
5063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 col2, + ( + - col1 ) col0 FROM tab1 AS cor0
----
85
-14
85
-47
85
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( ( - col2 ) ) AND 81
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 17 FROM tab2 cor0 WHERE col1 / + + col1 NOT BETWEEN NULL AND + 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col2 FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT 82 + + col2 AS col1, - col2 AS col0 FROM tab1
----
141
-59
150
-68
178
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7544
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 33 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 33 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + MAX( ALL - + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7545
SELECT + MAX ( ALL - + col2 ) AS col1 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 34 + + col0 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL + 13 + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + 13 + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT + 63 * + - col1 AS col1 FROM tab1
----
-2961
-315
-882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab2
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST( 37 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( 37 AS INTEGER )
----

query I rowsort
SELECT ALL ( + col0 ) + + + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT ALL col1 AS col1, 51 FROM tab2 AS cor0
----
51
51
67
51
77
51

query II rowsort
SELECT ALL + col2, + col1 AS col0 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE + 20 / col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT ( col0 + 14 ) NOT BETWEEN + col2 * col1 AND NULL AND NOT 4 NOT BETWEEN ( + + col0 ) AND NULL
----

query I rowsort
SELECT col2 + 67 FROM tab1
----
126
135
163

query I rowsort
SELECT - 47 + - + col0 AS col2 FROM tab2
----
-111
-122
-93

query I rowsort
SELECT col2 + col0 + + 23 + - col0 * + - 55 AS col1 FROM tab2
----
2622
3647
4281

query I rowsort
SELECT - col1 * - 37 + + col1 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT 76 + + COUNT( * ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-7560
SELECT 76 + + COUNT ( * ) FROM tab2
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7561
SELECT * FROM tab1 WHERE NOT - 61 NOT IN ( col2, - col0 + - - CAST( - - ( col2 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7561
SELECT * FROM tab1 WHERE NOT - 61 NOT IN ( col2, - col0 + - - CAST ( - - ( col2 ) AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT ALL + COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT col2 * + 84 FROM tab0 AS cor0
----
3948
8316
840

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - MIN( DISTINCT - 39 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7567
SELECT - MIN ( DISTINCT - 39 ) FROM tab1 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - 88 * - - 86 + + + col2 AS col0 FROM tab1 AS cor0
----
-446453
-514556
-726432

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 51 * - 86 + + col2 * - col0 + 71 + + + 71 * - - 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT SUM( + - col2 ) * COUNT( * ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT SUM ( + - col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
-669

query I rowsort
SELECT + - 74 AS col1 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - + SUM( ALL + 27 ) + - - 68 AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7573
SELECT - + SUM ( ALL + 27 ) + - - 68 AS col0 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL + 82 * col2 FROM tab1 AS cor0
----
4838
5576
7872

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL ( + - 28 ) * col0 + - 76 + 80 DIV col1 * - + 36 - - col2 FROM tab1 AS cor0 WHERE NOT 93 + col1 <= + 49 + + col0
----
-1588

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL ( + - 28 ) * col0 + - 76 + 80 / col1 * - + 36 - - col2 FROM tab1 AS cor0 WHERE NOT 93 + col1 <= + 49 + + col0
----
-1588

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + + MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + + MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT col0 + 42 * + col1 * + col1 FROM tab2 AS cor0
----
109288
188613
249082

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = - + ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 67 + - col0 * - col2 AS col0 FROM tab2
----
1125
2627
4417

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - 52 + col0 - + 53 * + col1 * - + col1 FROM tab2
----
137847
237940
314249

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT ALL - 13 DIV + 11 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - 13 / + 11 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 43 col1 FROM tab0
----
124
44
64

query I rowsort
SELECT col1 * + - col2 * + + col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT SUM( ALL 15 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7587
SELECT SUM ( ALL 15 ) AS col2 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - COUNT( * ) * + - 84 AS col1 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7588
SELECT - COUNT ( * ) * + - 84 AS col1 FROM tab0 AS cor0
----
252

query I rowsort
SELECT col0 * + 55 AS col1 FROM tab0 AS cor0
----
4785
5335
825

query I rowsort
SELECT DISTINCT - col2 * + 23 AS col1 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT + col2 DIV + - 73 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT + col2 / + - 73 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT DISTINCT + - MAX( col0 ) * + MIN( ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-3825

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + - MAX ( col0 ) * + MIN ( ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-3825

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 20 IS NULL
----

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7595
SELECT * FROM tab0 WHERE + ( + CAST( col2 AS SIGNED ) ) - + + col2 BETWEEN - - 92 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7595
SELECT * FROM tab0 WHERE + ( + CAST ( col2 AS INTEGER ) ) - + + col2 BETWEEN - - 92 AND NULL
----

query I rowsort
SELECT ALL - 24 + col0 FROM tab1
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + COUNT( * ) - - + COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7597
SELECT ALL + COUNT ( * ) - - + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 74 * + 3 AS col0 FROM tab0 AS cor0
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7599
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( 11 AS SIGNED ) ) - - - ( + + 99 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7599
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( 11 AS INTEGER ) ) - - - ( + + 99 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 83 * - 0 * - col2 * + 25 BETWEEN + 27 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, 75 * - col1 col0 FROM tab2
----
23
-3825
40
-5775
58
-5025

query III rowsort
SELECT * FROM tab1 WHERE NOT - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 51 ) AS col0 FROM tab1
----
-51
-51
-51

query II rowsort
SELECT - col2, + 48 AS col1 FROM tab2
----
-23
48
-40
48
-58
48

query I rowsort
SELECT + - col0 - - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL MAX ( + + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col0 * - 79 AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7608
SELECT ALL 75 col0, + CAST( - 11 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
75
-11
75
-11
75
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7608
SELECT ALL 75 col0, + CAST ( - 11 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
75
-11
75
-11
75
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + - MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7610
SELECT + - MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7611
SELECT DISTINCT + CAST( MIN( DISTINCT + ( + col0 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT + CAST ( MIN ( DISTINCT + ( + col0 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT - - col2 * col0 * - CAST( + 36 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7612
SELECT - - col2 * col0 * - CAST ( + 36 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - + ( - - AVG ( DISTINCT 54 ) ) AS col1 FROM tab2 AS cor0 WHERE - col0 * - - col2 / + + col2 + + col2 NOT BETWEEN - col1 AND + + col1
----
NULL

query II rowsort
SELECT DISTINCT + col1 * - col2 + + - col2 AS col2, + col1 AS col2 FROM tab1
----
-1440
14
-3264
47
-354
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT 22 + + COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT 22 + + COUNT ( * ) FROM tab0
----
25

query I rowsort
SELECT + 96 AS col0 FROM tab1
----
96
96
96

query I rowsort
SELECT 11 + - col1 FROM tab2
----
-40
-56
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT - col2 DIV + 64 + + + 62 AS col2 FROM tab0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-7619
SELECT - col2 / + 64 + + + 62 AS col2 FROM tab0
----
61
62
62

query I rowsort
SELECT ALL 46 AS col1 FROM tab0 WHERE ( NULL IS NULL )
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT - MAX( + col0 ) + - COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - MAX ( + col0 ) + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL + SUM( DISTINCT + col0 ) + - 78 FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL + SUM ( DISTINCT + col0 ) + - 78 FROM tab2
----
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 30 col2 FROM tab0
----
117
127
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * ( + + 55 ), - col0 * - - col2 * 12 AS col2 FROM tab0 AS cor0
----
1155
-10440
4455
-8460
55
-115236

query I rowsort
SELECT DISTINCT - + 92 - + 30 + + col1 AS col2 FROM tab0 cor0
----
-101
-121
-41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7628
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT + CAST( NULL AS SIGNED ) * - + 37 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-7629
SELECT + CAST ( NULL AS INTEGER ) * - + 37 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT ALL + MIN( col1 ) DIV + - SUM( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + MIN ( col1 ) / + - SUM ( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 87 * - col1 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT ALL - COUNT( * ) DIV - - COUNT( 77 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - COUNT ( * ) / - - COUNT ( 77 ) AS col0 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT - + 42 AS col2 FROM tab2 WHERE NOT + - CAST( 85 AS SIGNED ) + ( col1 ) IS NULL
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7634
SELECT - + 42 AS col2 FROM tab2 WHERE NOT + - CAST ( 85 AS INTEGER ) + ( col1 ) IS NULL
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - MAX( + col0 ) * 74 AS col0 FROM tab2
----
-5550

skipif mysql # not compatible
query I rowsort label-7635
SELECT - MAX ( + col0 ) * 74 AS col0 FROM tab2
----
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7636
SELECT ALL * FROM tab1 WHERE NOT + col2 <= - - 78 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7636
SELECT ALL * FROM tab1 WHERE NOT + col2 <= - - 78 + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < - - col2 + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - 15 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT DISTINCT - + 94, + col1 * - + 14 + - 29 AS col1 FROM tab0 AS cor0
----
-94
-1163
-94
-323
-94
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT - MIN( + 39 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT - MIN ( + 39 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT - + col1 + + - 20 + - col1 + + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-121
-229
-72

skipif mysql # not compatible
query I rowsort label-7642
SELECT - + col1 + + - 20 + - col1 + + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-121
-229
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - COUNT( * ) + 55 FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-7643
SELECT - COUNT ( * ) + 55 FROM tab1 cor0
----
52

query I rowsort
SELECT ALL - 70 + + col0 * col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + + col2 + - col1 - - + col0 + + + col1 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT - col2 + + 15 AS col2 FROM tab0 AS cor0
----
-32
-84
5

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL ( + + ( 35 ) ) AS col1, + 25 * - - 80 + col1 AS col1 FROM tab2 WHERE NULL < - col0 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 * + - 60 col2 FROM tab2
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT - col2, - 51 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7652
SELECT * FROM tab0 WHERE - 80 < + CAST( + - col2 AS SIGNED ) * + 54 + 5
----

skipif mysql # not compatible
query III rowsort label-7652
SELECT * FROM tab0 WHERE - 80 < + CAST ( + - col2 AS INTEGER ) * + 54 + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT - 18 + - + MIN( + col0 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT - 18 + - + MIN ( + col0 ) FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT ALL - COUNT( * ) + + 6 AS col0, 46 AS col0 FROM tab1
----
3
46

skipif mysql # not compatible
query II rowsort label-7654
SELECT ALL - COUNT ( * ) + + 6 AS col0, 46 AS col0 FROM tab1
----
3
46

query I rowsort
SELECT DISTINCT + + 63 * - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3213
-5355
-5733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT - - 5 + - COUNT( * ) FROM tab1 cor0 WHERE + col1 = - + CAST( NULL AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7656
SELECT - - 5 + - COUNT ( * ) FROM tab1 cor0 WHERE + col1 = - + CAST ( NULL AS INTEGER )
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 35 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 75 FROM tab2 WHERE - - col1 <= - + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT 95 + + - CAST( + - 1 AS SIGNED ) AS col0 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-7659
SELECT 95 + + - CAST ( + - 1 AS INTEGER ) AS col0 FROM tab2
----
96
96
96

query III rowsort
SELECT * FROM tab1 WHERE + col1 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT col2 * col2 * - 58 / - col1 + + 95 * + - 8 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT col2 * col2 * - 58 / - col1 + + 95 * + - 8 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - MIN( + col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT - MIN ( + col1 ) col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 29 IS NULL
----

query II rowsort
SELECT ALL + 12 AS col1, col0 FROM tab2 AS cor0
----
12
46
12
64
12
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT MAX( ALL - 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7665
SELECT MAX ( ALL - 71 ) FROM tab0 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT COUNT( DISTINCT + 15 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( DISTINCT + 15 ) AS col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT - - col2, col1 FROM tab2 AS cor0 WHERE NOT + 53 IS NULL
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT ALL - - COUNT( col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - - COUNT ( col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + ( - 3 ) FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT - - 60 + + COUNT( * ) DIV 53 FROM tab0 WHERE NOT ( col1 + - col1 IS NOT NULL )
----
60

skipif mysql # not compatible
query I rowsort label-7670
SELECT - - 60 + + COUNT ( * ) / 53 FROM tab0 WHERE NOT ( col1 + - col1 IS NOT NULL )
----
60

query I rowsort
SELECT ALL + ( + 41 ) AS col0 FROM tab2
----
41
41
41

query I rowsort
SELECT DISTINCT - - 0 AS col0 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 30 * - 45 FROM tab1
----
-1350
-1350
-1350

query I rowsort
SELECT ALL - 87 + - - col2 AS col1 FROM tab0
----
-40
-77
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT + 48 * col2 + 6 DIV + 23 + + col0 + + col1 - + + col0 AS col1 FROM tab0 AS cor0
----
2337
4753
501

skipif mysql # not compatible
query I rowsort label-7675
SELECT + 48 * col2 + 6 / + 23 + + col0 + + col1 - + + col0 AS col1 FROM tab0 AS cor0
----
2337
4753
501

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 75 * + 84 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7677
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT - + col1 - - + col2 * ( 23 ) AS col0 FROM tab2 cor0
----
1267
478
843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - - 67 - - + col2 AS col0, - col0 AS col2, + col2 col0 FROM tab0 AS cor0
----
9 values hashing to 6d23c1cb12695b340a922e4756b4dd0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + 98 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + 98 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL 24 + - + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL 24 + - + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT col2 * + + col0 + 99 FROM tab0
----
804
969
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT ( col1 ) * - + col0 - - + 2 + + 59 + - col1 DIV + ( + + col2 ) FROM tab2
----
-2287
-4868
-4965

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT ( col1 ) * - + col0 - - + 2 + + 59 + - col1 / + ( + + col2 ) FROM tab2
----
-2287
-4868
-4965

query I rowsort
SELECT DISTINCT 42 - - ( + - ( col1 ) ) FROM tab1
----
-5
28
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + COUNT( * ) + + - COUNT( * ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7686
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) col0 FROM tab1
----
0

query I rowsort
SELECT - 43 + - col0 AS col2 FROM tab0
----
-130
-140
-58

query I rowsort
SELECT + 58 * + 46 * - - col2 + - col2 AS col2 FROM tab1
----
157353
181356
256032

query I rowsort
SELECT DISTINCT - col0 * + + 25 AS col0 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7690
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7690
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 30 * col1 - + col2 AS col1 FROM tab0 AS cor0
----
-69
2383
620

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - + COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7692
SELECT - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL ( - COUNT( * ) ) - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL ( - COUNT ( * ) ) - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( 43 ) * col0 FROM tab2 AS cor0
----
1978
2752
3225

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT ALL - + 98 DIV 84 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - + 98 / 84 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + 35 FROM tab1 cor0
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 / col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - 62 * - col2 AS col1 FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - 37 + 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL OR NOT + + col2 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( + + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL COUNT( + 95 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL COUNT ( + 95 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT COUNT( DISTINCT - 18 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7705
SELECT COUNT ( DISTINCT - 18 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT 48 * - CAST( NULL AS SIGNED ) / + - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT 48 * - CAST ( NULL AS INTEGER ) / + - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) * - ( - - col2 ) * + col0 * + col1 + + col2 AS col1 FROM tab0
----
383680
4625552
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT ALL 35 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL 35 / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT + ( + - CAST( + col0 AS SIGNED ) ) <> ( - ( - col2 ) * + col2 + + + 3 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7709
SELECT - COUNT ( * ) col2 FROM tab1 WHERE NOT + ( + - CAST ( + col0 AS INTEGER ) ) <> ( - ( - col2 ) * + col2 + + + 3 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT 86 DIV - 12 FROM tab1 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-7710
SELECT 86 / - 12 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - + MIN( ALL + - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - + MIN ( ALL + - 97 ) FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL MIN( DISTINCT + 53 ) col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7712
SELECT ALL MIN ( DISTINCT + 53 ) col0 FROM tab2 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - + - 8 + - 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT CAST( - 26 AS SIGNED ) + col2 FROM tab2
----
-3
14
32

skipif mysql # not compatible
query I rowsort label-7714
SELECT CAST ( - 26 AS INTEGER ) + col2 FROM tab2
----
-3
14
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT ( - + COUNT( DISTINCT - - ( 92 ) ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT ( - + COUNT ( DISTINCT - - ( 92 ) ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT DISTINCT + - col1 + col2 DIV - + 94 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT + - col1 + col2 / - + 94 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - ( + SUM( DISTINCT + col2 ) ) + - + 62 AS col0 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7717
SELECT - ( + SUM ( DISTINCT + col2 ) ) + - + 62 AS col0 FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT ALL COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 + 4 AND - 50
----

query I rowsort
SELECT col0 + + col2 + - 70 AS col1 FROM tab1 AS cor0
----
74
77
89

query II rowsort
SELECT DISTINCT col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 69 + 39 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7724
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL - + SUM( CAST( 71 AS SIGNED ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - + SUM ( CAST ( 71 AS INTEGER ) ) FROM tab2 AS cor0
----
-213

query II rowsort
SELECT col2 * + col1 AS col2, - 53 + + col0 AS col0 FROM tab1
----
1344
-2
295
32
3196
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 6 AND - + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col2 ) ) col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT - MAX( ALL - 42 ) + 0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - MAX ( ALL - 42 ) + 0 FROM tab0
----
42

query I rowsort
SELECT col0 * 84 + col1 AS col1 FROM tab2 WHERE + - 63 > col2
----

query I rowsort
SELECT col2 - - 18 AS col0 FROM tab2
----
41
58
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7733
SELECT - + col1 DIV col1 + - col1 DIV - CAST( - col0 AS SIGNED ) * - + 32 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7733
SELECT - + col1 / col1 + - col1 / - CAST ( - col0 AS INTEGER ) * - + 32 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - ( col2 ) - + 88 FROM tab2 AS cor0
----
-30
-48
-65

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> col0 * - 49
----

query I rowsort
SELECT + 93 * 71 FROM tab1
----
6603
6603
6603

query I rowsort
SELECT + col1 * - 54 AS col1 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7738
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2
----
-9

query II rowsort
SELECT ALL 29 AS col2, col1 AS col2 FROM tab0
----
29
1
29
21
29
81

query II rowsort
SELECT ALL + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + + COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7742
SELECT + + COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * 67 AS col0 FROM tab1 AS cor0
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT 45 * + ( + col0 ) * col0 - - col2 - - + col1 FROM tab2
----
184437
253250
95294

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 64 * + 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT - ( - MAX( - + 1 ) ) AS col1 FROM tab1 WHERE NOT col1 * + 83 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT - ( - MAX ( - + 1 ) ) AS col1 FROM tab1 WHERE NOT col1 * + 83 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT - CAST( NULL AS SIGNED ) * - + ( - ( + + col0 ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT - CAST ( NULL AS INTEGER ) * - + ( - ( + + col0 ) ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * col2, + col2 AS col0 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT ALL + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - - COUNT( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - - SUM( 81 ) + + 83 FROM tab2 AS cor0
----
326

skipif mysql # not compatible
query I rowsort label-7751
SELECT - - SUM ( 81 ) + + 83 FROM tab2 AS cor0
----
326

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + 0 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL col1 * + col1 + col0, + ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
110
-5
2300
-47
247
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7755
SELECT CAST( NULL AS SIGNED ), col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7755
SELECT CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT SUM( + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7756
SELECT SUM ( + - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT + MAX( DISTINCT CAST( + - col1 AS SIGNED ) ) * SUM( ALL - 97 ) - - 96 AS col2 FROM tab0
----
387

skipif mysql # not compatible
query I rowsort label-7757
SELECT + MAX ( DISTINCT CAST ( + - col1 AS INTEGER ) ) * SUM ( ALL - 97 ) - - 96 AS col2 FROM tab0
----
387

query I rowsort
SELECT - 64 AS col0 FROM tab2
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT + + 37 FROM tab2 AS cor0 WHERE 47 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7759
SELECT + + 37 FROM tab2 AS cor0 WHERE 47 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 68 - - col1 AS col1 FROM tab0 AS cor0
----
3277
6733
701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab2 cor0
----
-99

query I rowsort
SELECT - col1 - + + 49 FROM tab0 AS cor0
----
-130
-50
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL + - 40 * - - 13 * - CAST( - ( + 90 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-46800
-46800
-46800

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + - 40 * - - 13 * - CAST ( - ( + 90 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-46800
-46800
-46800

query I rowsort
SELECT DISTINCT + ( - - 48 ) AS col0 FROM tab1 cor0
----
48

query I rowsort
SELECT DISTINCT - col2 + + col2 - - col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT DISTINCT 36 + - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT 36 + - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + - 13 FROM tab0
----
2
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL - COUNT( * ) + + COUNT( * ) + - SUM( - + col1 ) + + 60 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + - SUM ( - + col1 ) + + 60 FROM tab2
----
255

query III rowsort
SELECT * FROM tab1 WHERE 17 * - col1 * col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
102
170
182

query I rowsort
SELECT 10 + + 25 AS col1 FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL + MIN( + 14 ) + - CAST( + + MIN( DISTINCT - col0 ) AS SIGNED ) + + - CAST( NULL AS SIGNED ) / + 29 * 70 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + MIN ( + 14 ) + - CAST ( + + MIN ( DISTINCT - col0 ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) / + 29 * 70 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + - + col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 WHERE + + ( + - 14 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT DISTINCT - 66 DIV COUNT( - - 89 ) AS col2 FROM tab2 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - 66 / COUNT ( - - 89 ) AS col2 FROM tab2 cor0
----
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 84 ) > NULL
----

query I rowsort
SELECT ALL - 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 97 * - 36 FROM tab2
----
-3492
-3492
-3492

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 90 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT DISTINCT - - ( + 74 ) AS col1 FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL - ( - 88 ) + - 13 * + ( col0 ) + - 20 AS col2 FROM tab2 AS cor0
----
-530
-764
-907

query II rowsort
SELECT - + col1 + col1, 39 AS col0 FROM tab0 AS cor0
----
0
39
0
39
0
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7785
SELECT - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT - CAST ( NULL AS REAL ) + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 27 / + + col0 / + ( - - col1 ) * - col0 AS col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 + - ( - + col1 ) AS col1 FROM tab1
----
210
2256
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7788
SELECT ALL 93 AS col0, + MAX( - 19 ) AS col0 FROM tab1
----
93
-19

skipif mysql # not compatible
query II rowsort label-7788
SELECT ALL 93 AS col0, + MAX ( - 19 ) AS col0 FROM tab1
----
93
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT - col2 FROM tab1 WHERE - col0 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7789
SELECT - col2 FROM tab1 WHERE - col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 15 col0, - col2 FROM tab0 AS cor0
----
-15
-10
-15
-47
-15
-99

query I rowsort
SELECT DISTINCT + col1 * + - col2 + 24 FROM tab2 AS cor0
----
-1149
-3056
-3862

query I rowsort
SELECT - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL + 95 AS col2 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT - 44 + + COUNT( * ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - 44 + + COUNT ( * ) FROM tab2
----
-41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 < ( + 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT 53 + SUM( 14 ) AS col2 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-7799
SELECT 53 + SUM ( 14 ) AS col2 FROM tab2
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <> col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 - 32 FROM tab0
----
-11
-31
49

query I rowsort
SELECT DISTINCT + 60 + 78 AS col1 FROM tab0
----
138

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 46 + col1 FROM tab0 WHERE + col1 NOT BETWEEN col1 AND col2
----
127
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT ALL + 0 DIV - 36 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 0 / - 36 FROM tab2
----
0
0
0

query I rowsort
SELECT + 84 * + col0 AS col2 FROM tab0
----
1260
7308
8148

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT ALL SUM( ALL - col0 ) DIV + 93 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL SUM ( ALL - col0 ) / + 93 FROM tab1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = + 94
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT ALL + COUNT( * ) DIV - 20 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + COUNT ( * ) / - 20 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT CAST( - COUNT( * ) AS SIGNED ) - - SUM( DISTINCT + col0 ) * 53 AS col0 FROM tab2
----
9802

skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - - SUM ( DISTINCT + col0 ) * 53 AS col0 FROM tab2
----
9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL + ( col0 ) AS col1 FROM tab0 WHERE NOT 36 - - 74 / + col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + ( col0 ) AS col1 FROM tab0 WHERE NOT 36 - - 74 / + col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT - 43 DIV 14 AS col2 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7813
SELECT - 43 / 14 AS col2 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT 53 + CAST( - 53 AS SIGNED ) FROM tab2 WHERE NOT - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT 53 + CAST ( - 53 AS INTEGER ) FROM tab2 WHERE NOT - col1 IS NULL
----
0
0
0

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 WHERE - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT 55 DIV 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT 55 / 90 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT - MAX( + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - MAX ( + col0 ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT ALL - 17 AS col0 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT COUNT( * ) + + 27 * + 88 FROM tab2 WHERE NULL = NULL
----
2376

skipif mysql # not compatible
query I rowsort label-7819
SELECT COUNT ( * ) + + 27 * + 88 FROM tab2 WHERE NULL = NULL
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col1 <> - ( 48 )
----

skipif mysql # not compatible
query I rowsort label-7820
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col1 <> - ( 48 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT + ( + ( - CAST( COUNT( * ) AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7821
SELECT + ( + ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT - 0 - col1 FROM tab1 cor0 WHERE ( - col0 / - CAST( NULL AS SIGNED ) ) NOT IN ( col2 + col0 )
----

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - 0 - col1 FROM tab1 cor0 WHERE ( - col0 / - CAST ( NULL AS INTEGER ) ) NOT IN ( col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 86 * 60 FROM tab0 AS cor0
----
5160
5160
5160

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + 78 + - col0 )
----

query I rowsort
SELECT 25 * 63 FROM tab0
----
1575
1575
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT - MIN( 45 ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - MIN ( 45 ) FROM tab2 cor0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 9
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 92 NOT IN ( col2 * col0 + + 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 / + 67 ) IN ( col0 * - 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7835
SELECT SUM ( col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + COUNT( DISTINCT col2 ) * - 89 AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-7836
SELECT + COUNT ( DISTINCT col2 ) * - 89 AS col0 FROM tab2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT col2 DIV col0 AS col2 FROM tab2 WHERE ( ( - col1 ) ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT col2 / col0 AS col2 FROM tab2 WHERE ( ( - col1 ) ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col0 + + 44 FROM tab0
----
131
141
59

query I rowsort
SELECT ALL - col1 + col0 + - col1 FROM tab0
----
-147
45
95

query I rowsort
SELECT + 84 + + - col0 AS col1 FROM tab0
----
-13
-3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL - 3 + ( + COUNT( * ) ) col0 FROM tab2 WHERE NOT - col2 + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7841
SELECT ALL - 3 + ( + COUNT ( * ) ) col0 FROM tab2 WHERE NOT - col2 + col2 IS NULL
----
0

query I rowsort
SELECT ALL col0 + - + col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + + col0 * + 44 FROM tab0 AS cor0
----
3828
4268
660

query I rowsort
SELECT col0 * + 37 FROM tab0 AS cor0 WHERE col2 NOT IN ( + 64 + + col2 * col0 )
----
3219
3589
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT + - COUNT( ALL 69 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + - COUNT ( ALL 69 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 92 * + col2 AS col1 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT col0 + - 39 FROM tab2
----
25
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT ALL 72 * - 62 * 94 * - COUNT( + col0 * CAST( NULL AS SIGNED ) ) - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 72 * - 62 * 94 * - COUNT ( + col0 * CAST ( NULL AS INTEGER ) ) - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7851
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - 59 AND ( CAST( col0 AS SIGNED ) - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7851
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - 59 AND ( CAST ( col0 AS INTEGER ) - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + 8 AS col1 FROM tab0 AS cor0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL + COUNT( * ) - - - ( - 89 ) AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + COUNT ( * ) - - - ( - 89 ) AS col2 FROM tab1 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT - + CAST( AVG ( DISTINCT + 20 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT DISTINCT - + CAST ( AVG ( DISTINCT + 20 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + - 93 * + col1 FROM tab1 AS cor0
----
-1302
-4371
-465

query I rowsort
SELECT - + col0 * + 8 AS col2 FROM tab1 cor0
----
-408
-680
-728

query I rowsort
SELECT - ( - - 73 ) AS col2 FROM tab2
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7860
SELECT ALL * FROM tab0 WHERE + CAST( 53 AS SIGNED ) / + 11 + - ( col2 ) <= 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7860
SELECT ALL * FROM tab0 WHERE + CAST ( 53 AS INTEGER ) / + 11 + - ( col2 ) <= 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( col1 ) * + - col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT ( - 31 ) FROM tab2
----
-31
-31
-31

query II rowsort
SELECT - ( col2 ), col0 - - 49 + 71 AS col0 FROM tab0
----
-10
207
-47
135
-99
217

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col2 * - 30 FROM tab0 WHERE NOT 72 <= ( 16 * 48 )
----

query I rowsort
SELECT + 79 / 51 AS col0 FROM tab2 WHERE NOT ( - + 66 + + - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT ( - - col0 ) <> 91
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT ( - - col0 ) <> 91
----
0

query I rowsort
SELECT - col1 / col0 * 76 - col2 AS col1 FROM tab0 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT + 6 - - 15 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col1 + - col0 - col0 )
----

query I rowsort
SELECT DISTINCT 42 * + 0 + + col2 FROM tab1 AS cor0 WHERE - 39 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 99 ) NOT IN ( + 63 * + + col1 )
----

query I rowsort
SELECT + + 64 AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7874
SELECT ALL - MIN( - - 87 ) AS col0, - 48 FROM tab0 AS cor0
----
-87
-48

skipif mysql # not compatible
query II rowsort label-7874
SELECT ALL - MIN ( - - 87 ) AS col0, - 48 FROM tab0 AS cor0
----
-87
-48

query I rowsort
SELECT ALL 64 FROM tab0 cor0 WHERE 75 IS NOT NULL
----
64
64
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7876
SELECT - 33 DIV SUM( ALL col1 ) FROM tab0 WHERE NOT + - col2 = + 9
----
0

skipif mysql # not compatible
query I rowsort label-7876
SELECT - 33 / SUM ( ALL col1 ) FROM tab0 WHERE NOT + - col2 = + 9
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL + COUNT( * ) * - + SUM( DISTINCT col2 ) col1 FROM tab0
----
-468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT ALL + COUNT ( * ) * - + SUM ( DISTINCT col2 ) col1 FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + 77 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + 77 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT + ( + col0 ) * + 77 + + - 73 + - + col2 AS col1 FROM tab0 AS cor0
----
1035
6616
7297

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col2 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT - col0 + - col2 / col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT - col0 + - col2 / col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 = - col0 - + col2
----

query I rowsort
SELECT DISTINCT + ( - 50 ) + + col0 AS col0 FROM tab1
----
1
35
41

query II rowsort
SELECT ALL - 22, 31 AS col0 FROM tab0
----
-22
31
-22
31
-22
31

query II rowsort
SELECT ALL + col0 * + col1 AS col2, col0 + + ( - + col0 ) FROM tab2 AS cor0
----
2346
0
4928
0
5025
0

query I rowsort
SELECT + 66 - - - col2 FROM tab0 cor0
----
-33
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + + 5 FROM tab1 AS cor0
----
-42
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + + COUNT( + col0 ) + + + 57 AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + + COUNT ( + col0 ) + + + 57 AS col2 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL - col0 + + 0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= + col0 * ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - col0 + + 0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= + col0 * ( + col0 )
----

query II rowsort
SELECT ALL - 34 * col0, col1 AS col2 FROM tab2 AS cor0
----
-1564
51
-2176
77
-2550
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT DISTINCT MIN( ALL 79 ) AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT MIN ( ALL 79 ) AS col1 FROM tab2 AS cor0
----
79

query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= - 83
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= - 83
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7897
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7897
SELECT DISTINCT + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 94 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( + 11 ) AS col2 FROM tab0 AS cor0
----
11

query I rowsort
SELECT + col1 * + - 22 AS col1 FROM tab0
----
-1782
-22
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE - - col2 * - + 22 / + 94 NOT IN ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE - - col2 * - + 22 / + 94 NOT IN ( + CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT + 41 * + col0 * - CAST( - col2 AS SIGNED ) col0 FROM tab0
----
28905
35670
393723

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7904
SELECT + 41 * + col0 * - CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
28905
35670
393723

query I rowsort
SELECT ALL + ( - 61 ) * + 61 - - + col1 FROM tab0
----
-3640
-3700
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + 59 * + COUNT( * ) * 12 AS col1 FROM tab2
----
2124

skipif mysql # not compatible
query I rowsort label-7906
SELECT + 59 * + COUNT ( * ) * 12 AS col1 FROM tab2
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT 7 DIV MAX( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT 7 / MAX ( + col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL - COUNT( * ) * + 79 AS col2 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - COUNT ( * ) * + 79 AS col2 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT + - 1 DIV col1 * col1 * col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + - 1 / col1 * col1 * col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE - col2 <= col2 * + col2
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col0 + - col2 col0, + col2 AS col1 FROM tab0 AS cor0
----
-1262
47
-1837
10
-196
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7914
SELECT DISTINCT * FROM tab2 WHERE NOT - 44 + + ( - - CAST( NULL AS SIGNED ) ) + - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7914
SELECT DISTINCT * FROM tab2 WHERE NOT - 44 + + ( - - CAST ( NULL AS INTEGER ) ) + - CAST ( col0 AS INTEGER ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT + COUNT( DISTINCT + col2 ) * - 25 AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7916
SELECT + COUNT ( DISTINCT + col2 ) * - 25 AS col2 FROM tab0
----
-75

query I rowsort
SELECT 56 * + + col1 * - + 58 FROM tab0 AS cor0
----
-263088
-3248
-68208

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <> + col2 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 37 col1 FROM tab2 AS cor0
----
37

query I rowsort
SELECT - - 75 AS col1 FROM tab1 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL 98 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL 98 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
101

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT DISTINCT COUNT( * ) AS col1, 37 FROM tab2
----
3
37

skipif mysql # not compatible
query II rowsort label-7924
SELECT DISTINCT COUNT ( * ) AS col1, 37 FROM tab2
----
3
37

query I rowsort
SELECT DISTINCT + 3 + - + ( + col0 ) AS col1 FROM tab1
----
-48
-82
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - COUNT( * ) + + + 99 * - MIN( + col0 ) + + MAX( DISTINCT + + 44 ) * + 70 FROM tab2
----
-1477

skipif mysql # not compatible
query I rowsort label-7926
SELECT - COUNT ( * ) + + + 99 * - MIN ( + col0 ) + + MAX ( DISTINCT + + 44 ) * + 70 FROM tab2
----
-1477

query I rowsort
SELECT + col1 + - + col1 * - + 14 * col2 AS col0 FROM tab2
----
16473
43197
54471

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT COUNT( * ) + MAX( - col1 ) AS col1 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( * ) + MAX ( - col1 ) AS col1 FROM tab2
----
-48

query I rowsort
SELECT ALL - col1 * + col1 + - col0 * - + 10 FROM tab0
----
-6411
429
969

query I rowsort
SELECT - col0 + 91 FROM tab2
----
16
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL COUNT( * ) + SUM( ALL - - col1 ) + + + COUNT( * ) AS col1 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL COUNT ( * ) + SUM ( ALL - - col1 ) + + + COUNT ( * ) AS col1 FROM tab0
----
109

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT ALL - 44 * col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - 44 * col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT AVG ( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 43 / col0 + 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 43 / col0 + 68 IS NULL
----
0

query I rowsort
SELECT - col2 * + + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 - col2 )
----

query I rowsort
SELECT DISTINCT col0 * - 46 AS col0 FROM tab2 cor0
----
-2116
-2944
-3450

query II rowsort
SELECT ALL - ( + 98 ), + ( col2 ) FROM tab1 AS cor0
----
-98
59
-98
68
-98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - MAX( - + 86 ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7941
SELECT - MAX ( - + 86 ) FROM tab1 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT + - MAX( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7946
SELECT + - MAX ( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - 25 FROM tab1 AS cor0
----
59
-25
68
-25
96
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 col2 FROM tab2 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT - 73 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
51
67
77

query II rowsort
SELECT ALL - 43 * - + col1, + 58 AS col2 FROM tab2
----
2193
58
2881
58
3311
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 20 * - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT + 46 DIV - col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT + 46 / - col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7955
SELECT col1 DIV + + 77 AS col1, col2 * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - + col0 * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7955
SELECT col1 / + + 77 AS col1, col2 * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - + col0 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - + COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7956
SELECT - + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= - 77
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + COUNT( - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + COUNT ( - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT + - col2 * - col2 + + col2 + col2 + + 49 * - col1 AS col0, col0 FROM tab1 AS cor0
----
2457
91
3354
85
8722
51

query I rowsort
SELECT - + 49 + + 12 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7962
SELECT - 95 / + CAST( NULL AS SIGNED ) + + 82, - col0 + - + col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7962
SELECT - 95 / + CAST ( NULL AS INTEGER ) + + 82, - col0 + - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT + 85 + 5 + + + 55 DIV col2 FROM tab0 AS cor0
----
90
91
95

skipif mysql # not compatible
query I rowsort label-7963
SELECT + 85 + 5 + + + 55 / col2 FROM tab0 AS cor0
----
90
91
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT COUNT( * ) + ( + ( - + 80 ) ) AS col0 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( * ) + ( + ( - + 80 ) ) AS col0 FROM tab1 AS cor0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7965
SELECT col1, CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7965
SELECT col1, CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL COUNT( * ) * + + ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL 35 + + col1 + - col1 * - - 6 * + + 33 AS col2 FROM tab1
----
-2723
-9224
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT ALL + col0 + 54 DIV - col0 FROM tab2
----
45
64
75

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + col0 + 54 / - col0 FROM tab2
----
45
64
75

query I rowsort
SELECT ALL 55 + - col2 AS col2 FROM tab1
----
-13
-4
-41

query I rowsort
SELECT ALL ( - col1 ) - - - 11 AS col2 FROM tab0
----
-12
-32
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 - - col1 col2 FROM tab2
----
25
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - COUNT( * ) + + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 93 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT SUM( - 14 ) - SUM( DISTINCT + 17 ) * - 53 AS col0 FROM tab1
----
859

skipif mysql # not compatible
query I rowsort label-7975
SELECT SUM ( - 14 ) - SUM ( DISTINCT + 17 ) * - 53 AS col0 FROM tab1
----
859

query I rowsort
SELECT + col1 - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL COUNT( * ) - + 24 AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL COUNT ( * ) - + 24 AS col0 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT + CAST( NULL AS SIGNED ) * + col0 + + col2 * - col2 col1 FROM tab2 AS cor0 WHERE col2 + col0 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT + CAST ( NULL AS INTEGER ) * + col0 + + col2 * - col2 col1 FROM tab2 AS cor0 WHERE col2 + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT - COUNT( - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - COUNT ( - col0 ) AS col2 FROM tab2
----
-3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ( - 14 ) * - MAX( + 51 ) AS col1 FROM tab0
----
714

skipif mysql # not compatible
query I rowsort label-7981
SELECT ( - 14 ) * - MAX ( + 51 ) AS col1 FROM tab0
----
714

query I rowsort
SELECT ALL - 95 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - MIN( + - 76 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-7983
SELECT - MIN ( + - 76 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query II rowsort
SELECT DISTINCT + 36, + col2 AS col2 FROM tab0 AS cor0
----
36
10
36
47
36
99

query I rowsort
SELECT DISTINCT + - 62 FROM tab0 cor0
----
-62

query I rowsort
SELECT ALL + 16 FROM tab0 AS cor0 WHERE - ( col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77 col0, col0 AS col1 FROM tab0
----
77
15
77
87
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + 82 * - SUM( ALL + col0 ) FROM tab1
----
-18614

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + 82 * - SUM ( ALL + col0 ) FROM tab1
----
-18614

query I rowsort
SELECT ALL - - 45 AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT col0 * - - col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7993
SELECT - COUNT( * ) AS col2, - 28 + - ( 25 ) AS col1 FROM tab1
----
-3
-53

skipif mysql # not compatible
query II rowsort label-7993
SELECT - COUNT ( * ) AS col2, - 28 + - ( 25 ) AS col1 FROM tab1
----
-3
-53

query I rowsort
SELECT col2 * + 78 AS col0 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT col0 * col2 * col2 AS col2 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL SUM( + col2 ), + 45 - + 55 * - 93 AS col1 FROM tab1
----
223
5160

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL SUM ( + col2 ), + 45 - + 55 * - 93 AS col1 FROM tab1
----
223
5160

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT - 22 + - 86 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-280

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 22 + - 86 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT 46 + - SUM( ALL col0 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT 46 + - SUM ( ALL col0 ) FROM tab0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) - + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) - + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + MIN( DISTINCT + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8000
SELECT + MIN ( DISTINCT + col2 ) AS col2 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + ( - col1 ) + + 38
----

query I rowsort
SELECT ALL - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT + + MIN( - col2 ) FROM tab0 AS cor0 WHERE CAST( 55 AS SIGNED ) > - col2 + + col0 * - 73 - + 44 - 50
----
-99

skipif mysql # not compatible
query I rowsort label-8003
SELECT + + MIN ( - col2 ) FROM tab0 AS cor0 WHERE CAST ( 55 AS INTEGER ) > - col2 + + col0 * - 73 - + 44 - 50
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - SUM( ALL + col0 ) * + 99 col2 FROM tab0 cor0
----
-19701

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8004
SELECT DISTINCT - SUM ( ALL + col0 ) * + 99 col2 FROM tab0 cor0
----
-19701

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col0 IS NOT NULL AND - col2 NOT BETWEEN NULL AND + 74
----

query I rowsort
SELECT DISTINCT - - 74 * + 20 AS col1 FROM tab0 AS cor0
----
1480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8007
SELECT - 81 * + - 91 * + - 66 + col2 * - 99 AS col2, col2 - + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-487476
NULL
-491139
NULL
-496287
NULL

skipif mysql # not compatible
query II rowsort label-8007
SELECT - 81 * + - 91 * + - 66 + col2 * - 99 AS col2, col2 - + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-487476
NULL
-491139
NULL
-496287
NULL

query I rowsort
SELECT DISTINCT col0 * + + 17 + - col2 * + 82 AS col1 FROM tab2 AS cor0
----
-1104
-2192
-3481

query I rowsort
SELECT col0 + + 98 + + ( - - col0 ) + - - 38 FROM tab1
----
238
306
318

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL 5 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 5 / + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 + - col0 * + - 81 * + 90 FROM tab0
----
109365
634317
707227

query I rowsort
SELECT ALL + col0 * + col1 - ( col1 ) FROM tab2
----
2295
4851
4958

query I rowsort
SELECT 19 * ( - ( - col2 ) ) + - + col0 FROM tab1
----
1036
1201
1773

query I rowsort
SELECT ALL - 81 + + + col0 FROM tab2
----
-17
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + COUNT( * ) * 65 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) * 65 FROM tab0 AS cor0
----
195

query I rowsort
SELECT - col0 * col1 * + - 96 FROM tab0
----
116640
175392
9312

query II rowsort
SELECT col1 * - + col0, col0 AS col1 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 19 ) + + col0 BETWEEN - col2 - - col2 + 50 * 89 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - COUNT( - 74 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - COUNT ( - 74 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 + - - col1 AND + - col1 * - + col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col0, ( - + 90 ) AS col2 FROM tab0 AS cor0
----
15
-90
87
-90
97
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT + CAST( - 47 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8023
SELECT + CAST ( - 47 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT col0 * + 49 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT DISTINCT - COUNT( * ) DIV ( - - 27 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - COUNT ( * ) / ( - - 27 ) AS col1 FROM tab0
----
0

query II rowsort
SELECT 3 AS col0, col1 AS col1 FROM tab2
----
3
51
3
67
3
77

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + - 11 * - col2 + + col2 AS col0 FROM tab1
----
10368
4189
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col0 * - 54 * 26 FROM tab0 AS cor0
----
122148
136188
21060

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + COUNT( * ) * 8 AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8031
SELECT + COUNT ( * ) * 8 AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8032
SELECT DISTINCT + COUNT( ALL - col0 ) + CAST( CAST( 37 AS SIGNED ) AS SIGNED ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + COUNT ( ALL - col0 ) + CAST ( CAST ( 37 AS INTEGER ) AS INTEGER ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT MAX( ALL 2 ) FROM tab0, tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT MAX ( ALL 2 ) FROM tab0, tab1 cor0
----
2

query III rowsort
SELECT * FROM tab0 WHERE - + col0 / + 5 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - - 81 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - - 81 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
84

query I rowsort
SELECT 73 * + + col0 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - - COUNT( * ) * + + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 55, + 71 col2 FROM tab1 AS cor0
----
-55
71
-55
71
-55
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT DISTINCT + COUNT( * ) DIV + 12 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + COUNT ( * ) / + 12 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + - - 53 FROM tab2 AS cor0
----
104
120
130

query III rowsort
SELECT * FROM tab0 WHERE - 67 * + 38 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + + ( col1 ) * + 19 AS col2 FROM tab1
----
252
846
90

query I rowsort
SELECT - - col2 - - - col2 AS col0 FROM tab2 WHERE NOT - col2 / - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT + 41 <> + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + 38 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + 50 * - col0 * + col2 * - 32 FROM tab2 AS cor0
----
-1692800
-4096000
-6960000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8048
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + ( - CAST( - 2 AS SIGNED ) ), col1 + - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8048
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + ( - CAST ( - 2 AS INTEGER ) ), col1 + - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT 60 AS col1, + col1 + - + ( - 48 ) FROM tab0
----
60
129
60
49
60
69

query I rowsort
SELECT DISTINCT + 13 FROM tab2 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + 42 * + 36 * - COUNT( * ) FROM tab2
----
-4536

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + 42 * + 36 * - COUNT ( * ) FROM tab2
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT MAX( ALL + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8053
SELECT MAX ( ALL + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + ( 3 ) * - - col2 + + col2 AS col0 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 9, 33 * + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 2 AS col1 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT + SUM( ALL - + 54 ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + SUM ( ALL - + 54 ) FROM tab2 AS cor0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - + COUNT( * ) * COUNT( ALL + 93 ) + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8060
SELECT - + COUNT ( * ) * COUNT ( ALL + 93 ) + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-12

query II rowsort
SELECT ALL - col0 * + 71 AS col0, + 54 FROM tab0
----
-1065
54
-6177
54
-6887
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL - SUM( ALL col2 ) + - - 41 FROM tab0
----
-115

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - SUM ( ALL col2 ) + - - 41 FROM tab0
----
-115

query II rowsort
SELECT DISTINCT - 38 * col0 AS col2, 99 + + 93 FROM tab2
----
-1748
192
-2432
192
-2850
192

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 NOT BETWEEN - + 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT SUM( - - 16 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8065
SELECT SUM ( - - 16 ) AS col0 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT 52 + - - COUNT( * ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT 52 + - - COUNT ( * ) AS col0 FROM tab2
----
55

query I rowsort
SELECT - 74 + - + col2 - + col1 - 85 AS col2 FROM tab2 AS cor0
----
-233
-276
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT MIN( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 + col2 * - + col1 col0, 44 AS col0 FROM tab0
----
-195
44
-3792
44
-84
44

query I rowsort
SELECT - 94 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - - 38 - - - COUNT( * ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8072
SELECT - - 38 - - - COUNT ( * ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT COUNT( - 92 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT COUNT ( - 92 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL + 50, - 18 AS col1 FROM tab2
----
50
-18
50
-18
50
-18

query II rowsort
SELECT ALL ( + - ( - - 80 ) ) * ( - col1 ) * - col0 AS col0, col0 AS col0 FROM tab1
----
-34000
85
-342160
91
-57120
51

query I rowsort
SELECT - 40 * + col0 FROM tab2
----
-1840
-2560
-3000

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT ALL - 21 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - COUNT( DISTINCT - - ( - - col0 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - COUNT ( DISTINCT - - ( - - col0 ) ) FROM tab2 cor0
----
-3

query II rowsort
SELECT - col0, col1 AS col0 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL ( + 67 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT + 97 DIV COUNT( 29 ) + - 48 AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8084
SELECT + 97 / COUNT ( 29 ) + - 48 AS col0 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + - col0 + - 18 AS col0 FROM tab2 AS cor0
----
-64
-82
-93

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( ALL + col0 ) + - 77 FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( ALL + col0 ) + - 77 FROM tab0 cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) + 35 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + 35 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 + col1 * 1 AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL ( - ( col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 3 * 19 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col1 * + 47 FROM tab0
----
3807
47
987

query I rowsort
SELECT DISTINCT col0 * - col2 + ( + 97 ) FROM tab2
----
-2463
-4253
-961

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT - 36 AS col2, - COUNT( DISTINCT + + col2 ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36
0

skipif mysql # not compatible
query II rowsort label-8097
SELECT - 36 AS col2, - COUNT ( DISTINCT + + col2 ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - - 39 * COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8098
SELECT - - 39 * COUNT ( * ) FROM tab2 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT ( - + col0 ) DIV - - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8099
SELECT ( - + col0 ) / - - col0 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT col1 - col0 - + col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + ( + MAX( ALL - 99 ) ) AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + ( + MAX ( ALL - 99 ) ) AS col1 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - MAX( - 23 ) + - + 62 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-8103
SELECT - MAX ( - 23 ) + - + 62 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT 54 * 76 + - - CAST( 42 AS SIGNED ) AS col0 FROM tab2
----
4146
4146
4146

skipif mysql # not compatible
query I rowsort label-8104
SELECT 54 * 76 + - - CAST ( 42 AS INTEGER ) AS col0 FROM tab2
----
4146
4146
4146

query I rowsort
SELECT ALL - 4 + - col2 AS col1 FROM tab1
----
-100
-63
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - SUM( ALL + 71 ) FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8107
SELECT - SUM ( ALL + 71 ) FROM tab0 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8108
SELECT + 99 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
99
NULL
99
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8108
SELECT + 99 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
99
NULL
99
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT - 8 DIV + - col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8109
SELECT - 8 / + - col1 FROM tab0
----
0
0
8

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL MAX( ( + + col0 ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL MAX ( ( + + col0 ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
91

query II rowsort
SELECT DISTINCT col1, - 4 - col0 AS col0 FROM tab1
----
14
-55
47
-95
5
-89

query I rowsort
SELECT + + 86 * - + 1 * - col1 FROM tab0 AS cor0
----
1806
6966
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0 + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8115
SELECT ALL - + col1 + + - col1 AS col1, 54 DIV - + col0 AS col1 FROM tab1 AS cor0
----
-10
0
-28
-1
-94
0

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL - + col1 + + - col1 AS col1, 54 / - + col0 AS col1 FROM tab1 AS cor0
----
-10
0
-28
-1
-94
0

query II rowsort
SELECT DISTINCT col1, + 60 AS col2 FROM tab2 AS cor0
----
51
60
67
60
77
60

query I rowsort
SELECT ALL col1 + + col1 + - col1 + 33 + - col0 AS col1 FROM tab1 AS cor0
----
-11
-4
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < - 99 * - + col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - SUM( DISTINCT + col0 ) * + COUNT( * ) FROM tab1 cor0
----
-681

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - SUM ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab1 cor0
----
-681

query I rowsort
SELECT ALL - + col2 + + + 49 FROM tab1 AS cor0
----
-10
-19
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8121
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) col0 FROM tab0 WHERE - 91 + + + CAST( NULL AS SIGNED ) - + 98 * + 64 IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8121
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 WHERE - 91 + + + CAST ( NULL AS INTEGER ) - + 98 * + 64 IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT + 11 + - 14 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT ( 4 ) + + COUNT( 44 ) - ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT ( 4 ) + + COUNT ( 44 ) - ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 46 FROM tab2 WHERE - col1 = NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + - 90 FROM tab0 cor0
----
-1890
-7290
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL - - MIN( 9 ) + - + 24 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - - MIN ( 9 ) + - + 24 FROM tab2 AS cor0
----
-15

query II rowsort
SELECT 37, col1 AS col2 FROM tab2
----
37
51
37
67
37
77

query I rowsort
SELECT 31 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT + COUNT( * ) + 4 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + COUNT ( * ) + 4 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - ( + MIN( ( + - 63 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8130
SELECT - ( + MIN ( ( + - 63 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - - col1 - + col2 col2, col0 AS col1 FROM tab2
----
2323
46
4888
64
4967
75

query I rowsort
SELECT DISTINCT - col0 * - 23 + - 76 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1925
2155
269

query I rowsort
SELECT 62 FROM tab2 AS cor0 WHERE NOT NULL < - col1 * + - col0 * + 77 * - - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8134
SELECT + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT ALL + 91 AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
91
-3

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL + 91 AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
91
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT - CAST( + + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8137
SELECT - CAST ( + + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 39
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT 26 DIV - + 70 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT 26 / - + 70 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab0
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + + col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE 60 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT 38 + COUNT( * ) + - 55 * - 87 AS col2 FROM tab1
----
4826

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT 38 + COUNT ( * ) + - 55 * - 87 AS col2 FROM tab1
----
4826

query I rowsort
SELECT ALL - - ( + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8148
SELECT 76 + - CAST( NULL AS SIGNED ) * - 75 col2, - COUNT( * ) * ( + 22 ) FROM tab2 AS cor0
----
NULL
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8148
SELECT 76 + - CAST ( NULL AS INTEGER ) * - 75 col2, - COUNT ( * ) * ( + 22 ) FROM tab2 AS cor0
----
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT - 47 + - COUNT( * ) FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8149
SELECT - 47 + - COUNT ( * ) FROM tab2 AS cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 IN ( - 29, + col0, - - 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT 46 + - col1 AS col0 FROM tab1 AS cor0
----
-1
32
41

query I rowsort
SELECT col2 + - 2 FROM tab2 AS cor0
----
21
38
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT + - COUNT( * ) + + - COUNT( * ) DIV + 11 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8154
SELECT + - COUNT ( * ) + + - COUNT ( * ) / + 11 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + ( 72 ) + - MIN( - + ( col2 ) ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + ( 72 ) + - MIN ( - + ( col2 ) ) FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-8157
SELECT + COUNT( * ) + + - 50 AS col1, 12 FROM tab1 WHERE 42 / col2 IS NULL
----
-50
12

skipif mysql # not compatible
query II rowsort label-8157
SELECT + COUNT ( * ) + + - 50 AS col1, 12 FROM tab1 WHERE 42 / col2 IS NULL
----
-50
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT ALL 24 + + + CAST( - 4 AS SIGNED ) + 14 + + col1 * 71 FROM tab1
----
1028
3371
389

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL 24 + + + CAST ( - 4 AS INTEGER ) + 14 + + col1 * 71 FROM tab1
----
1028
3371
389

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL + COUNT( * ) * + - COUNT( * ) + + 81 FROM tab1 WHERE ( NOT 72 > + 55 )
----
81

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + + 81 FROM tab1 WHERE ( NOT 72 > + 55 )
----
81

query III rowsort
SELECT * FROM tab2 WHERE 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + MIN( DISTINCT + - 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8161
SELECT + MIN ( DISTINCT + - 11 ) FROM tab1
----
-11

query I rowsort
SELECT + + col0 FROM tab2 WHERE NULL < + col2 + - col0 * col1 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT + - col0 DIV - 99 - - col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8163
SELECT + - col0 / - 99 - - col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 / - col1 + - 16 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 / - col1 + - 16 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT ALL 8 DIV - - col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL 8 / - - col1 FROM tab0
----
0
0
8

query I rowsort
SELECT DISTINCT - + col0 + + col2 AS col0 FROM tab0 WHERE NOT NULL = 92 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT + COUNT( col2 ) FROM tab2 WHERE - + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 WHERE - + col0 >= NULL
----
0

query I rowsort
SELECT 96 - - col1 * ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 = - 81 * - col0 - - - 16
----
1440
3292
391

query I rowsort
SELECT 9 AS col0 FROM tab2 cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8170
SELECT ALL - col1 / 84 * + - col0 / - - CAST( NULL AS SIGNED ) * 42 AS col2, - 92 FROM tab0 AS cor0
----
NULL
-92
NULL
-92
NULL
-92

skipif mysql # not compatible
query II rowsort label-8170
SELECT ALL - col1 / 84 * + - col0 / - - CAST ( NULL AS INTEGER ) * 42 AS col2, - 92 FROM tab0 AS cor0
----
NULL
-92
NULL
-92
NULL
-92

query I rowsort
SELECT ALL - 92 * - col2 FROM tab0 cor0
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 72 - - 67 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8173
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 72 - - 67 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8174
SELECT ALL * FROM tab2 WHERE NOT + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8174
SELECT ALL * FROM tab2 WHERE NOT + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT DISTINCT - COUNT( * ) AS col1, 96 FROM tab0
----
-3
96

skipif mysql # not compatible
query II rowsort label-8175
SELECT DISTINCT - COUNT ( * ) AS col1, 96 FROM tab0
----
-3
96

query I rowsort
SELECT - 30 * - 70 AS col2 FROM tab1
----
2100
2100
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT col2 DIV 94 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8177
SELECT col2 / 94 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL COUNT( * ) * - 53 AS col1 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL COUNT ( * ) * - 53 AS col1 FROM tab1
----
-159

query I rowsort
SELECT + col2 * - ( - 10 ) FROM tab1
----
590
680
960

query II rowsort
SELECT - col1 AS col2, + col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL + - 95 DIV + COUNT( * ) + - 7 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + - 95 / + COUNT ( * ) + - 7 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 NOT BETWEEN 65 AND NULL
----

query I rowsort
SELECT ALL - - 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT + ( - - col0 ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 30 col2 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= - col2
----
0

query I rowsort
SELECT + col1 + - 47 FROM tab2 cor0
----
20
30
4

query I rowsort
SELECT - 33 + - - col0 AS col1 FROM tab2
----
13
31
42

query I rowsort
SELECT col2 * + col2 + 16 AS col2 FROM tab1
----
3497
4640
9232

query I rowsort
SELECT + col1 * 78 + + col1 FROM tab0
----
1659
6399
79

query III rowsort
SELECT * FROM tab2 WHERE ( + - 85 ) <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 62 col1 FROM tab2
----
102
120
85

query I rowsort
SELECT DISTINCT col0 * col1 + - col0 AS col2 FROM tab1
----
340
4186
663

query III rowsort
SELECT * FROM tab2 WHERE - + col0 <= - col1 + - - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 68 + - col0 * + + col0 * - ( + + col0 ) FROM tab2
----
262212
421943
97404

query III rowsort
SELECT * FROM tab1 WHERE - + 11 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col0 - + ( + - ( + 91 ) ) FROM tab2
----
137
155
166

query I rowsort
SELECT - + ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 80 + col1 * + col1 FROM tab1 AS cor0
----
105
2289
276

query II rowsort
SELECT + col1 - + + 95 + + col1 * + 79 * - col2 AS col2, 29 * + 42 + - 31 AS col0 FROM tab0 cor0
----
-16664
1187
-300767
1187
-7915
1187

query I rowsort
SELECT 83 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 73 * - ( - col2 ) * + + 77 + + col1 FROM tab1
----
331644
382275
539630

query II rowsort
SELECT ALL 7 AS col2, ( - col0 ) FROM tab0
----
7
-15
7
-87
7
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab0 WHERE NOT - + 30 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 7 ) * - + col0 col0 FROM tab1
----
-357
-595
-637

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - - col0 <> NULL
----

query II rowsort
SELECT ALL + 75, col1 AS col2 FROM tab1 cor0
----
75
14
75
47
75
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT col1 * + 99 + - col2 FROM tab1 cor0
----
1290
436
4585

query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN 18 AND NULL
----

query II rowsort
SELECT - 7 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-7
59
-7
68
-7
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT MAX( ALL - + 88 ) * + + 12 + + COUNT( * ) FROM tab0 AS cor0
----
-1053

skipif mysql # not compatible
query I rowsort label-8212
SELECT MAX ( ALL - + 88 ) * + + 12 + + COUNT ( * ) FROM tab0 AS cor0
----
-1053

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - 86 + col2 AND + + col0 * - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 21 + col2 <> + - col0 * + - 98
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = + - col2 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 48 * - col0 AS col2 FROM tab2 cor0
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8218
SELECT + MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT COUNT( * ) + + 73 + + 70 FROM tab0 AS cor0 WHERE NOT col0 + + - 16 + + 70 + - 48 = NULL
----
143

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT COUNT ( * ) + + 73 + + 70 FROM tab0 AS cor0 WHERE NOT col0 + + - 16 + + 70 + - 48 = NULL
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT DISTINCT - - 28 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - - 28 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + SUM( - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8221
SELECT + SUM ( - col0 ) FROM tab2 cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - 62 * 53 col2 FROM tab0
----
10
-3286
47
-3286
99
-3286

query II rowsort
SELECT DISTINCT + col2 AS col0, + ( + col2 ) * + col0 - col0 FROM tab2 cor0
----
23
1012
40
2496
58
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL + ( MAX( 10 ) ) AS col1 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + ( MAX ( 10 ) ) AS col1 FROM tab1 AS cor0
----
10

query II rowsort
SELECT + 32 * col2, + ( col2 ) FROM tab0 AS cor0 WHERE 21 * - col0 * + + col2 + - col2 IN ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8227
SELECT * FROM tab0 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8227
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT - 83 DIV + 32 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8228
SELECT - 83 / + 32 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + ( 22 ) FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT - + 32 * 48 FROM tab1 AS cor0
----
-1536
-1536
-1536

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + ( 50 ) * + COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-8232
SELECT + ( 50 ) * + COUNT ( * ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 4 + col0 <= 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8234
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 - + + col0 col2 FROM tab1
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL + 37 FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) <> + col0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + 37 FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) <> + col0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT - - 34 AS col1 FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8239
SELECT SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT col1 * + - 41 * + - 12 * 26 * col2 FROM tab1 AS cor0
----
17192448
3773640
40883232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 69, 19 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to dff3ee9d1e9e27d2edad49f064e7750d

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col0
----

query I rowsort
SELECT 91 * col0 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT - + MAX( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - + MAX ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + - 11 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 - + 67 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col0 * - + col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8249
SELECT DISTINCT 21 * col1 DIV CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
18
23
25

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT 21 * col1 / CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
18
23
25

query I rowsort
SELECT 19 * + 53 FROM tab2
----
1007
1007
1007

query I rowsort
SELECT - col1 * + - col1 * - col1 FROM tab1
----
-103823
-125
-2744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col2 * 8 * + + 96 col1 FROM tab0
----
15
36096
87
7680
97
76032

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL COUNT( * ) * + 25 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL COUNT ( * ) * + 25 FROM tab0
----
75

query II rowsort
SELECT col1 AS col1, 83 FROM tab0
----
1
83
21
83
81
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT + AVG ( DISTINCT - - col2 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT + AVG ( DISTINCT - - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 67 + col0 AS col1 FROM tab0
----
154
164
82

query I rowsort
SELECT - + col1 + ( - - 79 ) AS col1 FROM tab2 AS cor0
----
12
2
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT DISTINCT - col2 AS col2, - col2 + - CAST( + + col1 AS SIGNED ) FROM tab1 cor0
----
-59
-64
-68
-115
-96
-110

skipif mysql # not compatible
query II rowsort label-8258
SELECT DISTINCT - col2 AS col2, - col2 + - CAST ( + + col1 AS INTEGER ) FROM tab1 cor0
----
-59
-64
-68
-115
-96
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8259
SELECT DISTINCT + col0 AS col1, + 31 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT + col0 AS col1, + 31 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + + col0 FROM tab2 WHERE col1 + col1 > col0
----
46
64
75

query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col1 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 * - + ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 - - 6 AS col1 FROM tab1 AS cor0
----
57
91
97

query I rowsort
SELECT DISTINCT + - ( - - 27 ) * - - 40 + + 83 + - col2 FROM tab0 cor0
----
-1007
-1044
-1096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query II rowsort
SELECT + + 75 + - + col1 AS col1, - col2 + - ( - - 96 ) + + + col2 FROM tab2 AS cor0
----
-2
-96
24
-96
8
-96

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( NULL ) <> - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL 13 + SUM( + + col2 ) + + 15 + - MAX( + + col2 ) FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL 13 + SUM ( + + col2 ) + + 15 + - MAX ( + + col2 ) FROM tab1
----
155

query I rowsort
SELECT ALL + col2 + - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + COUNT( DISTINCT - 2 ) + + COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-8272
SELECT + COUNT ( DISTINCT - 2 ) + + COUNT ( * ) FROM tab1
----
4

query I rowsort
SELECT DISTINCT + ( - 82 ) FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT 40 + + COUNT( * ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT 40 + + COUNT ( * ) FROM tab0
----
43

query I rowsort
SELECT ALL + col2 * + col0 + + col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT col1 / - - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT col1 / - - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col2 / - 62 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * + - col2 * col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT + MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8281
SELECT + MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE + ( - ( - col2 ) ) - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8283
SELECT DISTINCT * FROM tab0 WHERE ( - CAST( + 40 AS SIGNED ) / + col0 ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8283
SELECT DISTINCT * FROM tab0 WHERE ( - CAST ( + 40 AS INTEGER ) / + col0 ) = ( NULL )
----

query I rowsort
SELECT ALL 29 + + col0 FROM tab2
----
104
75
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + 2 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL - SUM( - 79 ) + + CAST( MIN( ALL - ( + col2 ) ) AS SIGNED ) FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - SUM ( - 79 ) + + CAST ( MIN ( ALL - ( + col2 ) ) AS INTEGER ) FROM tab2
----
179

query I rowsort
SELECT + col2 + + 58 AS col0 FROM tab1
----
117
126
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col0 FROM tab1 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - SUM( DISTINCT col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col2 * col0 NOT BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT 74 * - COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-8291
SELECT 74 * - COUNT ( * ) FROM tab2
----
-222

query I rowsort
SELECT 80 * ( 42 ) AS col1 FROM tab1
----
3360
3360
3360

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL ( COUNT( * ) ) * 92 AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL ( COUNT ( * ) ) * 92 AS col0 FROM tab1
----
276

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT MAX( DISTINCT 34 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT MAX ( DISTINCT 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT MIN( DISTINCT col1 ) + - SUM( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT MIN ( DISTINCT col1 ) + - SUM ( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL COUNT( - col1 ) * + 62 AS col0 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL COUNT ( - col1 ) * + 62 AS col0 FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - MIN( ALL col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8300
SELECT - MIN ( ALL col0 ) FROM tab1
----
-51

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ( 60 ) * 24 AS col1 FROM tab2 AS cor0
----
1440
1440
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT 98 * COUNT( * ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8303
SELECT 98 * COUNT ( * ) FROM tab0 AS cor0
----
294

query I rowsort
SELECT DISTINCT + col1 + - 82 AS col0 FROM tab1 AS cor0
----
-35
-68
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + 37 AS col0 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT + col1 FROM tab2 WHERE ( + ( col0 ) ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * 62 AS col0 FROM tab1
----
3162
5270
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) + COUNT( ALL col2 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) + COUNT ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col2 * 54 + 81 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col2 * 54 + 81 ) IS NULL
----
-3

query I rowsort
SELECT col0 * 72 + - col2 FROM tab0 AS cor0 WHERE ( 74 ) >= + col2
----
1033
6254

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - ( + 90 ) * - MAX( ALL 35 ) AS col2 FROM tab0 AS cor0
----
3150

skipif mysql # not compatible
query I rowsort label-8312
SELECT - ( + 90 ) * - MAX ( ALL 35 ) AS col2 FROM tab0 AS cor0
----
3150

query I rowsort
SELECT DISTINCT - 92 - + 6 FROM tab2 AS cor0
----
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < - 90
----

query I rowsort
SELECT DISTINCT + + ( - ( 91 ) ) * col0 AS col2 FROM tab2 cor0
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8316
SELECT * FROM tab1 WHERE - CAST( 53 AS DECIMAL ) * - 37 + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8316
SELECT * FROM tab1 WHERE - CAST ( 53 AS REAL ) * - 37 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - COUNT( * ) + + + 55 * COUNT( * ) AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - COUNT ( * ) + + + 55 * COUNT ( * ) AS col2 FROM tab2
----
162

query I rowsort
SELECT col2 * col1 AS col1 FROM tab1 WHERE NOT ( + col0 * - col1 + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 63 * - col1 IN ( 0 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL + MIN( col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + MIN ( col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT DISTINCT + CAST( - 56 AS SIGNED ) * SUM( ALL + col2 * + 10 ) FROM tab0
----
-87360

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + CAST ( - 56 AS INTEGER ) * SUM ( ALL + col2 * + 10 ) FROM tab0
----
-87360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT CAST( NULL AS SIGNED ) / col2 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT CAST ( NULL AS INTEGER ) / col2 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 0 FROM tab2 WHERE - 74 * col1 + + col0 BETWEEN NULL AND col2 + 62
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - - MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - - MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT + CAST( - ( - AVG ( col2 ) ) AS SIGNED ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8327
SELECT + CAST ( - ( - AVG ( col2 ) ) AS INTEGER ) FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 31 ) / col0 AS col1 FROM tab1 AS cor0 WHERE NOT 55 / col0 + 2 * col0 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( col2 * 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 AS col0, 15 + - col0 FROM tab2
----
23
-31
40
-49
58
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - COUNT( * ) * + + 82 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-8332
SELECT - COUNT ( * ) * + + 82 FROM tab1
----
-246

query I rowsort
SELECT - 63 * - + col2 AS col0 FROM tab0 cor0
----
2961
6237
630

query I rowsort
SELECT 98 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 - - col2 + col0 * - col0 > + col0
----
157
166
194

query I rowsort
SELECT col1 * + 66 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT - + CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8336
SELECT - + CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 55 * + 0 * + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT DISTINCT + 81 AS col1, + COUNT( - col2 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
81
6

skipif mysql # not compatible
query II rowsort label-8338
SELECT DISTINCT + 81 AS col1, + COUNT ( - col2 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
81
6

query I rowsort
SELECT - col2 + 22 FROM tab0 cor0 WHERE NOT ( col2 + - + 90 - + 37 * col2 ) < ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 54 + + col1 )
----

query I rowsort
SELECT DISTINCT 57 + - - col2 * + - col2 AS col0 FROM tab1
----
-3424
-4567
-9159

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + 19 * - SUM( - col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3705

skipif mysql # not compatible
query I rowsort label-8342
SELECT + 19 * - SUM ( - col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3705

query I rowsort
SELECT ( + ( - ( + col1 ) ) ) + - col2 FROM tab1
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * - 27 + col0 - + 44 col0 FROM tab1
----
-1222
-371
-94

query I rowsort
SELECT + ( + + 67 ) * col0 + col0 AS col2 FROM tab2
----
3128
4352
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT DISTINCT + 94 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + 94 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NULL < ( - col1 * 22 / 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

query I rowsort
SELECT DISTINCT col0 + 48 AS col2 FROM tab2
----
112
123
94

query I rowsort
SELECT - col0 - - col2 * - - col0 - + - col1 * + col2 FROM tab2
----
2185
5576
8161

query I rowsort
SELECT 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT col0 * + + col1 - - col2 * - col1 FROM tab1
----
-630
1081
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT + 85 * col1 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1795
184
6932

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT + 85 * col1 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1795
184
6932

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8354
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + - - 23 - + col0 / ( + CAST( NULL AS SIGNED ) * col0 ) ) AND + 58 > - 44 / col0
----

skipif mysql # not compatible
query III rowsort label-8354
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + - - 23 - + col0 / ( + CAST ( NULL AS INTEGER ) * col0 ) ) AND + 58 > - 44 / col0
----

query I rowsort
SELECT DISTINCT - - col1 - + + 34 FROM tab1 AS cor0
----
-20
-29
13

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8357
SELECT CAST( - + col1 AS SIGNED ) * + 80, col1 FROM tab2 cor0
----
-4080
51
-5360
67
-6160
77

skipif mysql # not compatible
query II rowsort label-8357
SELECT CAST ( - + col1 AS INTEGER ) * + 80, col1 FROM tab2 cor0
----
-4080
51
-5360
67
-6160
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT - - 35 DIV + + 71 + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT - - 35 / + + 71 + + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 84 + - 44 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - COUNT( DISTINCT 90 ) * - - 31 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8360
SELECT - COUNT ( DISTINCT 90 ) * - - 31 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT - 1 * - 72 - + col1 + - 27 AS col0 FROM tab0 AS cor0
----
-36
24
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL - col2 * col1 DIV + - 29 AS col1 FROM tab2 AS cor0
----
106
134
40

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - col2 * col1 / + - 29 AS col1 FROM tab2 AS cor0
----
106
134
40

query II rowsort
SELECT - col2 AS col0, - col2 AS col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT ALL col1 AS col0, + col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT - col2 AS col0, - col2 + + col0 AS col2 FROM tab1
----
-59
26
-68
23
-96
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL - COUNT( col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - COUNT ( col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT ( + SUM( ALL 38 ) ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT ( + SUM ( ALL 38 ) ) FROM tab0
----
114

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab2 cor0 WHERE + 19 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COUNT( + col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8370
SELECT COUNT ( + col0 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 49 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT + - COUNT( * ) * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8372
SELECT + - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL MIN( - 84 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL MIN ( - 84 ) FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL COUNT( * ) * + 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL COUNT ( * ) * + 47 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL - COUNT( 97 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - COUNT ( 97 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE col2 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT - ( - col0 ) AS col1, + col0 * col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - - + 47 + + - col1 * ( + 58 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT DISTINCT 22 DIV + 61 * - col1 * - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT 22 / + 61 * - col1 * - col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) * 85 + - COUNT( * ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8382
SELECT - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) * 85 + - COUNT ( * ) FROM tab0 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8383
SELECT ALL + col1 + + - col0 DIV CAST( + ( - 71 ) AS SIGNED ) AS col2 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + col1 + + - col0 / CAST ( + ( - 71 ) AS INTEGER ) AS col2 FROM tab2
----
51
68
77

query III rowsort
SELECT * FROM tab1 WHERE + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - col0 - 47 FROM tab0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col2 col0 FROM tab1 WHERE 96 >= - col2
----
-23
-26
45

query I rowsort
SELECT DISTINCT + col0 * - - col2 + - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 + - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE - col1 >= - col1 * - col0 + - + col1
----

query I rowsort
SELECT DISTINCT + 94 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ( - COUNT( * ) ) + + 68 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-8390
SELECT ( - COUNT ( * ) ) + + 68 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT 24 - + - ( + COUNT( * ) ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT 24 - + - ( + COUNT ( * ) ) AS col0 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT 13 * + MAX( - - 57 ) + + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
660

skipif mysql # not compatible
query I rowsort label-8392
SELECT 13 * + MAX ( - - 57 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
660

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + + 67 * - 24 AS col0 FROM tab0 AS cor0
----
-1608
-1608
-1608

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - SUM( ALL + 19 ) col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT - SUM ( ALL + 19 ) col2 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - + 59 * + + col0 FROM tab2 AS cor0
----
-138414
-290752
-296475

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT ALL + ( + + COUNT( * ) ) AS col0, MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-8398
SELECT ALL + ( + + COUNT ( * ) ) AS col0, MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3
23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8399
SELECT DISTINCT + col2 * + col2 FROM tab1 AS cor0 WHERE ( col1 * + 59 + CAST( - ( - + 73 ) AS DECIMAL ) ) >= - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT + col2 * + col2 FROM tab1 AS cor0 WHERE ( col1 * + 59 + CAST ( - ( - + 73 ) AS REAL ) ) >= - col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL ( + - 27 ) FROM tab1 AS cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 60 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT SUM( - col0 ) * 84 * 95 FROM tab0
----
-1588020

skipif mysql # not compatible
query I rowsort label-8403
SELECT SUM ( - col0 ) * 84 * 95 FROM tab0
----
-1588020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8404
SELECT ALL - 53 col2, - ( - SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
-53
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8404
SELECT ALL - 53 col2, - ( - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
-53
NULL

query I rowsort
SELECT ALL + 67 * 33 * + - 56 AS col1 FROM tab1
----
-123816
-123816
-123816

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL > ( - - 34 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT + 78 DIV + + 4 AS col0 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8407
SELECT + 78 / + + 4 AS col0 FROM tab1
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT 17 DIV + - ( - - 30 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 17 / + - ( - - 30 ) AS col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8410
SELECT - 26 AS col2, - ( col2 ) * CAST( - 41 AS SIGNED ) AS col1 FROM tab2 cor0
----
-26
1640
-26
2378
-26
943

skipif mysql # not compatible
query II rowsort label-8410
SELECT - 26 AS col2, - ( col2 ) * CAST ( - 41 AS INTEGER ) AS col1 FROM tab2 cor0
----
-26
1640
-26
2378
-26
943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT ALL - COUNT( * ) * - COUNT( * ) * COUNT( * ) DIV + SUM( col2 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) / + SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 47, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 90 ) col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + - col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL 63 / + CAST( NULL AS SIGNED ) * COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT ALL 63 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 88 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 12 + - col0 / - col1 + + - 73, 90 + - col1 * + col0, 7 )
----

query I rowsort
SELECT DISTINCT + + 4 AS col0 FROM tab1 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 68 + 68 < - col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 16, - 57 * - 99 AS col2 FROM tab1 AS cor0
----
16
5643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT + CAST( NULL AS SIGNED ) * - - col0 + + + 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT + CAST ( NULL AS INTEGER ) * - - col0 + + + 8 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8423
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8423
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * 66 + 40 + - col1 AS col2 FROM tab0
----
-3143
-641
-6495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT - CAST( + col1 AS SIGNED ) + + col1 * + + 11 AS col2 FROM tab0
----
10
210
810

skipif mysql # not compatible
query I rowsort label-8425
SELECT - CAST ( + col1 AS INTEGER ) + + col1 * + + 11 AS col2 FROM tab0
----
10
210
810

query I rowsort
SELECT + col2 + col2 * - - col2 AS col2 FROM tab1
----
3540
4692
9312

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 45 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 14 / - 31 >= + col0 * col0 * + 25 - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - + col2 * - col0 - col0 AS col2 FROM tab2
----
1063
2573
4342

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8430
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + COUNT( * ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8431
SELECT + COUNT ( * ) FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT col2 * + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT col2 * + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT CAST( - col0 AS SIGNED ) FROM tab1 WHERE NOT NULL < ( + + ( - 90 ) )
----

skipif mysql # not compatible
query I rowsort label-8433
SELECT CAST ( - col0 AS INTEGER ) FROM tab1 WHERE NOT NULL < ( + + ( - 90 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * col1 NOT BETWEEN - - col0 + - 64 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= + + 52
----

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= + + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + SUM( - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8436
SELECT + SUM ( - col2 ) FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT + 85 * - CAST( + 8 AS SIGNED ) + - - col2 AS col1 FROM tab2 AS cor0
----
-622
-640
-657

skipif mysql # not compatible
query I rowsort label-8437
SELECT + 85 * - CAST ( + 8 AS INTEGER ) + - - col2 AS col1 FROM tab2 AS cor0
----
-622
-640
-657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT + + COUNT( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8438
SELECT + + COUNT ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col0, col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8440
SELECT - + CAST( NULL AS SIGNED ) * + col2 * - - col2 AS col1, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + + col0 + + col1 * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8440
SELECT - + CAST ( NULL AS INTEGER ) * + col2 * - - col2 AS col1, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + col0 + + col1 * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT MAX( 5 ) col0 FROM tab1 AS cor0 WHERE + col0 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8441
SELECT DISTINCT MAX ( 5 ) col0 FROM tab1 AS cor0 WHERE + col0 <= NULL
----
NULL

query I rowsort
SELECT col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + + 62 * - COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8443
SELECT + + 62 * - COUNT ( * ) FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + - MAX( - + ( + + col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8444
SELECT + - MAX ( - + ( + + col0 ) ) FROM tab1 cor0
----
51

query I rowsort
SELECT ALL col1 * + col0 * - - 40 FROM tab2
----
197120
201000
93840

query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL 93 * + + SUM( DISTINCT col0 ) AS col0 FROM tab0
----
18507

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL 93 * + + SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
18507

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT COUNT( * ) * COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8448
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8449
SELECT * FROM tab0 WHERE NOT col1 * - 47 BETWEEN + - ( col1 ) - + col2 + + CAST( 16 AS SIGNED ) AND + col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8449
SELECT * FROM tab0 WHERE NOT col1 * - 47 BETWEEN + - ( col1 ) - + col2 + + CAST ( 16 AS INTEGER ) AND + col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 <> 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + ( + + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8451
SELECT + ( + + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8452
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT DISTINCT - - col0 + + col1 - - - col1 DIV + + col0 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - - col0 + + col1 - - - col1 / + + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + - col1 * - col2 + 41 FROM tab0 cor0
----
140
251
3848

query I rowsort
SELECT ALL + 3 + col1 AS col1 FROM tab0 AS cor0
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT 30 + + MAX( DISTINCT - + 13 ) + MAX( DISTINCT + + col1 ) FROM tab0 cor0
----
98

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT 30 + + MAX ( DISTINCT - + 13 ) + MAX ( DISTINCT + + col1 ) FROM tab0 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT + 74 + - SUM( ALL + - 0 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + 74 + - SUM ( ALL + - 0 ) AS col0 FROM tab2
----
74

query I rowsort
SELECT DISTINCT 46 + + col2 FROM tab2
----
104
69
86

query III rowsort
SELECT * FROM tab0 WHERE + 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT DISTINCT + ( + SUM( ALL 21 ) ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) + ( 44 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + ( + SUM ( ALL 21 ) ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + ( 44 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - - + 70 FROM tab2
----
116
134
145

onlyif mysql # DIV for integer division: 
query II rowsort label-8462
SELECT col0 DIV + + ( col0 ) + 51 * - col0 * + col2, + 87 AS col0 FROM tab1 AS cor0
----
-249695
87
-255764
87
-315587
87

skipif mysql # not compatible
query II rowsort label-8462
SELECT col0 / + + ( col0 ) + 51 * - col0 * + col2, + 87 AS col0 FROM tab1 AS cor0
----
-249695
87
-255764
87
-315587
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, col2, + col0 / col0 * - - col1 * + - col0 * - col1 / + col2, - col2 )
----

query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT + ( 53 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-8465
SELECT + ( 53 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT + + MAX( ALL + 15 ) col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8466
SELECT + + MAX ( ALL + 15 ) col0 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT + COUNT( - col1 ) FROM tab0 cor0 WHERE NULL < col1 AND NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT + COUNT ( - col1 ) FROM tab0 cor0 WHERE NULL < col1 AND NOT NULL <> col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT - COUNT( - - 22 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - COUNT ( - - 22 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 72 * - col0 AS col2 FROM tab1
----
-3672
-6120
-6552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT - col1 * - - CAST( - 64 AS SIGNED ) * col1 FROM tab1
----
12544
141376
1600

skipif mysql # not compatible
query I rowsort label-8471
SELECT - col1 * - - CAST ( - 64 AS INTEGER ) * col1 FROM tab1
----
12544
141376
1600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + 86 * - col1 * + 73 col0 FROM tab1
----
-16818762
-1789230
-5009844

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT MAX( ALL - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - - ( + 64 ) FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col0 ) BETWEEN - - 24 AND - + col1 * - 98
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> 46 * 20
----

query II rowsort
SELECT 6 AS col2, - 26 AS col2 FROM tab2 AS cor0
----
6
-26
6
-26
6
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL - 42 AS col2 FROM tab2 WHERE + - 60 IN ( - + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) - + col1, - ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - 42 AS col2 FROM tab2 WHERE + - 60 IN ( - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - + col1, - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT COUNT( * ) * - + 73 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-8480
SELECT COUNT ( * ) * - + 73 AS col0 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - MAX( ALL + ( - col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - MAX ( ALL + ( - col2 ) ) FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT + 54 * col0 AS col1 FROM tab0 cor0
----
4698
5238
810

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 58 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - SUM( + 29 ) col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8484
SELECT ALL - SUM ( + 29 ) col2 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * - - 20 AS col2 FROM tab0 AS cor0
----
1980
200
940

query I rowsort
SELECT ALL + ( - col1 ) * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT + col1 * + - 11 * + + col2 + col0 FROM tab0 AS cor0
----
-2223
-41862
-992

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL < + 50 )
----

query I rowsort
SELECT ALL - 96 * - col1 FROM tab2 AS cor0
----
4896
6432
7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT 10 * - col2 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT 10 * - col2 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT + 37 * + col2 + + col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( - CAST( - 17 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + 37 * + col2 + + col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( - CAST ( - 17 AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT - SUM( - 50 ) FROM tab1 WHERE NULL IS NULL
----
150

skipif mysql # not compatible
query I rowsort label-8493
SELECT - SUM ( - 50 ) FROM tab1 WHERE NULL IS NULL
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT col0 + col1 DIV + - col1 AS col1 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-8494
SELECT col0 + col1 / + - col1 AS col1 FROM tab0
----
14
86
96

query II rowsort
SELECT DISTINCT 20 * - col0 + - col0 AS col1, + col0 * + 27 + - - col2 AS col0 FROM tab2
----
-1344
1768
-1575
2083
-966
1265

query I rowsort
SELECT ALL 56 + - 71 FROM tab2
----
-15
-15
-15

query II rowsort
SELECT + 99 * - + col2 + col2, 27 AS col0 FROM tab1
----
-5782
27
-6664
27
-9408
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT ALL + col1 - - + col0 * col1 DIV - - 60 FROM tab1
----
118
12
25

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + col1 - - + col0 * col1 / - - 60 FROM tab1
----
118
12
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + 57 AS col1 FROM tab0
----
15
57
87
57
97
57

query III rowsort
SELECT * FROM tab2 WHERE - - col0 < + ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT + 21 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + 21 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN NULL AND 49 + col1 )
----

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - + col2 - col0 * col0 AS col0 FROM tab0 AS cor0 WHERE - 94 BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT DISTINCT COUNT( * ), + COUNT( * ) + + 75 AS col1 FROM tab0 AS cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-8505
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) + + 75 AS col1 FROM tab0 AS cor0
----
3
78

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE col0 / + col1 NOT IN ( col0, - 86 * col1 )
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8507
SELECT ALL - - AVG ( DISTINCT - + ( CAST( NULL AS DECIMAL ) ) ) * - 37 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - - AVG ( DISTINCT - + ( CAST ( NULL AS REAL ) ) ) * - 37 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + - col1 + + - col0 AS col2 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT MAX( col1 ) * - - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8509
SELECT MAX ( col1 ) * - - COUNT ( * ) FROM tab0
----
243

query I rowsort
SELECT ALL - 64 * - 28 FROM tab0 WHERE NOT 66 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - ( + - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT - - col2 BETWEEN NULL AND col0 + col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT - + 63 * - col1 AS col2, + 37 * CAST( 9 AS SIGNED ) FROM tab0 AS cor0
----
1323
333
5103
333
63
333

skipif mysql # not compatible
query II rowsort label-8514
SELECT - + 63 * - col1 AS col2, + 37 * CAST ( 9 AS INTEGER ) FROM tab0 AS cor0
----
1323
333
5103
333
63
333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) col2, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 NOT BETWEEN NULL AND - col2
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 * - 66 + col2 AS col1 FROM tab2 cor0
----
-3013
-4184
-4892

query I rowsort
SELECT - ( - 47 ) AS col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT + - col0 * + - col1 FROM tab0 cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - - COUNT( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8521
SELECT - - COUNT ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT - 95 * + - CAST( + col1 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 95 * + - CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 >= + ( - col2 ) * - + col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( NULL ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + 72 * - ( - COUNT( * ) ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 72 * - ( - COUNT ( * ) ) FROM tab2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT + col2 DIV - + col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT + col2 / - + col1 col1 FROM tab0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8529
SELECT + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN - 75 AND ( - - 49 )
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - + col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - + col0 BETWEEN NULL AND NULL AND NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / - ( - ( - 7 ) ) col1 FROM tab0 WHERE NOT NULL > col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + - 76 > NULL
----

query I rowsort
SELECT col2 * + - 26 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 * - + col1 - - col1 AS col2 FROM tab2 cor0
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - col2 col2, col0 * - - 51 FROM tab0 AS cor0 WHERE NOT ( ( + 8 ) ) IS NULL
----
-210
4437
-3807
765
-99
4947

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT DISTINCT + 0 DIV + - 91 + - 86 AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + 0 / + - 91 + - 86 AS col2 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL 26 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT COUNT( * ) * + 32 AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8546
SELECT COUNT ( * ) * + 32 AS col1 FROM tab2
----
96

query I rowsort
SELECT DISTINCT + col1 * + - col1 + + + 25 FROM tab0
----
-416
-6536
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8548
SELECT + - CAST( 34 AS DECIMAL ) FROM tab0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-8548
SELECT + - CAST ( 34 AS REAL ) FROM tab0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT - col2 AS col2, + 74 - col2 AS col0 FROM tab0
----
-10
64
-47
27
-99
-25

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + - + ( - - col2 ) col2 FROM tab0
----
-7
45
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT 60 + 85 FROM tab2
----
145
145
145

query I rowsort
SELECT + 76 + ( - 94 ) FROM tab0
----
-18
-18
-18

query I rowsort
SELECT - col0 + - col2 * + col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 64 * - 58 IS NULL
----

query I rowsort
SELECT ( - AVG ( DISTINCT - 27 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 92 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 - + + ( col2 ) * + - 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + - CAST( NULL AS SIGNED ) / + 0 * - - 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8560
SELECT + - CAST ( NULL AS INTEGER ) / + 0 * - - 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + 8
----

query I rowsort
SELECT ALL + col1 * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT MIN( DISTINCT + col0 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8563
SELECT MIN ( DISTINCT + col0 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 39 - - - col0 AS col1 FROM tab2 AS cor0
----
-25
-36
-7

query II rowsort
SELECT col0 + 31, col0 AS col1 FROM tab0 AS cor0
----
118
87
128
97
46
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + + ( + SUM( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + + ( + SUM ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - + col1 * - 39 + - col0 FROM tab1 AS cor0
----
110
1742
495

query I rowsort
SELECT + 63 + - 63 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 58, 36 * col1 AS col1 FROM tab1 cor0 WHERE + col1 / - col2 + + col1 IS NOT NULL
----
-58
1692
-58
180
-58
504

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT ( + col0 ) DIV col1 + - ( + + col1 ) + - - col1 + - col2 * + + 80 FROM tab0 AS cor0
----
-3760
-7823
-796

skipif mysql # not compatible
query I rowsort label-8572
SELECT ( + col0 ) / col1 + - ( + + col1 ) + - - col1 + - col2 * + + 80 FROM tab0 AS cor0
----
-3760
-7823
-796

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 82 IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col2 / - 95 + - + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT COUNT( + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8575
SELECT COUNT ( + col0 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 4 ) * + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT + - COUNT( * ), - COUNT( + 46 ) AS col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8577
SELECT + - COUNT ( * ), - COUNT ( + 46 ) AS col0 FROM tab0 AS cor0
----
-3
-3

query II rowsort
SELECT - + 30 AS col1, col0 * + + 74 FROM tab0 AS cor0
----
-30
1110
-30
6438
-30
7178

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT DISTINCT 39 AS col1, COUNT( * ) FROM tab2 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-8579
SELECT DISTINCT 39 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT - - CAST( NULL AS SIGNED ) * - - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - - CAST ( NULL AS INTEGER ) * - - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT 8 * - COUNT( * ) AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT 8 * - COUNT ( * ) AS col2 FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8584
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - 54 AS col2, col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL - COUNT( * ) - + - 2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - COUNT ( * ) - + - 2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - + MAX( + col1 ) * 74 AS col2 FROM tab2 AS cor0
----
-5698

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - + MAX ( + col1 ) * 74 AS col2 FROM tab2 AS cor0
----
-5698

query I rowsort
SELECT DISTINCT + 62 * - col0 * col0 * - 3 FROM tab2 cor0
----
1046250
393576
761856

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( * ) + - - 68 AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( * ) + - - 68 AS col2 FROM tab2 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 1 = + + 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT col2 DIV 70 + + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8591
SELECT col2 / 70 + + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col1 * + 63 + col2 AS col1 FROM tab1 AS cor0
----
-256
-2893
-786

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT DISTINCT - 35 + SUM( + 50 ), - 20 AS col0 FROM tab2
----
115
-20

skipif mysql # not compatible
query II rowsort label-8593
SELECT DISTINCT - 35 + SUM ( + 50 ), - 20 AS col0 FROM tab2
----
115
-20

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL 75 FROM tab0 WHERE - col2 - - CAST( + - col1 AS SIGNED ) IS NOT NULL
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 75 FROM tab0 WHERE - col2 - - CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
75
75
75

query III rowsort
SELECT * FROM tab0 WHERE - 62 * + col1 * - col2 IN ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8597
SELECT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - COUNT( * ) * + 73 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * + 73 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + ( + 1 ) * - COUNT( * ) - - - COUNT( col2 ) * + 11 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + ( + 1 ) * - COUNT ( * ) - - - COUNT ( col2 ) * + 11 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT + - 23 + 79 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT ALL col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - - 70 * + - 75 FROM tab0 AS cor0
----
-5250
-5250
-5250

query I rowsort
SELECT 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8607
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT col0 + + 86 AS col0, + 62 * col0 * + col2 AS col0 FROM tab1
----
137
303552
171
310930
177
383656

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8610
SELECT DISTINCT + COUNT( * ) + + + 45 - + - 92 DIV - COUNT( * ) col2, COUNT( * ) * 20 col0 FROM tab0
----
18
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8610
SELECT DISTINCT + COUNT ( * ) + + + 45 - + - 92 / - COUNT ( * ) col2, COUNT ( * ) * 20 col0 FROM tab0
----
18
60

query I rowsort
SELECT DISTINCT col1 * - - col0 - + col1 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - SUM( DISTINCT - col2 ) - + 44 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - SUM ( DISTINCT - col2 ) - + 44 FROM tab0 AS cor0
----
112

query II rowsort
SELECT + col1, 95 FROM tab2 AS cor0
----
51
95
67
95
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT DISTINCT + + MIN( DISTINCT 29 ) col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8614
SELECT DISTINCT + + MIN ( DISTINCT 29 ) col1 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col1 FROM tab2 cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 * 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT ALL + ( + COUNT( * ) ) AS col1, COUNT( * ) + + MAX( DISTINCT + col2 ) FROM tab1
----
3
99

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL + ( + COUNT ( * ) ) AS col1, COUNT ( * ) + + MAX ( DISTINCT + col2 ) FROM tab1
----
3
99

query I rowsort
SELECT ALL + col1 * + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT - - col0 * - col2 + - col1 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-8622
SELECT col0 DIV col2 AS col2, - 90 + col2 FROM tab0
----
0
-43
0
9
8
-80

skipif mysql # not compatible
query II rowsort label-8622
SELECT col0 / col2 AS col2, - 90 + col2 FROM tab0
----
0
-43
0
9
8
-80

query I rowsort
SELECT ALL col2 * - - ( col1 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 62 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8624
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 62 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8625
SELECT - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8626
SELECT col1 AS col2, CAST( 21 AS SIGNED ) FROM tab1
----
14
21
47
21
5
21

skipif mysql # not compatible
query II rowsort label-8626
SELECT col1 AS col2, CAST ( 21 AS INTEGER ) FROM tab1
----
14
21
47
21
5
21

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 30 NOT BETWEEN 96 AND 71
----

query I rowsort
SELECT DISTINCT + ( + - 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - col0 * - col2 col0 FROM tab1
----
73440
75225
92820

query II rowsort
SELECT col1 * + 48 * + + col0 AS col2, 81 FROM tab2 AS cor0
----
112608
81
236544
81
241200
81

query I rowsort
SELECT ALL + - 51 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= + + 40
----

query II rowsort
SELECT ALL col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8633
SELECT DISTINCT + 46 * - CAST( - + 18 AS SIGNED ) AS col1, 56 AS col0 FROM tab1 AS cor0
----
828
56

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT + 46 * - CAST ( - + 18 AS INTEGER ) AS col1, 56 AS col0 FROM tab1 AS cor0
----
828
56

query I rowsort
SELECT ALL + - col1 * + + col2 + - col1 + + 40 AS col1 FROM tab0 AS cor0
----
-191
-3848
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL col1 + + - CAST( + 74 AS SIGNED ) AS col1 FROM tab0
----
-53
-73
7

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL col1 + + - CAST ( + 74 AS INTEGER ) AS col1 FROM tab0
----
-53
-73
7

query I rowsort
SELECT + ( col2 ) + 28 * col2 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT DISTINCT col2 * col1 + + - col0 FROM tab2
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8638
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + + col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-8638
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT col2 + - - 66 + + col1 AS col1 FROM tab1
----
130
176
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8641
SELECT ALL - 18 - - + 96 + + col2 * - CAST( NULL AS SIGNED ) col0, + 13 * + col2 AS col2 FROM tab0
----
NULL
1287
NULL
130
NULL
611

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8641
SELECT ALL - 18 - - + 96 + + col2 * - CAST ( NULL AS INTEGER ) col0, + 13 * + col2 AS col2 FROM tab0
----
NULL
1287
NULL
130
NULL
611

query I rowsort
SELECT + 85 + col0 AS col1 FROM tab1
----
136
170
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT 19 * - 17 - - MAX( - col2 ) FROM tab2
----
-346

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT 19 * - 17 - - MAX ( - col2 ) FROM tab2
----
-346

query II rowsort
SELECT DISTINCT 19 + - 26 AS col2, + col1 * + - col0 FROM tab2 AS cor0
----
-7
-2346
-7
-4928
-7
-5025

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL COUNT( * ) * + - 80 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL COUNT ( * ) * + - 80 FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8647
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab1 WHERE + col0 * col0 * + col2 + col2 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - COUNT( * ) + + + ( 57 ) + 47 * 26 * ( + 38 ) FROM tab1
----
46490

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - COUNT ( * ) + + + ( 57 ) + 47 * 26 * ( + 38 ) FROM tab1
----
46490

query I rowsort
SELECT ALL - 80 AS col0 FROM tab0 cor0
----
-80
-80
-80

query II rowsort
SELECT DISTINCT - 15, - 29 AS col0 FROM tab0 AS cor0
----
-15
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT ( + ( COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT ( + ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 50, 45 AS col1 FROM tab2 cor0
----
50
45
50
45
50
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + + ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8654
SELECT + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - MAX( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - COUNT( * ) * + - 34 AS col0 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( * ) * + - 34 AS col0 FROM tab1 AS cor0
----
102

query I rowsort
SELECT DISTINCT - 18 * + - 49 * 13 AS col2 FROM tab2 AS cor0
----
11466

query I rowsort
SELECT ( - + col1 ) * + 17 + - col1 + - 20 AS col2 FROM tab2
----
-1226
-1406
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT + col2 DIV - - col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8659
SELECT + col2 / - - col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + 25 AS col2, 24 FROM tab0
----
25
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT + + ( - + COUNT( * ) ) * - 37 * COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + + ( - + COUNT ( * ) ) * - 37 * COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT - - col0, - col0 AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query II rowsort
SELECT col0 AS col0, ( - 19 ) AS col0 FROM tab2 AS cor0
----
46
-19
64
-19
75
-19

query II rowsort
SELECT ALL - - col1, + col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE + col0 = 73 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL MIN( ALL - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL MIN ( ALL - + col1 ) FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - COUNT( * ) + + + COUNT( * ) * + 47 * + - MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-2118

skipif mysql # not compatible
query I rowsort label-8671
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 47 * + - MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-2118

query I rowsort
SELECT ALL + + ( col1 ) * - - col2 AS col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT MIN( ( 40 ) ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT MIN ( ( 40 ) ) AS col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL col2 + - - col0 * - + col1 + + 70 + + col0 * + col0 FROM tab2 AS cor0
----
-137
-722
728

query I rowsort
SELECT + + col2 * + col2 FROM tab1 cor0 WHERE + 93 IS NOT NULL
----
3481
4624
9216

query I rowsort
SELECT + - col2 * 62 AS col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - ( + col0 ) * ( + + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL col1 * col1 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL col1 * col1 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8679
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8679
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * col1 - + col1 AS col1, 99 FROM tab2
----
2550
99
4422
99
5852
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL - + 30 / - col2 + - - 17 + - + 30 + CAST( NULL AS SIGNED ) + + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - + 30 / - col2 + - - 17 + - + 30 + CAST ( NULL AS INTEGER ) + + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 * - col1 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8683
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( 6, - col1 + - CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-8683
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( 6, - col1 + - CAST ( NULL AS INTEGER ) + + col1 )
----

query I rowsort
SELECT - col0 - + - col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT col1 DIV + col2 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8685
SELECT col1 / + col2 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col0 + - col2 + + 31 + 4 AS col2 FROM tab0 AS cor0
----
112
3
33

query I rowsort
SELECT ALL col1 + - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + COUNT( ALL col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8688
SELECT + COUNT ( ALL col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT + COUNT( * ) * ( 9 ) DIV + + 44 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + COUNT ( * ) * ( 9 ) / + + 44 FROM tab2
----
0

query I rowsort
SELECT ALL col2 * + + col1 * - + 17 FROM tab1
----
-22848
-5015
-54332

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT + col0 DIV col0 * + col1 * + col1 * col1 col1 FROM tab1
----
103823
125
2744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8691
SELECT + col0 / col0 * + col1 * + col1 * col1 col1 FROM tab1
----
103823
125
2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT ALL + 63 DIV + col1 - - + col0 AS col1 FROM tab0 AS cor0
----
15
160
90

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + 63 / + col1 - - + col0 AS col1 FROM tab0 AS cor0
----
15
160
90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8694
SELECT DISTINCT + col0 AS col2, - CAST( NULL AS DECIMAL ) + - col2 * + col2 * - - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL = ( + col2 )
----

skipif mysql # not compatible
query II rowsort label-8694
SELECT DISTINCT + col0 AS col2, - CAST ( NULL AS REAL ) + - col2 * + col2 * - - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT NULL = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT + + SUM( + - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + + SUM ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + ( - ( - - col2 ) ), 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT + - 74 * + + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
-16502

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + - 74 * + + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
-16502

query I rowsort
SELECT + + 1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT - COUNT( ALL + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 84 * - MAX( ALL 47 ) FROM tab1
----
-3948

skipif mysql # not compatible
query I rowsort label-8701
SELECT 84 * - MAX ( ALL 47 ) FROM tab1
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT MIN( col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8702
SELECT MIN ( col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL col1 * + + col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL + - col0 * 99 * ( col1 ) AS col1 FROM tab1 AS cor0 WHERE 94 * col0 / + 6 IS NULL
----

query II rowsort
SELECT DISTINCT + - col0 * - 50 * 21 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT + + 11 AS col0 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT - MIN( + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8707
SELECT - MIN ( + col0 ) FROM tab0
----
-15

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - col1 * - + col0 + + col0 FROM tab2 cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + ( COUNT( * ) ) + + 36 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + ( COUNT ( * ) ) + + 36 FROM tab2
----
39

query I rowsort
SELECT col1 * - col2 + + + col1 AS col0 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT ALL - ( + - col0 ) + + 69 AS col1 FROM tab1
----
120
154
160

query I rowsort
SELECT - col0 * + - col2 + - col1 AS col0 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT COUNT( * ) + + - MAX( DISTINCT - col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8714
SELECT COUNT ( * ) + + - MAX ( DISTINCT - col2 ) FROM tab1
----
62

query I rowsort
SELECT ALL col0 - - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 86 FROM tab2 WHERE NULL <= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8717
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col0 + + col1 - - col2 IN ( col1, - col0 + - col1 * - col2, 4, 50 / - col2 * - + ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8717
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col0 + + col1 - - col2 IN ( col1, - col0 + - col1 * - col2, 4, 50 / - col2 * - + ( - col0 ) )
----

query II rowsort
SELECT ALL - col2 * col1 - - - col1 AS col2, 26 AS col2 FROM tab0 AS cor0
----
-100
26
-231
26
-3888
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 42 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8719
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 42 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 77 * - col0 AS col1 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT COUNT( * ) AS col2, COUNT( * ) * + - 14 * + 44 AS col0 FROM tab1
----
3
-1848

skipif mysql # not compatible
query II rowsort label-8721
SELECT COUNT ( * ) AS col2, COUNT ( * ) * + - 14 * + 44 AS col0 FROM tab1
----
3
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT COUNT( * ) * - 42 AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT COUNT ( * ) * - 42 AS col2 FROM tab0
----
-126

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 IS NULL )
----

query I rowsort
SELECT col2 - - 16 * + col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col1 IS NOT NULL
----

query II rowsort
SELECT 93, col2 FROM tab2 AS cor0
----
93
23
93
40
93
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) * + - 91 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) * + - 91 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + - COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8727
SELECT + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + - COUNT( DISTINCT + col2 ) * 49 col1 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT + - COUNT ( DISTINCT + col2 ) * 49 col1 FROM tab1 AS cor0
----
-147

query II rowsort
SELECT - 59 AS col2, + col0 - + + 27 AS col1 FROM tab2 AS cor0
----
-59
19
-59
37
-59
48

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - - 60 * + 58 * col1 > NULL
----

query I rowsort
SELECT ALL col2 + 37 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - col1 < + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT - COUNT( * ) * - - SUM( + col0 ) * 73 FROM tab0 WHERE NOT NULL >= + - ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - COUNT ( * ) * - - SUM ( + col0 ) * 73 FROM tab0 WHERE NOT NULL >= + - ( - col0 )
----
NULL

query I rowsort
SELECT ALL col0 * + 18 AS col0 FROM tab0 AS cor0
----
1566
1746
270

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL MIN( DISTINCT - ( - + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL MIN ( DISTINCT - ( - + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL - col0 + - col0 + + ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - col0 + - col0 + + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 82 + - col0 AS col1 FROM tab0
----
-15
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + - col0 + + 7 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT - col1 + - col2 * + + col0 * + col2 + - col0 FROM tab2 AS cor0
----
-102541
-24431
-252442

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - + MIN( - - ( - - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - + MIN ( - - ( - - col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT - + 78 DIV COUNT( * ) + 30 - ( + + ( - 92 ) ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8744
SELECT - + 78 / COUNT ( * ) + 30 - ( + + ( - 92 ) ) AS col2 FROM tab1 cor0
----
96

query I rowsort
SELECT DISTINCT ( - 50 ) AS col0 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8746
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - - ( + 91 ) FROM tab2 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 - - + CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 - - + CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
0

query II rowsort
SELECT - 42 AS col2, col0 * - + col1 * col2 + + - 42 AS col0 FROM tab2
----
-42
-197162
-42
-291492
-42
-54000

query I rowsort
SELECT + col2 + - 75 + + col0 + - 38 AS col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL < - ( + + col0 ) * + - col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + COUNT( * ) FROM tab0 WHERE col2 * 87 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT + COUNT ( * ) FROM tab0 WHERE col2 * 87 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT DISTINCT + col2 + + col2 DIV + col1 AS col2 FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT + col2 + + col2 / + col1 AS col2 FROM tab0
----
10
198
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 78 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 78 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 - col2 + + ( + col2 ) * + - col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - 72 AS col0, 95 AS col1 FROM tab1 AS cor0
----
-72
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + + MIN( 99 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-8757
SELECT + + MIN ( 99 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + 64 * - - ( + + 16 ) AS col0 FROM tab2
----
1024
1024
1024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col1 ) col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - ( - + col2 ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT - col1 * + 62 FROM tab1
----
-2914
-310
-868

query I rowsort
SELECT ALL + col1 * col0 * - ( + col0 ) FROM tab0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 - + 19 ) = - col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 46 * 81 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT col0 + col1 DIV - col1 AS col2 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-8768
SELECT col0 + col1 / - col1 AS col2 FROM tab0
----
14
86
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 5 * col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 31 + MIN( col2 - + col2 * - 93 ) AS col2 FROM tab2
----
2193

skipif mysql # not compatible
query I rowsort label-8770
SELECT 31 + MIN ( col2 - + col2 * - 93 ) AS col2 FROM tab2
----
2193

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - 48 * + 3 FROM tab1
----
-144

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 / col2 BETWEEN NULL AND col1 - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8775
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8776
SELECT + CAST( col0 AS SIGNED ) DIV col1 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8776
SELECT + CAST ( col0 AS INTEGER ) / col1 AS col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8777
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( CAST( - col0 AS DECIMAL ) - 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8777
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( CAST ( - col0 AS REAL ) - 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col1 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT + COUNT( * ) DIV 25 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT + COUNT ( * ) / 25 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8780
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) * col0 + + col0 * + ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-8780
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) * col0 + + col0 * + ( + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * ( col1 ) col0 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 * col2 >= - col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab0 WHERE - ( + col1 ) + + ( 22 ) <= ( - col0 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab0 WHERE - ( + col1 ) + + ( 22 ) <= ( - col0 * col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT COUNT( * ) col2 FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8784
SELECT COUNT ( * ) col2 FROM tab1 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT 60 * COUNT( * ) AS col0 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-8785
SELECT 60 * COUNT ( * ) AS col0 FROM tab2
----
180

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ( 31 ) * + col1 - col1 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + COUNT( * ) * SUM( + 43 ) FROM tab2
----
387

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( * ) * SUM ( + 43 ) FROM tab2
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT - COUNT( ALL col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - COUNT ( ALL col2 ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - 83 col2 FROM tab0
----
-747
-747
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8791
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT 61 * 62 FROM tab1
----
3782

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) < + 94 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> + col1 + - 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT - col0 DIV ( col2 ) AS col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - col0 / ( col2 ) AS col0 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT - MAX( DISTINCT col2 ) + - COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT - MAX ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 + + 68
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab2 WHERE ( NULL ) NOT IN ( - col0 + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT - COUNT( + 66 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - COUNT ( + 66 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8800
SELECT + MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ( 2 ) AS col1 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 6 AND ( - col2 / 14 )
----

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab0 AS cor0 WHERE NOT - 73 IS NULL
----
46

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT ( - col1 * 21 ) < NULL
----

query I rowsort
SELECT DISTINCT 5 * - col1 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 * + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - - col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 30 >= ( NULL )
----

query I rowsort
SELECT - 68 * - 1 - - 81 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT 47 * 39 + - 92 >= - ( col1 )
----

query I rowsort
SELECT + ( 4 ) + col2 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT - + col2 + 84 AS col0 FROM tab0 AS cor0
----
-15
37
74

query I rowsort
SELECT + 88 * col2 + + 17 FROM tab0 AS cor0
----
4153
8729
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab2 cor0
----
74
74
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN ( col1 + - 14 ) AND + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col1 * col2 NOT BETWEEN NULL AND + col1 * + ( col2 / + col2 ) + col1 * 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL + COUNT( DISTINCT 5 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + COUNT ( DISTINCT 5 ) AS col0 FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( + col2 + + col0 / + 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 + + col1 FROM tab2 WHERE col0 / - col2 IS NOT NULL
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL - 8 + - + COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - 8 + - + COUNT ( * ) AS col1 FROM tab1
----
-11

query I rowsort
SELECT - 6 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - 97 * 27 col1 FROM tab2 AS cor0
----
2544
2555
2573

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT 90 + MIN( ALL 76 ) col2 FROM tab2 cor0
----
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8824
SELECT 90 + MIN ( ALL 76 ) col2 FROM tab2 cor0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) + - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8825
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) + - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + + 35 * 72 FROM tab2
----
2571
2587
2597

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - 10 AND NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) = NULL
----

query I rowsort
SELECT - 34 * + 17 - col1 * + 73 AS col0 FROM tab2 AS cor0
----
-4301
-5469
-6199

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ALL + col1 + col0 DIV - col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
20
80

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + col1 + col0 / - col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
20
80

query I rowsort
SELECT + col2 * + + 99 FROM tab2 AS cor0
----
2277
3960
5742

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8836
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 14 * - + CAST( + col0 AS DECIMAL ) + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8836
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 14 * - + CAST ( + col0 AS REAL ) + col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + 73
----

query I rowsort
SELECT + + col2 - + 0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + 32 - col1 FROM tab0 AS cor0
----
-49
11
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT + 11 * - ( COUNT( * ) ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + 11 * - ( COUNT ( * ) ) * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL 15 + - CAST( + 74 - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 81 = NULL
----

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL 15 + - CAST ( + 74 - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 81 = NULL
----

query I rowsort
SELECT ALL col2 * + + col0 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 + 71 + + col2 * + col1 BETWEEN col1 - col1 AND - col0 + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT MAX( col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT MAX ( col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 2 ) IS NOT NULL
----

query I rowsort
SELECT ( 11 ) * col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + COUNT( DISTINCT - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT + + COUNT( * ) + - + 28 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-19

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + + COUNT ( * ) + - + 28 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-19

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + - col1 * - + 31
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < ( col1 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - col1 AND - col1
----
-67
-67
-67

query I rowsort
SELECT ALL + + 63 + ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-22
-28
12

query I rowsort
SELECT 53 FROM tab0 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + - MAX( + col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + - MAX ( + col2 ) AS col2 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - + MAX( - col2 ) FROM tab0 WHERE - 46 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-8859
SELECT - + MAX ( - col2 ) FROM tab0 WHERE - 46 IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - 7 * 96 * + COUNT( * ) + 51 AS col2 FROM tab0, tab0 AS cor0
----
-5997

skipif mysql # not compatible
query I rowsort label-8860
SELECT - 7 * 96 * + COUNT ( * ) + 51 AS col2 FROM tab0, tab0 AS cor0
----
-5997

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0, tab0 AS cor0
----
81

query I rowsort
SELECT ALL - ( + 41 ) + 91 FROM tab1
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT - col0 + + col0 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT - col0 + + col0 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL COUNT( * ) + + 44 AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL COUNT ( * ) + + 44 AS col2 FROM tab0
----
47

query I rowsort
SELECT + col2 + - - col1 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT - col0 * col1 DIV + col1 + + col1 DIV 64 + - - col1 col1 FROM tab0
----
-66
-96
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8866
SELECT - col0 * col1 / + col1 + + col1 / 64 + - - col1 col1 FROM tab0
----
-66
-96
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT 17 + col2 DIV + col0 AS col1 FROM tab0
----
17
18
20

skipif mysql # not compatible
query I rowsort label-8867
SELECT 17 + col2 / + col0 AS col1 FROM tab0
----
17
18
20

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT 9 + - MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8869
SELECT 9 + - MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 42 * 8 * - 69 FROM tab1 AS cor0
----
-23184
-23184
-23184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8872
SELECT CAST( NULL AS DECIMAL ) - + + MIN( + 91 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT CAST ( NULL AS REAL ) - + + MIN ( + 91 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - + ( + col2 ) + - - 10 FROM tab0 AS cor0
----
-37
-89
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT DISTINCT + COUNT( * ) - + - 5 AS col2, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-8874
SELECT DISTINCT + COUNT ( * ) - + - 5 AS col2, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT ( + MIN( ALL - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT ( + MIN ( ALL - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( + 47 )
----
NULL

query I rowsort
SELECT DISTINCT 11 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 51 AND + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 * + 79 IS NOT NULL
----

query I rowsort
SELECT col1 * - + 31 AS col1 FROM tab0
----
-2511
-31
-651

query I rowsort
SELECT DISTINCT + 81 FROM tab0 WHERE NOT NULL NOT IN ( + 90 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT col1 DIV 46 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8881
SELECT col1 / 46 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 6, 16 AS col0 FROM tab0
----
6
16
6
16
6
16

query I rowsort
SELECT - col1 * - col0 + col1 + 50 * col2 AS col0 FROM tab0 WHERE NOT NULL >= - col2 * - - col2 / + col1
----

query II rowsort
SELECT ALL 8 AS col2, - col1 AS col1 FROM tab1
----
8
-14
8
-47
8
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT - COUNT( * ) AS col1, MIN( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8887
SELECT - COUNT ( * ) AS col1, MIN ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----
0
NULL

query I rowsort
SELECT ALL col2 * ( + - col1 ) - + - col0 AS col0 FROM tab2 cor0
----
-1127
-3016
-3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT + COUNT( * ) + + 18 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + COUNT ( * ) + + 18 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
18

query I rowsort
SELECT 6 FROM tab1 AS cor0 WHERE ( NULL ) = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT - col0 + + + col1 DIV - 85 col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8894
SELECT - col0 + + + col1 / - 85 col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8895
SELECT * FROM tab1 AS cor0 WHERE - 81 NOT BETWEEN - + CAST( - - col2 AS SIGNED ) AND + - ( + col1 ) + + col2
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-8895
SELECT * FROM tab1 AS cor0 WHERE - 81 NOT BETWEEN - + CAST ( - - col2 AS INTEGER ) AND + - ( + col1 ) + + col2
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT ALL + 89 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + 89 / col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 76 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8897
SELECT 76 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE - 29 IS NULL
----

query I rowsort
SELECT DISTINCT 92 + + 91 AS col2 FROM tab1 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 45 + - col2 * + col2 * 20 col2, col1 AS col0 FROM tab0 AS cor0
----
-1955
21
-195975
1
-44135
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - + SUM( + - 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8901
SELECT - + SUM ( + - 86 ) FROM tab2 AS cor0
----
258

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 IS NULL
----

query I rowsort
SELECT DISTINCT + 58 + - 86 FROM tab2
----
-28

query III rowsort
SELECT * FROM tab0 WHERE - 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + + col0 * + + 96 col0 FROM tab0
----
-1487
-8362
-9411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT - + 11 * - col0 * + 68 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT - + 11 * - col0 * + 68 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE - col0 = ( + - col0 )
----
14
47
5

query I rowsort
SELECT + 33 + col1 * 60 AS col1 FROM tab1 AS cor0
----
2853
333
873

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT DISTINCT + + 39 + 77 AS col2, - 66 * + + ( + COUNT( * ) ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 48 * - col0 IS NULL
----
116
594

skipif mysql # not compatible
query II rowsort label-8909
SELECT DISTINCT + + 39 + 77 AS col2, - 66 * + + ( + COUNT ( * ) ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 48 * - col0 IS NULL
----
116
594

query I rowsort
SELECT - col1 + + 43 FROM tab1 AS cor0
----
-4
29
38

query I rowsort
SELECT DISTINCT + col2 * - 99 FROM tab0 AS cor0
----
-4653
-9801
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT ALL 99 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL 99 / + col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + 32 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
32
-46
32
-64
32
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL >= col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT + MIN( ALL + 24 ) col2, + 88 * + 26 FROM tab0 AS cor0
----
24
2288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8915
SELECT + MIN ( ALL + 24 ) col2, + 88 * + 26 FROM tab0 AS cor0
----
24
2288

query II rowsort
SELECT + col2 AS col2, ( - + col2 ) + col0 * - 54 * - ( - 36 ) AS col0 FROM tab1 AS cor0
----
59
-165299
68
-176972
96
-99240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL CAST( + CAST( - MAX( + + 86 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL CAST ( + CAST ( - MAX ( + + 86 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - - ( - - col0 ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - 42 - + col2 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 52 + + + col0 < 44 * + + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8922
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8922
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 30 * - col1 FROM tab1
----
1410
150
420

query I rowsort
SELECT ALL + + ( + 21 ) FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT col0 * - col0 + 96 AS col0 FROM tab1 AS cor0
----
-2505
-7129
-8185

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + SUM( 25 ) + + + COUNT( * ) FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + SUM ( 25 ) + + + COUNT ( * ) FROM tab0 cor0
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-8927
SELECT col0 AS col2, - col1 DIV + col1 AS col0 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-8927
SELECT col0 AS col2, - col1 / + col1 AS col0 FROM tab1
----
51
-1
85
-1
91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT ALL + col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL + 52 + - 4 + + MIN( - 76 ) * 85 FROM tab2 cor0
----
-6412

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 52 + - 4 + + MIN ( - 76 ) * 85 FROM tab2 cor0
----
-6412

query I rowsort
SELECT + + 13 + - + col2 AS col0 FROM tab2 AS cor0
----
-10
-27
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT SUM( ALL col1 ) + - + 78 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-8933
SELECT SUM ( ALL col1 ) + - + 78 FROM tab0
----
25

query I rowsort
SELECT + 47 + + col1 AS col1 FROM tab2
----
114
124
98

query I rowsort
SELECT ALL 26 + - col1 * 23 AS col0 FROM tab0
----
-1837
-457
3

query I rowsort
SELECT + 64 FROM tab1 WHERE ( col1 * + col0 * - col2 * + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 94 ) * - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT COUNT( * ) + + 84 col2 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT DISTINCT COUNT ( * ) + + 84 col2 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT + - col0 AS col0 FROM tab1 WHERE - CAST( - - col2 AS SIGNED ) BETWEEN + 93 AND + + col0
----

skipif mysql # not compatible
query I rowsort label-8939
SELECT + - col0 AS col0 FROM tab1 WHERE - CAST ( - - col2 AS INTEGER ) BETWEEN + 93 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT ALL - 98 DIV + col0 + - + col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - 98 / + col0 + - + col2 FROM tab1
----
-60
-69
-97

query II rowsort
SELECT + col0 + - 70 AS col1, - 69 * 62 FROM tab0
----
-55
-4278
17
-4278
27
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT 17 + MIN( ALL + + col0 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-8943
SELECT 17 + MIN ( ALL + + col0 ) FROM tab2
----
63

query I rowsort
SELECT ALL - 64 - 50 FROM tab0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT + col0 - - + col1 + col1 AS col0 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT 50 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT 55 DIV - + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT 55 / - + col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - - col2, - col1, 17, - col0, + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 NOT IN ( col2 + - 50 - - + 16 / + 80 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - + col2
----

query II rowsort
SELECT ALL - + col0 AS col0, col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + COUNT( ALL 22 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8953
SELECT + COUNT ( ALL 22 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - 62 AS col1, col1 * - 29 FROM tab1 AS cor0
----
62
-1363
62
-145
62
-406

query II rowsort
SELECT ALL col0 * + col1 * col0, ( - 25 ) AS col1 FROM tab0 AS cor0
----
158949
-25
18225
-25
9409
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - 9 * COUNT( ALL + col1 ) + - - COUNT( * ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - 9 * COUNT ( ALL + col1 ) + - - COUNT ( * ) FROM tab0 cor0
----
-24

query II rowsort
SELECT DISTINCT + + col2 AS col2, 97 * - - 47 AS col2 FROM tab1 AS cor0
----
59
4559
68
4559
96
4559

query I rowsort
SELECT ALL 33 + - - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( - - 69 ) col0 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8960
SELECT MAX ( - - 69 ) col0 FROM tab2
----
69

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + + - col1 + - col0 + 83 * + col1 + + + 41 * - - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 64 * col1 * ( 39 ) AS col1, col1 FROM tab0
----
-202176
81
-2496
1
-52416
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8963
SELECT ALL * FROM tab2 WHERE + + 79 / - col1 + + col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8963
SELECT ALL * FROM tab2 WHERE + + 79 / - col1 + + col2 <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL - CAST( NULL AS SIGNED ) * 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - CAST ( NULL AS INTEGER ) * 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col2 col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL - - col2 + - col1 + + + col0 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT DISTINCT col2 * + - col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-3566
-4715
-9267

query II rowsort
SELECT ALL + 83, col0 + - col1 AS col2 FROM tab2 AS cor0
----
83
-13
83
-5
83
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - SUM( - 10 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-8969
SELECT - SUM ( - 10 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT + - SUM( - 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT 77 + - - 0 < - + col0
----
165

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + - SUM ( - 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT 77 + - - 0 < - + col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT - COUNT( * ) + + CAST( + ( + COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT - COUNT ( * ) + + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 90 / col2 * + 67 + + ( + 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT + col0 / CAST( NULL AS SIGNED ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT + col0 / CAST ( NULL AS INTEGER ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8974
SELECT ALL - COUNT( * ) * + 16, COUNT( ALL - ( + 56 ) ) AS col2 FROM tab1 AS cor0
----
-48
3

skipif mysql # not compatible
query II rowsort label-8974
SELECT ALL - COUNT ( * ) * + 16, COUNT ( ALL - ( + 56 ) ) AS col2 FROM tab1 AS cor0
----
-48
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT ( - COUNT( ALL + + col0 ) ) DIV + + 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT ( - COUNT ( ALL + + col0 ) ) / + + 79 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8976
SELECT COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT ALL + col0 + col2 + ( - + col0 ) DIV + col0 FROM tab2 AS cor0
----
103
132
68

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + col0 + col2 + ( - + col0 ) / + col0 FROM tab2 AS cor0
----
103
132
68

query I rowsort
SELECT + + 48 AS col1 FROM tab1 WHERE - - col0 IS NULL
----

query II rowsort
SELECT ALL ( + 15 ) + + - col1 AS col1, + 21 AS col1 FROM tab0
----
-6
21
-66
21
14
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT - col2 col1 FROM tab0 WHERE ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8980
SELECT - col2 col1 FROM tab0 WHERE ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL 61 * ( + - col0 ) + - col2 * + ( - + 96 ) + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT ALL 61 * ( + - col0 ) + - col2 * + ( - + 96 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT col2 * - - CAST( NULL AS SIGNED ) - + 0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT col2 * - - CAST ( NULL AS INTEGER ) - + 0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT DISTINCT - 80 DIV - + 28 - - col2 FROM tab1
----
61
70
98

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - 80 / - + 28 - - col2 FROM tab1
----
61
70
98

query I rowsort
SELECT + + col1 + + 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT DISTINCT 95 - - col2 FROM tab0 AS cor0
----
105
142
194

query II rowsort
SELECT + - col2 * - ( + col1 ) + - 66, col0 FROM tab1 AS cor0
----
1278
51
229
85
3130
91

query I rowsort
SELECT DISTINCT + + ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL + - MIN( ALL 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + - MIN ( ALL 24 ) FROM tab1 AS cor0
----
-24

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT col0 DIV - - 27 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8990
SELECT col0 / - - 27 FROM tab2
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT col0 DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8991
SELECT col0 / + + col2 AS col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT - MIN( + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8992
SELECT - MIN ( + col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + - ( - + col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT ( + - SUM( ALL - 17 ) ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT ( + - SUM ( ALL - 17 ) ) FROM tab0 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL - MIN( 33 ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - MIN ( 33 ) AS col0 FROM tab0
----
-33

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT col1 * ( + ( CAST( col1 AS SIGNED ) ) ) AS col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8999
SELECT col1 * ( + ( CAST ( col1 AS INTEGER ) ) ) AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab0 WHERE NOT + - col1 / - - 36 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT MAX( DISTINCT - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9002
SELECT MAX ( DISTINCT - - col1 ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT col2 * col2 * - col0 * - col1 DIV + col1 col0 FROM tab0
----
33135
8700
950697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9004
SELECT col2 * col2 * - col0 * - col1 / + col1 col0 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 85 + - COUNT( * ) AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9005
SELECT 85 + - COUNT ( * ) AS col0 FROM tab1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col1 ) * + 79, - 93 col0 FROM tab0 cor0
----
-1659
-93
-6399
-93
-79
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9007
SELECT - + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + col1 * + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * 99 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT ALL - 52 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # DIV for integer division: 
query II rowsort label-9012
SELECT - col2 DIV + + ( col0 ) - - 18 AS col2, + 4 col1 FROM tab0 cor0
----
15
4
17
4
18
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9012
SELECT - col2 / + + ( col0 ) - - 18 AS col2, + 4 col1 FROM tab0 cor0
----
15
4
17
4
18
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL + MAX( - - col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + MAX ( - - col1 ) AS col0 FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 20
----

query I rowsort
SELECT DISTINCT - + 10 - - + 62 AS col1 FROM tab0 cor0
----
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - - col0 IS NOT NULL OR NOT 36 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT - COUNT( - - col1 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9017
SELECT DISTINCT - COUNT ( - - col1 ) col2 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col1 + + - col1 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT + SUM( ALL + col1 ) * + 40 AS col2 FROM tab1 AS cor0
----
2640

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + SUM ( ALL + col1 ) * + 40 AS col2 FROM tab1 AS cor0
----
2640

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 - - col2 + + col0 * - 91 <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 3 + - + col1 * + + col0 FROM tab0 AS cor0
----
-1212
-1824
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT COUNT( * ) + - MIN( - col0 ) col1 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT COUNT ( * ) + - MIN ( - col0 ) col1 FROM tab2
----
78

query I rowsort
SELECT - col0 + + col2 + - ( + col0 ) AS col0 FROM tab0
----
-164
-95
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT DISTINCT + COUNT( * ) + + 71 * ( + COUNT( * ) ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT + COUNT ( * ) + + 71 * ( + COUNT ( * ) ) FROM tab2
----
216

query III rowsort
SELECT * FROM tab1 WHERE + 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL - 14 - - 23 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - 14 - - 23 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT MIN( + + col0 ) + - 36, + 44 * 40 AS col1 FROM tab2
----
10
1760

skipif mysql # not compatible
query II rowsort label-9029
SELECT MIN ( + + col0 ) + - 36, + 44 * 40 AS col1 FROM tab2
----
10
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + MAX( ALL + col2 ) * + 14 * - 2 FROM tab0
----
-2772

skipif mysql # not compatible
query I rowsort label-9030
SELECT + MAX ( ALL + col2 ) * + 14 * - 2 FROM tab0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + SUM( ALL - col1 ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT + SUM ( ALL - col1 ) col2 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE 16 / - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + 88 - + 37 + - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + 88 - + 37 + - COUNT ( * ) FROM tab2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9035
SELECT ALL - CAST( NULL AS DECIMAL ) - + col0 - ( + 11 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - CAST ( NULL AS REAL ) - + col0 - ( + 11 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT ALL - col2 * - - col1 + + col1 DIV - + col1 FROM tab0
----
-100
-211
-3808

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - col2 * - - col1 + + col1 / - + col1 FROM tab0
----
-100
-211
-3808

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT ALL + col0 DIV - col2 + col0 AS col1 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + col0 / - col2 + col0 AS col1 FROM tab2 AS cor0
----
44
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL + ( + MAX( col2 ) ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9038
SELECT ALL + ( + MAX ( col2 ) ) col1 FROM tab0
----
99

query I rowsort
SELECT ALL - + 9 - ( 16 ) * - col0 * + 98 * + - 50 FROM tab0 AS cor0 WHERE NOT + col0 >= + col2 * - - col2 * + col1 * - 0 + col2
----
-1176009
-7604809

query I rowsort
SELECT + 10 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9041
SELECT - COUNT( + 59 ) DIV + CAST( - COUNT( DISTINCT col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT - COUNT ( + 59 ) / + CAST ( - COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0 + col1
----

query I rowsort
SELECT ALL col1 - 71 AS col0 FROM tab1 AS cor0 WHERE NULL >= - ( - 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9044
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 66 FROM tab2 AS cor0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9044
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 66 FROM tab2 AS cor0
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9045
SELECT + COUNT( * ), - 19 AS col2 FROM tab2 AS cor0
----
3
-19

skipif mysql # not compatible
query II rowsort label-9045
SELECT + COUNT ( * ), - 19 AS col2 FROM tab2 AS cor0
----
3
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL - 49 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - 49 / col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT + COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9047
SELECT + COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - ( + - ( - + col0 ) ), + 27 AS col2 FROM tab0 AS cor0
----
-15
27
-87
27
-97
27

query I rowsort
SELECT - ( + - ( + 72 ) ) FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL SUM( 16 ) AS col0 FROM tab2 AS cor0 WHERE col1 * - - 2 = ( + + col0 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL SUM ( 16 ) AS col0 FROM tab2 AS cor0 WHERE col1 * - - 2 = ( + + col0 + - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + 52 ) ) col1 FROM tab0 AS cor0
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - col1 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + col1 * - ( - - col0 ) * + 29 FROM tab1
----
1047625
1056006
11287003

query I rowsort
SELECT ALL - col2 + col0 * + ( - col1 ) * + col1 + + - ( - col2 ) FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT + 38 * + COUNT( * ) + - 79 FROM tab1 WHERE NOT 35 IS NOT NULL
----
-79

skipif mysql # not compatible
query I rowsort label-9055
SELECT + 38 * + COUNT ( * ) + - 79 FROM tab1 WHERE NOT 35 IS NOT NULL
----
-79

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL > col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9058
SELECT ( col2 ), - 18 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9058
SELECT ( col2 ), - 18 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( 31 * - 67 * col0 + - - col1 ) <> 18 / + + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( 31 * - 67 * col0 + - - col1 ) <> 18 / + + col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( + 69 ) col0, - col2 FROM tab2 AS cor0
----
69
-23
69
-40
69
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + ( + SUM( col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + ( + SUM ( col2 ) ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL + 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + - SUM( 68 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-612

skipif mysql # not compatible
query I rowsort label-9065
SELECT + - SUM ( 68 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-612

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 51 = + + col0 / - 51 + - - 39
----

query I rowsort
SELECT ALL - ( - ( - col1 ) ) * col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - ( - col0 ) * - ( - 78 ) + + 0 FROM tab1 AS cor0
----
3978
6630
7098

query II rowsort
SELECT col1 AS col0, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - - 9 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT MAX( - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9071
SELECT MAX ( - col0 ) AS col2 FROM tab2 cor0
----
-46

query II rowsort
SELECT col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT MIN( DISTINCT - 74 ) * COUNT( * ), MIN( + 48 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-222
51

skipif mysql # not compatible
query II rowsort label-9073
SELECT MIN ( DISTINCT - 74 ) * COUNT ( * ), MIN ( + 48 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-222
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT SUM( - 59 ) - - + 35 * + ( - COUNT( * ) ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT SUM ( - 59 ) - - + 35 * + ( - COUNT ( * ) ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + COUNT( * ) - 80 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9075
SELECT + COUNT ( * ) - 80 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - 43 - col1 AS col0 FROM tab1
----
-48
-57
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT DISTINCT 44 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT 44 / col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col2 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT 30 * COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT 30 * COUNT ( * ) FROM tab1
----
90

query II rowsort
SELECT + 88 AS col0, ( + col1 ) AS col0 FROM tab2
----
88
51
88
67
88
77

onlyif mysql # DIV for integer division: 
query III rowsort label-9083
SELECT col0 AS col2, - 45 DIV col0 * + col0 AS col1, + + 91 * + 76 FROM tab1
----
9 values hashing to d83e06cf5ed4b4c61c8c1601ca5ba776

skipif mysql # not compatible
query III rowsort label-9083
SELECT col0 AS col2, - 45 / col0 * + col0 AS col1, + + 91 * + 76 FROM tab1
----
9 values hashing to d83e06cf5ed4b4c61c8c1601ca5ba776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9084
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9084
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 31 col2 FROM tab0 AS cor0
----
-1
31
-21
31
-81
31

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + 8 = - + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT ALL - 50 DIV + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - 50 / + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL - MIN( - + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - MIN ( - + col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT + CAST( 35 AS SIGNED ) * 47 * SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
-327355

skipif mysql # not compatible
query I rowsort label-9092
SELECT + CAST ( 35 AS INTEGER ) * 47 * SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
-327355

query I rowsort
SELECT - ( - - col0 ) * col1 * - - col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT 28 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - col0 >= + col2
----
28
28
28

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 - + - 34 AS col2 FROM tab0 AS cor0
----
1249
131
1861

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + 10 * + + col0 BETWEEN NULL AND + + 57 - col1 - - col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 60 + 20 col0 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT + + col2 FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT + + col2 FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL 35 + ( col2 ) + - + col2 AS col0 FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT + COUNT( DISTINCT ( col0 ) ) + 26 * - ( - 5 ) * + COUNT( * ) AS col1 FROM tab2
----
393

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + COUNT ( DISTINCT ( col0 ) ) + 26 * - ( - 5 ) * + COUNT ( * ) AS col1 FROM tab2
----
393

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * 70 <> 90
----

query I rowsort
SELECT DISTINCT 33 + + - ( - 64 ) FROM tab1
----
97

query I rowsort
SELECT + col2 + 22 AS col1 FROM tab1
----
118
81
90

query II rowsort
SELECT ALL + 34, - ( col0 ) AS col1 FROM tab0
----
34
-15
34
-87
34
-97

query I rowsort
SELECT - col0 + + + 50 - - col2 FROM tab0
----
-27
52
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col2 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col2 * + col2 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - 14 <= + 83 - 93 + - col1
----

query I rowsort
SELECT ALL - + ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 + + ( 92 ) FROM tab1
----
143
177
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - MIN( ALL + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9111
SELECT - MIN ( ALL + col0 ) FROM tab1
----
-51

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 / - - col1 >= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col0 * + - col0 AS col2 FROM tab0
----
-3375
-658503
-912673

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9115
SELECT + MAX ( ALL - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ( + col2 ) * - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT - 41 DIV - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 41 / - COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT 99 * + + col2 AS col2 FROM tab2
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - ( - 30 ) + + - col2 / + col2 * - col0 IS NULL ) )
----

query I rowsort
SELECT DISTINCT 47 * + 77 AS col1 FROM tab2 AS cor0
----
3619

query I rowsort
SELECT col2 * - ( - col0 ) * - - col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( 26 ) col0 FROM tab0
----
1222
2574
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL SUM( CAST( 2 AS SIGNED ) ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL SUM ( CAST ( 2 AS INTEGER ) ) AS col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT 58 * + - 46 * + - col2 AS col0 FROM tab0
----
125396
264132
26680

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - - ( + 78 ) AS col0 FROM tab1 cor0
----
78

query I rowsort
SELECT - + col0 + + col1 * - + col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query II rowsort
SELECT ALL - col2 AS col2, 6 + - - col0 FROM tab0 AS cor0
----
-10
93
-47
21
-99
103

query I rowsort
SELECT + ( + 17 ) FROM tab0 AS cor0
----
17
17
17

query II rowsort
SELECT DISTINCT + + col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 20 * - + 84 + - col1 * 9 FROM tab1
----
-1725
-1806
-2103

query II rowsort
SELECT DISTINCT - 86 * + + col2 AS col0, col2 AS col0 FROM tab2
----
-1978
23
-3440
40
-4988
58

query I rowsort
SELECT ALL 17 FROM tab0 WHERE NOT - + 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 15 AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9137
SELECT ALL MIN( - + col2 ) DIV 37 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL MIN ( - + col2 ) / 37 AS col1 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT + col0 + col1, - col0 * - - ( - + 48 ) AS col2 FROM tab0 AS cor0
----
108
4176
96
720
98
4656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - col2 + - 43 col1 FROM tab0
----
-2393
-4993
-543

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col1 = + + 11
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col1 = + + 11
----
0

query I rowsort
SELECT - 1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT - + col0 AS col2, ( - + col2 ) FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT - MIN( - col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT - MIN ( - col0 ) col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9144
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 18 * + 9 + + + 24 + - col2 + + col0 * + CAST( - 23 AS SIGNED ) * 51
----

skipif mysql # not compatible
query III rowsort label-9144
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 18 * + 9 + + + 24 + - col2 + + col0 * + CAST ( - 23 AS INTEGER ) * 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col1 * - col2 * - 28 <> col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9145
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col1 * - col2 * - 28 <> col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT col2 DIV - 53 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9147
SELECT col2 / - 53 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT 61 DIV - + col0, col2 FROM tab1
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-9148
SELECT 61 / - + col0, col2 FROM tab1
----
-1
96
0
59
0
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9149
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col1 / + + col2 AND - CAST( NULL AS DECIMAL ) + - col2 * - - 81
----

skipif mysql # not compatible
query III rowsort label-9149
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col1 / + + col2 AND - CAST ( NULL AS REAL ) + - col2 * - - 81
----

query I rowsort
SELECT + 70 * - 95 FROM tab1
----
-6650
-6650
-6650

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT 22 DIV - 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9151
SELECT 22 / - 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT DISTINCT col0 DIV 42 col2 FROM tab0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9152
SELECT DISTINCT col0 / 42 col2 FROM tab0
----
0
2

query I rowsort
SELECT col1 * - - col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - COUNT( * ) * 99 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9154
SELECT - COUNT ( * ) * 99 FROM tab1 AS cor0
----
-297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT - 48 * - 39 AS col1 FROM tab1 AS cor0
----
1872

query II rowsort
SELECT ALL - 49 AS col1, 36 * - 55 AS col1 FROM tab2 cor0
----
-49
-1980
-49
-1980
-49
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT - MAX( DISTINCT - col2 ) + + - 54 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT - MAX ( DISTINCT - col2 ) + + - 54 FROM tab2
----
-31

query I rowsort
SELECT ALL - 25 + col0 + col1 * + + 88 AS col1 FROM tab2
----
4509
5946
6815

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL + MAX( - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + MAX ( - + col2 ) FROM tab0
----
-10

query I rowsort
SELECT + col0 * + - 71 + + - col0 FROM tab1
----
-3672
-6120
-6552

query I rowsort
SELECT col2 + + + 46 * - + col2 FROM tab0
----
-2115
-4455
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - 73 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
3723
4891
5621

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 73 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT DISTINCT + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) + MAX( ALL - + col2 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) + MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL + ( - 14 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT + 47 - 15 * - col2 * - col1 + + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT + 47 - 15 * - col2 * - col1 + + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab0 WHERE + + 53 NOT BETWEEN 30 AND - col1 + - col0 / + + col1
----
196
62
97

query I rowsort
SELECT + + 52 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> col2
----

query II rowsort
SELECT + ( + 83 ) AS col0, + col1 AS col2 FROM tab2 AS cor0
----
83
51
83
67
83
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + - ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT ALL - + CAST( NULL AS SIGNED ) / + + col1 + - + col0 + col1 * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - + CAST ( NULL AS INTEGER ) / + + col1 + - + col0 + col1 * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab1 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - COUNT( * ) * + 45 AS col1 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COUNT ( * ) * + 45 AS col1 FROM tab1
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6, col0 col2 FROM tab0
----
6
15
6
87
6
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT 81 DIV - 39 col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT 81 / - 39 col2 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT 99 * - COUNT( * ) * + SUM( ALL - 13 ) AS col0 FROM tab1
----
11583

skipif mysql # not compatible
query I rowsort label-9179
SELECT 99 * - COUNT ( * ) * + SUM ( ALL - 13 ) AS col0 FROM tab1
----
11583

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL COUNT( * ) * 45 AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL COUNT ( * ) * 45 AS col0 FROM tab2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9181
SELECT - - col1 + + 72 col2, - col0 * 25 * - CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
119
NULL
77
NULL
86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9181
SELECT - - col1 + + 72 col2, - col0 * 25 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
119
NULL
77
NULL
86
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + 96 <= + col2 * + 63 + ( - col2 ) * - 50 * - + 64 AND NOT 94 * col0 <> - 33
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 22 col1 FROM tab0
----
-1914
-2134
-330

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 51 AND + col0
----

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - ( COUNT( * ) ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT - ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 80 * col1 col1, ( + - col2 ) col1 FROM tab0 cor0
----
-1680
-10
-6480
-47
-80
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) FROM tab2 cor0 WHERE + col2 >= - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) FROM tab2 cor0 WHERE + col2 >= - + 60
----
NULL

query II rowsort
SELECT + ( - + 6 ) AS col1, + 78 FROM tab0 AS cor0
----
-6
78
-6
78
-6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT + 57 + - SUM( - - 79 ) FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + 57 + - SUM ( - - 79 ) FROM tab1 AS cor0
----
-180

query I rowsort
SELECT ALL 3 + + 80 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT col1 * + + 84 * 76 FROM tab1 AS cor0
----
300048
31920
89376

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT + + COUNT( - col2 ) AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + + COUNT ( - col2 ) AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9196
SELECT * FROM tab0 WHERE + CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9196
SELECT * FROM tab0 WHERE + CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT MIN( ALL - - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9197
SELECT MIN ( ALL - - col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 91 * - 58 * col1 FROM tab0
----
-110838
-427518
-5278

query I rowsort
SELECT + col2 - + 26 AS col0 FROM tab1
----
33
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL - COUNT( * ) - - - COUNT( 60 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL - COUNT ( * ) - - - COUNT ( 60 ) AS col2 FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT col1 DIV - ( + ( + col1 ) ) - - + ( + col1 ) AS col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-9202
SELECT col1 / - ( + ( + col1 ) ) - - + ( + col1 ) AS col0 FROM tab2
----
50
66
76

query I rowsort
SELECT col2 + + + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 80 - - CAST( - col0 AS SIGNED ) NOT BETWEEN ( + ( col2 ) ) AND ( ( ( - 45 ) ) * + 53 )
----

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 80 - - CAST ( - col0 AS INTEGER ) NOT BETWEEN ( + ( col2 ) ) AND ( ( ( - 45 ) ) * + 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 - + 47 col0 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9206
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < + - col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-9206
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + - col0 * + col0
----

query I rowsort
SELECT - col2 + + ( + col0 ) + - col1 FROM tab2 cor0
----
-28
-50
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT + 39 + + - ( col2 ) + - col2 DIV col1 * + col0 + + col2 FROM tab2 cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 39 + + - ( col2 ) + - col2 / col1 * + col0 + + col2 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ALL - 26 * + 90 - + 33 * + - col1 - - + 64 + + 94 * - col1 AS col1 FROM tab1 AS cor0
----
-2581
-3130
-5143

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= - col1 )
----

query I rowsort
SELECT ALL + + 40 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + 93 * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-837

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 93 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-837

query II rowsort
SELECT - col1 AS col1, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + 82 * - 65 * + 53 FROM tab2 AS cor0
----
-282490
-282490
-282490

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL + COUNT( * ) * - MIN( DISTINCT - 75 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + COUNT ( * ) * - MIN ( DISTINCT - 75 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
675

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT 39 AS col1, COUNT( * ) * - 16 AS col2 FROM tab0 AS cor0
----
39
-48

skipif mysql # not compatible
query II rowsort label-9217
SELECT 39 AS col1, COUNT ( * ) * - 16 AS col2 FROM tab0 AS cor0
----
39
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9219
SELECT * FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9219
SELECT * FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 78 * - col1 AS col0 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # DIV for integer division: 
query II rowsort label-9221
SELECT col1 DIV + - col2 AS col2, - col0 AS col2 FROM tab0
----
-1
-15
-2
-87
0
-97

skipif mysql # not compatible
query II rowsort label-9221
SELECT col1 / + - col2 AS col2, - col0 AS col2 FROM tab0
----
-1
-15
-2
-87
0
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL 44 * - COUNT( DISTINCT + col2 ) AS col0 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL 44 * - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
-132

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 29 + + 69 * 81 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT MIN ( - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL - 25, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-25
-9

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL - 25, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-25
-9

query II rowsort
SELECT 99, + col2 AS col0 FROM tab0
----
99
10
99
47
99
99

query II rowsort
SELECT + col0 AS col1, + 62 FROM tab0
----
15
62
87
62
97
62

query I rowsort
SELECT - col1 * + ( - 4 ) * - col2 AS col2 FROM tab2
----
-12320
-15544
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + COUNT( ALL - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9230
SELECT + COUNT ( ALL - + col0 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT DISTINCT + col0 + + - col2, col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT + 72 - + col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + 72 - + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - ( + + col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - 81 + COUNT( * ) AS col0 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 81 + COUNT ( * ) AS col0 FROM tab0 cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9236
SELECT ALL CAST( - SUM( ALL col1 ) AS SIGNED ) AS col1, - ( - 80 ) FROM tab1 AS cor0
----
-66
80

skipif mysql # not compatible
query II rowsort label-9236
SELECT ALL CAST ( - SUM ( ALL col1 ) AS INTEGER ) AS col1, - ( - 80 ) FROM tab1 AS cor0
----
-66
80

query I rowsort
SELECT DISTINCT col0 + + 43 FROM tab1 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
128
134
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 98 col2 FROM tab0 AS cor0
----
-17
-77
-97

query I rowsort
SELECT + col1 + + - ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9240
SELECT DISTINCT ( + 23 ) * col0 + + col2 AS col2, + col1 DIV col0 AS col0 FROM tab1
----
1269
0
2014
0
2161
0

skipif mysql # not compatible
query II rowsort label-9240
SELECT DISTINCT ( + 23 ) * col0 + + col2 AS col2, + col1 / col0 AS col0 FROM tab1
----
1269
0
2014
0
2161
0

query I rowsort
SELECT 52 + + 71 AS col0 FROM tab0
----
123
123
123

query I rowsort
SELECT + - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT - 34 + - - col0 FROM tab2
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL 35 - - + COUNT( * ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL 35 - - + COUNT ( * ) AS col0 FROM tab1
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-9246
SELECT - ( - col2 ) AS col1, + col0 DIV + - col0 FROM tab0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-9246
SELECT - ( - col2 ) AS col1, + col0 / + - col0 FROM tab0
----
10
-1
47
-1
99
-1

query III rowsort
SELECT * FROM tab1 WHERE col0 * - - col1 + + col2 NOT BETWEEN + col0 AND - col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 8 * - 66 * col1 FROM tab2 cor0
----
-26928
-35376
-40656

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( 56 ) * col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - + 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 75 * - 10 FROM tab2
----
-750

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 30 AND + 12
----

query II rowsort
SELECT col0, ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 >= - + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT MIN( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9254
SELECT MIN ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9255
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + ( + col1 ) * + 10 / - col0 AND CAST( + 24 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9255
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + ( + col1 ) * + 10 / - col0 AND CAST ( + 24 AS INTEGER )
----

query II rowsort
SELECT ALL + col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT DISTINCT - - 62 DIV COUNT( * ) * - + 17 * - COUNT( * ) AS col2 FROM tab0 cor0
----
1020

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - - 62 / COUNT ( * ) * - + 17 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT ALL + - 65 DIV - + 15 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + - 65 / - + 15 FROM tab2 AS cor0
----
4
4
4

query II rowsort
SELECT 58 AS col1, col0 AS col0 FROM tab0 AS cor0
----
58
15
58
87
58
97

query I rowsort
SELECT 32 * - - 43 AS col0 FROM tab0
----
1376
1376
1376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9262
SELECT ALL 1, CAST( NULL AS SIGNED ) + col0 * + col1 / - 99 AS col1 FROM tab0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-9262
SELECT ALL 1, CAST ( NULL AS INTEGER ) + col0 * + col1 / - 99 AS col1 FROM tab0
----
1
NULL
1
NULL
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 93 + + 41 >= + col2 * + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 87 * - 19 FROM tab0
----
-1653
-1653
-1653

query I rowsort
SELECT DISTINCT - col2 * 37 AS col1 FROM tab2
----
-1480
-2146
-851

query I rowsort
SELECT DISTINCT 93 * col0 AS col2 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT col1 > NULL
----
0

query I rowsort
SELECT - - col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + 20
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + 0 * - col2 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT ALL + CAST( - 81 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + CAST ( - 81 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 * + col1 <= + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9273
SELECT DISTINCT + 88 AS col0, 92 DIV - COUNT( * ) FROM tab2 AS cor0
----
88
-30

skipif mysql # not compatible
query II rowsort label-9273
SELECT DISTINCT + 88 AS col0, 92 / - COUNT ( * ) FROM tab2 AS cor0
----
88
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT + + ( - - col2 ) / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT + + ( - - col2 ) / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - col0 / 53
----

query I rowsort
SELECT ALL + 58 * col1 + - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
3009
3953
4543

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + MAX( DISTINCT col2 ) + 69 + + 68 AS col1 FROM tab0
----
236

skipif mysql # not compatible
query I rowsort label-9279
SELECT + MAX ( DISTINCT col2 ) + 69 + + 68 AS col1 FROM tab0
----
236

onlyif mysql # DIV for integer division: 
query II rowsort label-9280
SELECT - col0 * + 68 * 20, - col1 DIV + 69 col2 FROM tab1 AS cor0
----
-115600
0
-123760
0
-69360
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9280
SELECT - col0 * + 68 * 20, - col1 / + 69 col2 FROM tab1 AS cor0
----
-115600
0
-123760
0
-69360
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9281
SELECT - - col1 * + CAST( NULL AS DECIMAL ) AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-9281
SELECT - - col1 * + CAST ( NULL AS REAL ) AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + col1 * col0 * + - col0 + + col1 FROM tab1 AS cor0
----
-36120
-36400
-389160

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + MAX( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9283
SELECT + MAX ( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT ALL - - COUNT( * ) + 67 AS col0, + SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
70
-66

skipif mysql # not compatible
query II rowsort label-9284
SELECT ALL - - COUNT ( * ) + 67 AS col0, + SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
70
-66

query I rowsort
SELECT ALL - + 31 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - COUNT( * ) + - 82 AS col0 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - COUNT ( * ) + - 82 AS col0 FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab2, tab0 cor0
----
13

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab2 WHERE NOT ( - 10 * + - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT ALL - CAST( - 12 AS SIGNED ) - 29 AS col1 FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - CAST ( - 12 AS INTEGER ) - 29 AS col1 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ALL 32 + + - col0 FROM tab0
----
-55
-65
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 84 ) + - col0 - + 88 + - col2 + - - col2 col0 FROM tab2
----
-50
-68
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT + 81 * COUNT( * ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT + 81 * COUNT ( * ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT ALL + - 20 * 25 AS col0 FROM tab1 AS cor0
----
-500
-500
-500

query II rowsort
SELECT col1 AS col0, col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9296
SELECT DISTINCT - + col1 AS col0, 0 * + - col2 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT - + col1 AS col0, 0 * + - col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 * col2 IS NOT NULL
----

query I rowsort
SELECT 5 - col2 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( 99 / 50 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - ( - col1 + - 8 ) * col0 FROM tab1
----
1164
1218
5073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT col2 + CAST( - col0 AS SIGNED ) FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9301
SELECT col2 + CAST ( - col0 AS INTEGER ) FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + 28
----
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT + MAX( + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + MAX ( + col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT + 26 FROM tab0 WHERE NOT + 76 > ( 24 * col2 )
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT col1 DIV col0 + - col2 * - col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9305
SELECT col1 / col0 + - col2 * - col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT ALL - COUNT( * ) DIV - 81 + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - COUNT ( * ) / - 81 + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE 21 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + MIN( ALL 92 ) + ( + 87 ) FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-9310
SELECT + MIN ( ALL 92 ) + ( + 87 ) FROM tab0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT COUNT( ALL col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9311
SELECT COUNT ( ALL col2 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + 68 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + 3 FROM tab0 WHERE ( col2 + col2 ) NOT IN ( - col2 )
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - COUNT( * ) - 88 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9314
SELECT - COUNT ( * ) - 88 FROM tab0
----
-91

query I rowsort
SELECT col1 + col2 * + col2 AS col2 FROM tab2
----
1677
3431
580

query I rowsort
SELECT DISTINCT + col0 * 21 AS col0 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 47 + - 79
----

query I rowsort
SELECT ALL - col2 * - 76 AS col1 FROM tab0
----
3572
7524
760

query I rowsort
SELECT ALL 38 - 44 AS col0 FROM tab0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT ALL CAST( NULL AS SIGNED ) + 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL CAST ( NULL AS INTEGER ) + 41 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 63 - + col1 FROM tab2
----
-14
-4
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT 31 * COUNT( * ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9322
SELECT 31 * COUNT ( * ) col1 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT ALL 51 DIV - col0 + col2 * + col0 col1 FROM tab1
----
4895
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT ALL 51 / - col0 + col2 * + col0 col1 FROM tab1
----
4895
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT CAST( + ( - col1 ) AS SIGNED ) * + 84 FROM tab0
----
-1764
-6804
-84

skipif mysql # not compatible
query I rowsort label-9325
SELECT CAST ( + ( - col1 ) AS INTEGER ) * + 84 FROM tab0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 89 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT DISTINCT + CAST( NULL AS SIGNED ) + MIN( + col2 + 97 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + MIN ( + col2 + 97 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - MAX( ALL - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9329
SELECT - MAX ( ALL - col1 ) FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 65 BETWEEN NULL AND 73
----

query I rowsort
SELECT 44 - 61 AS col2 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT ALL - 62 * + col2 - + col1 FROM tab2 AS cor0
----
-1477
-2557
-3663

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - + ( + ( MIN( col0 ) ) ) + 98 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9334
SELECT - + ( + ( MIN ( col0 ) ) ) + 98 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9335
SELECT DISTINCT - MAX( 62 ) - + 35 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT - MAX ( 62 ) - + 35 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IN ( - col0 + - col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + col0 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT + CAST( MAX( col2 ) AS SIGNED ) col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9338
SELECT + CAST ( MAX ( col2 ) AS INTEGER ) col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + MIN( ALL 59 ) col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9339
SELECT ALL + MIN ( ALL 59 ) col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT + 24 + - col1 FROM tab1 AS cor0
----
-23
10
19

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col0 + 54 * - col1 AS col1 FROM tab0 AS cor0
----
-1047
-4359
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT 85 + - COUNT( * ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9343
SELECT 85 + - COUNT ( * ) FROM tab1
----
82

query I rowsort
SELECT ALL 94 + - - col1 FROM tab0
----
115
175
95

query I rowsort
SELECT - 95 * col1 * + col1 FROM tab2
----
-247095
-426455
-563255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 26 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT + CAST( NULL AS SIGNED ) * - 12 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT + CAST ( NULL AS INTEGER ) * - 12 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( + col2 * - 18 + 98 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - 83 < col0 + - col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + MAX( - col2 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 26 - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT + MAX ( - col2 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 26 - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 9 >= col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 89 <= ( NULL ) AND NOT col1 + + col2 <> col0 * + col0
----

query I rowsort
SELECT ALL - 25 AS col0 FROM tab2 cor0
----
-25
-25
-25

query II rowsort
SELECT DISTINCT + col0, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL MIN( - 0 ) col1 FROM tab1 WHERE NOT 91 <= + ( col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT ALL MIN ( - 0 ) col1 FROM tab1 WHERE NOT 91 <= + ( col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - 31 AS col0 FROM tab1
----
1457
155
434

query I rowsort
SELECT DISTINCT - ( 71 ) * - + col0 * + col0 FROM tab2
----
150236
290816
399375

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
44

query I rowsort
SELECT + 45 * 5 + col1 FROM tab1 AS cor0
----
230
239
272

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL MAX( + 84 ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL MAX ( + 84 ) AS col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - - 5 + + - col1 AS col2 FROM tab1 AS cor0
----
-42
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT col0 + + + col0 DIV - 54 AS col2 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-9366
SELECT col0 + + + col0 / - 54 AS col2 FROM tab0 AS cor0
----
15
86
96

query I rowsort
SELECT DISTINCT + col1 * + 99 FROM tab2 AS cor0 WHERE ( 47 / - col0 ) BETWEEN - col2 / - col2 + col1 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + + 66 AS col0 FROM tab1 AS cor0
----
19
52
61

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - 39 + - - 38 + - col2 * col0 ) <> ( NULL )
----

query II rowsort
SELECT DISTINCT col0 AS col1, 94 - col0 FROM tab2 AS cor0
----
46
48
64
30
75
19

query I rowsort
SELECT DISTINCT + - 77 * + ( + 52 ) + col2 FROM tab0 AS cor0
----
-3905
-3957
-3994

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT MAX( - 26 ) AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9372
SELECT MAX ( - 26 ) AS col1 FROM tab1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9373
SELECT ALL MIN( col1 ) * - COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL MIN ( col1 ) * - COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
48

query I rowsort
SELECT DISTINCT 61 + - + col0 FROM tab2
----
-14
-3
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN 16 + + col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT + COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + col2 + - 52 AS col1 FROM tab0
----
2204
58
9848

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - 97 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 83 AS col2 FROM tab2 AS cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 88 * + 65 * - + 59
----

query I rowsort
SELECT - 73 + + ( + col1 ) FROM tab0 AS cor0
----
-52
-72
8

query I rowsort
SELECT 99 + col0 + - col1 FROM tab2 AS cor0
----
107
86
94

query I rowsort
SELECT ALL col0 + - - col2 AS col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 44 + - + 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT ALL 6 - - CAST( - + 63 AS SIGNED ) AS col1, 92 AS col0 FROM tab0
----
-57
92
-57
92
-57
92

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL 6 - - CAST ( - + 63 AS INTEGER ) AS col1, 92 AS col0 FROM tab0
----
-57
92
-57
92
-57
92

query I rowsort
SELECT DISTINCT - + col1 - - 76 - ( 89 ) + + col2 + 39 * + 90 FROM tab0 AS cor0
----
3463
3486
3595

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 56
----

query I rowsort
SELECT 41 * - 52 FROM tab1 AS cor0
----
-2132
-2132
-2132

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 40 < - col1
----
51
14
96
85
5
59

query I rowsort
SELECT - ( - + col2 ) - 7 FROM tab0 cor0
----
3
40
92

query I rowsort
SELECT ALL 20 * 9 AS col1 FROM tab1 cor0
----
180
180
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 - - 9 col0 FROM tab1 cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - 13 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - 13 / - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT - MIN( + col1 ) - + 38 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT - MIN ( + col1 ) - + 38 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL - - COUNT( * ) * - MIN( ALL - col1 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - - COUNT ( * ) * - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT COUNT( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 68 + + col1 * ( 64 ) ) <= - col1 + 17 * col1
----
3

skipif mysql # not compatible
query I rowsort label-9399
SELECT COUNT ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 68 + + col1 * ( 64 ) ) <= - col1 + 17 * col1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT ( NOT ( col2 ) IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL + COUNT( 22 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + COUNT ( 22 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - - col2 - col2 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + col1 * + 71 AS col2 FROM tab1
----
3337
355
994

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9404
SELECT - - CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9404
SELECT - - CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query II rowsort
SELECT - 28 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
-28
15
-28
87
-28
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - COUNT( ALL + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - COUNT ( ALL + col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT + 28 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - + MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - + MIN ( - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT ALL 95 AS col2 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT ALL col2 * + + 96 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT ALL 75 - + col2 AS col1 FROM tab1 WHERE NULL <= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9415
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col2, CAST( NULL AS SIGNED ) * + col0 ) OR NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9415
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col2, CAST ( NULL AS INTEGER ) * + col0 ) OR NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= NULL
----

query I rowsort
SELECT col0 * col0 * - col2 + - + 59 FROM tab2
----
-163899
-326309
-48727

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 70 * + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 70 * + col1 ) AND NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + 77 FROM tab1 WHERE col2 IS NOT NULL
----
-14
-8
26

query I rowsort
SELECT col1 * + - col1 + - - col0 FROM tab2
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - - MIN( 54 ) AS col2 FROM tab2 AS cor0 WHERE NOT 63 + + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - - MIN ( 54 ) AS col2 FROM tab2 AS cor0 WHERE NOT 63 + + col0 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - 30 ) AND - - col0
----

query I rowsort
SELECT ALL ( + + 62 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + AVG ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT DISTINCT + CAST( + 63 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col2 * ( col2 ) NOT BETWEEN - col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col2 * ( col2 ) NOT BETWEEN - col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * 8 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT + ( - - col1 ) * + + col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL col0 * 70 AS col2 FROM tab2 AS cor0
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL + 26 * - SUM( DISTINCT + col2 ) FROM tab2 cor0
----
-3146

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + 26 * - SUM ( DISTINCT + col2 ) FROM tab2 cor0
----
-3146

query I rowsort
SELECT 56 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + 89 / + - col1 AND ( + col1 )
----

query I rowsort
SELECT col1 * - 42 AS col1 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT ALL - 71 - 97 + + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL - 71 - 97 + + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 * - - col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT + col1 AS col2, + 99 AS col0 FROM tab2
----
51
99
67
99
77
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9437
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( + 52, CAST( + col1 AS DECIMAL ) * - col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-9437
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( + 52, CAST ( + col1 AS REAL ) * - col1 + col1 )
----

query I rowsort
SELECT - 34 AS col1 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NOT 13 IN ( + 96, 19 + 18 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 34 * col1 AS col0 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT DISTINCT + - col1 * + + 74 - col2 FROM tab2 cor0
----
-3797
-5016
-5738

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL MIN( - + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL MIN ( - + col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - 20 * - 43 FROM tab0 AS cor0
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + 75 + 59 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9446
SELECT + 75 + 59 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
252

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2 cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - 80 + + COUNT( * ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9448
SELECT - 80 + + COUNT ( * ) FROM tab1 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - col1 NOT BETWEEN NULL AND - - 42
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT - - col2 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9450
SELECT - - col2 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col2 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT + - ( - col2 ) DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9454
SELECT + - ( - col2 ) / + col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT - 69 DIV + ( - - 6 ) - 88 * + 54 * + ( + - col0 ) FROM tab0 AS cor0
----
413413
460933
71269

skipif mysql # not compatible
query I rowsort label-9456
SELECT - 69 / + ( - - 6 ) - 88 * + 54 * + ( + - col0 ) FROM tab0 AS cor0
----
413413
460933
71269

query I rowsort
SELECT DISTINCT 22 * + col2 * - + ( 61 ) FROM tab2
----
-30866
-53680
-77836

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT + COUNT( - + 79 ), COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9458
SELECT + COUNT ( - + 79 ), COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
9
9

query I rowsort
SELECT DISTINCT col0 * + + col0 - + 51 AS col0 FROM tab2
----
2065
4045
5574

query I rowsort
SELECT ALL col1 + - + 15 AS col0 FROM tab0
----
-14
6
66

query II rowsort
SELECT DISTINCT + col2 + - - 22 AS col2, 51 * + + col2 AS col0 FROM tab2
----
45
1173
62
2040
80
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT + 83 * + COUNT( * ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + 83 * + COUNT ( * ) FROM tab1
----
249

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9464
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL + + SUM( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + + SUM ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - col2 + - col1 * + col2 FROM tab2 AS cor0 WHERE col2 + col2 IS NOT NULL
----
-1196
-3120
-3944

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + + 1 + - 75 - + 65 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 90 AND + 74
----

query I rowsort
SELECT DISTINCT - 68 FROM tab0 WHERE - col0 = - + 11
----

query I rowsort
SELECT - + 32 * col0 AS col1 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT DISTINCT - col1 * + - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + ( 34 ) AS col0 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - 44 col1 FROM tab0 cor0 WHERE NOT + CAST( ( - col1 ) AS SIGNED ) + - col0 * + - 29 IS NULL
----
-44
-44
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9473
SELECT ALL - 44 col1 FROM tab0 cor0 WHERE NOT + CAST ( ( - col1 ) AS INTEGER ) + - col0 * + - 29 IS NULL
----
-44
-44
-44

query I rowsort
SELECT ALL - + 32 FROM tab0 AS cor0 WHERE ( - 4 ) IN ( 45 - - col2, 79 / + col1, - col1 )
----

query I rowsort
SELECT ALL - ( 94 ) AS col2 FROM tab2 WHERE NOT + col1 + + + col2 - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9476
SELECT ALL + CAST( NULL AS SIGNED ) * - + col1, - 55 AS col2 FROM tab2
----
NULL
-55
NULL
-55
NULL
-55

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col1, - 55 AS col2 FROM tab2
----
NULL
-55
NULL
-55
NULL
-55

query II rowsort
SELECT DISTINCT 98 * col2 AS col2, + col0 * - col1 + + col0 AS col0 FROM tab1
----
5782
-340
6664
-4186
9408
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - SUM( col0 ) * - MIN( DISTINCT col1 ) AS col2 FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - SUM ( col0 ) * - MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
9435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT ALL MAX( ALL col0 ) DIV + + 64 + - COUNT( DISTINCT 73 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL MAX ( ALL col0 ) / + + 64 + - COUNT ( DISTINCT 73 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + + col1 + + col0 * - col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col0 * - + col2 * + + col2 + - + col1 * + - 8 * col0 * - - 2 AS col1 FROM tab2 AS cor0
----
-176389
-29481
10601

query II rowsort
SELECT col2 * - 96, col0 AS col1 FROM tab0 AS cor0
----
-4512
15
-9504
97
-960
87

query I rowsort
SELECT DISTINCT - 44 * col1 + - col1 + - col2 FROM tab0 AS cor0
----
-144
-3692
-955

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL col0 * - 75 * - col1 + + - 35 FROM tab2
----
175915
369565
376840

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT MAX( DISTINCT + 82 ) AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9486
SELECT MAX ( DISTINCT + 82 ) AS col0 FROM tab2
----
82

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - 32 + - + col2 = ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL + col2 DIV + - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + col2 / + - col2 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 WHERE NULL < col1 / + 90
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 WHERE NULL < col1 / + 90
----
0

query I rowsort
SELECT ALL 27 * - + col1 + + 38 * - - col0 * col0 AS col1 FROM tab2
----
153569
211941
79031

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab2
----
6

query II rowsort
SELECT - 50 + - col1 * + - 10 * + col2 AS col2, 87 + + + col2 * - 31 * - + 45 AS col1 FROM tab0
----
2050
14037
38020
65652
940
138192

query I rowsort
SELECT ALL col1 - + 20 FROM tab0
----
-19
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < - col2
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT + - CAST( NULL AS SIGNED ) - + 45 / col2 * + 22 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT + - CAST ( NULL AS INTEGER ) - + 45 / col2 * + 22 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT - COUNT( * ) * + COUNT( * ) AS col2, - MIN( ALL + ( - + ( - col1 ) ) ) FROM tab2
----
-9
-51

skipif mysql # not compatible
query II rowsort label-9497
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2, - MIN ( ALL + ( - + ( - col1 ) ) ) FROM tab2
----
-9
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 AND + col0
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
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-9500
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 cor0
----
3

query II rowsort
SELECT + 57 * + 12 AS col0, col2 * col2 * - + ( 59 ) FROM tab2 AS cor0
----
684
-198476
684
-31211
684
-94400

query I rowsort
SELECT + - ( - 50 ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9503
SELECT ALL + col0 AS col1, 27 - 63 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - 23 * - + col0 AS col1 FROM tab0
----
2001
2231
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT + - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9506
SELECT + - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT + 89 + - col2 FROM tab0
----
-10
42
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT ALL 29 DIV + col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL 29 / + col2 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - col1 + + 17 FROM tab0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT 61 + COUNT( * ) + + 81 AS col2 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-9511
SELECT 61 + COUNT ( * ) + + 81 AS col2 FROM tab2
----
145

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL AND col1 <> col2
----

query I rowsort
SELECT ALL - + col1 + + + ( 75 ) + + + col0 + - - 38 * col2 AS col0 FROM tab0 AS cor0
----
1795
3933
521

query I rowsort
SELECT DISTINCT - + 40 FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL + - ( MIN( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + - ( MIN ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT - col1 * - col2 AS col1, - 22 FROM tab1 AS cor0
----
1344
-22
295
-22
3196
-22

query I rowsort
SELECT DISTINCT - 34 * col1 FROM tab2 cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT - COUNT( * ) DIV + MIN( DISTINCT col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT - COUNT ( * ) / + MIN ( DISTINCT col1 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - - 6
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN - ( col1 ) * + col1 AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT 34 + + SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-9522
SELECT 34 + + SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL SUM( 92 ) AS col2 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL SUM ( 92 ) AS col2 FROM tab0 AS cor0
----
276

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT DISTINCT 19 * - COUNT( * ) + 50 - + - 97 AS col1, - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-21

skipif mysql # not compatible
query II rowsort label-9526
SELECT DISTINCT 19 * - COUNT ( * ) + 50 - + - 97 AS col1, - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-21

query II rowsort
SELECT col2, + col0 * 4 AS col2 FROM tab2
----
23
184
40
256
58
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT - MIN( - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - MIN ( - + col1 ) FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col0 * + col2 AS col1 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT + COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + COUNT ( col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - ( 75 ) AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL - + MAX( + col1 ) col1 FROM tab0 WHERE NOT + col2 - col2 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT ALL - + MAX ( + col1 ) col1 FROM tab0 WHERE NOT + col2 - col2 < NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 86 / + - col0 <= - + 22 * + col1 * col0 + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9535
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9535
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT COUNT( * ) * + + 23 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9536
SELECT COUNT ( * ) * + + 23 FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * + col2 col0 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT col0 + col1 DIV col2 AS col0 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-9538
SELECT col0 + col1 / col2 AS col0 FROM tab0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT 33 + - 54 + + - ( + - COUNT( * ) ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-9539
SELECT 33 + - 54 + + - ( + - COUNT ( * ) ) FROM tab1
----
-18

query I rowsort
SELECT col1 + - - 41 - - col0 * - + 2 FROM tab0 AS cor0
----
-112
-152
92

query II rowsort
SELECT ALL - ( ( col0 ) ) AS col0, + ( - col2 ) FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col2 NOT BETWEEN NULL AND - ( + + 30 )
----
46
51
23
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 83, ( col0 ) AS col0 FROM tab0
----
83
15
83
87
83
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT CAST( NULL AS SIGNED ) - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT CAST ( NULL AS INTEGER ) - 64 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - 39 - + COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 39 - + COUNT ( * ) FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT + MIN( col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + MIN ( col1 ) FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9550
SELECT * FROM tab0 AS cor0 WHERE 67 * - col1 / - ( col1 ) * - + col2 NOT IN ( - 54 + - col2 * - CAST( - + ( - col1 ) AS SIGNED ), 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab0 AS cor0 WHERE 67 * - col1 / - ( col1 ) * - + col2 NOT IN ( - 54 + - col2 * - CAST ( - + ( - col1 ) AS INTEGER ), 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 68 col2 FROM tab0 AS cor0
----
115
167
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT 37 + + COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9552
SELECT 37 + + COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT 75 + + col0 + + 26 AS col0 FROM tab0
----
116
188
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL COUNT( * ) + ( - + MAX( + col1 ) ) AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL COUNT ( * ) + ( - + MAX ( + col1 ) ) AS col2 FROM tab2
----
-74

query II rowsort
SELECT ( - col0 ), + 12 AS col1 FROM tab1
----
-51
12
-85
12
-91
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - 4 - COUNT( * ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - 4 - COUNT ( * ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT ALL col1 + - + ( - col2 ) AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + + ( col2 ) * + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT ALL + col0 DIV - + ( + + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + col0 / - + ( + + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 77 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9564
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9564
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT 34 > col1 + + 71
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT DISTINCT + - 9 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-9567
SELECT DISTINCT + - 9 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT + - ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT + - ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL + + COUNT( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + + COUNT ( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9570
SELECT CAST( + 29 AS SIGNED ) AS col0, - 76 * - - SUM( DISTINCT - col2 ) + + CAST( COUNT( * ) AS SIGNED ) - - COUNT( * ) FROM tab1
----
29
16954

skipif mysql # not compatible
query II rowsort label-9570
SELECT CAST ( + 29 AS INTEGER ) AS col0, - 76 * - - SUM ( DISTINCT - col2 ) + + CAST ( COUNT ( * ) AS INTEGER ) - - COUNT ( * ) FROM tab1
----
29
16954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL ( 71 ) + - CAST( + 42 AS SIGNED ) AS col0 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL ( 71 ) + - CAST ( + 42 AS INTEGER ) AS col0 FROM tab0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 48 col0, - col2 * + 86 * + + col0 * + 66 + - col2 + + + col2 FROM tab2
----
-48
-14530560
-48
-24690600
-48
-6005208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9573
SELECT + col1 * - 15 AS col1, + CAST( NULL AS SIGNED ) * + + 65 col2 FROM tab2 WHERE NULL IS NULL
----
-1005
NULL
-1155
NULL
-765
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9573
SELECT + col1 * - 15 AS col1, + CAST ( NULL AS INTEGER ) * + + 65 col2 FROM tab2 WHERE NULL IS NULL
----
-1005
NULL
-1155
NULL
-765
NULL

query II rowsort
SELECT DISTINCT col2, col1 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT ALL col0, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 8
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 8
----
0

query I rowsort
SELECT - col2 + + 60 FROM tab2 AS cor0
----
2
20
37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 + - + col2 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col2 / + 92 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 WHERE ( + 18 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + 57 - COUNT( * ) + + - MAX( col0 ) AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + 57 - COUNT ( * ) + + - MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9583
SELECT + CAST( NULL AS DECIMAL ) / + col1, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9583
SELECT + CAST ( NULL AS REAL ) / + col1, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL - - CAST( 83 AS SIGNED ) * 72 FROM tab2 AS cor0
----
5976
5976
5976

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - - CAST ( 83 AS INTEGER ) * 72 FROM tab2 AS cor0
----
5976
5976
5976

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT col1 DIV + - 94 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT col1 / + - 94 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL + col1 DIV + ( + - col2 ) AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + col1 / + ( + - col2 ) AS col2 FROM tab0
----
-1
-2
0

query II rowsort
SELECT DISTINCT - col0 AS col2, + col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ( + - ( 80 ) ) * col2 * + col1 AS col0 FROM tab1
----
-107520
-23600
-255680

query II rowsort
SELECT DISTINCT col0 AS col2, col1 * + - 9 AS col0 FROM tab2
----
46
-459
64
-693
75
-603

query II rowsort
SELECT 21 AS col1, + ( col0 ) FROM tab1
----
21
51
21
85
21
91

query I rowsort
SELECT ALL 6 * - col2 AS col2 FROM tab0
----
-282
-594
-60

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT ALL + 8 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL + 8 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + ( 18 ) AS col0 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - col0 * + 31 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT DISTINCT - ( - + col1 ) * + 15 - col2 DIV col2 col1 FROM tab1 AS cor0
----
209
704
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT DISTINCT - ( - + col1 ) * + 15 - col2 / col2 col1 FROM tab1 AS cor0
----
209
704
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT - col0 DIV 91 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT - col0 / 91 AS col0 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + - col1 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + COUNT( * ) * 10 + + COUNT( ALL + + 48 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-9600
SELECT + COUNT ( * ) * 10 + + COUNT ( ALL + + 48 ) FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT 21 * - + COUNT( * ) + - + 47 + + + 56 * MIN( + 46 ) AS col0 FROM tab2 AS cor0
----
2466

skipif mysql # not compatible
query I rowsort label-9601
SELECT 21 * - + COUNT ( * ) + - + 47 + + + 56 * MIN ( + 46 ) AS col0 FROM tab2 AS cor0
----
2466

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( - 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL - - 9 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9
9
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - 85 / - 49 + + + 26 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 64 FROM tab0 AS cor0 WHERE NOT - 47 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 78 * + - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL 59 + SUM( ALL + col2 ) AS col0, COUNT( * ) FROM tab2
----
180
3

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL 59 + SUM ( ALL + col2 ) AS col0, COUNT ( * ) FROM tab2
----
180
3

query I rowsort
SELECT DISTINCT col2 * 72 + - 5 + - - col1 AS col0 FROM tab1
----
4248
4938
6921

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + COUNT( * ) + COUNT( * ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9611
SELECT + COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( 35 * - ( + + 94 ) * - col2 + - + 68 )
----

query II rowsort
SELECT DISTINCT + col2, ( + 79 ) FROM tab2 AS cor0
----
23
79
40
79
58
79

query I rowsort
SELECT + col2 - - 29 FROM tab1
----
125
88
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT + 67 DIV - col1 - - col2 AS col2 FROM tab1
----
46
67
92

skipif mysql # not compatible
query I rowsort label-9615
SELECT + 67 / - col1 - - col2 AS col2 FROM tab1
----
46
67
92

query I rowsort
SELECT - ( col0 ) + + 33 AS col1 FROM tab2 AS cor0
----
-13
-31
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT MAX( + col1 ) col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9617
SELECT MAX ( + col1 ) col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9618
SELECT * FROM tab1 AS cor0 WHERE + 60 * col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9618
SELECT * FROM tab1 AS cor0 WHERE + 60 * col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE col1 / - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT ALL + 80, - MAX( + + col0 ) col2 FROM tab1 AS cor0
----
80
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9620
SELECT ALL + 80, - MAX ( + + col0 ) col2 FROM tab1 AS cor0
----
80
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT - - SUM( ALL - col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9621
SELECT DISTINCT - - SUM ( ALL - col2 ) col1 FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT - 39 DIV + col2 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9622
SELECT - 39 / + col2 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ( + - 57 ) DIV - - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT ( + - 57 ) / - - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 * + - 58 AS col0 FROM tab1
----
-2958
-4930
-5278

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col2 ) < col0
----

query I rowsort
SELECT - 31 * - + col0 AS col1 FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9628
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) DIV + SUM( DISTINCT + - 33 ), 87 AS col1 FROM tab2
----
0
87

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) / + SUM ( DISTINCT + - 33 ), 87 AS col1 FROM tab2
----
0
87

query I rowsort
SELECT ALL ( - 55 ) FROM tab1 WHERE NULL IS NULL
----
-55
-55
-55

query I rowsort
SELECT - + col1 * + + 46 FROM tab0 AS cor0 WHERE NOT 26 IS NULL
----
-3726
-46
-966

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN col0 * - col2 AND ( NULL )
----

query I rowsort
SELECT ALL col1 * + 97 FROM tab2
----
4947
6499
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL CAST( NULL AS SIGNED ) * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL CAST ( NULL AS INTEGER ) * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - MIN( 68 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - MIN ( 68 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT - 72 * 11 FROM tab2
----
-792

query I rowsort
SELECT - + 3 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT ALL - col1 DIV 52 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - col1 / 52 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL + col2 DIV + 10 AS col0 FROM tab1 AS cor0
----
5
6
9

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + col2 / + 10 AS col0 FROM tab1 AS cor0
----
5
6
9

query I rowsort
SELECT ALL - + 42 FROM tab0 AS cor0 WHERE NOT - 19 >= + col1 / - col0
----
-42
-42
-42

query II rowsort
SELECT ALL + col2 AS col0, + col1 * + - col0 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

query II rowsort
SELECT + col0, 24 AS col1 FROM tab1 AS cor0
----
51
24
85
24
91
24

query I rowsort
SELECT + ( - - 33 ) AS col2 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT + col1, 37 FROM tab1 cor0
----
14
37
47
37
5
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - SUM( - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9646
SELECT - SUM ( - col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL + 49 + 20 AS col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + MAX( + 82 ) FROM tab1 WHERE + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT + MAX ( + 82 ) FROM tab1 WHERE + col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 WHERE 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 WHERE 40 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9650
SELECT ALL * FROM tab0 WHERE NOT + col2 + col1 * - 21 * 44 >= ( - CAST( NULL AS SIGNED ) * - 32 )
----

skipif mysql # not compatible
query III rowsort label-9650
SELECT ALL * FROM tab0 WHERE NOT + col2 + col1 * - 21 * 44 >= ( - CAST ( NULL AS INTEGER ) * - 32 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT + + col2 DIV + col1 * 99 * col0 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + + col2 / + col1 * 99 * col0 - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL - MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL - col0 DIV + 62 + - col0 DIV + + 10 + col1 AS col0 FROM tab2 AS cor0
----
47
59
70

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - col0 / + 62 + - col0 / + + 10 + col1 AS col0 FROM tab2 AS cor0
----
47
59
70

query III rowsort
SELECT * FROM tab2 WHERE - 59 = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 - + + 35 col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT COUNT( - + ( 96 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( - + ( 96 ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 - - - col0 col0 FROM tab0 AS cor0
----
-100
-18
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9659
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL >= col0 + + 21
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 88 + + + col0 IS NOT NULL
----

query I rowsort
SELECT + + 80 AS col0 FROM tab2 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT - - ( - ( + - COUNT( ALL + 9 ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - - ( - ( + - COUNT ( ALL + 9 ) ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + ( + 25 ) * col1 AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL + col0 * + + 10 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + col0 * + + 10 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 col1, col2 * - col0 AS col1 FROM tab2
----
93
-1058
93
-2560
93
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT ALL + ( - COUNT( * ) ) col1, + 75 FROM tab2
----
-3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9667
SELECT ALL + ( - COUNT ( * ) ) col1, + 75 FROM tab2
----
-3
75

query I rowsort
SELECT ALL - 0 FROM tab2 WHERE NOT + 28 - + col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COUNT( + + ( + 18 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9669
SELECT COUNT ( + + ( + 18 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + col0 * + - col1 * - + col0 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9671
SELECT - CAST( NULL AS SIGNED ) AS col2, - 98 AS col2 FROM tab1
----
NULL
-98
NULL
-98
NULL
-98

skipif mysql # not compatible
query II rowsort label-9671
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab1
----
NULL
-98
NULL
-98
NULL
-98

query II rowsort
SELECT + 33, col2 FROM tab2
----
33
23
33
40
33
58

query II rowsort
SELECT DISTINCT + + 82, col0 AS col0 FROM tab2 AS cor0
----
82
46
82
64
82
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9674
SELECT ALL col0 AS col1, - 13 DIV - col1 * + ( col0 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL col0 AS col1, - 13 / - col1 * + ( col0 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 cor0 WHERE - col0 / - col0 > - col2
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT ALL 76 AS col1, COUNT( * ) FROM tab0 AS cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-9677
SELECT ALL 76 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT + MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + MIN ( - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + + 38 AS col0 FROM tab1 AS cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 47 col2 FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT DISTINCT 14 * 73 AS col1, - col0 * - + 64 FROM tab0
----
1022
5568
1022
6208
1022
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 24 ) + - col2 FROM tab1
----
-120
-83
-92

query I rowsort
SELECT - col1 * + + col0 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT 69 DIV + 25 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9685
SELECT 69 / + 25 AS col1 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL > + col1 )
----

query I rowsort
SELECT ALL ( + - col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9689
SELECT + - col0 + + + col1, + col0 + + 3 DIV + + ( col0 ) AS col1 FROM tab0 AS cor0
----
-66
87
-96
97
66
15

skipif mysql # not compatible
query II rowsort label-9689
SELECT + - col0 + + + col1, + col0 + + 3 / + + ( col0 ) AS col1 FROM tab0 AS cor0
----
-66
87
-96
97
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT + MAX( ALL - + 81 ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9690
SELECT DISTINCT + MAX ( ALL - + 81 ) col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 61 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 >= + col0
----
51
14
96

query I rowsort
SELECT ALL 47 + col1 FROM tab1
----
52
61
94

query I rowsort
SELECT DISTINCT 65 + - col0 * col2 + col1 FROM tab1
----
-4817
-4945
-6076

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 53 + + - col2 AS col1 FROM tab0
----
-46
43
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + 88 + COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + 88 + COUNT ( * ) FROM tab2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT + 11 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + col2 * 17 * - 66 + + ( col0 ) + - + ( 7 ) + + ( + + col2 ) / - 28 IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + 11 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + col2 * 17 * - 66 + + ( col0 ) + - + ( 7 ) + + ( + + col2 ) / - 28 IS NULL
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 1 ) col2 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 = ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 * 55 + col1 >= 1 - col1 AND NOT NULL BETWEEN NULL AND + col0
----

query II rowsort
SELECT ALL col1 + + col2 AS col2, + 41 AS col2 FROM tab2
----
117
41
125
41
74
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
-58

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - ( + 84 ) FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL - SUM( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - SUM ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9709
SELECT ALL SUM( ALL - 67 ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-201
-3

skipif mysql # not compatible
query II rowsort label-9709
SELECT ALL SUM ( ALL - 67 ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-201
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - ( - SUM( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT 85 > + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT - ( - SUM ( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT 85 > + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + MAX( DISTINCT - - 45 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + MAX ( DISTINCT - - 45 ) FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL = + col1
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT - + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL = + col1
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col2 * - + col2 + - 26 AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + - 0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9718
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT ALL + 76 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 * + - 4 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9723
SELECT MAX ( col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT col0, col0 + + col2 AS col0 FROM tab2 AS cor0
----
46
69
64
104
75
133

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL col2, + col1 AS col2 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL MAX( ALL 8 ) AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL MAX ( ALL 8 ) AS col1 FROM tab0 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 64 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) + + 19 + - ( - 78 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) + + 19 + - ( - 78 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 89 AS col2, 85 AS col2 FROM tab2 AS cor0
----
-89
85
-89
85
-89
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT DISTINCT + ( + COUNT( * ) ) * + MIN( DISTINCT 17 ) AS col0, - SUM( ALL + ( - - 13 ) ) - - - COUNT( * ) FROM tab1 AS cor0
----
51
-42

skipif mysql # not compatible
query II rowsort label-9731
SELECT DISTINCT + ( + COUNT ( * ) ) * + MIN ( DISTINCT 17 ) AS col0, - SUM ( ALL + ( - - 13 ) ) - - - COUNT ( * ) FROM tab1 AS cor0
----
51
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + + - col0 ) > - 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30
30
30

query II rowsort
SELECT DISTINCT + + col1 * col2 * + col2 AS col1, col2 AS col0 FROM tab0 WHERE NOT ( col1 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + col0 * + ( + 94 ) AS col0 FROM tab0
----
1410
8178
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - ( col2 ) col0 FROM tab1
----
118
136
192

query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab0 WHERE - - 76 / - col0 * - col1 - col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT - COUNT( DISTINCT + 76 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - COUNT ( DISTINCT + 76 ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 29 - col2 FROM tab0
----
-18
-70
19

query I rowsort
SELECT + col1 + + - col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 11 * + 80 + + col0 + + + col0 col2 FROM tab2 AS cor0
----
-730
-752
-788

query I rowsort
SELECT + 90 * + 55 + + - ( + 56 ) FROM tab1 AS cor0
----
4894
4894
4894

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ( + MIN( DISTINCT + + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9744
SELECT ( + MIN ( DISTINCT + + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - + 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL + MAX( 74 ) AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + MAX ( 74 ) AS col1 FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 86 + - col1 / + - 8 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + MIN( DISTINCT - - 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9749
SELECT + MIN ( DISTINCT - - 50 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT 46 AS col0, SUM( col0 ) * - - MIN( + col1 ) FROM tab2 AS cor0
----
46
9435

skipif mysql # not compatible
query II rowsort label-9750
SELECT 46 AS col0, SUM ( col0 ) * - - MIN ( + col1 ) FROM tab2 AS cor0
----
46
9435

query I rowsort
SELECT + col2 + + col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 83 * + ( + - col2 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT MAX( 32 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT MAX ( 32 ) AS col0 FROM tab1
----
32

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col1 * - col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL SUM( DISTINCT + + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL SUM ( DISTINCT + + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT 60 + + 6 AS col0 FROM tab0
----
66
66
66

query II rowsort
SELECT + 73 + - 87, col0 FROM tab2
----
-14
46
-14
64
-14
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT DISTINCT ( + col1 ) + - + 62 + + + ( 90 ) DIV col0 - + + 64 + + col2 AS col0 FROM tab0 AS cor0
----
-26
-94
8

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT ( + col1 ) + - + 62 + + + ( 90 ) / col0 - + + 64 + + col2 AS col0 FROM tab0 AS cor0
----
-26
-94
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT col2 * + 95 AS col2 FROM tab0
----
4465
9405
950

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE + 66 * + + CAST( - + 7 AS SIGNED ) > + col2
----

skipif mysql # not compatible
query I rowsort label-9763
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE + 66 * + + CAST ( - + 7 AS INTEGER ) > + col2
----

query I rowsort
SELECT DISTINCT 62 * + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
2929
6235
707

query I rowsort
SELECT col0 * + - col0 * 28 + - - col1 AS col1 FROM tab0
----
-211911
-263451
-6219

query I rowsort
SELECT - 12 + + - col1 AS col1 FROM tab1
----
-17
-26
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) * - SUM( + - col2 ) AS col0 FROM tab2
----
-360

skipif mysql # not compatible
query I rowsort label-9767
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * - SUM ( + - col2 ) AS col0 FROM tab2
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL 39 + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-20
-29
-57

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL 39 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-20
-29
-57

query I rowsort
SELECT ALL col0 - - + ( col1 ) * + - col1 * + + 73 FROM tab2
----
-189827
-327622
-432753

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - MAX( - 46 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9770
SELECT - MAX ( - 46 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + ( - 38 ) + + - col1 FROM tab2
----
-105
-115
-89

query I rowsort
SELECT + 45 * col2 * - col1 FROM tab2
----
-138600
-174870
-52785

onlyif mysql # DIV for integer division: 
query II rowsort label-9773
SELECT - 39 AS col0, + 96 * - - col0 - - col1 DIV - ( col2 ) AS col1 FROM tab1
----
-39
4896
-39
8160
-39
8736

skipif mysql # not compatible
query II rowsort label-9773
SELECT - 39 AS col0, + 96 * - - col0 - - col1 / - ( col2 ) AS col1 FROM tab1
----
-39
4896
-39
8160
-39
8736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - 55 - 65 AND NULL
----

query II rowsort
SELECT + col2, - 72 FROM tab0
----
10
-72
47
-72
99
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - SUM( DISTINCT - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9776
SELECT - SUM ( DISTINCT - + col1 ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 * + col1 col2 FROM tab2 AS cor0
----
132651
300763
456533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col1 col0, - col0 AS col1 FROM tab2
----
1173
-46
3080
-64
3886
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= NULL OR 88 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 4 <> - + 20
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col2 + + 28
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 NOT IN ( - + col0, col0 * - col1 * - + 62, - + 49 * + col0 )
----

query II rowsort
SELECT DISTINCT + + col0 * 2, + col2 FROM tab0 AS cor0
----
174
10
194
99
30
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + + 26 <= NULL AND - col0 >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 col0 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - col1 * - - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT + COUNT( * ) + + AVG ( 42 ) * 81 AS col2 FROM tab2 WHERE 11 = - 75 + + 97 + + CAST( - + 40 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + COUNT ( * ) + + AVG ( 42 ) * 81 AS col2 FROM tab2 WHERE 11 = - 75 + + 97 + + CAST ( - + 40 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT DISTINCT - 39 DIV col1 + + col1 AS col1 FROM tab1
----
-2
12
47

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - 39 / col1 + + col1 AS col1 FROM tab1
----
-2
12
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT - col0 DIV - 82 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - col0 / - 82 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT ALL - - COUNT( * ), MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-9794
SELECT ALL - - COUNT ( * ), MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE + col2 * - 55 BETWEEN 53 - col1 AND ( + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9795
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE + col2 * - 55 BETWEEN 53 - col1 AND ( + 86 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9796
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < col2 * - ( - col0 ) + col2 * + col1
----

query I rowsort
SELECT 33 * + 35 + - 50 FROM tab1
----
1105
1105
1105

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - COUNT( * ) * - MIN( - col0 * col0 ) AS col0 FROM tab0
----
-28227

skipif mysql # not compatible
query I rowsort label-9801
SELECT - COUNT ( * ) * - MIN ( - col0 * col0 ) AS col0 FROM tab0
----
-28227

query I rowsort
SELECT col0 + + ( - col1 ) AS col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9803
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9803
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL 67 FROM tab1 WHERE NOT ( col2 + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - col0
----

query I rowsort
SELECT ALL + 81 * + 17 + 31 AS col2 FROM tab1
----
1408
1408
1408

query I rowsort
SELECT ALL + col1 * - 17 AS col1 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN ( + col2 ) AND ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE col2 + - col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - col1 * 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 84 - col2 AS col1 FROM tab1
----
4897
5644
7968

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT + col0 DIV col0 + 13 AS col2 FROM tab0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-9812
SELECT + col0 / col0 + 13 AS col2 FROM tab0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL - SUM( ALL + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - SUM ( ALL + col0 ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9814
SELECT ALL + col2 DIV col0 AS col1 FROM tab1 WHERE NOT ( col2 * - ( CAST( + col1 AS SIGNED ) ) ) >= ( 7 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + col2 / col0 AS col1 FROM tab1 WHERE NOT ( col2 * - ( CAST ( + col1 AS INTEGER ) ) ) >= ( 7 )
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + COUNT( * ) - COUNT( * ) * 28 AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) * 28 AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT - 46 DIV COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9816
SELECT - 46 / COUNT ( * ) FROM tab1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT col1 DIV + 27 col0 FROM tab2
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9817
SELECT col1 / + 27 col0 FROM tab2
----
1
2
2

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 AS col2 FROM tab1
----
2277
292
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT - col1 DIV 60 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT - col1 / 60 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT - CAST( 85 AS SIGNED ) FROM tab2 WHERE NULL NOT IN ( + col2 / + col1 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - CAST ( 85 AS INTEGER ) FROM tab2 WHERE NULL NOT IN ( + col2 / + col1 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 25 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT DISTINCT 36 DIV + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT 36 / + COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT + 67 FROM tab2 WHERE NULL > + col1
----

query I rowsort
SELECT DISTINCT col0 / + 84 AS col0 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab0 WHERE NULL >= ( - 34 )
----

skipif mysql # not compatible
query I rowsort label-9825
SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab0 WHERE NULL >= ( - 34 )
----

query I rowsort
SELECT col1 * - 47 FROM tab0
----
-3807
-47
-987

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9827
SELECT * FROM tab1 WHERE NOT NULL = - 68 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9827
SELECT * FROM tab1 WHERE NOT NULL = - 68 + - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT col0 - + CAST( 25 AS SIGNED ) FROM tab0
----
-10
62
72

skipif mysql # not compatible
query I rowsort label-9828
SELECT col0 - + CAST ( 25 AS INTEGER ) FROM tab0
----
-10
62
72

query I rowsort
SELECT 55 + ( ( col0 ) ) AS col0 FROM tab1
----
106
140
146

query I rowsort
SELECT ALL col1 / - col1 AS col0 FROM tab2 AS cor0 WHERE NULL <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 74 + ( + col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + 61 * - COUNT( * ) AS col0 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-9833
SELECT + 61 * - COUNT ( * ) AS col0 FROM tab0
----
-183

query I rowsort
SELECT ALL 32 * 36 FROM tab0 AS cor0
----
1152
1152
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT - 89 DIV col1 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - 89 / col1 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT + col0 DIV 80 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT + col0 / 80 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT ALL + - COUNT( * ) DIV - 67 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT ALL + - COUNT ( * ) / - 67 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9838
SELECT + 43 * + 28 + + col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 43 * + 28 + + col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST ( CAST ( col2 AS REAL ) AS INTEGER ) * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL + CAST( - 27 AS SIGNED ) * - MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + CAST ( - 27 AS INTEGER ) * - MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
135

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 AS cor0
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL + + MIN( 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + + MIN ( 78 ) FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT 3 + ( - COUNT( * ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 3 + ( - COUNT ( * ) ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / - 72 <= + 27 * + 73
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + col1 - + col2 FROM tab0
----
-195
-76
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT - col2 FROM tab0 WHERE ( 71 * - 42 + + col0 ) NOT IN ( col2 * CAST( NULL AS SIGNED ) + col0 / col2 )
----

skipif mysql # not compatible
query I rowsort label-9849
SELECT - col2 FROM tab0 WHERE ( 71 * - 42 + + col0 ) NOT IN ( col2 * CAST ( NULL AS INTEGER ) + col0 / col2 )
----

query I rowsort
SELECT + 94 + col0 FROM tab0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COUNT( * ) + - ( - 28 ) + COUNT( * ) * - 48 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-9851
SELECT COUNT ( * ) + - ( - 28 ) + COUNT ( * ) * - 48 FROM tab1
----
-113

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9853
SELECT ALL * FROM tab1 WHERE NOT CAST( + 46 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9853
SELECT ALL * FROM tab1 WHERE NOT CAST ( + 46 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9854
SELECT * FROM tab1 AS cor0 WHERE ( CAST( col2 AS SIGNED ) + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9854
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( col2 AS INTEGER ) + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 16 * col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 AS col0 FROM tab2 AS cor0 WHERE - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL + MAX( - col2 ) + 16 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + MAX ( - col2 ) + 16 FROM tab2 cor0
----
-7

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( 82 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + - col2 + col2 col2 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT - - ( - 58 ) - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-9861
SELECT - - ( - 58 ) - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9862
SELECT CAST( - ( col1 ) AS SIGNED ) / + 59 + CAST( NULL AS DECIMAL ) / - ( - col1 * - 48 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT CAST ( - ( col1 ) AS INTEGER ) / + 59 + CAST ( NULL AS REAL ) / - ( - col1 * - 48 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < ( 22 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + SUM( ( - + 3 ) ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT ALL + SUM ( ( - + 3 ) ) col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + 96 * + + 0 - - col1 ) NOT BETWEEN ( col2 * - 41 ) AND col1
----
3

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + 96 * + + 0 - - col1 ) NOT BETWEEN ( col2 * - 41 ) AND col1
----
3

query I rowsort
SELECT DISTINCT - 8 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT SUM( DISTINCT + + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9867
SELECT SUM ( DISTINCT + + col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT - ( - - 36 ) FROM tab1
----
-36

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( + 24 + - 56 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT ( - SUM( - CAST( + + 40 AS SIGNED ) ) ) AS col2 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-9870
SELECT ( - SUM ( - CAST ( + + 40 AS INTEGER ) ) ) AS col2 FROM tab1
----
120

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE ( NULL ) <> + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT SUM( + - col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9872
SELECT SUM ( + - col0 ) col2 FROM tab1
----
-227

query I rowsort
SELECT - + col0 * - 26 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + col1 FROM tab2 AS cor0 WHERE ( - col0 ) < 86 + - - 49
----
141
142
97

query I rowsort
SELECT - col0 + - 50 / col2 AS col0 FROM tab2 AS cor0 WHERE NOT 61 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * + + col1 ) >= col1
----

query I rowsort
SELECT - 4 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - ( col2 ) < + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 col1 FROM tab0 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT ALL + CAST( - 50 AS SIGNED ) + col1 * 20 col1 FROM tab1 WHERE NOT - 1 / 7 * + - col0 + + ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT ALL + CAST ( - 50 AS INTEGER ) + col1 * 20 col1 FROM tab1 WHERE NOT - 1 / 7 * + - col0 + + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 4 * col2 FROM tab0
----
188
396
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + 26 * + + COUNT( ALL 40 ) FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 26 * + + COUNT ( ALL 40 ) FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 >= ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT + + 30 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + + 30 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + MIN( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9886
SELECT + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + + col1 + - 47 * col1 AS col1 FROM tab0 AS cor0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9888
SELECT MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT SUM( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT SUM ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + col1 * + 46 + - 54 AS col1 FROM tab2
----
2292
3028
3488

query I rowsort
SELECT ALL + 68 + - 88 AS col0 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ( - 62 ) FROM tab1
----
-62
-62
-62

query III rowsort
SELECT * FROM tab2 WHERE + + 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 68 FROM tab0 WHERE NOT NULL IS NOT NULL
----
68
68
68

query II rowsort
SELECT DISTINCT col0 * - 51 + + col0 - + col2 AS col1, col0 + - ( col0 ) AS col0 FROM tab0
----
-4360
0
-4949
0
-797
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT SUM( - + col1 ) FROM tab1 WHERE - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT SUM ( - + col1 ) FROM tab1 WHERE - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * + col0 col1 FROM tab2
----
2392
3328
3900

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT - - MAX( DISTINCT - - col0 ) + 0 AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9899
SELECT - - MAX ( DISTINCT - - col0 ) + 0 AS col1 FROM tab1 cor0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9900
SELECT - + 25 DIV 30 DIV + - 25 + + col2 AS col1, - col1 * + - 33 AS col0 FROM tab2 AS cor0
----
23
1683
40
2541
58
2211

skipif mysql # not compatible
query II rowsort label-9900
SELECT - + 25 / 30 / + - 25 + + col2 AS col1, - col1 * + - 33 AS col0 FROM tab2 AS cor0
----
23
1683
40
2541
58
2211

query I rowsort
SELECT + col2 * - col0 + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT ALL + col1 + + col2 DIV 63 FROM tab1 AS cor0
----
15
48
5

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + col1 + + col2 / 63 FROM tab1 AS cor0
----
15
48
5

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE 95 > NULL
----

query I rowsort
SELECT 49 + 75 AS col0 FROM tab1
----
124
124
124

query I rowsort
SELECT ALL - col1 * - col1 * + 52 * - + col2 + col0 * + 91 FROM tab2
----
-12326496
-13531999
-3106610

query I rowsort
SELECT DISTINCT - 12 + - col2 AS col1 FROM tab1
----
-108
-71
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * - col0 - - - 2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * - col0 - - - 2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * + 68 + + col1 AS col1 FROM tab2 AS cor0
----
-3077
-4275
-5033

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 35 * + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 13 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT 94 * - CAST( col1 AS SIGNED ) + - col1 + + col0 - - 31 - col0 AS col0 FROM tab0 AS cor0
----
-1964
-64
-7664

skipif mysql # not compatible
query I rowsort label-9912
SELECT 94 * - CAST ( col1 AS INTEGER ) + - col1 + + col0 - - 31 - col0 AS col0 FROM tab0 AS cor0
----
-1964
-64
-7664

query I rowsort
SELECT DISTINCT - 9 * - col2 - - + col2 AS col0 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT DISTINCT + 54 * + - 53 FROM tab1 AS cor0
----
-2862

query I rowsort
SELECT ALL - col0 - + 6 * col2 AS col2 FROM tab1 AS cor0
----
-439
-499
-627

query I rowsort
SELECT DISTINCT 86 * + col0 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT + - 89 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + - 89 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT - - ( col2 ) * - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - + COUNT( * ) * + 81 col0 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9919
SELECT - + COUNT ( * ) * + 81 col0 FROM tab0 AS cor0
----
-243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = + - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN ( col1 ) AND - col0 * - + col1 * - 35 * + 26 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 14 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, 14 AS col2 FROM tab2
----
-23
14
-40
14
-58
14

query II rowsort
SELECT + col2, 8 AS col0 FROM tab2
----
23
8
40
8
58
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL COUNT( DISTINCT + 68 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL COUNT ( DISTINCT + 68 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9929
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( - + 13 AS DECIMAL ) NOT IN ( - 55 + - + col0 + - + ( col2 ) + - 67 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9929
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( - + 13 AS REAL ) NOT IN ( - 55 + - + col0 + - + ( col2 ) + - 67 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * ( col1 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9931
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9933
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9933
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 96 * + + col0 * + 25 AS col0 FROM tab2
----
110400
153600
180000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col0 IN ( 33 * + - 53 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9937
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST( + + 63 AS DECIMAL ) / + col1 * - 60 - 91 )
----

skipif mysql # not compatible
query III rowsort label-9937
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( + + 63 AS REAL ) / + col1 * - 60 - 91 )
----

query I rowsort
SELECT DISTINCT ( + col1 ) + - 26 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT - 69 + + - col1 FROM tab0 cor0
----
-150
-70
-90

query I rowsort
SELECT ALL + - col1 + 49 FROM tab1 AS cor0
----
2
35
44

query III rowsort
SELECT * FROM tab2 WHERE col0 + + ( + col1 ) <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9942
SELECT DISTINCT - col2 + - CAST( - - col2 AS SIGNED ) AS col2, - col0 FROM tab0
----
-198
-97
-20
-87
-94
-15

skipif mysql # not compatible
query II rowsort label-9942
SELECT DISTINCT - col2 + - CAST ( - - col2 AS INTEGER ) AS col2, - col0 FROM tab0
----
-198
-97
-20
-87
-94
-15

query I rowsort
SELECT + 54 + col2 + - 20 - + 3 * + col2 FROM tab1
----
-102
-158
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - - 51 col2 FROM tab2
----
85
85
85

query I rowsort
SELECT ( col2 ) + - ( col0 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT ALL CAST( - AVG ( col1 ) AS SIGNED ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL CAST ( - AVG ( col1 ) AS INTEGER ) AS col2 FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9947
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL COUNT( * ) * 18 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL COUNT ( * ) * 18 FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + col2 + - 52 FROM tab2 cor0
----
-12
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT MAX( ALL - - 17 ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT MAX ( ALL - - 17 ) AS col0 FROM tab0
----
17

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL + COUNT( * ) * + 75 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + COUNT ( * ) * + 75 FROM tab2
----
225

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9956
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL 27 + + + 6 + - - 82 + - - col2 * + + col2 * col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL 27 + + + 6 + - - 82 + - - col2 * + + col2 * col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - col0 * + 36 + + col1 AS col1 FROM tab0 AS cor0
----
3153
3493
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - - 55 * SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
12485

skipif mysql # not compatible
query I rowsort label-9960
SELECT - - 55 * SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
12485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 79 + ( col2 ), col0 * ( + 30 ), - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 79 + ( col2 ), col0 * ( + 30 ), - col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT + COUNT( * ), 76 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
76

skipif mysql # not compatible
query II rowsort label-9962
SELECT + COUNT ( * ), 76 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 14 AS col0, + 61 * - col0 * - 98 col0 FROM tab1
----
-14
304878
-14
508130
-14
543998

query II rowsort
SELECT col1 AS col0, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL - ( - + SUM( - col2 ) ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - ( - + SUM ( - col2 ) ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT + COUNT( * ) AS col1, 4 AS col0 FROM tab0
----
3
4

skipif mysql # not compatible
query II rowsort label-9966
SELECT + COUNT ( * ) AS col1, 4 AS col0 FROM tab0
----
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * - col2 col1 FROM tab0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + MAX( - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + MAX ( - col2 ) FROM tab2
----
-23

query II rowsort
SELECT - col2 AS col0, - col1 * + 67 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9970
SELECT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT ALL + CAST( - ( COUNT( - - col2 ) ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + CAST ( - ( COUNT ( - - col2 ) ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - COUNT( * ) FROM tab0 WHERE NOT + 33 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9972
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + 33 IS NULL
----
-3

query I rowsort
SELECT ALL - col1 + + 31 AS col0 FROM tab0
----
-50
10
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9974
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-9974
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9975
SELECT - ( + 38 ) DIV + + ( col2 ), col1 FROM tab0 AS cor0
----
-3
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-9975
SELECT - ( + 38 ) / + + ( col2 ), col1 FROM tab0 AS cor0
----
-3
21
0
1
0
81

query I rowsort
SELECT ALL col0 + + 63 FROM tab0 AS cor0
----
150
160
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - MAX( DISTINCT - - 57 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9977
SELECT - MAX ( DISTINCT - - 57 ) FROM tab0 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - col1 IS NULL
----

query I rowsort
SELECT ALL + - ( - 95 ) + col0 FROM tab0 WHERE ( NULL >= col1 )
----

query I rowsort
SELECT DISTINCT col2 * - ( - ( - col2 ) ) * col2 - + - col2 FROM tab0
----
-103776
-970200
-990

query I rowsort
SELECT ALL - 61 * + col1 - col1 FROM tab2
----
-3162
-4154
-4774

query III rowsort
SELECT * FROM tab0 WHERE 59 * - 99 * 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT DISTINCT - col2 - col1 DIV + - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - col2 - col1 / + - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + col2 col2 FROM tab2
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT - - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col2 * + 1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 48 * - 88 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 15899d486c6366b06d18689022e23d91

onlyif mysql # aggregate syntax: 
query II rowsort label-9988
SELECT ALL 69, SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
69
103

skipif mysql # not compatible
query II rowsort label-9988
SELECT ALL 69, SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
69
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col0, - col0 AS col2 FROM tab2 AS cor0
----
83
-46
83
-64
83
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT + 69 AS col2, MIN( + col0 ) col1 FROM tab0 AS cor0
----
69
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9990
SELECT + 69 AS col2, MIN ( + col0 ) col1 FROM tab0 AS cor0
----
69
15

query I rowsort
SELECT - + 78 * - 6 FROM tab1 AS cor0
----
468
468
468

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT + col0 DIV - col0 + 95 - col0 AS col2 FROM tab0 AS cor0
----
-3
7
79

skipif mysql # not compatible
query I rowsort label-9992
SELECT + col0 / - col0 + 95 - col0 AS col2 FROM tab0 AS cor0
----
-3
7
79

query I rowsort
SELECT + + col2 * + - 89 AS col1 FROM tab2 AS cor0
----
-2047
-3560
-5162

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT ALL 89 col1, MAX( + - col0 ) AS col1 FROM tab0 AS cor0
----
89
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9995
SELECT ALL 89 col1, MAX ( + - col0 ) AS col1 FROM tab0 AS cor0
----
89
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + MIN( ALL - + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9996
SELECT + MIN ( ALL - + col1 ) FROM tab1 cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT - col2 DIV + + 90 + - col0 AS col2 FROM tab0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-9997
SELECT - col2 / + + 90 + - col0 AS col2 FROM tab0
----
-15
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT 42 + - MIN( - 47 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-9998
SELECT 42 + - MIN ( - 47 ) FROM tab2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9999
SELECT COUNT( * ) + ( COUNT( * ) ) DIV + ( - COUNT( * ) ) col0, 7 AS col2 FROM tab1
----
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9999
SELECT COUNT ( * ) + ( COUNT ( * ) ) / + ( - COUNT ( * ) ) col0, 7 AS col2 FROM tab1
----
2
7

