sqllogictest
Artifact Content
Not logged in

Artifact 3ed52173a4c19fbbb1bb246e87d21878144a3b70:


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 JOI