sqllogictest
Artifact Content
Not logged in

Artifact b667e94ca4a112ceef13d70deef0768236331d44:


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)

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

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

query I rowsort
SELECT ALL - + 58 + + - ( + 59 ) FROM tab0 WHERE NOT - col2 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT SUM( ALL - + 83 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 15 ) IS NULL
----
-747

skipif mysql # not compatible
query I rowsort label-3
SELECT SUM ( ALL - + 83 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 15 ) IS NULL
----
-747

query I rowsort
SELECT DISTINCT - - 1 * + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - 1 * col1 + col0, - col2 * - col0 * + ( - 65 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT 64 * + SUM( ALL + - ( - - col0 ) ) FROM tab1 AS cor0
----
-14528

skipif mysql # not compatible
query I rowsort label-6
SELECT 64 * + SUM ( ALL + - ( - - col0 ) ) FROM tab1 AS cor0
----
-14528

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL - - col0 DIV - 47 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - - col0 / - 47 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - + col1 * - ( + col0 ) AS col2 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT 91 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 9 * + col2 ) IS NULL
----
91
91
91

query I rowsort
SELECT ALL 34 * + - 56 AS col2 FROM tab1 AS cor0
----
-1904
-1904
-1904

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT - 80 DIV + col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-13
SELECT - 80 / + col0 AS col2 FROM tab0
----
-5
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-14
SELECT DISTINCT ( + + col2 ) / - col0 col2 FROM tab0
----
-1
-3
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( + 25 * - - 12 / 53 )
----

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

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

query I rowsort
SELECT + col2 * + col1 * - + col1 AS col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT 66, COUNT( * ) AS col0 FROM tab0
----
66
3

skipif mysql # not compatible
query II rowsort label-19
SELECT 66, COUNT ( * ) AS col0 FROM tab0
----
66
3

query I rowsort
SELECT ALL + 79 + 95 FROM tab0
----
174
174
174

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL + COUNT( * ) FROM tab0 WHERE - + 17 + - col0 IN ( + col2, - col2 * col0, col2 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - + 17 + - col0 IN ( + col2, - col2 * col0, col2 * - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - ( - col1 ), col2 )
----

query II rowsort
SELECT col2 AS col2, 27 AS col0 FROM tab2
----
23
27
40
27
58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT SUM( ALL + 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT SUM ( ALL + 94 ) FROM tab2 AS cor0
----
282

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 + - col0 - + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-26
SELECT ALL + col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-26
SELECT ALL + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT - - MAX( 87 ) - COUNT( * ) * MIN( col1 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - - MAX ( 87 ) - COUNT ( * ) * MIN ( col1 ) FROM tab2 AS cor0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL - SUM( ALL - 52 ) + + 16 AS col0 FROM tab0 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - SUM ( ALL - 52 ) + + 16 AS col0 FROM tab0 AS cor0
----
172

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

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

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

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

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL CAST ( NULL AS INTEGER ) * ( COUNT ( - - col0 ) ) + 65 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 - - + col2 col0, + col0 AS col1 FROM tab0 AS cor0
----
-77
87
2
97
32
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-34
SELECT + + CAST( NULL AS SIGNED ) - col2, + 10 AS col0 FROM tab2 cor0
----
NULL
10
NULL
10
NULL
10

skipif mysql # not compatible
query II rowsort label-34
SELECT + + CAST ( NULL AS INTEGER ) - col2, + 10 AS col0 FROM tab2 cor0
----
NULL
10
NULL
10
NULL
10

query I rowsort
SELECT - 38 * + - col2 - + col0 AS col0 FROM tab2 AS cor0
----
1456
2129
828

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col1 + - 7
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * + 11 * + + col0 + - 7 IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT + ( + 37 ) NOT IN ( - - 28 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - - 90 * + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - + 79 IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-41
SELECT - - 90 * + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - + 79 IS NULL
----
-270

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

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL COUNT ( * ) / + 67 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - SUM( 38 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + - ( - 0 ) * + 95 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT - SUM ( 38 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + - ( - 0 ) * + 95 AND NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + + COUNT( * ) * - + 24 AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-45
SELECT + + COUNT ( * ) * - + 24 AS col0 FROM tab2 AS cor0
----
-72

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

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

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

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

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

query I rowsort
SELECT + - ( + 30 ) AS col1 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT + COUNT( * ) + 64 AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT + COUNT ( * ) + 64 AS col2 FROM tab1
----
67

query I rowsort
SELECT - + 80 + - + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-56
-57
-63

query I rowsort
SELECT DISTINCT + + col2 * col1 + - 79 FROM tab2 AS cor0
----
1094
3001
3807

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 col1, ( - ( + - 32 ) ) FROM tab0 AS cor0
----
12
32
12
32
12
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-55
SELECT DISTINCT MIN( + + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT MIN ( + + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2
----
46

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

query I rowsort
SELECT ALL col2 + + 19 FROM tab0
----
118
29
66

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE - 73 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-59
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * + + col0 + - + col0 AS col0 FROM tab2 cor0
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) + + - col0 FROM tab0 AS cor0
----
-187
-2224
-9898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) + - col1 col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col0 + - 26 FROM tab1 AS cor0
----
25
59
65

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT - 85, + COUNT( * ) col1 FROM tab0 WHERE NOT - 25 * - - col1 * - + ( - - 2 ) / 2 + - 25 * col1 BETWEEN NULL AND + - 89 + 91
----
-85
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-66
SELECT - 85, + COUNT ( * ) col1 FROM tab0 WHERE NOT - 25 * - - col1 * - + ( - - 2 ) / 2 + - 25 * col1 BETWEEN NULL AND + - 89 + 91
----
-85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - 83 * + - 81 * + - MAX( DISTINCT - - col0 ) FROM tab2
----
-504225

skipif mysql # not compatible
query I rowsort label-67
SELECT - 83 * + - 81 * + - MAX ( DISTINCT - - col0 ) FROM tab2
----
-504225

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL MIN( DISTINCT 38 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL MIN ( DISTINCT 38 ) FROM tab1
----
38

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

query I rowsort
SELECT col0 * + col2 * + 3 FROM tab0
----
2115
2610
28809

query I rowsort
SELECT ALL 73 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 63 AS col0 FROM tab2 AS cor0
----
3213
4221
4851

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

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

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

query II rowsort
SELECT ALL - col0 AS col2, 94 * + - 80 * + 16 + + col2 + col0 FROM tab2
----
-46
-120251
-64
-120216
-75
-120187

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT DISTINCT SUM( ALL 94 ) * - - COUNT( * ), - 64 AS col1 FROM tab0
----
846
-64

skipif mysql # not compatible
query II rowsort label-76
SELECT DISTINCT SUM ( ALL 94 ) * - - COUNT ( * ), - 64 AS col1 FROM tab0
----
846
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-77
SELECT CAST( NULL AS SIGNED ) AS col2, + 91 + + CAST( + 15 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 55e9e30b0990039c453f23411c9d6c80

skipif mysql # not compatible
query II rowsort label-77
SELECT CAST ( NULL AS INTEGER ) AS col2, + 91 + + CAST ( + 15 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 55e9e30b0990039c453f23411c9d6c80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-78
SELECT DISTINCT - col2 * - col2 * - col0 * - + col0 DIV + - col0 + + + ( col0 ) + + CAST( + 55 AS SIGNED ) AS col1 FROM tab0 cor0
----
-33065
-8558
-950545

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - col2 * - col2 * - col0 * - + col0 / + - col0 + + + ( col0 ) + + CAST ( + 55 AS INTEGER ) AS col1 FROM tab0 cor0
----
-33065
-8558
-950545

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-79
SELECT ALL col1 + - 18 FROM tab2 AS cor0 WHERE NOT col0 - + col2 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL col1 + - 18 FROM tab2 AS cor0 WHERE NOT col0 - + col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL + + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT 71 DIV + 46 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-85
SELECT 71 / + 46 col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + - 42, - col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-87
SELECT - col0 / 93 col2 FROM tab0
----
-1
0
0

query II rowsort
SELECT col2 * - col1 AS col2, - col0 * col0 FROM tab2
----
-1173
-2116
-3080
-4096
-3886
-5625

query I rowsort
SELECT ALL 87 * + + ( - - col1 ) AS col2 FROM tab1
----
1218
4089
435

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

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

query I rowsort
SELECT ALL 90 * col0 + + col0 AS col1 FROM tab0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT 19 DIV 51 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-92
SELECT 19 / 51 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-93
SELECT DISTINCT - ( - 57 ) * + col2 * 86 + col0 AS col0, + 20 - + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
230409
-27
485395
-79
49107
10

skipif mysql # not compatible
query II rowsort label-93
SELECT DISTINCT - ( - 57 ) * + col2 * 86 + col0 AS col0, + 20 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
230409
-27
485395
-79
49107
10

query I rowsort
SELECT DISTINCT 87 * + - col2 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT DISTINCT col0 * ( col1 ) * + 70 - - 98 FROM tab0
----
127988
6888
85148

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-96
SELECT - ( + COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT - - 70 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
-20650
-223720
-94080

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col0, ( - 19 ) AS col0 FROM tab1
----
60
-19
60
-19
60
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT SUM( + 74 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-101
SELECT SUM ( + 74 ) FROM tab0
----
222

query II rowsort
SELECT DISTINCT - col2 * - 74, + col2 AS col2 FROM tab1
----
4366
59
5032
68
7104
96

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT - col2 DIV + + col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - col2 / + + col0 AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query II rowsort label-104
SELECT ALL col1 col1, col0 DIV col0 AS col1 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-104
SELECT ALL col1 col1, col0 / col0 AS col1 FROM tab2
----
51
1
67
1
77
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 42 NOT IN ( - + 24, ( - + col2 ) + - 19, + col1 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-107
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-107
SELECT ALL - CAST ( NULL AS REAL ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

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

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT DISTINCT - COUNT( * ) + - MIN( - - col1 ) + - 40 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - COUNT ( * ) + - MIN ( - - col1 ) + - 40 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-112
SELECT CAST( - - SUM( + ( - col0 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-185

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT COUNT( DISTINCT + col2 ) AS col0, 57 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-114
SELECT COUNT ( DISTINCT + col2 ) AS col0, 57 FROM tab2
----
3
57

query I rowsort
SELECT - 72 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT + + 3 AS col2 FROM tab2 WHERE + col2 + col0 - + 19 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <= - 48
----

query I rowsort
SELECT + - 99 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT + + COUNT( * ) * - + MIN( ALL - 94 ) + ( + 18 ) col1 FROM tab2 AS cor0 WHERE + ( - col0 ) >= col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-119
SELECT + + COUNT ( * ) * - + MIN ( ALL - 94 ) + ( + 18 ) col1 FROM tab2 AS cor0 WHERE + ( - col0 ) >= col0
----
NULL

query II rowsort
SELECT ALL + 20 AS col2, + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT ALL + + col1 * - ( + - col2 ) DIV - - col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + + col1 * - ( + - col2 ) / - - col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT ALL - + col1 + + + ( + + col2 ) + - - col2 + + col2 * - 84 * - col1 - + col2 FROM tab2 AS cor0
----
258683
326415
98504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-124
SELECT + 75 + COUNT( * ) DIV COUNT( * ) col1 FROM tab1 cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-124
SELECT + 75 + COUNT ( * ) / COUNT ( * ) col1 FROM tab1 cor0
----
76

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL < - col2
----
0

skipif mysql # not compatible
query I rowsort label-127
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT SUM( 57 ) AS col1 FROM tab0 AS cor0 WHERE - col0 < + 40
----
171

skipif mysql # not compatible
query I rowsort label-128
SELECT SUM ( 57 ) AS col1 FROM tab0 AS cor0 WHERE - col0 < + 40
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-129
SELECT 13 AS col2, COUNT( * ) col2 FROM tab2 AS cor0
----
13
3

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

query I rowsort
SELECT + - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-133
SELECT DISTINCT + MIN ( + col0 ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL - + MAX( - col1 ) * + + CAST( + 21 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1071

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - + MAX ( - col1 ) * + + CAST ( + 21 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1071

query I rowsort
SELECT ALL 68 * - ( - 74 ) * + 73 FROM tab0 AS cor0
----
367336
367336
367336

query II rowsort
SELECT DISTINCT + col2 * - 48 + - ( 11 ) AS col1, + 76 FROM tab0 AS cor0
----
-2267
76
-4763
76
-491
76

query I rowsort
SELECT ALL - col1 * + - col1 * + 5 FROM tab0 AS cor0
----
2205
32805
5

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

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

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

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

skipif mysql # not compatible
query I rowsort label-140
SELECT COUNT ( * ) * + - ( - 61 ) FROM tab0
----
183

query I rowsort
SELECT ALL - ( - + 1 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-142
SELECT ALL + 71 AS col0, ( - - CAST( - CAST( + MIN( ALL - col2 ) AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
71
NULL

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL + 71 AS col0, ( - - CAST ( - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
71
NULL

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - 39 ) AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL MAX( ALL - - 2 ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL MAX ( ALL - - 2 ) AS col2 FROM tab1 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 + 69 + - col2 + + col1 + - - col0 col0 FROM tab2
----
171
181
198

query II rowsort
SELECT - col2 + col2 * - 38 + - - col2 AS col0, col0 * - 22 AS col2 FROM tab0
----
-1786
-330
-3762
-2134
-380
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COUNT( - col2 ) FROM tab2 AS cor0 WHERE 97 < + col0 * - - ( - - 77 ) + + 49
----
3

skipif mysql # not compatible
query I rowsort label-147
SELECT + COUNT ( - col2 ) FROM tab2 AS cor0 WHERE 97 < + col0 * - - ( - - 77 ) + + 49
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 56
----

query I rowsort
SELECT DISTINCT - ( - + 77 ) + + col1 FROM tab2 cor0 WHERE 40 IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT ( + + 91 ) FROM tab1 cor0
----
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT MIN( - + 54 ) DIV + - COUNT( * ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-154
SELECT MIN ( - + 54 ) / + - COUNT ( * ) AS col0 FROM tab0
----
18

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

query I rowsort
SELECT + + 3 + + col0 + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-120
-3789
1

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

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

query I rowsort
SELECT + - col1 + + 3 + - col0 - - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-182
-76
-92

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT NULL <= + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL - COUNT( * ) * COUNT( ALL 21 ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-160
SELECT ALL - COUNT ( * ) * COUNT ( ALL 21 ) col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-161
SELECT - + CAST( NULL AS SIGNED ) * + 39 AS col1, - col2 * - col2 FROM tab1 AS cor0 WHERE NOT col0 * - col0 = 61
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-161
SELECT - + CAST ( NULL AS INTEGER ) * + 39 AS col1, - col2 * - col2 FROM tab1 AS cor0 WHERE NOT col0 * - col0 = 61
----
NULL
3481
NULL
4624
NULL
9216

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

query I rowsort
SELECT ALL + + ( - + col1 ) FROM tab1 AS cor0 WHERE NOT 48 + - col0 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT - col1 DIV + 51 col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT - col1 / + 51 col1 FROM tab0 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-165
SELECT - - CAST( + col1 AS SIGNED ) * 15 / col1 FROM tab0 cor0 WHERE NOT NULL <= col2 * + - col2 * + col0 + + 7
----

skipif mysql # not compatible
query I rowsort label-165
SELECT - - CAST ( + col1 AS INTEGER ) * 15 / col1 FROM tab0 cor0 WHERE NOT NULL <= col2 * + - col2 * + col0 + + 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT 80 DIV + + 62 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-166
SELECT 80 / + + 62 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT 90 + col0 + - 96 * - col1 * - - col1 FROM tab0 AS cor0
----
283
42513
629961

query I rowsort
SELECT col1 + - 88 FROM tab0 AS cor0
----
-67
-7
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT - + SUM( - 37 ) + - ( + - 97 ) DIV 57 * - - 52 * + - COUNT( * ) + + 21 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-170
SELECT - + SUM ( - 37 ) + - ( + - 97 ) / 57 * - - 52 * + - COUNT ( * ) + + 21 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - col2 + + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-21
-54
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-173
SELECT + CAST( NULL AS SIGNED ) AS col0, 77 FROM tab1 AS cor0 JOIN tab1 cor1 ON + 33 IS NULL
----

skipif mysql # not compatible
query II rowsort label-173
SELECT + CAST ( NULL AS INTEGER ) AS col0, 77 FROM tab1 AS cor0 JOIN tab1 cor1 ON + 33 IS NULL
----

query I rowsort
SELECT DISTINCT + 22 + - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT - 69 * - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
621

skipif mysql # not compatible
query I rowsort label-175
SELECT - 69 * - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT - SUM( DISTINCT - + 30 ) + + + COUNT( * ) col1 FROM tab0 WHERE col0 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-176
SELECT DISTINCT - SUM ( DISTINCT - + 30 ) + + + COUNT ( * ) col1 FROM tab0 WHERE col0 <> NULL
----
NULL

query II rowsort
SELECT ALL + col2 * 8 + + ( - col1 ) * - col1 + + col1, 8 + + col0 AS col1 FROM tab0 AS cor0
----
542
95
7018
23
794
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - ( 26 ) + + - ( + col0 ) col1, col2 * + - col1 FROM tab0 AS cor0
----
-2349
-210
-2619
-99
-405
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT 23 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT 23 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, col2 col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 91 col2 FROM tab1 AS cor0
----
44
77
86

query I rowsort
SELECT DISTINCT - - 43 - + col0 FROM tab1 AS cor0
----
-42
-48
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL - SUM( - col2 ), + COUNT( * ) AS col0 FROM tab2
----
121
3

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL - SUM ( - col2 ), + COUNT ( * ) AS col0 FROM tab2
----
121
3

query I rowsort
SELECT DISTINCT col0 - - + col2 - col1 AS col2 FROM tab0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-185
SELECT ALL CAST( NULL AS SIGNED ) AS col1, col0 DIV CAST( - - 17 AS SIGNED ) AS col2 FROM tab1
----
NULL
3
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-185
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 / CAST ( - - 17 AS INTEGER ) AS col2 FROM tab1
----
NULL
3
NULL
5
NULL
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT + 11 DIV + 48 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-187
SELECT + 11 / + 48 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT + SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + SUM ( - col1 ) FROM tab0
----
-103

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + CAST( NULL AS DECIMAL ) + + + col2, - col0 )
----

skipif mysql # not compatible
query III rowsort label-190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + CAST ( NULL AS REAL ) + + + col2, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT 29 * + COUNT( ALL - col1 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-191
SELECT 29 * + COUNT ( ALL - col1 ) FROM tab1
----
87

query I rowsort
SELECT 78 * + - col2 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT DISTINCT - 77 * col2 AS col0 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col0 * - 77 AS col1 FROM tab2 AS cor0
----
-197120
-334950
-81466

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col0 * - 77 AS col1 FROM tab2 AS cor0
----
-197120
-334950
-81466

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

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

query I rowsort
SELECT DISTINCT 82 * + col0 AS col0 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT - col2 * - col1 * - 66 FROM tab1
----
-19470
-210936
-88704

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT 93 AS col1, col2 FROM tab2
----
93
23
93
40
93
58

query I rowsort
SELECT - col0 * + - col2 AS col0 FROM tab0
----
705
870
9603

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT - col0 + + + 48 + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 7
----

query III rowsort
SELECT * FROM tab0 WHERE + 13 < + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - 49 + + + col2 FROM tab1 AS cor0
----
10
19
47

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - COUNT( ALL - - col0 ) * - - 90 AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-207
SELECT - COUNT ( ALL - - col0 ) * - - 90 AS col2 FROM tab1 AS cor0
----
-270

query I rowsort
SELECT DISTINCT col1 * + 46 * - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
145
20296
301853

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT + 73 DIV + col1 - col2 - - col2 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-209
SELECT + 73 / + col1 - col2 - - col2 col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT 4 - - - col0 AS col0 FROM tab0
----
-11
-83
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * + col1 * - - col0 col2 FROM tab0
----
194
2430
3654

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 + - 25 AND NULL
----

query I rowsort
SELECT + col1 - - + 79 + + col1 AS col0 FROM tab0
----
121
241
81

query II rowsort
SELECT ALL 79 AS col0, - col2 FROM tab1
----
79
-59
79
-68
79
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT - 56 DIV 44 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-215
SELECT - 56 / 44 FROM tab0 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + COUNT ( - ( CAST ( + - col2 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
3

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

query II rowsort
SELECT ALL 55 AS col2, - 96 AS col0 FROM tab1
----
55
-96
55
-96
55
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT - col1 DIV + 90 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-220
SELECT - col1 / + 90 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col1 NOT BETWEEN + col0 AND - + col1 * - ( + col1 ) * + + ( col1 )
----
15
81
47
87
21
10

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

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

query I rowsort
SELECT - 95 * - col2 + 61 FROM tab2 AS cor0
----
2246
3861
5571

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

query I rowsort
SELECT + - 77 * + col0 * - + col2 AS col1 FROM tab2 cor0
----
197120
334950
81466

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + col2, 8 col2 FROM tab0
----
198
8
20
8
94
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - + 37 + + col2 col0 FROM tab1
----
-2050
-2078
-2087

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT + - col0 DIV - col0 + - 99 + + col2 - 73 FROM tab0 cor0
----
-124
-161
-72

skipif mysql # not compatible
query I rowsort label-229
SELECT + - col0 / - col0 + - 99 + + col2 - 73 FROM tab0 cor0
----
-124
-161
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT - 76 + ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
-73

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

query II rowsort
SELECT ALL + 26 + + 68, - 18 AS col2 FROM tab1 cor0
----
94
-18
94
-18
94
-18

query I rowsort
SELECT + 66 * - - 64 FROM tab1 AS cor0
----
4224
4224
4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 col2 FROM tab0
----
100
2209
9801

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-234
SELECT ALL - col0 / + col2 col1 FROM tab0 AS cor0
----
-8
0
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-236
SELECT ALL 83 - 46 + + col0 DIV - - col0 AS col0, 16 FROM tab1 AS cor0
----
38
16
38
16
38
16

skipif mysql # not compatible
query II rowsort label-236
SELECT ALL 83 - 46 + + col0 / - - col0 AS col0, 16 FROM tab1 AS cor0
----
38
16
38
16
38
16

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT ALL + 33 - 35 DIV + ( - col0 ) + - col0 + col1 col0 FROM tab0 AS cor0
----
-33
-63
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT ALL + 33 - 35 / + ( - col0 ) + - col0 + col1 col0 FROM tab0 AS cor0
----
-33
-63
101

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 WHERE + 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT ALL CAST( - 91 AS SIGNED ) - - - 37 FROM tab2
----
-128
-128
-128

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL CAST ( - 91 AS INTEGER ) - - - 37 FROM tab2
----
-128
-128
-128

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

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT 84 * COUNT ( * ) FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - 85 * + SUM( DISTINCT 41 ) AS col2 FROM tab1
----
-3485

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - 85 * + SUM ( DISTINCT 41 ) AS col2 FROM tab1
----
-3485

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

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

query I rowsort
SELECT ( 10 ) FROM tab2
----
10
10
10

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

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

query I rowsort
SELECT col1 * + 7 AS col0 FROM tab2
----
357
469
539

query II rowsort
SELECT - ( - - 63 ) AS col0, 25 AS col0 FROM tab0
----
-63
25
-63
25
-63
25

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 39 * + - COUNT( col2 ) AS col2 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-247
SELECT 39 * + - COUNT ( col2 ) AS col2 FROM tab0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT 85 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-248
SELECT 85 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT + 17 * + MAX( + - col1 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT + 17 * + MAX ( + - col1 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + + 43 AS col0 FROM tab0 AS cor0
----
43

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

query II rowsort
SELECT + 48 AS col1, col1 * + + col0 + - - col2 AS col2 FROM tab0
----
48
1262
48
1837
48
196

query II rowsort
SELECT ALL + col0 * - + 3 + + col1, + 69 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-254
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-254
SELECT DISTINCT + CAST ( NULL AS REAL ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab2 AS cor0 WHERE - 68 <= - 7
----
94
94
94

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-257
SELECT - - SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
223

query II rowsort
SELECT 67 AS col1, col0 * - 7 * - col2 AS col2 FROM tab1
----
67
34272
67
35105
67
43316

query I rowsort
SELECT col0 * - 24 AS col2 FROM tab2
----
-1104
-1536
-1800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) * - 3 col1 FROM tab1
----
177
204
288

query I rowsort
SELECT DISTINCT + 25 * + - col1 FROM tab2
----
-1275
-1675
-1925

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * + 6 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT MIN( ALL - + 99 ) + - 38 FROM tab0 cor0
----
-137

skipif mysql # not compatible
query I rowsort label-263
SELECT MIN ( ALL - + 99 ) + - 38 FROM tab0 cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT - 23 + col1 DIV - + col2 col2 FROM tab0
----
-23
-24
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-264
SELECT - 23 + col1 / - + col2 col2 FROM tab0
----
-23
-24
-25

query II rowsort
SELECT + col0 - col1, - 92 + 73 AS col0 FROM tab2 AS cor0
----
-13
-19
-5
-19
8
-19

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL col2 * - + 2 * + - col2 FROM tab0
----
19602
200
4418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-268
SELECT + COUNT( * ) * - COUNT( * ) DIV + 15 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT + COUNT ( * ) * - COUNT ( * ) / + 15 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - SUM ( + - col1 ) FROM tab1
----
66

query I rowsort
SELECT 99 FROM tab2 WHERE NOT + + ( + col0 ) IS NULL
----
99
99
99

query II rowsort
SELECT DISTINCT 1, + col2 AS col1 FROM tab0
----
1
10
1
47
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( 89 * + col2 + + + col0 ) IS NULL )
----

query II rowsort
SELECT ALL + - col1, col2 + + - col0 + + col2 AS col0 FROM tab2 WHERE NOT - col2 + - - 46 + col2 IS NULL
----
-51
0
-67
41
-77
16

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

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL MIN ( ALL - 91 ) FROM tab2 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - 97 DIV + col2 AS col1 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-275
SELECT - 97 / + col2 AS col1 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT ALL - 89 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT DISTINCT + col0 * col0 FROM tab1 WHERE col1 NOT BETWEEN col0 AND CAST( col0 AS SIGNED )
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT + col0 * col0 FROM tab1 WHERE col1 NOT BETWEEN col0 AND CAST ( col0 AS INTEGER )
----
2601
7225
8281

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( - col1 ) < 56 * col0 + 58
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT - ( - MIN( DISTINCT + 91 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - ( - MIN ( DISTINCT + 91 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT - 84 + COUNT( col1 + + 45 ) DIV 36 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-282
SELECT - 84 + COUNT ( col1 + + 45 ) / 36 FROM tab1
----
-84

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

query I rowsort
SELECT DISTINCT 15 - col2 * - col2 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT + 72 FROM tab1 WHERE + col1 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) * - 7 FROM tab0
----
105
609
679

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 9 / col0 ) BETWEEN ( - col1 + - col1 ) AND ( 38 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 12 ) NOT IN ( col2 )
----

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

skipif mysql # not compatible
query I rowsort label-292
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE 29 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= ( col1 * 63 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - SUM( col1 ) * COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-295
SELECT - SUM ( col1 ) * COUNT ( * ) AS col2 FROM tab1
----
-198

query I rowsort
SELECT ALL 88 - col2 FROM tab0
----
-11
41
78

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

query I rowsort
SELECT col2 * - 18 + - col2 * col0 AS col0 FROM tab2
----
-1472
-3280
-5394

query I rowsort
SELECT 67 AS col2 FROM tab1 WHERE NOT ( + col2 ) >= NULL
----

query I rowsort
SELECT - col0 * - 49 AS col1 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT + ( 24 ) * - col0 AS col1 FROM tab0
----
-2088
-2328
-360

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) > ( NULL )
----

query I rowsort
SELECT 25 * 31 FROM tab1
----
775
775
775

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT MAX( DISTINCT + col1 ) + - COUNT( * ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-304
SELECT MAX ( DISTINCT + col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT 37 + - col2 DIV + col1 FROM tab0
----
-62
37
37

skipif mysql # not compatible
query I rowsort label-306
SELECT 37 + - col2 / + col1 FROM tab0
----
-62
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 72 - - col2 * 83 FROM tab1 cor0
----
4969
5716
8040

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT 33 * COUNT( * ) + - 44 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-309
SELECT 33 * COUNT ( * ) + - 44 FROM tab1
----
55

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + 26 - 32 >= ( col2 * - ( 0 ) )
----
-15
-87
-97

query I rowsort
SELECT 91 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 63 BETWEEN ( NULL ) AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 > ( NULL )
----

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

query I rowsort
SELECT ALL - + 89 * + col1 AS col0 FROM tab0 AS cor0
----
-1869
-7209
-89

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

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

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

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL MAX ( - - col0 ) AS col0 FROM tab0
----
97

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

query I rowsort
SELECT DISTINCT + 68 * + col2 FROM tab0
----
3196
6732
680

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + + ( 4 ) ) * + col0 AS col1 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL - - 80 * + COUNT( * ) * 75 FROM tab2 cor0
----
18000

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - - 80 * + COUNT ( * ) * 75 FROM tab2 cor0
----
18000

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 43 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) > NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col1 <> ( + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT DISTINCT + COUNT( * ), - 19 AS col2 FROM tab1
----
3
-19

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT + COUNT ( * ), - 19 AS col2 FROM tab1
----
3
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT COUNT( * ) FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) * col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-328
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) * col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT SUM( ALL + 44 ) * COUNT( * ) * - 79 + + MIN( ALL col2 ) AS col1 FROM tab0
----
-31274

skipif mysql # not compatible
query I rowsort label-329
SELECT SUM ( ALL + 44 ) * COUNT ( * ) * - 79 + + MIN ( ALL col2 ) AS col1 FROM tab0
----
-31274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT ALL 24 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-27
-43
-53

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 24 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-27
-43
-53

query I rowsort
SELECT ALL 63 * 54 * + 59 * - 6 AS col0 FROM tab0
----
-1204308
-1204308
-1204308

query I rowsort
SELECT - - 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT * FROM tab1 WHERE ( + + ( col0 ) ) BETWEEN NULL AND ( 56 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-334
SELECT 8 + - - MIN( ALL - - 87 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT 8 + - - MIN ( ALL - - 87 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ( - col2 ) FROM tab0 cor0 WHERE col2 * col1 / + col1 NOT BETWEEN ( col0 ) AND - 36 * - 81
----
-10

query I rowsort
SELECT ALL - col1 + 75 * col2 FROM tab1 AS cor0
----
4420
5053
7186

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT - - SUM( - - ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - - SUM ( - - ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - + col1 + col0 + col1 AS col0 FROM tab0 cor0
----
15
87
97

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

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

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

skipif mysql # not compatible
query I rowsort label-340
SELECT + ( + - MAX ( 9 ) ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

query I rowsort
SELECT - col0 * - col1 * - - 16 * - - 55 FROM tab1
----
374000
3763760
628320

query I rowsort
SELECT 64 * - col0 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT + 28 * - - ( - col2 ) * col0 + + col1 AS col0 FROM tab0
----
-19659
-24339
-268883

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - ( + MAX( - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-345
SELECT - ( + MAX ( - col2 ) ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT 5 DIV - 36 * + 21 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-346
SELECT 5 / - 36 * + 21 AS col2 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT ALL + col0 DIV - col0 + + - 24 + col2 AS col1 FROM tab2 AS cor0
----
-2
15
33

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + col0 / - col0 + + - 24 + col2 AS col1 FROM tab2 AS cor0
----
-2
15
33

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col0 + - col0 - - col0 ) AND col2 / + col0
----

query I rowsort
SELECT - ( + ( - col0 ) ) AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 * + col2 + - col2 ) AND + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 - 38 * - col1 col0 FROM tab2 AS cor0 WHERE NOT col1 + - 46 NOT IN ( - 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL - col0 / + col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) * col1 * 62 )
----

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - col0 / + col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) * col1 * 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 <= + + 25
----
3

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 <= + + 25
----
3

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

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

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-358
SELECT MIN( ( - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-358
SELECT MIN ( ( - col0 ) ) FROM tab0
----
-97

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

query I rowsort
SELECT + 54 + - 17 FROM tab0, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 24 col2 FROM tab2
----
-1392
-552
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL + COUNT( * ) * - + SUM( - 4 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + COUNT ( * ) * - + SUM ( - 4 ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL MAX( + - 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL MAX ( + - 17 ) FROM tab1
----
-17

query I rowsort
SELECT - 95 FROM tab2 AS cor0 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT ALL + 89 + - - col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col1 )
----
136
188
99

query I rowsort
SELECT + 23 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT + - ( col0 ) * ( - col2 ) + + ( - CAST( - + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-368
SELECT + - ( col0 ) * ( - col2 ) + + ( - CAST ( - + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
752
880
9702

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( + 24 )
----

query I rowsort
SELECT DISTINCT + - ( + col1 ) + 26 FROM tab1 AS cor0
----
-21
12
21

query I rowsort
SELECT 23 * + 73 + 48 FROM tab1 AS cor0
----
1727
1727
1727

query I rowsort
SELECT col1 + - 24 FROM tab0 AS cor0
----
-23
-3
57

query I rowsort
SELECT ALL + - col2 * - 18 FROM tab2 AS cor0
----
1044
414
720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 5 * col2 col0 FROM tab0
----
1050
19035
495

query I rowsort
SELECT + col2 + + - 62 FROM tab1
----
-3
34
6

query I rowsort
SELECT ALL 92 * - col0 AS col0 FROM tab0
----
-1380
-8004
-8924

query I rowsort
SELECT DISTINCT + col1 * + + 89 AS col2 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT - 93 * + 38 AS col1 FROM tab2
----
-3534
-3534
-3534

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

query I rowsort
SELECT DISTINCT - ( - + col2 ) * + col1 - - 38 FROM tab1 AS cor0
----
1382
3234
333

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT - 49 * COUNT( * ) FROM tab2, tab1 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - 49 * COUNT ( * ) FROM tab2, tab1 AS cor0
----
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT col1 DIV 87 DIV + col0 * col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-384
SELECT col1 / 87 / + col0 * col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT col2 - - + 93 + - col1 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 35 + 10 IS NOT NULL
----

query I rowsort
SELECT col0 * - col0 + - col1 * - col0 + + + ( + col2 ) FROM tab2 AS cor0
----
-542
253
872

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT + CAST( NULL AS SIGNED ) * ( 83 ) + - col2 AS col1, col0 + col1 + col0 + + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-389
SELECT + CAST ( NULL AS INTEGER ) * ( 83 ) + - col2 AS col1, col0 + col1 + col0 + + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 + col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-392
SELECT SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
195

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab0
----
15
15
87
87
97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL - MAX( DISTINCT - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-395
SELECT ALL - MAX ( DISTINCT - col0 ) col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT MAX( ALL - 64 ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-396
SELECT MAX ( ALL - 64 ) AS col2 FROM tab1
----
-64

query I rowsort
SELECT + ( 66 ) FROM tab0
----
66
66
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT + CAST( NULL AS SIGNED ) * + ( - + 60 ) col2 FROM tab1 WHERE NOT ( - + 36 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-399
SELECT + CAST ( NULL AS INTEGER ) * + ( - + 60 ) col2 FROM tab1 WHERE NOT ( - + 36 ) IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - col0 + - + 56 FROM tab0
----
-143
-153
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ( - COUNT( * ) ) + + + COUNT( * ) FROM tab2
----
0

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

query II rowsort
SELECT ALL - col2 AS col2, 54 * - + 97 AS col0 FROM tab2 WHERE - + 95 IS NULL
----

query I rowsort
SELECT - + 75 AS col1 FROM tab1 cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 87 ) < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 69 ) * col0 - - col1 + - + col1 AS col0 FROM tab2 AS cor0
----
3174
4416
5175

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + col2 * + col2 * + col1 + - col0 + + + 95 )
----

query I rowsort
SELECT - + 46 * - col0 AS col1 FROM tab1 AS cor0
----
2346
3910
4186

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 74 * 41 * + col0 - col2 NOT BETWEEN ( - col2 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 77 ) AS col2, - 34 col1 FROM tab0 AS cor0
----
-77
-34
-77
-34
-77
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-412
SELECT DISTINCT - col1 DIV - col2 + - 6 + 42 * col0 + - - 94 - col0 AS col0, col1 FROM tab1 AS cor0
----
2179
14
3573
5
3819
47

skipif mysql # not compatible
query II rowsort label-412
SELECT DISTINCT - col1 / - col2 + - 6 + 42 * col0 + - - 94 - col0 AS col0, col1 FROM tab1 AS cor0
----
2179
14
3573
5
3819
47

query I rowsort
SELECT DISTINCT 75 * col1 AS col1 FROM tab0 AS cor0
----
1575
6075
75

query I rowsort
SELECT ALL 89 * + col1 * + + col2 AS col2 FROM tab2
----
104397
274120
345854

query I rowsort
SELECT col2 - + - col2 - + - col0 FROM tab1
----
203
227
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * + 15 col2 FROM tab2
----
840
840
840

query I rowsort
SELECT + 35 - + col0 FROM tab1
----
-16
-50
-56

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT + COUNT( ALL - col0 ) - 10 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-419
SELECT + COUNT ( ALL - col0 ) - 10 FROM tab0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT - MAX( - + ( + - col2 ) ) DIV 71 col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT DISTINCT - MAX ( - + ( + - col2 ) ) / 71 col0 FROM tab1
----
-1

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col1, ( 56 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT ALL col0 * CAST( + + col2 AS SIGNED ) + + - 1 + col1 FROM tab0 AS cor0 WHERE col2 + ( + + 57 ) IS NOT NULL
----
785
890
9603

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL col0 * CAST ( + + col2 AS INTEGER ) + + - 1 + col1 FROM tab0 AS cor0 WHERE col2 + ( + + 57 ) IS NOT NULL
----
785
890
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT + 20 + SUM( ALL - col2 ) FROM tab2 WHERE NOT col0 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT + 20 + SUM ( ALL - col2 ) FROM tab2 WHERE NOT col0 = ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 <> ( + + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT + 4 AS col0, + COUNT( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
4
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-429
SELECT + 4 AS col0, + COUNT ( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
4
3

query I rowsort
SELECT DISTINCT - 37 * col2 AS col2 FROM tab0 AS cor0
----
-1739
-3663
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT + col2 DIV - - 27 AS col0 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-431
SELECT + col2 / - - 27 AS col0 FROM tab1 AS cor0
----
2
2
3

query II rowsort
SELECT ALL + 88 * - 41 * - - 95 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-342760
14
-342760
47
-342760
5

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

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

skipif mysql # not compatible
query II rowsort label-434
SELECT ALL ( - - MAX ( DISTINCT - 5 ) ), ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-5
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - - col1, 89 * + col1 col1 FROM tab1
----
110
1246
115
4183
64
445

query I rowsort
SELECT col0 * col0 + col0 AS col0 FROM tab1
----
2652
7310
8372

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

query I rowsort
SELECT DISTINCT col2 + 52 + - col1 FROM tab0
----
150
18
41

query I rowsort
SELECT ALL 19 * col2 + - - col0 + - + col0 AS col0 FROM tab2
----
1102
437
760

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT MAX( + col0 ) FROM tab2 cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT MAX ( + col0 ) FROM tab2 cor0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT + COUNT( * ) + 10 AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( * ) + 10 AS col1 FROM tab2 AS cor0
----
13

query I rowsort
SELECT - col0 + + col1 + - col2 * - col1 FROM tab1 AS cor0
----
1307
215
3152

query I rowsort
SELECT ALL 77 + 32 - + - col2 FROM tab1 AS cor0
----
168
177
205

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT + COUNT( * ) + 98 col0 FROM tab0 cor0
----
101

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

query I rowsort
SELECT ALL col2 - - 7 + + col2 AS col1 FROM tab0 AS cor0
----
101
205
27

query I rowsort
SELECT - 52 + 61 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + 56 + col0 AS col2 FROM tab0 AS cor0
----
143
153
71

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-450
SELECT * FROM tab2 AS cor0 WHERE - 19 NOT BETWEEN ( + 29 DIV - col0 * col2 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-450
SELECT * FROM tab2 AS cor0 WHERE - 19 NOT BETWEEN ( + 29 / - col0 * col2 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( * ) * ( + 36 ) FROM tab1
----
108

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 - - col1, + ( 27 ) )
----

query I rowsort
SELECT - 53 * + + col1 AS col0 FROM tab0
----
-1113
-4293
-53

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 19 * - col2 * - ( - col0 ) FROM tab1
----
-117572
-93024
-95285

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

query I rowsort
SELECT ALL + col0 * + + 54 FROM tab0 cor0
----
4698
5238
810

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + MIN( + 58 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-460
SELECT + MIN ( + 58 ) col0 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-461
SELECT DISTINCT * FROM tab0 WHERE + ( + + col1 ) * + CAST( NULL AS SIGNED ) + + + 96 <> NULL
----

skipif mysql # not compatible
query III rowsort label-461
SELECT DISTINCT * FROM tab0 WHERE + ( + + col1 ) * + CAST ( NULL AS INTEGER ) + + + 96 <> NULL
----

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

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

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

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

query I rowsort
SELECT ALL - 59 * + col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

query I rowsort
SELECT ALL - 20 * col2 + - col2 + - - 17 * + + col2 AS col2 FROM tab2 AS cor0
----
-160
-232
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 * - 53 <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + 13 FROM tab2 cor0
----
117

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + 13 FROM tab2 cor0
----
117

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

query II rowsort
SELECT ALL col0 AS col2, - 94 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
-94
64
-94
75
-94

query II rowsort
SELECT ALL + col0 + - - ( - 21 ) AS col0, col1 FROM tab2
----
25
51
43
77
54
67

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - 5
----

query I rowsort
SELECT DISTINCT + 37 + + - col1 FROM tab1
----
-10
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT SUM( 98 ) AS col2 FROM tab1, tab1 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-475
SELECT SUM ( 98 ) AS col2 FROM tab1, tab1 AS cor0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT DISTINCT COUNT( * ) + - 28 AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT COUNT ( * ) + - 28 AS col0 FROM tab0
----
-25

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

query I rowsort
SELECT - AVG ( DISTINCT - 17 ) FROM tab2 AS cor0 WHERE col1 < ( - col2 )
----
NULL

query II rowsort
SELECT - col0 * col2 * - 91, - col0 + + + 3 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT ( 78 ) * 75 + - col0 AS col0 FROM tab2
----
5775
5786
5804

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - SUM( DISTINCT + + ( + 95 ) ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - SUM ( DISTINCT + + ( + 95 ) ) FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-484
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / - col1 + - - col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-484
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / - col1 + - - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 + col1 + - 33 col2 FROM tab0 cor0
----
-27
-47
33

query I rowsort
SELECT DISTINCT - col1 - + 14 * + - 90 AS col0 FROM tab1 AS cor0
----
1213
1246
1255

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL - - COUNT( DISTINCT + col1 ) + + 97 AS col1 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - - COUNT ( DISTINCT + col1 ) + + 97 AS col1 FROM tab2 AS cor0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT MIN( - col2 ) DIV - COUNT( - + 80 ) + - 60 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT MIN ( - col2 ) / - COUNT ( - + 80 ) + - 60 FROM tab2 AS cor0
----
-41

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT + col1 AS col2 FROM tab2 cor0 WHERE + 1 * col1 IN ( - - CAST( NULL AS SIGNED ) / 69 * col2, - col2 )
----

skipif mysql # not compatible
query I rowsort label-490
SELECT + col1 AS col2 FROM tab2 cor0 WHERE + 1 * col1 IN ( - - CAST ( NULL AS INTEGER ) / 69 * col2, - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + - col2 * - col0 AS col1, - col0 * - + 74 col2 FROM tab2 AS cor0 WHERE col2 + - + ( + col0 ) + - col2 + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT - - col1 * - CAST( col1 AS SIGNED ) - - + 26 * + + 54 * + - 84 - col2 + - 31 AS col1 FROM tab2 AS cor0
----
-120591
-122514
-123936

skipif mysql # not compatible
query I rowsort label-493
SELECT - - col1 * - CAST ( col1 AS INTEGER ) - - + 26 * + + 54 * + - 84 - col2 + - 31 AS col1 FROM tab2 AS cor0
----
-120591
-122514
-123936

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT DISTINCT 76 AS col2, COUNT( * ) * + COUNT( * ) FROM tab2
----
76
9

skipif mysql # not compatible
query II rowsort label-494
SELECT DISTINCT 76 AS col2, COUNT ( * ) * + COUNT ( * ) FROM tab2
----
76
9

query I rowsort
SELECT 94 * - col2 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - SUM( 82 ) FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-496
SELECT - SUM ( 82 ) FROM tab1
----
-246

query I rowsort
SELECT col0 * 6 AS col2 FROM tab2
----
276
384
450

query I rowsort
SELECT 35 * - col0 AS col1 FROM tab0
----
-3045
-3395
-525

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT + + col1 DIV - col1 + ( col2 ) FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-500
SELECT + + col1 / - col1 + ( col2 ) FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-502
SELECT DISTINCT + 99 DIV + 91, ( + col1 ) col1 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-502
SELECT DISTINCT + 99 / + 91, ( + col1 ) col1 FROM tab2
----
1
51
1
67
1
77

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

query I rowsort
SELECT - 41 * + col2 FROM tab0 AS cor0
----
-1927
-4059
-410

query I rowsort
SELECT - - 2 * col2 * - col0 * + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
107893
394200
582842

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-507
SELECT ALL ( - - 54 ) + + 0 + COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL ( - - 54 ) + + 0 + COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - col0 * + col2 + col0 AS col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT DISTINCT + col0 * 53 AS col2 FROM tab2
----
2438
3392
3975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT SUM( DISTINCT + - 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-513
SELECT SUM ( DISTINCT + - 31 ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT - ( - + col2 ) + + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT + MAX( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-515
SELECT + MAX ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 66 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab2
----
29
47
64

query III rowsort
SELECT * FROM tab1 WHERE - - 44 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - + COUNT( * ) + - + 61 AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-520
SELECT - + COUNT ( * ) + - + 61 AS col1 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT ALL - - ( col2 ) - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + col0 + + ( - ( + 32 ) ) AS col0 FROM tab0 AS cor0
----
-17
55
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 86 IN ( - - 94 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT SUM( ALL ( + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-525
SELECT SUM ( ALL ( + col0 ) ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT - col1 / col2 * - + 1 FROM tab1 WHERE NOT - 40 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78, + 67 col1 FROM tab2, tab0 AS cor0
----
78
67

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 88 / col1 IS NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col2 col2, + 54 * - + col0 AS col1 FROM tab0
----
210
-4698
3807
-810
99
-5238

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

query II rowsort
SELECT + col1 * - 55 AS col1, 29 FROM tab2
----
-2805
29
-3685
29
-4235
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-532
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + + col2 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-532
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + + col2 + + + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT ( col1 ), col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL - 65 * + ( col0 ) FROM tab0
----
-5655
-6305
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 + + 47 - 33 + + + col0 + - - col2 * + + col1 * + col1 FROM tab2
----
237302
260526
59929

query I rowsort
SELECT ALL + - 90 FROM tab1 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT DISTINCT + + 84 * - MIN( + - col1 ) AS col0 FROM tab0 AS cor0
----
6804

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + + 84 * - MIN ( + - col1 ) AS col0 FROM tab0 AS cor0
----
6804

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

query II rowsort
SELECT ALL - col1, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT + MIN( + ( 95 ) ) FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + MIN ( + ( 95 ) ) FROM tab2 cor0
----
95

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

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

query I rowsort
SELECT ( - + 90 ) AS col1 FROM tab2
----
-90
-90
-90

query II rowsort
SELECT col2 AS col1, col2 + - - col0 AS col1 FROM tab2
----
23
69
40
104
58
133

query I rowsort
SELECT ALL + col1 * - 74 AS col2 FROM tab0
----
-1554
-5994
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT - col2 DIV 39 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-546
SELECT - col2 / 39 FROM tab0
----
-1
-2
0

query II rowsort
SELECT DISTINCT - col1 + - - 31 + col1 + + col0 AS col2, col2 FROM tab1
----
116
59
122
68
82
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-549
SELECT ALL - - MIN( - col2 ) + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-549
SELECT ALL - - MIN ( - col2 ) + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

query II rowsort
SELECT - - 12 + + - col2, - col1 AS col2 FROM tab1 cor0
----
-47
-5
-56
-47
-84
-14

query I rowsort
SELECT DISTINCT - col0 - + 2 * - col1 FROM tab1 AS cor0
----
-23
-75
3

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

query I rowsort
SELECT ALL + col0 * - 93 * 72 AS col1 FROM tab0 AS cor0
----
-100440
-582552
-649512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 * - col2 col1, col1 * - + col1 * + col0 AS col1 FROM tab0
----
3901
-98415
8217
-97
830
-38367

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

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

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT ( - + CAST ( - - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-558
SELECT ALL + - 5 * CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-558
SELECT ALL + - 5 * CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query II rowsort
SELECT col1, 14 AS col2 FROM tab2
----
51
14
67
14
77
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-560
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) >= - 83 * - 68
----

skipif mysql # not compatible
query III rowsort label-560
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) >= - 83 * - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT - 37 * - + 84 * + + MIN( ALL col1 ) FROM tab0 AS cor0
----
3108

skipif mysql # not compatible
query I rowsort label-561
SELECT - 37 * - + 84 * + + MIN ( ALL col1 ) FROM tab0 AS cor0
----
3108

query I rowsort
SELECT - AVG ( ALL - + col1 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT - ( - col2 ) DIV col2 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-563
SELECT - ( - col2 ) / col2 * col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + + 90 FROM tab2
----
15
26
44

query I rowsort
SELECT 70 * 94 * col1 FROM tab2
----
335580
440860
506660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT + 86 + + 73 + - - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
144
62
72

skipif mysql # not compatible
query I rowsort label-566
SELECT + 86 + + 73 + - - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
144
62
72

query I rowsort
SELECT + col2 + + col0 * - 48 AS col2 FROM tab2 AS cor0
----
-2185
-3032
-3542

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

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

query I rowsort
SELECT + 32 + + col1 + col0 * col1 + - col2 * + + col2 FROM tab2 AS cor0
----
1760
1900
3437

query I rowsort
SELECT DISTINCT 61 * + 30 FROM tab0
----
1830

query I rowsort
SELECT DISTINCT + col0 * - 13 FROM tab2
----
-598
-832
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-572
SELECT ALL - CAST( - - COUNT( ( - col0 ) ) AS SIGNED ) FROM tab0
----
-3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL <= ( col0 + + col1 ) )
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - col2 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT - col1 DIV + + 83 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-575
SELECT - col1 / + + 83 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL - 23 + ( COUNT( * ) ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL - 23 + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-20

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

skipif mysql # not compatible
query I rowsort label-577
SELECT + MIN ( - 45 ) FROM tab0 AS cor0
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-579
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT + 72 * - + 18 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT + 72 * - + 18 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT DISTINCT - 9 / + CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - 9 / + CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + 15
----

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

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

query II rowsort
SELECT + + col2 AS col1, 90 FROM tab0 AS cor0
----
10
90
47
90
99
90

query II rowsort
SELECT DISTINCT - 30 * col2, ( + ( + - 53 ) ) AS col1 FROM tab0 cor0
----
-1410
-53
-2970
-53
-300
-53

query I rowsort
SELECT ALL - col1 * - col0 * - 9 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * 8 AND 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT + MAX( ALL + col1 ) * + 7 FROM tab0 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT + MAX ( ALL + col1 ) * + 7 FROM tab0 AS cor0
----
567

query I rowsort
SELECT DISTINCT + col2 * 29 + 82 FROM tab0 cor0
----
1445
2953
372

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT - MIN( DISTINCT + 83 ) AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - MIN ( DISTINCT + 83 ) AS col2 FROM tab1
----
-83

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

skipif mysql # not compatible
query I rowsort label-590
SELECT MIN ( + + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL + SUM( DISTINCT + 3 ) FROM tab1 WHERE + + col2 < - 8 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + SUM ( DISTINCT + 3 ) FROM tab1 WHERE + + col2 < - 8 + - 63
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 98 AS col1 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + COUNT( * ) * - 17 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-593
SELECT + COUNT ( * ) * - 17 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-594
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= + col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-594
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= + col0 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 27 + + col2 AS col1 FROM tab1 AS cor0
----
123
86
95

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

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

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

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

query II rowsort
SELECT col2 AS col0, 71 FROM tab0 AS cor0
----
10
71
47
71
99
71

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

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

query I rowsort
SELECT 49 * col2 AS col2 FROM tab1 AS cor0
----
2891
3332
4704

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

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

query II rowsort
SELECT DISTINCT - 71 * col2 AS col1, col0 FROM tab1
----
-4189
85
-4828
91
-6816
51

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT + MAX( ALL 5 ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + MAX ( ALL 5 ) AS col0 FROM tab0
----
5

query I rowsort
SELECT DISTINCT 54 * + - col1 + + col2 AS col0 FROM tab2
----
-2731
-3560
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + SUM( + 79 ) + - + 73 AS col0 FROM tab1
----
164

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + SUM ( + 79 ) + - + 73 AS col0 FROM tab1
----
164

query I rowsort
SELECT + col0 * - col2 + + - col1 FROM tab0
----
-786
-891
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT col1 + + + CAST( - 26 AS SIGNED ) AS col0 FROM tab2
----
25
41
51

skipif mysql # not compatible
query I rowsort label-607
SELECT col1 + + + CAST ( - 26 AS INTEGER ) AS col0 FROM tab2
----
25
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + SUM( + - 15 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-608
SELECT + SUM ( + - 15 ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-609
SELECT - col1 DIV + col0 * - col1 AS col0 FROM tab1 WHERE NOT CAST( + col2 AS SIGNED ) * - 50 * + col2 DIV + col0 + - + 38 - - 13 >= + col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-609
SELECT - col1 / + col0 * - col1 AS col0 FROM tab1 WHERE NOT CAST ( + col2 AS INTEGER ) * - 50 * + col2 / + col0 + - + 38 - - 13 >= + col2
----
0
0
0

query II rowsort
SELECT DISTINCT + + 35 * + 1 * - + col1, col1 FROM tab0 AS cor0
----
-2835
81
-35
1
-735
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT DISTINCT - 63 * - CAST( - MIN( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6237

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - 63 * - CAST ( - MIN ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6237

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

skipif mysql # not compatible
query I rowsort label-613
SELECT + + col0 / 61 * + 60 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * 55 - - ( + col0 ) FROM tab2 AS cor0
----
-2759
-3610
-4171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - + ( SUM( col1 ) ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-616
SELECT - + ( SUM ( col1 ) ) FROM tab1 cor0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + COUNT( * ) * - MAX( DISTINCT 75 ) AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-618
SELECT + COUNT ( * ) * - MAX ( DISTINCT 75 ) AS col0 FROM tab1
----
-225

query II rowsort
SELECT - col0, + col0 + + 16 + col0 + - col2 + - - col0 AS col0 FROM tab2
----
-46
131
-64
168
-75
183

query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab0 WHERE NOT 93 NOT IN ( - col2, + col2 / - 44 + - - col2 )
----

query I rowsort
SELECT + col0 * - col0 + - col0 FROM tab2
----
-2162
-4160
-5700

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT DISTINCT col1 DIV + 7 AS col0 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT col1 / + 7 AS col0 FROM tab2
----
11
7
9

query I rowsort
SELECT ALL col0 + + + 90 AS col0 FROM tab2
----
136
154
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT 58 + - COUNT( * ) * + - SUM( + col1 ) + + - CAST( 63 AS SIGNED ) FROM tab2
----
580

skipif mysql # not compatible
query I rowsort label-624
SELECT 58 + - COUNT ( * ) * + - SUM ( + col1 ) + + - CAST ( 63 AS INTEGER ) FROM tab2
----
580

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

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT - - col1 DIV - 37 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-626
SELECT - - col1 / - 37 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-627
SELECT + + CAST( + col2 AS SIGNED ) DIV - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-627
SELECT + + CAST ( + col2 AS INTEGER ) / - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL COUNT( DISTINCT - 38 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL COUNT ( DISTINCT - 38 ) FROM tab1
----
1

query I rowsort
SELECT ALL - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL 95 + col0 FROM tab1
----
146
180
186

query I rowsort
SELECT + 8 + col2 AS col2 FROM tab0 cor0
----
107
18
55

query I rowsort
SELECT + - 89 + + 51 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT - SUM( DISTINCT col2 ) col2 FROM tab2 cor0 WHERE 79 * + + col2 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT DISTINCT - SUM ( DISTINCT col2 ) col2 FROM tab2 cor0 WHERE 79 * + + col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT + 27 + + 45, + SUM( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
72
-156

skipif mysql # not compatible
query II rowsort label-634
SELECT + 27 + + 45, + SUM ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
72
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT col2 * + + col1 + - CAST( + - ( - col0 ) AS SIGNED ) FROM tab1 cor0
----
1293
210
3105

skipif mysql # not compatible
query I rowsort label-635
SELECT col2 * + + col1 + - CAST ( + - ( - col0 ) AS INTEGER ) FROM tab1 cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-636
SELECT ALL COUNT( * ) AS col0, - 94 FROM tab2
----
3
-94

skipif mysql # not compatible
query II rowsort label-636
SELECT ALL COUNT ( * ) AS col0, - 94 FROM tab2
----
3
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT MIN( + - 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT MIN ( + - 93 ) FROM tab1
----
-93

query II rowsort
SELECT DISTINCT + 31 + + ( + 74 ) * - 44 AS col1, col0 * - 42 FROM tab2
----
-3225
-1932
-3225
-2688
-3225
-3150

query II rowsort
SELECT 5 AS col0, col0 FROM tab1
----
5
51
5
85
5
91

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

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

query I rowsort
SELECT + col2 - - + col0 - 53 + 19 * + + col1 FROM tab0 AS cor0
----
1548
162
443

onlyif mysql # DIV for integer division: 
query II rowsort label-643
SELECT - col0 AS col0, col1 * - col0 + - - ( + - col0 ) DIV + 89 AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4278

skipif mysql # not compatible
query II rowsort label-643
SELECT - col0 AS col0, col1 * - col0 + - - ( + - col0 ) / + 89 AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-644
SELECT ALL * FROM tab0 AS cor0 WHERE - 82 * + col1 + + - 91 - 30 + - 81 + + - col0 - + col1 - + col2 / + + CAST( NULL AS SIGNED ) * col0 * + col2 > - - col2
----

skipif mysql # not compatible
query III rowsort label-644
SELECT ALL * FROM tab0 AS cor0 WHERE - 82 * + col1 + + - 91 - 30 + - 81 + + - col0 - + col1 - + col2 / + + CAST ( NULL AS INTEGER ) * col0 * + col2 > - - col2
----

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

query II rowsort
SELECT - col2, 93 FROM tab2 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT DISTINCT + 99 * + col2 FROM tab1
----
5841
6732
9504

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

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

query I rowsort
SELECT DISTINCT col0 * + + 19 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT + SUM( + + col2 ) DIV - + 45 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-650
SELECT + SUM ( + + col2 ) / - + 45 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-651
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) DIV + 9 AS col2 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-651
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) / + 9 AS col2 FROM tab2 AS cor0
----
NULL
0

query I rowsort
SELECT ALL ( + col0 ) * 8 * - + col2 - - 38 + + col0 * - - 25 * + col0 AS col2 FROM tab1 AS cor0
----
140543
157559
25895

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

query I rowsort
SELECT + col2 * 82 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-655
SELECT ALL - CAST( 26 AS SIGNED ) DIV - - col2 AS col2 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - CAST ( 26 AS INTEGER ) / - - col2 AS col2 FROM tab0 cor0
----
-2
0
0

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - + col1 * - col1 * + col1 FROM tab2
----
132628
300705
456493

query I rowsort
SELECT col1 * - ( - + 50 ) * + col2 AS col0 FROM tab1
----
14750
159800
67200

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-661
SELECT DISTINCT 93 + - CAST( NULL AS DECIMAL ) + + ( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT 93 + - CAST ( NULL AS REAL ) + + ( + col2 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 78 + - col2 FROM tab1 WHERE + - col2 + - col1 + - col0 * col2 NOT BETWEEN - + col1 AND NULL
----
-137
-146
-174

query I rowsort
SELECT ALL - - ( + 47 ) + + + col2 FROM tab2 AS cor0
----
105
70
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT - COUNT( * ) + - COUNT( DISTINCT + - ( 58 ) ) col2 FROM tab0 AS cor0
----
-4

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

query I rowsort
SELECT 6 + - col0 * + + col1 * - col2 AS col2 FROM tab0
----
18276
57111
9609

query I rowsort
SELECT + 41 * + col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
2091
2747
3157

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT ALL + COUNT( - 32 ) * - COUNT( * ) DIV - - COUNT( DISTINCT + 30 ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-670
SELECT ALL + COUNT ( - 32 ) * - COUNT ( * ) / - - COUNT ( DISTINCT + 30 ) col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 64 * + + col2 * - + 60 AS col1 FROM tab0
----
-180480
-380160
-38400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT COUNT( * ) col1 FROM tab1 WHERE + 68 >= col1 + - + col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-673
SELECT COUNT ( * ) col1 FROM tab1 WHERE + 68 >= col1 + - + col0
----
3

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

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

query I rowsort
SELECT 29 + - 46 * col2 * 83 FROM tab1
----
-225233
-259595
-366499

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

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + col0 * - + col2 DIV - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-677
SELECT + col0 * - + col2 / - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-678
SELECT DISTINCT + col1 + + col0 DIV - col0, col1 FROM tab0 cor0
----
0
1
20
21
80
81

skipif mysql # not compatible
query II rowsort label-678
SELECT DISTINCT + col1 + + col0 / - col0, col1 FROM tab0 cor0
----
0
1
20
21
80
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT - 79 FROM tab1 AS cor0 WHERE NOT + 16 IN ( + col0 * - 71 + + col1, CAST( 67 AS SIGNED ) / - + 32, col0 )
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-679
SELECT - 79 FROM tab1 AS cor0 WHERE NOT + 16 IN ( + col0 * - 71 + + col1, CAST ( 67 AS INTEGER ) / - + 32, col0 )
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + - ( 35 ) * - col1 FROM tab0 AS cor0
----
2835
35
735

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-683
SELECT - CAST( NULL AS DECIMAL ) * - CAST( + 86 AS SIGNED ) / + 29 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT - CAST ( NULL AS REAL ) * - CAST ( + 86 AS INTEGER ) / + 29 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT SUM( + + 25 ) * + SUM( col0 ) AS col0 FROM tab1
----
17025

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT SUM ( + + 25 ) * + SUM ( col0 ) AS col0 FROM tab1
----
17025

query I rowsort
SELECT - ( - col1 ) * - col2 + - col2 AS col0 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT col1 * - 59 + + + col2 FROM tab2
----
-2986
-3895
-4503

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 20 + + 18 FROM tab2 AS cor0
----
2599
4487
5927

query I rowsort
SELECT - col1 * + col2 + - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-3519
-8008
-8911

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 17 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT - col0 DIV 12 AS col2 FROM tab2
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-690
SELECT - col0 / 12 AS col2 FROM tab2
----
-3
-5
-6

query I rowsort
SELECT - 33 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT 86 - + 15 DIV 14 AS col2 FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-692
SELECT 86 - + 15 / 14 AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL + col0 + col1 * - col0 * 63 AS col0 FROM tab2 AS cor0
----
-147752
-310400
-316500

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 * - col0 + col0 col2 FROM tab2 AS cor0
----
-197056
-291375
-53912

query I rowsort
SELECT DISTINCT col0 + ( + + 36 ) FROM tab2 AS cor0
----
100
111
82

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

query I rowsort
SELECT ALL 14 * - col0 * + col1 - col2 + - + col1 + - col0 FROM tab2 AS cor0
----
-32964
-69173
-70550

query I rowsort
SELECT DISTINCT 45 - + col1 AS col0 FROM tab1 cor0
----
-2
31
40

query I rowsort
SELECT ALL + 43 * - - 94 AS col2 FROM tab2
----
4042
4042
4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT ALL + COUNT( * ) DIV + 78 col0 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT col0 DIV col1 * col1 FROM tab0
----
0
84
97

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT col0 / col1 * col1 FROM tab0
----
0
84
97

query I rowsort
SELECT DISTINCT - 10 * col0 * + 99 AS col2 FROM tab1
----
-50490
-84150
-90090

query III rowsort
SELECT 97 AS col1, 64, col1 * + col2 + - col0 AS col0 FROM tab2
----
9 values hashing to f76689c1939d79ac8478f8c83eb4049f

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

query II rowsort
SELECT col1 AS col2, + 19 * col2 AS col0 FROM tab2
----
51
437
67
1102
77
760

query I rowsort
SELECT - 7 * - - col1 * - col1 * + + col1 FROM tab0
----
3720087
64827
7

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT ALL col2 DIV - + col1 col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-708
SELECT ALL col2 / - + col1 col0 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 AS col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

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

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

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

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-713
SELECT + AVG ( ALL + col2 ) AS col0, 65 DIV 26 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL
2

skipif mysql # not compatible
query II rowsort label-713
SELECT + AVG ( ALL + col2 ) AS col0, 65 / 26 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - - MAX( + ( + ( col1 ) ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT - - MAX ( + ( + ( col1 ) ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( + - ( + 97 ) ) - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - COUNT( * ) * - + 89 AS col1 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-717
SELECT - COUNT ( * ) * - + 89 AS col1 FROM tab0
----
267

query II rowsort
SELECT + 36, + 20 AS col0 FROM tab0
----
36
20
36
20
36
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-719
SELECT - 53 AS col1, - CAST( + + col0 AS DECIMAL ) * 22 + - ( - col2 ) * - 98 + + - col1 - - 35 - + CAST( NULL AS SIGNED ) col0 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-719
SELECT - 53 AS col1, - CAST ( + + col0 AS REAL ) * 22 + - ( - col2 ) * - 98 + + - col1 - - 35 - + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-721
SELECT col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 27 * + - col1 FROM tab2
----
-1377
-1809
-2079

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - + 56 ) / - col2 + col2 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-725
SELECT col1 * - - col0 + + col0 DIV col0 + - col1 + + col2 DIV 66 * + col0, + col0 + col0 col1 FROM tab2 cor0
----
2296
92
4852
128
4959
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-725
SELECT col1 * - - col0 + + col0 / col0 + - col1 + + col2 / 66 * + col0, + col0 + col0 col1 FROM tab2 cor0
----
2296
92
4852
128
4959
150

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT + ( - - COUNT( DISTINCT + col2 ) ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT + ( - - COUNT ( DISTINCT + col2 ) ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( + 40 ) IN ( - col2 * col0 )
----
51
85
91

query I rowsort
SELECT ( - col0 ) * col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 WHERE ( 94 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + 60 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT ALL - 26 / - col1 AS col2 FROM tab2 WHERE NOT - col0 * - 52 = NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * 54 NOT BETWEEN NULL AND ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / 5 < col0
----

query I rowsort
SELECT - 96 + + col2 * + col0 AS col0 FROM tab1
----
4800
4919
6092

query I rowsort
SELECT ALL 44 FROM tab1 WHERE ( NULL ) <> ( - 14 ) / col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN - col2 + + col1 AND ( 79 )
----
15
81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE 92 * - 39 NOT BETWEEN - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - 12 + SUM( DISTINCT col0 + col1 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT - 12 + SUM ( DISTINCT col0 + col1 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0
----
NULL

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

query I rowsort
SELECT ALL - col1 + 20 FROM tab2
----
-31
-47
-57

query I rowsort
SELECT 49 + col0 * col2 FROM tab1
----
4945
5064
6237

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

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

query I rowsort
SELECT 16 AS col1 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * + 85 col0 FROM tab2 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT - 62 + + col2 * col0 FROM tab0
----
643
808
9541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT ALL 70 * - ( CAST( + col1 AS SIGNED ) ) col0 FROM tab1 cor0
----
-3290
-350
-980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-751
SELECT ALL 70 * - ( CAST ( + col1 AS INTEGER ) ) col0 FROM tab1 cor0
----
-3290
-350
-980

query I rowsort
SELECT + col1 * + 97 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT SUM( ALL 58 ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-753
SELECT SUM ( ALL 58 ) AS col2 FROM tab2 AS cor0
----
174

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + col1 AND col2 / - 51 + 29
----

query I rowsort
SELECT + col1 * - 53 FROM tab0 AS cor0
----
-1113
-4293
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT DISTINCT 4 DIV col2 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-756
SELECT DISTINCT 4 / col2 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT - col2 FROM tab1 WHERE NOT + 23 * CAST( NULL AS SIGNED ) - col2 IN ( 58 / - col1 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-757
SELECT - col2 FROM tab1 WHERE NOT + 23 * CAST ( NULL AS INTEGER ) - col2 IN ( 58 / - col1 + - col0 )
----

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

query I rowsort
SELECT - col1 * - 36 AS col1 FROM tab1 AS cor0 WHERE NOT - 47 * - col1 >= NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 96 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT SUM( DISTINCT col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-762
SELECT SUM ( DISTINCT col0 ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + COUNT( col2 ) + + 15 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + COUNT ( col2 ) + + 15 AS col0 FROM tab1 AS cor0
----
18

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

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

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

query I rowsort
SELECT col0 + 12 * + col0 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT + - 0 + + 78 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + - 85 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-768
SELECT + - 85 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT - col1 * - ( - col2 ) + - col1 DIV - 68 AS col0 FROM tab2 AS cor0
----
-1173
-3079
-3886

skipif mysql # not compatible
query I rowsort label-769
SELECT - col1 * - ( - col2 ) + - col1 / - 68 AS col0 FROM tab2 AS cor0
----
-1173
-3079
-3886

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( ( col2 ) / + col0 )
----

query I rowsort
SELECT ALL - 59 + col0 FROM tab1
----
-8
26
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 + - col1 BETWEEN + col1 + + col1 * + 23 AND col0
----

query I rowsort
SELECT ALL + col2 + 73 - + col2 AS col0 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL COUNT( * ) * MIN( ALL - col0 ) FROM tab0 AS cor0 WHERE + 25 NOT IN ( 78 )
----
-291

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL COUNT ( * ) * MIN ( ALL - col0 ) FROM tab0 AS cor0 WHERE + 25 NOT IN ( 78 )
----
-291

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 62 + + col0 * col2 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT - - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-780
SELECT - - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query II rowsort
SELECT ALL - 34, col0 + col2 AS col1 FROM tab1 AS cor0
----
-34
144
-34
147
-34
159

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 48 NOT BETWEEN - col2 * + 81 AND ( + 1 + - ( + col2 ) * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-784
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 48 NOT BETWEEN - col2 * + 81 AND ( + 1 + - ( + col2 ) * + col2 )
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0 WHERE ( 5 ) BETWEEN ( col0 * - col0 ) AND ( col2 )
----
1
21
81

query II rowsort
SELECT ALL + 40, + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
40
-4896
40
-5015
40
-6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - SUM( DISTINCT + - col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-788
SELECT - SUM ( DISTINCT + - col1 ) col0 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 48 NOT BETWEEN ( col2 ) AND ( + 70 )
----
75
67
58

query I rowsort
SELECT ALL ( - + 10 ) FROM tab0
----
-10
-10
-10

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

query I rowsort
SELECT + ( + 14 ) AS col0 FROM tab0
----
14
14
14

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT + col0 / 67 * + col0 > + col2
----
14

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + + 17 = ( - + col2 )
----
10
47
99

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col1 NOT BETWEEN + 97 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-797
SELECT * FROM tab0 WHERE NOT - + CAST( - col2 AS SIGNED ) * + ( + col2 * col1 ) < ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-797
SELECT * FROM tab0 WHERE NOT - + CAST ( - col2 AS INTEGER ) * + ( + col2 * col1 ) < ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL col1 + - 37 FROM tab0 AS cor0 WHERE NOT + 9 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT + COUNT( * ) / AVG ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT + COUNT ( * ) / AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - - 15 * + + col0 * - col0 AS col2 FROM tab0 cor0
----
-113535
-141135
-3375

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT col2 DIV col1 + col1 * - 12 + + 0 AS col0 FROM tab0
----
-252
-972
87

skipif mysql # not compatible
query I rowsort label-804
SELECT col2 / col1 + col1 * - 12 + + 0 AS col0 FROM tab0
----
-252
-972
87

query III rowsort
SELECT * FROM tab2 WHERE NULL <> col2 * - col1 * - 56 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - 68 - - + ( 46 ) + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 = + - col0 + + 75
----

query II rowsort
SELECT + 93 AS col1, + col2 * - 64 AS col1 FROM tab0 AS cor0
----
93
-3008
93
-6336
93
-640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 84 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 16 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 IN ( 91 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 IN ( 57 * - 58 + + col0 / 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - + 96 AS col2 FROM tab1 cor0
----
-96
-96
-96

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT ALL 87 * + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
2001
3480
5046

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 87 * + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
2001
3480
5046

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

skipif mysql # not compatible
query I rowsort label-819
SELECT - col1 / + - col2 FROM tab0
----
0
1
2

query II rowsort
SELECT col1 - - 98 AS col0, - col2 + - - 3 AS col2 FROM tab0
----
119
-7
179
-44
99
-96

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( + + 28 / - 52 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT COUNT( * ) + + - 23 AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-822
SELECT COUNT ( * ) + + - 23 AS col0 FROM tab0
----
-20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL COUNT( * ) + 74 AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL COUNT ( * ) + 74 AS col2 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT DISTINCT - + CAST( - + MAX( 76 ) AS SIGNED ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - + CAST ( - + MAX ( 76 ) AS INTEGER ) FROM tab2 AS cor0
----
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT col0 DIV col0 FROM tab0 WHERE ( + 22 * + col2 - ( + - 52 ) + + col2 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT col0 / col0 FROM tab0 WHERE ( + 22 * + col2 - ( + - 52 ) + + col2 ) IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - ( + col1 ) BETWEEN + + 28 AND NULL )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + ( + - col0 ) * + - 1 * col2 + - 62 AS col1 FROM tab2 cor0
----
2498
4288
996

query I rowsort
SELECT - - col2 * - + 30 * - 62 + col2 FROM tab2 AS cor0
----
107938
42803
74440

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

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT ( ( NULL BETWEEN ( - 95 ) AND 48 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - + 19 * + 80 * COUNT( * ) FROM tab2 AS cor0
----
-4560

skipif mysql # not compatible
query I rowsort label-836
SELECT - + 19 * + 80 * COUNT ( * ) FROM tab2 AS cor0
----
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE col0 / - 85 * CAST( NULL AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE col0 / - 85 * CAST ( NULL AS INTEGER ) IS NULL
----
-23
-40
-58

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-840
SELECT DISTINCT + COUNT( - col2 ) * COUNT( * ) AS col2, ( + 56 ) FROM tab2
----
9
56

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT + COUNT ( - col2 ) * COUNT ( * ) AS col2, ( + 56 ) FROM tab2
----
9
56

query I rowsort
SELECT ALL 65 * + col0 AS col1 FROM tab1
----
3315
5525
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT - ( CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE + 67 IN ( + 2 * 59 * - + col1 ) AND + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-842
SELECT - ( CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE + 67 IN ( + 2 * 59 * - + col1 ) AND + col0 IS NOT NULL
----

query I rowsort
SELECT 27 * + - 20 FROM tab0 AS cor0
----
-540
-540
-540

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

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

skipif mysql # not compatible
query I rowsort label-845
SELECT col1 / - - col2 AS col2 FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + col2 + - + 99 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( 49, 64 )
----
-3
-31
-40

query I rowsort
SELECT - col2 * - + 54 AS col0 FROM tab0 AS cor0
----
2538
5346
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col0 AS col1, col0 col0 FROM tab2
----
-2116
46
-4096
64
-5625
75

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

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

query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT + + col0 + - col0 + + + col0 + col0 FROM tab2 AS cor0
----
128
150
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT ALL + + 99 * - CAST( - col0 AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
5063
8420
9056

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + + 99 * - CAST ( - col0 AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
5063
8420
9056

query I rowsort
SELECT + col0 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT 15 + - col0 FROM tab2 AS cor0
----
-31
-49
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-856
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) <= - - CAST( NULL AS SIGNED ) - - col0 + col0
----

skipif mysql # not compatible
query III rowsort label-856
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) <= - - CAST ( NULL AS INTEGER ) - - col0 + col0
----

query I rowsort
SELECT col0 + - col2 * - + col1 FROM tab0 cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL + MIN( col2 ) * + - 22 FROM tab1 WHERE NOT - col1 = col0
----
-1298

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + MIN ( col2 ) * + - 22 FROM tab1 WHERE NOT - col1 = col0
----
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT COUNT( * ) * + 91 AS col2 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-859
SELECT COUNT ( * ) * + 91 AS col2 FROM tab0
----
273

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

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

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

query I rowsort
SELECT ALL col1 * + col2 AS col1 FROM tab1 WHERE NOT 38 * 45 * - col2 + - col2 / col0 + - 63 + + - 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 93 BETWEEN 21 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 43 <= + - col0 + + - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 84 FROM tab1 AS cor0 WHERE ( NOT ( NULL > ( + col2 * + col1 * 29 * - col0 * - + 68 ) ) )
----

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

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

query I rowsort
SELECT - 79 FROM tab2 cor0 WHERE ( NOT col1 - - col2 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 IN ( + col0, col1 / + col1 * + 36, col2 )
----

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

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

query I rowsort
SELECT + col0 * - col2 * col0 AS col2 FROM tab2
----
-163840
-326250
-48668

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

query I rowsort
SELECT - 74 * - + col2 AS col0 FROM tab1 AS cor0
----
4366
5032
7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT + - CAST( - + col0 AS SIGNED ) * + 3 AS col1 FROM tab0 AS cor0
----
261
291
45

skipif mysql # not compatible
query I rowsort label-874
SELECT + - CAST ( - + col0 AS INTEGER ) * + 3 AS col1 FROM tab0 AS cor0
----
261
291
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + - 4 + + - col0 * col0 FROM tab2 AS cor0 WHERE NULL >= - 22
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - col0 AS col1 FROM tab1 cor0
----
59
-85
68
-91
96
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-880
SELECT DISTINCT + col1, - ( + col0 ) DIV - 13 FROM tab1 AS cor0
----
14
3
47
7
5
6

skipif mysql # not compatible
query II rowsort label-880
SELECT DISTINCT + col1, - ( + col0 ) / - 13 FROM tab1 AS cor0
----
14
3
47
7
5
6

onlyif mysql # DIV for integer division: 
query II rowsort label-881
SELECT DISTINCT - - col2 AS col0, 13 DIV + col0 FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-881
SELECT DISTINCT - - col2 AS col0, 13 / + col0 FROM tab0 AS cor0
----
10
0
47
0
99
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT ALL SUM( - col2 ), + CAST( 84 AS SIGNED ) * + 34 - COUNT( * ) * + + COUNT( * ) col0 FROM tab1 AS cor0
----
-223
2847

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-882
SELECT ALL SUM ( - col2 ), + CAST ( 84 AS INTEGER ) * + 34 - COUNT ( * ) * + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-223
2847

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - - col0 ) * - col1 col2 FROM tab2 WHERE - col1 / - col1 + col0 * - - 63 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN - col0 AND - 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col2 FROM tab0
----
15
87
97

query I rowsort
SELECT 86 AS col0 FROM tab2 WHERE NOT - col0 + - col1 * + - col1 BETWEEN NULL AND + col2
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-888
SELECT DISTINCT - SUM( ALL + col0 ) col0 FROM tab1 AS cor0 WHERE NOT - CAST( - ( - + col0 ) AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-888
SELECT DISTINCT - SUM ( ALL + col0 ) col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - ( - + col0 ) AS REAL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT ( + + ( + SUM( - col1 ) ) ) FROM tab1 cor0 WHERE ( 59 ) IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT ( + + ( + SUM ( - col1 ) ) ) FROM tab1 cor0 WHERE ( 59 ) IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - SUM( DISTINCT + 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-77

skipif mysql # not compatible
query I rowsort label-890
SELECT - SUM ( DISTINCT + 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-77

query I rowsort
SELECT ALL 75 * - col0 FROM tab2
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT DISTINCT + 69 AS col0, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69
-9

skipif mysql # not compatible
query II rowsort label-892
SELECT DISTINCT + 69 AS col0, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT - 53 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-893
SELECT - 53 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5

query II rowsort
SELECT DISTINCT - 74 AS col1, col2 + + - 87 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-74
-40
-74
-77
-74
12

query I rowsort
SELECT 99 AS col0 FROM tab1 cor0 WHERE - col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + col0 + - + col2 FROM tab1 cor0
----
-45
23
26

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

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

query II rowsort
SELECT ALL 37 * - 7 * + col0 * + col2 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
-1126650
75
-274022
46
-663040
64

query II rowsort
SELECT - + col1, + col1 FROM tab1 AS cor0 WHERE + col0 * + col2 >= + col1 + + 58
----
-14
14
-47
47
-5
5

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-902
SELECT col2 - - + col1 DIV CAST( + col2 AS SIGNED ) FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-902
SELECT col2 - - + col1 / CAST ( + col2 AS INTEGER ) FROM tab0
----
12
48
99

query I rowsort
SELECT 80 FROM tab2 WHERE + - col0 BETWEEN NULL AND 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT SUM( - col2 ) - + + 28 AS col2 FROM tab1
----
-251

skipif mysql # not compatible
query I rowsort label-904
SELECT SUM ( - col2 ) - + + 28 AS col2 FROM tab1
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL COUNT( * ) + + + 79 * + + MIN( ALL + col2 ) FROM tab0
----
793

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL COUNT ( * ) + + + 79 * + + MIN ( ALL + col2 ) FROM tab0
----
793

query I rowsort
SELECT - - col0 FROM tab2 WHERE + col0 + - + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT 60 + - COUNT( + col1 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-907
SELECT 60 + - COUNT ( + col1 ) AS col2 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT - COUNT( * ) * - COUNT( + col1 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - COUNT ( * ) * - COUNT ( + col1 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL + 27 AS col0 FROM tab1
----
27
27
27

query I rowsort
SELECT - - 22 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 1 AS col2 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 20 AND - ( 34 ) + - col0
----

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

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - col1 / - - 56 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + col1 - + col0 * + 58 < + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> 71 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT + COUNT( * ) * - 92 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + COUNT ( * ) * - 92 FROM tab0 AS cor0
----
-276

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

onlyif mysql # DIV for integer division: 
query II rowsort label-918
SELECT ALL - col1, 36 DIV col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-918
SELECT ALL - col1, 36 / col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, 66 col1 FROM tab2 AS cor0
----
-46
66
-64
66
-75
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-920
SELECT CAST( NULL AS SIGNED ), + 40 AS col2 FROM tab1 AS cor0
----
NULL
40
NULL
40
NULL
40

skipif mysql # not compatible
query II rowsort label-920
SELECT CAST ( NULL AS INTEGER ), + 40 AS col2 FROM tab1 AS cor0
----
NULL
40
NULL
40
NULL
40

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT + col1 + - CAST( 92 AS SIGNED ) FROM tab1 WHERE NOT - 89 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-922
SELECT + col1 + - CAST ( 92 AS INTEGER ) FROM tab1 WHERE NOT - 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NOT 63 + - 65 IS NOT NULL
----

query I rowsort
SELECT + col1 + + + col0 AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + - col2 + + 82 FROM tab2 AS cor0
----
24
42
59

query I rowsort
SELECT ALL 22 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query II rowsort label-927
SELECT col1 + - - col1 col2, - 61 DIV - + 42 FROM tab1 AS cor0
----
10
1
28
1
94
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-927
SELECT col1 + - - col1 col2, - 61 / - + 42 FROM tab1 AS cor0
----
10
1
28
1
94
1

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT ALL 44 + + COUNT( * ), SUM( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
47
7

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL 44 + + COUNT ( * ), SUM ( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
47
7

query I rowsort
SELECT DISTINCT - col1 * - col2 - + + 99 FROM tab0 AS cor0
----
0
111
3708

query I rowsort
SELECT - 19 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-33
-66

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

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

query I rowsort
SELECT DISTINCT 39 - - col1 AS col2 FROM tab1 cor0
----
44
53
86

query I rowsort
SELECT ALL - 30 * + 10 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + 44 ) col0 FROM tab2
----
1012
1760
2552

query I rowsort
SELECT ALL + ( 49 ) * - col2 AS col0 FROM tab2
----
-1127
-1960
-2842

query I rowsort
SELECT ALL - col0 * + ( - col0 ) FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL 70 * col0 AS col0 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT col0 DIV 54 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-938
SELECT col0 / 54 FROM tab0 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT SUM( + col2 ) * + COUNT( * ) * + 92 AS col1 FROM tab0 AS cor0
----
43056

skipif mysql # not compatible
query I rowsort label-939
SELECT SUM ( + col2 ) * + COUNT ( * ) * + 92 AS col1 FROM tab0 AS cor0
----
43056

query I rowsort
SELECT ALL + + 92 * - 97 * col0 AS col0 FROM tab0 AS cor0
----
-133860
-776388
-865628

query I rowsort
SELECT DISTINCT + col1 * + 16 + col1 AS col1 FROM tab2 AS cor0
----
1139
1309
867

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 23 = 6
----

query I rowsort
SELECT - + col2 * 56 + + col0 FROM tab2 WHERE NULL IS NULL
----
-1242
-2176
-3173

query I rowsort
SELECT 13 * - - 45 FROM tab1
----
585
585
585

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT - col1 DIV + - col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-946
SELECT - col1 / + - col0 FROM tab0
----
0
0
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + MIN( - + 14 ) AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-948
SELECT + MIN ( - + 14 ) AS col1 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL + SUM( DISTINCT - + 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + SUM ( DISTINCT - + 47 ) FROM tab0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + 61 col1 FROM tab0 AS cor0
----
-26
-36
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + + - col1 col2 FROM tab0 cor0
----
2
62
82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT col1 DIV col2 + + col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT col1 / col2 + + col2 FROM tab2 AS cor0
----
25
41
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT - MAX( DISTINCT + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-955
SELECT - MAX ( DISTINCT + col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + + 69 - - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-957
SELECT + + 69 - - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
72

query I rowsort
SELECT - + col2 - + col2 * - 53 AS col2 FROM tab2 cor0
----
1196
2080
3016

query I rowsort
SELECT - + 30 AS col1 FROM tab0 AS cor0 WHERE NOT ( + - 86 ) + + col2 IS NULL
----
-30
-30
-30

query I rowsort
SELECT ( - + 9 ) * + - ( + col2 ) + - + 39 FROM tab2
----
168
321
483

query I rowsort
SELECT + col2 * ( + - col2 ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT - + 61 + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 35 >= NULL
----
-61

skipif mysql # not compatible
query I rowsort label-962
SELECT - + 61 + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 35 >= NULL
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-963
SELECT ALL - col2 * + col1 * + CAST( - - 45 AS SIGNED ) * - col1, 81 col2 FROM tab0
----
13876515
81
198450
81
4455
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-963
SELECT ALL - col2 * + col1 * + CAST ( - - 45 AS INTEGER ) * - col1, 81 col2 FROM tab0
----
13876515
81
198450
81
4455
81

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

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

query I rowsort
SELECT DISTINCT - + ( - 64 ) * col1 - - 87 + + - col2 + - + col2 FROM tab0 AS cor0
----
-47
1411
5177

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

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - SUM ( DISTINCT col2 ) FROM tab1
----
-223

query I rowsort
SELECT + + 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 + - 64 * + - col1 col0 FROM tab2 AS cor0
----
46
3213
64
4851
75
4221

query I rowsort
SELECT col0 + + 38 - col2 * + 50 FROM tab2 AS cor0
----
-1066
-1898
-2787

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL COUNT( col1 ) + + + SUM( - - col2 ) + + + COUNT( * ) AS col2 FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL COUNT ( col1 ) + + + SUM ( - - col2 ) + + + COUNT ( * ) AS col2 FROM tab2
----
127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-973
SELECT col2 DIV + + CAST( + CAST( - 61 AS SIGNED ) AS SIGNED ) + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-973
SELECT col2 / + + CAST ( + CAST ( - 61 AS INTEGER ) AS INTEGER ) + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + 13 + + col2 FROM tab1
----
109
72
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-975
SELECT ALL - + col0 * + col1 * col2 * + col2 / + col1 - + col0 * 90 * - CAST( + ( - col0 ) AS DECIMAL ) + 29 col0 FROM tab1 WHERE + col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT ALL - + col0 * + col1 * col2 * + col2 / + col1 - + col0 * 90 * - CAST ( + ( - col0 ) AS REAL ) + 29 col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 79 + 49 FROM tab0
----
128
128
128

query II rowsort
SELECT col1 * - - col0, 11 AS col2 FROM tab2 AS cor0
----
2346
11
4928
11
5025
11

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

query I rowsort
SELECT col0 + - + col2 * col2 AS col2 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT col0 + + 20 FROM tab1 cor0
----
105
111
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 70 col2 FROM tab1 AS cor0
----
-11
-2
26

query I rowsort
SELECT - - col2 + 24 * col1 - + 39 AS col2 FROM tab0 AS cor0
----
1952
475
84

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL + - 28 * 95 - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = col2 - - ( - + col1 )
----
-2660

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + - 28 * 95 - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = col2 - - ( - + col1 )
----
-2660

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

query II rowsort
SELECT ALL + 58 AS col1, + col0 FROM tab1
----
58
51
58
85
58
91

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 18 ) * - 94 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT 55 * + COUNT( * ) AS col2 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-987
SELECT 55 * + COUNT ( * ) AS col2 FROM tab0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT DISTINCT CAST( col2 AS SIGNED ) * - 17 * - col0 AS col0 FROM tab0
----
11985
14790
163251

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - 17 * - col0 AS col0 FROM tab0
----
11985
14790
163251

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

skipif mysql # not compatible
query I rowsort label-989
SELECT MAX ( ALL col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT + 6 * - 69 * - + col2 AS col0 FROM tab0
----
19458
40986
4140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 * + + ( 55 ) col2 FROM tab0 AS cor0
----
-2255
-2255
-2255

query II rowsort
SELECT ALL + col0 AS col1, - 64 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT 59 DIV + col1 - - ( + - ( col0 ) ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7571
9468

skipif mysql # not compatible
query I rowsort label-993
SELECT 59 / + col1 - - ( + - ( col0 ) ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7571
9468

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT - SUM( DISTINCT - 32 ) AS col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - SUM ( DISTINCT - 32 ) AS col2 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT COUNT( * ) - + ( - 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-995
SELECT COUNT ( * ) - + ( - 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT ALL col2 + + 65 AS col2 FROM tab0 AS cor0
----
112
164
75

query I rowsort
SELECT DISTINCT + - 43 + + 50 FROM tab2 AS cor0
----
7

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

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

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

skipif mysql # not compatible
query II rowsort label-999
SELECT - COUNT ( * ) AS col0, + 98 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0
98

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

query I rowsort
SELECT ALL - col0 * - 3 + + 66 * - + col1 * - 72 FROM tab1 AS cor0
----
223617
24015
66681

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 52 AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT ALL - 17 + + + COUNT( + + col1 ) AS col0, - 33 FROM tab2
----
-14
-33

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL - 17 + + + COUNT ( + + col1 ) AS col0, - 33 FROM tab2
----
-14
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT + col0 - + CAST( + col1 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1006
SELECT + col0 - + CAST ( + col1 AS INTEGER ) FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL col0 + + col1 * + + col2 AS col2 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT - 88 + ( - - 9 ) AS col1 FROM tab0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT COUNT( * ) + - 91 AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1009
SELECT COUNT ( * ) + - 91 AS col1 FROM tab2
----
-88

query I rowsort
SELECT DISTINCT - col1 + - 63 AS col1 FROM tab1
----
-110
-68
-77

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

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

query II rowsort
SELECT ALL + ( 35 ) + + 24, col0 AS col2 FROM tab2 AS cor0
----
59
46
59
64
59
75

query I rowsort
SELECT DISTINCT col0 + + - 49 AS col0 FROM tab2 AS cor0
----
-3
15
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT SUM( + + col2 ) * 53 + + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
8265

skipif mysql # not compatible
query I rowsort label-1015
SELECT SUM ( + + col2 ) * 53 + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
8265

query I rowsort
SELECT ALL 52 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT 48 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-1017
SELECT 48 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
144

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + MIN( + 85 ) AS col1 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1023
SELECT + MIN ( + 85 ) AS col1 FROM tab0 AS cor0
----
85

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT DISTINCT MAX( col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1027
SELECT DISTINCT MAX ( col1 ) col0 FROM tab0
----
81

query I rowsort
SELECT DISTINCT 93 * + + 44 + - 38 * - + col2 FROM tab2 AS cor0
----
4966
5612
6296

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT - col0 * - col2 * col1 NOT BETWEEN NULL AND + + col1 / - - col2
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 + + col1 NOT BETWEEN NULL AND - col0 * 80
----
46
64
75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + - COUNT( * ) + + ( - - 64 ) AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + - COUNT ( * ) + + ( - - 64 ) AS col1 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL 53 + - - MIN( ALL - col0 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 53 + - - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) + - + 46 AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) + - + 46 AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT MAX( ( + col1 ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT MAX ( ( + col1 ) ) FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT 99 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT ALL - 39 * col2 AS col1, col1 FROM tab0
----
-1833
81
-3861
1
-390
21

query II rowsort
SELECT DISTINCT - + 36, + col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - 26, + col2, col0 * col1 )
----

query I rowsort
SELECT - + col1 + - ( - 61 ) AS col1 FROM tab0 WHERE ( + 12 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL - 34 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 34 / col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col0, 45 FROM tab2 AS cor0
----
46
45
64
45
75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT COUNT( * ) * 92 AS col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1045
SELECT COUNT ( * ) * 92 AS col0 FROM tab0 AS cor0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT col2 DIV - col2 - - col0 AS col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1046
SELECT col2 / - col2 - - col0 AS col0 FROM tab0 AS cor0
----
14
86
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * - ( col1 ) col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # DIV for integer division: 
query II rowsort label-1049
SELECT 50 DIV - - col0 + - col0, 8 + col2 AS col0 FROM tab0 AS cor0
----
-12
55
-87
18
-97
107

skipif mysql # not compatible
query II rowsort label-1049
SELECT 50 / - - col0 + - col0, 8 + col2 AS col0 FROM tab0 AS cor0
----
-12
55
-87
18
-97
107

query I rowsort
SELECT DISTINCT - 63 * + col2 FROM tab0 AS cor0
----
-2961
-6237
-630

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

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

query I rowsort
SELECT ALL + + 49 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1054
SELECT DISTINCT ( 10 ), - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) * + - col0 + - 13 AS col2 FROM tab1
----
10
2588
10
7212
10
8268

skipif mysql # not compatible
query II rowsort label-1054
SELECT DISTINCT ( 10 ), - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) * + - col0 + - 13 AS col2 FROM tab1
----
10
2588
10
7212
10
8268

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 23 * + 8 NOT IN ( + + col1, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1056
SELECT - MAX( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT - MAX ( ALL + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT 55 * + + COUNT( * ) * - COUNT( * ) FROM tab1
----
-495

skipif mysql # not compatible
query I rowsort label-1057
SELECT 55 * + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1058
SELECT - CAST( - col2 AS SIGNED ) AS col0, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-1058
SELECT - CAST ( - col2 AS INTEGER ) AS col0, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

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

query II rowsort
SELECT ALL 8, col2 * - col2 AS col0 FROM tab2
----
8
-1600
8
-3364
8
-529

query I rowsort
SELECT DISTINCT + col1 + + col2 + - ( col1 ) FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1062
SELECT + 71 DIV + + col0 + 0 * + col0 * 52 col0, col2 + - col0 AS col1 FROM tab0
----
0
-77
0
2
4
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1062
SELECT + 71 / + + col0 + 0 * + col0 * 52 col0, col2 + - col0 AS col1 FROM tab0
----
0
-77
0
2
4
32

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT - COUNT ( 0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT SUM( col0 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT SUM ( col0 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
224

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab1 cor0
----
-45
23
26

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT DISTINCT + COUNT( * ) - 52 + - - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + COUNT ( * ) - 52 + - - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT DISTINCT COUNT( * ) AS col1, - 84 FROM tab0
----
3
-84

skipif mysql # not compatible
query II rowsort label-1070
SELECT DISTINCT COUNT ( * ) AS col1, - 84 FROM tab0
----
3
-84

query I rowsort
SELECT DISTINCT - 40 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col0 - + 87 + - col0 * - 13 * + col2 AS col1 FROM tab0
----
11310
124849
9093

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

query II rowsort
SELECT DISTINCT + 20, 30 AS col0 FROM tab2
----
20
30

query I rowsort
SELECT - col2 + + 98 FROM tab1
----
2
30
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT + col2 * CAST( - col2 AS SIGNED ) * 85 + + col1 - + col2 + col0 * col2 FROM tab0
----
-187026
-7619
-823580

skipif mysql # not compatible
query I rowsort label-1076
SELECT + col2 * CAST ( - col2 AS INTEGER ) * 85 + + col1 - + col2 + col0 * col2 FROM tab0
----
-187026
-7619
-823580

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + - + 41 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( + - col0 ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( + - col0 ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * + 43 + + col0 AS col1 FROM tab1
----
2622
3015
4179

query II rowsort
SELECT ALL + 61 AS col1, - 28 AS col0 FROM tab1
----
61
-28
61
-28
61
-28

query II rowsort
SELECT DISTINCT - col0, - col2 * + col0 + - 49 + col2 + - - col2 * col1 AS col1 FROM tab1
----
-51
-3505
-85
-4710
-91
-2973

query I rowsort
SELECT ALL - + 18 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 + 53 * 38 FROM tab2 AS cor0
----
2065
2081
2091

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

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

query I rowsort
SELECT - 48 * + col0 * + - col2 AS col0 FROM tab2 AS cor0
----
122880
208800
50784

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT DISTINCT SUM( + + col2 ) * + 35 col0 FROM tab2
----
4235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1087
SELECT DISTINCT SUM ( + + col2 ) * + 35 col0 FROM tab2
----
4235

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT - ( - SUM( + - 60 ) ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT - ( - SUM ( + - 60 ) ) FROM tab1
----
-180

query I rowsort
SELECT 37 * - + 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0baab7f278b56200ad1a56847e79fd88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1091
SELECT + CAST( 61 AS SIGNED ) col0, + ( 63 ) AS col1 FROM tab2 AS cor0
----
61
63
61
63
61
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1091
SELECT + CAST ( 61 AS INTEGER ) col0, + ( 63 ) AS col1 FROM tab2 AS cor0
----
61
63
61
63
61
63

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT - MAX( - col0 ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1093
SELECT - MAX ( - col0 ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17

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

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

query II rowsort
SELECT + - ( col0 ), 87 AS col1 FROM tab1 AS cor0
----
-51
87
-85
87
-91
87

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 + - - col0 NOT IN ( col1 )
----

query I rowsort
SELECT 24 + - col2 * - - 61 FROM tab0
----
-2843
-586
-6015

onlyif mysql # DIV for integer division: 
query II rowsort label-1098
SELECT DISTINCT 0, 50 DIV + col0 AS col2 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-1098
SELECT DISTINCT 0, 50 / + col0 AS col2 FROM tab1
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT - col1 * CAST( NULL AS SIGNED ) * - ( - - 98 ) + + 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT - col1 * CAST ( NULL AS INTEGER ) * - ( - - 98 ) + + 0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 19 / + col0 AS col1, - 25 FROM tab0 WHERE + + col1 / - + 88 + - 0 - + col1 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1102
SELECT DISTINCT col2 DIV + col0 + + col2 AS col1, col0 FROM tab0 AS cor0
----
10
87
100
97
50
15

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT col2 / + col0 + + col2 AS col1, col0 FROM tab0 AS cor0
----
10
87
100
97
50
15

query I rowsort
SELECT - col2 - col0 FROM tab2 WHERE ( col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 70 ) <= + col0
----
75
67
58

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT + - CAST( + col0 AS SIGNED ) + 27 AS col2 FROM tab0 cor0
----
-60
-70
12

skipif mysql # not compatible
query I rowsort label-1107
SELECT + - CAST ( + col0 AS INTEGER ) + 27 AS col2 FROM tab0 cor0
----
-60
-70
12

query I rowsort
SELECT DISTINCT + - 36 * - 41 + + + col2 FROM tab1 AS cor0
----
1535
1544
1572

query I rowsort
SELECT - + 82 + + col1 FROM tab1 AS cor0
----
-35
-68
-77

query I rowsort
SELECT ALL - ( - ( + 8 ) ) + col0 FROM tab1 AS cor0
----
59
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - SUM ( - col1 ) FROM tab0 AS cor0
----
103

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 25 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 65 * - col2 + 40 FROM tab0 WHERE NOT - - col2 IS NULL
----
3095
6475
690

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

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

query II rowsort
SELECT DISTINCT + col1 + + col1 * + col1, col2 + + 52 * - - 93 AS col2 FROM tab1
----
210
4932
2256
4904
30
4895

query I rowsort
SELECT col2 - col1 * - - ( + 90 ) AS col0 FROM tab0
----
-1880
-7243
9

query I rowsort
SELECT - col2 - - ( - 91 ) * + col0 AS col2 FROM tab1
----
-4737
-7794
-8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT + + ( - 36 ) FROM tab2 WHERE NULL BETWEEN - col0 + - CAST( - + 47 AS SIGNED ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1120
SELECT + + ( - 36 ) FROM tab2 WHERE NULL BETWEEN - col0 + - CAST ( - + 47 AS INTEGER ) AND + CAST ( NULL AS INTEGER )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL - CAST( + ( + 68 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 76
----

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL - CAST ( + ( + 68 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 76
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1125
SELECT + CAST( NULL AS SIGNED ), col1 * - - col0 AS col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-1125
SELECT + CAST ( NULL AS INTEGER ), col1 * - - col0 AS col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( col0 ) + col2 col1 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL ( - COUNT( * ) ) * 48 FROM tab1 AS cor0 WHERE NOT + 46 + - 61 IS NULL
----
-144

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL ( - COUNT ( * ) ) * 48 FROM tab1 AS cor0 WHERE NOT + 46 + - 61 IS NULL
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL - col0 * col0 DIV + col2 FROM tab1 AS cor0
----
-121
-122
-27

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - col0 * col0 / + col2 FROM tab1 AS cor0
----
-121
-122
-27

query I rowsort
SELECT ALL - + ( - ( - + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT - 89 DIV - + 86 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1130
SELECT - 89 / - + 86 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT ALL - MAX( ALL col2 ) DIV - + 90 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - MAX ( ALL col2 ) / - + 90 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - col2 * - - col1 + col0 * + - 48 AS col2 FROM tab2 AS cor0
----
-3381
-6152
-7486

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

skipif mysql # not compatible
query II rowsort label-1134
SELECT ALL - + 75, + COUNT ( * ) AS col0 FROM tab1 cor0
----
-75
3

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

skipif mysql # not compatible
query I rowsort label-1135
SELECT + + 45 * + - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
-135

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT COUNT ( * ) FROM tab0, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT + 35 * + 22 FROM tab2
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab0 WHERE NOT + 94 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab0 WHERE NOT + 94 + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT + COUNT( + + col0 ) + - 28 - - COUNT( * ) col0 FROM tab1
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT DISTINCT + COUNT ( + + col0 ) + - 28 - - COUNT ( * ) col0 FROM tab1
----
-22

query I rowsort
SELECT - col0 * + + 22 AS col1 FROM tab0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1141
SELECT ALL - 43 * - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1141
SELECT ALL - 43 * - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 + + col0 >= + + 90
----
46
51
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1143
SELECT + COUNT( * ), COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) DIV + - 54 AS col2 FROM tab1 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1143
SELECT + COUNT ( * ), COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) / + - 54 AS col2 FROM tab1 WHERE NULL IS NULL
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT CAST( ( + - col2 ) AS SIGNED ) + - - col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT CAST ( ( + - col2 ) AS INTEGER ) + - - col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - + col2 + + - 43 AS col2 FROM tab1 AS cor0
----
-102
-111
-139

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

query II rowsort
SELECT DISTINCT + col1, - 34 FROM tab0 AS cor0
----
1
-34
21
-34
81
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL + ( + col1 ) AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN 74 * + col0 AND CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + ( + col1 ) AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN 74 * + col0 AND CAST ( - - col0 AS INTEGER )
----

query I rowsort
SELECT col1 - + ( + 44 ) + col1 FROM tab2 AS cor0
----
110
58
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 / col1 IS NULL
----

query I rowsort
SELECT + col1 - + - 83 FROM tab0
----
104
164
84

query II rowsort
SELECT - col2 + - - 68 AS col2, col2 AS col2 FROM tab1
----
-28
96
0
68
9
59

query I rowsort
SELECT DISTINCT col0 * col1 - - - col2 FROM tab0
----
-2
1168
1817

query I rowsort
SELECT - col0 + + - col2 * - + 23 FROM tab2
----
1259
483
856

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL SUM( DISTINCT ( + 88 ) ) - + + MAX( + + 72 ) * + MIN( col0 ) AS col2 FROM tab2
----
-3224

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL SUM ( DISTINCT ( + 88 ) ) - + + MAX ( + + 72 ) * + MIN ( col0 ) AS col2 FROM tab2
----
-3224

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT - SUM( DISTINCT 20 ) DIV 47 FROM tab2 WHERE NOT + 51 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT - SUM ( DISTINCT 20 ) / 47 FROM tab2 WHERE NOT + 51 IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1162
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - 96 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1162
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - 96 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + - COUNT( * ) * - 77 * - - 73 AS col2 FROM tab1 AS cor0
----
16863

skipif mysql # not compatible
query I rowsort label-1163
SELECT + - COUNT ( * ) * - 77 * - - 73 AS col2 FROM tab1 AS cor0
----
16863

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT - + 62 DIV - col2 AS col2 FROM tab0 cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1164
SELECT - + 62 / - col2 AS col2 FROM tab0 cor0
----
0
1
6

query I rowsort
SELECT 78 + col1 FROM tab0 AS cor0
----
159
79
99

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT - 55 <= + col0 * col1 - + - col2 + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-1167
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT + 18 * - - COUNT( col0 ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + 18 * - - COUNT ( col0 ) AS col2 FROM tab1
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 40 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE - - col2 * - col0 >= NULL
----

query II rowsort
SELECT DISTINCT - 75 AS col2, + col0 FROM tab0
----
-75
15
-75
87
-75
97

query I rowsort
SELECT DISTINCT 47 + 77 FROM tab2
----
124

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + ( col2 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL 8 + - col0 AS col0 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT - MAX( - + 59 ) DIV + 23 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-1175
SELECT - MAX ( - + 59 ) / + 23 FROM tab1 cor0
----
2

query II rowsort
SELECT + col2, 9 AS col1 FROM tab0 AS cor0
----
10
9
47
9
99
9

query I rowsort
SELECT ALL + 98 - 30 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1179
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + ( - CAST( - ( + + col2 ) AS SIGNED ) ) + - - 66
----

skipif mysql # not compatible
query III rowsort label-1179
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + ( - CAST ( - ( + + col2 ) AS INTEGER ) ) + - - 66
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + col2 * + - col1 * col1 + 14 + col0 * col1 FROM tab2 cor0
----
-232218
-255323
-57463

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT CAST( + 37 AS SIGNED ) * - col1 * + - col2 DIV + col2 + + 96 AS col0 FROM tab1 AS cor0
----
1835
281
614

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT CAST ( + 37 AS INTEGER ) * - col1 * + - col2 / + col2 + + 96 AS col0 FROM tab1 AS cor0
----
1835
281
614

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT - MAX( DISTINCT - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1186
SELECT - MAX ( DISTINCT - 68 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT - col0 * - col1 * + 18 AS col2 FROM tab1 AS cor0
----
12852
7650
76986

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 92 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT ALL + col2 * col0 DIV + col0 + - + 94 FROM tab0 AS cor0
----
-47
-84
5

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + col2 * col0 / + col0 + - + 94 FROM tab0 AS cor0
----
-47
-84
5

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, 69 * - 89, + col0, + 17 + + + col1 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + 98 AS col1 FROM tab2 WHERE 33 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1194
SELECT ALL ( ( - 63 ) ) DIV + + MIN( DISTINCT - - CAST( - col1 AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL ( ( - 63 ) ) / + + MIN ( DISTINCT - - CAST ( - col1 AS INTEGER ) ) FROM tab2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT 86 DIV 35 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT 86 / 35 FROM tab1
----
2

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 79 * 17 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1198
SELECT ( - col2 ) DIV - - col0 AS col1, col1 + col1 * - col0 FROM tab0
----
-1
-96
-3
-1134
0
-1806

skipif mysql # not compatible
query II rowsort label-1198
SELECT ( - col2 ) / - - col0 AS col1, col1 + col1 * - col0 FROM tab0
----
-1
-96
-3
-1134
0
-1806

query I rowsort
SELECT - 90 * - 57 * - col1 FROM tab0 cor0
----
-107730
-415530
-5130

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN col2 AND 48
----

query I rowsort
SELECT col2 * - col2 FROM tab1 WHERE NOT col1 < ( NULL )
----

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

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

query I rowsort
SELECT col2 * - 46 AS col2 FROM tab0
----
-2162
-4554
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT ALL col0 DIV col0 - ( 76 ) AS col0 FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL col0 / col0 - ( 76 ) AS col0 FROM tab0
----
-75
-75
-75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT MIN( DISTINCT col1 ) + ( 37 ) * + COUNT( * ) AS col1 FROM tab0 WHERE col2 * col2 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT MIN ( DISTINCT col1 ) + ( 37 ) * + COUNT ( * ) AS col1 FROM tab0 WHERE col2 * col2 <= ( NULL )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1210
SELECT DISTINCT - COUNT( DISTINCT - col0 ) + SUM( + col0 + - CAST( + 13 AS SIGNED ) ) DIV - MAX( ALL 25 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) + SUM ( + col0 + - CAST ( + 13 AS INTEGER ) ) / - MAX ( ALL 25 ) FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab1 WHERE 74 + 34 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab1 WHERE 74 + 34 >= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1212
SELECT col2 AS col0 FROM tab0 WHERE NOT - 67 * CAST( col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1212
SELECT col2 AS col0 FROM tab0 WHERE NOT - 67 * CAST ( col1 AS REAL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 45 * + col1 + - col0 AS col0 FROM tab1
----
140
2024
579

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + col1 <> ( + col1 * + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT - col0 DIV - col1 + col2 AS col1 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-1220
SELECT - col0 / - col1 + col2 AS col1 FROM tab1
----
69
76
99

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

query III rowsort
SELECT * FROM tab0 WHERE 7 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL 70 * + COUNT ( * ) FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + AVG ( - col1 ) + COUNT( * ) FROM tab1 WHERE - col2 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT + AVG ( - col1 ) + COUNT ( * ) FROM tab1 WHERE - col2 <> ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 26 + 56
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 55 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL 5 - - col2 AS col0 FROM tab2 AS cor0
----
28
45
63

query I rowsort
SELECT + col1 + 61 AS col0 FROM tab2 AS cor0
----
112
128
138

query I rowsort
SELECT ALL + 61 - - col1 FROM tab2 cor0
----
112
128
138

query I rowsort
SELECT ( + col2 ) + 92 AS col0 FROM tab0 AS cor0
----
102
139
191

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT DISTINCT + 95 DIV col0 - 95 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT + 95 / col0 - 95 FROM tab1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT + col1 DIV - 23 AS col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT + col1 / - 23 AS col1 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 7 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL NOT BETWEEN ( 57 ) AND ( 59 + 46 )
----
7

skipif mysql # not compatible
query I rowsort label-1235
SELECT 7 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL NOT BETWEEN ( 57 ) AND ( 59 + 46 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1236
SELECT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1236
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
9

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

query I rowsort
SELECT ALL - ( + 78 ) AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT + col2 - col1 * - 15 AS col0 FROM tab2 AS cor0
----
1063
1195
788

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

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

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

query I rowsort
SELECT ALL + + col2 + - 47 AS col1 FROM tab2 AS cor0
----
-24
-7
11

query I rowsort
SELECT DISTINCT 17 * + col0 FROM tab2 cor0
----
1088
1275
782

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

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

query I rowsort
SELECT ALL - - col0 * 35 FROM tab1 cor0
----
1785
2975
3185

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + ( col1 ) col2 FROM tab1
----
1081
115
322

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab1 WHERE ( - col1 * col0 ) <= - col2
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1251
SELECT * FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) = ( - 0 ) * 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1251
SELECT * FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) = ( - 0 ) * 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT + + 61 * - COUNT( * ) * ( - 53 ) FROM tab2 AS cor0
----
9699

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + + 61 * - COUNT ( * ) * ( - 53 ) FROM tab2 AS cor0
----
9699

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

query I rowsort
SELECT ALL + 18 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + + col1 + col1 / - col1 * + ( - ( - col2 ) * + col0 + + col2 * col0 ) NOT BETWEEN NULL AND ( 74 * col2 )
----

query II rowsort
SELECT DISTINCT + 20, - col2 * col0 * col1 AS col0 FROM tab1 cor0
----
20
-25075
20
-290836
20
-68544

query I rowsort
SELECT col0 * - 79 + + - 47 FROM tab0 AS cor0
----
-1232
-6920
-7710

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + MIN( DISTINCT col2 ) + + COUNT( + col2 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1258
SELECT + MIN ( DISTINCT col2 ) + + COUNT ( + col2 ) FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL - 55, - col2 AS col2 FROM tab0 AS cor0
----
-55
-10
-55
-47
-55
-99

query I rowsort
SELECT + - 51 + 43 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + - col1 col1 FROM tab0 WHERE NOT ( - + col1 ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * 23 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT DISTINCT COUNT( * ) + - 72 * CAST( MIN( ALL + col1 ) - + COUNT( * ) AS SIGNED ) FROM tab1 WHERE - col1 < ( + col0 )
----
-141

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT COUNT ( * ) + - 72 * CAST ( MIN ( ALL + col1 ) - + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE - col1 < ( + col0 )
----
-141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > ( - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + + - col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE - col1 + - + 70 <> NULL
----

query I rowsort
SELECT ALL col1 * - + 11 + ( + + col2 ) + col2 * 85 FROM tab0 AS cor0
----
3151
629
8503

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL - COUNT( * ) - - 15 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL - COUNT ( * ) - - 15 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1274
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 50 * 24 + + CAST( NULL AS DECIMAL ) - - 67 * col1 )
----

skipif mysql # not compatible
query III rowsort label-1274
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 50 * 24 + + CAST ( NULL AS REAL ) - - 67 * col1 )
----

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

query I rowsort
SELECT ALL - ( - 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT + 7 DIV 23 DIV - MAX( DISTINCT + col2 ) DIV 9 + MIN( + 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 7 / 23 / - MAX ( DISTINCT + col2 ) / 9 + MIN ( + 20 ) FROM tab1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ( - col1 ) * col1 DIV 27 AS col2 FROM tab0
----
-16
-243
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT ( - col1 ) * col1 / 27 AS col2 FROM tab0
----
-16
-243
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL + + col0 DIV - + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + + col0 / - + col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL - col1 * - col1 + CAST( - 82 + col1 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 23
----

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - col1 * - col1 + CAST ( - 82 + col1 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 23
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + SUM( + ( + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1283
SELECT + SUM ( + ( + col2 ) ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1284
SELECT - col1, + 14 + - col2 * + - CAST( NULL AS SIGNED ) * - + col2 + - 79 * 34 AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1284
SELECT - col1, + 14 + - col2 * + - CAST ( NULL AS INTEGER ) * - + col2 + - 79 * 34 AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + + col2 ) ) <= ( col0 * - col0 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + col2 * 69 AS col0 FROM tab0
----
3243
6831
690

query II rowsort
SELECT ALL 36, - col1 + - 89 * 69 AS col0 FROM tab1
----
36
-6146
36
-6155
36
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL COUNT( * ) * + 79 AS col1 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL COUNT ( * ) * + 79 AS col1 FROM tab2
----
237

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1291
SELECT ALL + col1 / - col1 col0 FROM tab0 cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + col1 / + col1 AS col1 FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT col2 / + col0 * - 81 AS col1 FROM tab2 WHERE NULL > 25
----

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

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

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

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

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1298
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab0 cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 81 * - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT col1 DIV + col0 - - 0 - + 48 AS col2 FROM tab2
----
-47
-47
-48

skipif mysql # not compatible
query I rowsort label-1300
SELECT col1 / + col0 - - 0 - + 48 AS col2 FROM tab2
----
-47
-47
-48

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + 33 IS NOT NULL
----

query I rowsort
SELECT - 78 + + 38 AS col0 FROM tab1
----
-40
-40
-40

query II rowsort
SELECT - col2 + 37 * - col0, col0 FROM tab1
----
-1983
51
-3204
85
-3435
91

query I rowsort
SELECT DISTINCT 65 + 74 FROM tab0
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL CAST( NULL AS SIGNED ) * 33 / + COUNT( * ) * MIN( - + col2 ) + + COUNT( ALL + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL CAST ( NULL AS INTEGER ) * 33 / + COUNT ( * ) * MIN ( - + col2 ) + + COUNT ( ALL + col2 ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT ALL - col1 + + ( - col0 ) AS col0, col0 + + 42 AS col2 FROM tab0 AS cor0
----
-108
129
-96
57
-98
139

query I rowsort
SELECT 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 19 < - col2 + - 40 - - ( + col1 ) / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 + + 23 FROM tab2 AS cor0 WHERE NOT col1 = + col2
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + SUM( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT ( - 43 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT ( - 43 ) IS NOT NULL
----
NULL

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

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

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

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

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

query II rowsort
SELECT col1 * - - 16 AS col1, 32 FROM tab2 cor0
----
1072
32
1232
32
816
32

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

skipif mysql # not compatible
query II rowsort label-1318
SELECT - + CAST ( + col2 AS INTEGER ) AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT - - COUNT( * ) - - 14 FROM tab1 cor0 WHERE NULL <> ( NULL )
----
14

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - - COUNT ( * ) - - 14 FROM tab1 cor0 WHERE NULL <> ( NULL )
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT - MIN( - ( + ( + 8 ) ) ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - MIN ( - ( + ( + 8 ) ) ) FROM tab0
----
8

query I rowsort
SELECT ALL + col0 * 49 AS col0 FROM tab2
----
2254
3136
3675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL + - 28 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + - 28 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - col1, ( - + col2 ), + - col0 + col0 )
----

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

query I rowsort
SELECT + - col1 * + 93 AS col2 FROM tab0 AS cor0
----
-1953
-7533
-93

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col1 AS col2, + 39 * + + 92 * ( - col0 ) + - col1 FROM tab2
----
-51
-165099
-67
-269167
-77
-229709

query I rowsort
SELECT + 74 + col0 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT ALL col0 + 91 AS col2 FROM tab1 AS cor0
----
142
176
182

query I rowsort
SELECT + col2 + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT 3 * - col2 + - - 50 * + col2 AS col2 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT + 53 - + + 87 AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 + + col0, 5 * + col1 )
----

query II rowsort
SELECT ALL - - col2, + col2 + - 99 AS col1 FROM tab1 AS cor0
----
59
-40
68
-31
96
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col0 + - col0 col2 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 17 + + 53 <> + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 17 + + 53 <> + + col2
----
-3

query I rowsort
SELECT ALL + + col2 - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab1 WHERE + col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> + - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + - col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT + col0 + + col2 - - - 12 * 89 AS col0 FROM tab0
----
-1006
-872
-971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + - col2 col0 FROM tab2 WHERE - - col0 IS NOT NULL
----
-1680
-2436
-966

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

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

query I rowsort
SELECT DISTINCT - ( - - 43 ) * - + ( col1 ) + col1 * - col1 AS col1 FROM tab0
----
-3078
42
462

query I rowsort
SELECT + - 63 - - - col0 AS col1 FROM tab1 AS cor0
----
-114
-148
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT col0 DIV 24 * - col2 FROM tab0 AS cor0
----
-30
-396
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT col0 / 24 * - col2 FROM tab0 AS cor0
----
-30
-396
0

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

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

query I rowsort
SELECT + + 53 * + + 13 AS col1 FROM tab0 cor0
----
689
689
689

query I rowsort
SELECT + + col0 * + + col1 + - + 5 * + ( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 84 FROM tab1
----
1176
3948
420

query I rowsort
SELECT ( 20 ) AS col2 FROM tab2
----
20
20
20

query I rowsort
SELECT DISTINCT - 87 * - - col1 * - col2 + - col1 AS col0 FROM tab0
----
18249
331128
8612

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1360
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) - col1 BETWEEN - 44 AND + 35
----

skipif mysql # not compatible
query III rowsort label-1360
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) - col1 BETWEEN - 44 AND + 35
----

query I rowsort
SELECT ALL + col0 * - col2 + - col2 AS col0 FROM tab2
----
-1081
-2600
-4408

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 31 col1 FROM tab2
----
106
77
95

query I rowsort
SELECT ALL + 96 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT + - MIN( - + 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1367
SELECT + - MIN ( - + 12 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - - col2 + - 54 FROM tab2 cor0
----
-14
-31
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT - + ( - col0 ) - + col2 + - col0 DIV + 71 - - + 5 AS col0 FROM tab2 AS cor0
----
21
28
29

skipif mysql # not compatible
query I rowsort label-1369
SELECT - + ( - col0 ) - + col2 + - col0 / + 71 - - + 5 AS col0 FROM tab2 AS cor0
----
21
28
29

query I rowsort
SELECT - col2 - + 21 FROM tab1 AS cor0
----
-117
-80
-89

query I rowsort
SELECT + - col2 - + 51 * + - col2 AS col2 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # DIV for integer division: 
query II rowsort label-1372
SELECT DISTINCT col0 AS col0, col1 DIV - + 39 FROM tab1
----
51
0
85
0
91
-1

skipif mysql # not compatible
query II rowsort label-1372
SELECT DISTINCT col0 AS col0, col1 / - + 39 FROM tab1
----
51
0
85
0
91
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL - COUNT( * ) AS col0, 74 * COUNT( * ) col1 FROM tab1
----
-3
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1373
SELECT ALL - COUNT ( * ) AS col0, 74 * COUNT ( * ) col1 FROM tab1
----
-3
222

query I rowsort
SELECT - 4 + col2 AS col0 FROM tab2
----
19
36
54

query I rowsort
SELECT ALL col0 + + col0 * - ( + 20 ) AS col1 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + MIN( col0 ) * ( + 18 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + MIN ( col0 ) * ( + 18 ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + - COUNT( - 64 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1377
SELECT + - COUNT ( - 64 ) col1 FROM tab0 AS cor0
----
-3

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

query II rowsort
SELECT DISTINCT col2 * + col0 AS col2, - 81 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
705
-81
870
-81
9603
-81

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

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-23

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

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

query I rowsort
SELECT - ( - 14 ) * + - col1 FROM tab1 cor0
----
-196
-658
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + 19 * - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + 19 * - COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NULL < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0 + + col2
----

query I rowsort
SELECT 58 FROM tab0 WHERE + col0 IN ( + - col1 * 94 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ALL ( - - 60 ) + - - col1 DIV - - 80 FROM tab0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL ( - - 60 ) + - - col1 / - - 80 FROM tab0
----
60
60
61

query I rowsort
SELECT DISTINCT col0 * 42 + - col1 FROM tab1 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
2128
3565
3775

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col1 + + 30 * - + col1 / + col0 * - col0
----

query I rowsort
SELECT + col0 + + - 29 * - col1 AS col1 FROM tab1
----
1454
230
457

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL - ( + SUM( - + 10 ) ) * - COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL - ( + SUM ( - + 10 ) ) * - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT col0 / + - col2 * - - col1 FROM tab0 AS cor0 WHERE 60 / - - col0 + - 73 - - col2 <= NULL
----

query I rowsort
SELECT col0 + - col1 + - 11 FROM tab0 AS cor0
----
-77
55
85

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

query I rowsort
SELECT ALL - + ( - - 45 ) + - 20 AS col0 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1402
SELECT ALL * FROM tab2 WHERE NOT + col0 + + - ( CAST( NULL AS SIGNED ) ) NOT BETWEEN - 32 AND - 56 * col0 * - ( + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1402
SELECT ALL * FROM tab2 WHERE NOT + col0 + + - ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN - 32 AND - 56 * col0 * - ( + - col0 )
----

query I rowsort
SELECT ALL 68 - + + 21 FROM tab0
----
47
47
47

query I rowsort
SELECT DISTINCT ( + 24 ) FROM tab1
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT 72 * - COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1406
SELECT 72 * - COUNT ( * ) FROM tab0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * 5 col0 FROM tab2
----
335
335
335

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

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

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

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

query I rowsort
SELECT 21 * - 35 FROM tab2
----
-735
-735
-735

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT + CAST( + 28 AS SIGNED ) * - col2 col1 FROM tab0 AS cor0
----
-1316
-2772
-280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1413
SELECT + CAST ( + 28 AS INTEGER ) * - col2 col1 FROM tab0 AS cor0
----
-1316
-2772
-280

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1414
SELECT DISTINCT 42 * + col2 + + + CAST ( NULL AS REAL ) + - col1 * + - col0 col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT + + 35 DIV + col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1416
SELECT + + 35 / + col2 FROM tab0 AS cor0
----
0
0
3

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT - COUNT ( + ( 90 ) ) AS col0 FROM tab0
----
-3

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

query I rowsort
SELECT 75 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col1 OR 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 - - 52 * - + col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - ( + col1 ) ) * + 95 + - - col1 IS NULL
----
-2438
23
-3392
40
-3975
58

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

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

query I rowsort
SELECT ALL - + 9 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 5 + - + AVG ( + 74 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 5 + - + AVG ( + 74 ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 + + col2 * + + col2 AS col1 FROM tab2
----
1664
3439
575

query II rowsort
SELECT - 85 + - + ( - + col0 ) AS col2, col2 * + col1 * col0 - + + col1 + 83 - 12 AS col2 FROM tab1
----
-34
68601
0
25141
6
290860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1428
SELECT 19 + - CAST( NULL AS SIGNED ), + COUNT( 53 ) + + 72 AS col1 FROM tab0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-1428
SELECT 19 + - CAST ( NULL AS INTEGER ), + COUNT ( 53 ) + + 72 AS col1 FROM tab0
----
NULL
75

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

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

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

query I rowsort
SELECT - 39 * col0 + - + col1 FROM tab0 AS cor0
----
-3414
-3784
-666

query I rowsort
SELECT - 92 + - col1 AS col2 FROM tab0
----
-113
-173
-93

query I rowsort
SELECT + ( - 70 ) + - - 1 FROM tab1 WHERE - - col1 IS NULL
----

query II rowsort
SELECT ALL 33 * - - col0 - + - ( + col1 ) AS col2, + col2 AS col1 FROM tab0 AS cor0
----
2892
10
3202
99
576
47

query I rowsort
SELECT DISTINCT - + col2 - 4 AS col2 FROM tab2 AS cor0
----
-27
-44
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 = - 13 / - - col2 + - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - ( COUNT( * ) ) * ( + MIN( ALL - col0 ) ) FROM tab2 cor0
----
225

skipif mysql # not compatible
query I rowsort label-1439
SELECT - ( COUNT ( * ) ) * ( + MIN ( ALL - col0 ) ) FROM tab2 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT 62 * + COUNT( * ) col1 FROM tab2
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1440
SELECT 62 * + COUNT ( * ) col1 FROM tab2
----
186

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + ( + MAX( DISTINCT ( - + col2 ) ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1443
SELECT + ( + MAX ( DISTINCT ( - + col2 ) ) ) AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT ALL + 25 * 31 * + MIN( + col0 ), + 51 AS col0 FROM tab1
----
39525
51

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL + 25 * 31 * + MIN ( + col0 ), + 51 AS col0 FROM tab1
----
39525
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 49 col0 FROM tab0
----
-4263
-4753
-735

query II rowsort
SELECT - - col1, col1 + - col0 + 57 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 4 + - 83 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1447
SELECT - - 59 DIV COUNT( - col0 ) * + COUNT( ALL col1 ) - + + 13 + - COUNT( - CAST( - 3 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-1447
SELECT - - 59 / COUNT ( - col0 ) * + COUNT ( ALL col1 ) - + + 13 + - COUNT ( - CAST ( - 3 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
41

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT ALL - COUNT( - + 32 ) DIV + 70 * + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - COUNT ( - + 32 ) / + 70 * + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + MIN( + + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1450
SELECT + MIN ( + + col1 ) FROM tab0 cor0
----
1

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

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

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

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

query I rowsort
SELECT + - col2 + - - 45 FROM tab0 AS cor0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - 29 * + - 9 * - 87 + - SUM( DISTINCT col0 ) FROM tab0
----
-22906

skipif mysql # not compatible
query I rowsort label-1455
SELECT - 29 * + - 9 * - 87 + - SUM ( DISTINCT col0 ) FROM tab0
----
-22906

query I rowsort
SELECT ALL - - col2 + - col0 AS col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT + 78 * - - 73 + COUNT( * ) * - COUNT( - col2 ) AS col1 FROM tab1
----
5685

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + 78 * - - 73 + COUNT ( * ) * - COUNT ( - col2 ) AS col1 FROM tab1
----
5685

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1459
SELECT * FROM tab0 WHERE + + col1 / - - col2 + CAST( NULL AS SIGNED ) / - 62 + + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1459
SELECT * FROM tab0 WHERE + + col1 / - - col2 + CAST ( NULL AS INTEGER ) / - 62 + + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col0 / - + 56 IS NOT NULL
----

query I rowsort
SELECT ALL 6 + - col2 + + 32 AS col0 FROM tab1 AS cor0
----
-21
-30
-58

query I rowsort
SELECT + - col2 - + - 38 FROM tab0 AS cor0
----
-61
-9
28

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

query I rowsort
SELECT DISTINCT ( col1 ) + + ( - col1 ) * col0 FROM tab0
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + col2 col1 FROM tab2
----
64
81
99

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

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

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

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

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

query II rowsort
SELECT DISTINCT 28 AS col1, col2 FROM tab1
----
28
59
28
68
28
96

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

query I rowsort
SELECT ALL - col2 * - - col2 AS col2 FROM tab2
----
-1600
-3364
-529

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> - - 1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * + col1 col2 FROM tab0 AS cor0
----
-1
-531441
-9261

query I rowsort
SELECT DISTINCT - 79 + - + col0 FROM tab1
----
-130
-164
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT MIN( DISTINCT + col1 ) + 83 + 59 DIV - - 50 + - + ( + MAX( DISTINCT - col0 ) ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-1477
SELECT MIN ( DISTINCT + col1 ) + 83 + 59 / - - 50 + - + ( + MAX ( DISTINCT - col0 ) ) FROM tab0
----
100

query I rowsort
SELECT DISTINCT - 53 + 0 FROM tab0
----
-53

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

query I rowsort
SELECT DISTINCT col0 + - 81 + 7 AS col2 FROM tab0
----
-59
13
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1481
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1481
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 75 col2 FROM tab1
----
-24
10
16

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) = NULL )
----

query I rowsort
SELECT + 27 - col0 AS col1 FROM tab0
----
-60
-70
12

query I rowsort
SELECT - 12 + + col0 FROM tab2
----
34
52
63

query I rowsort
SELECT ALL + col2 + - col1 * - 14 * col1 FROM tab1 AS cor0
----
2840
30994
409

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, + 3 FROM tab0
----
-15
3
-87
3
-97
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col1 + - col2 col1 FROM tab2
----
23
-74
40
-117
58
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT col1 DIV col2 * col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT col1 / col2 * col0 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL + + 53 AS col0, + 92 + + 47 AS col1 FROM tab0 cor0
----
53
139
53
139
53
139

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT + MIN( - + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1496
SELECT + MIN ( - + col1 ) FROM tab1 cor0
----
-47

query II rowsort
SELECT ALL col1 AS col1, - ( + col1 ) * col1 * + col2 FROM tab2 AS cor0
----
51
-59823
67
-260362
77
-237160

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

query I rowsort
SELECT - col0 * + col1 * + + col0 * - 10 AS col0 FROM tab2
----
1079160
3153920
3768750

query I rowsort
SELECT DISTINCT 83 * + 8 FROM tab2
----
664

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= + - col2
----

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

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

query II rowsort
SELECT ALL - + 63, + col1 / - - col1 + - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1504
SELECT * FROM tab1 WHERE NOT - ( + - col2 ) * - ( + 96 ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT IN ( + col1, col0 + + col0, 18 )
----

skipif mysql # not compatible
query III rowsort label-1504
SELECT * FROM tab1 WHERE NOT - ( + - col2 ) * - ( + 96 ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT IN ( + col1, col0 + + col0, 18 )
----

query II rowsort
SELECT ALL 44 AS col0, - 31 AS col2 FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT ALL - 82 * 14 FROM tab2 AS cor0
----
-1148
-1148
-1148

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

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

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

query I rowsort
SELECT DISTINCT - 25 * + 15 FROM tab0
----
-375

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

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

query I rowsort
SELECT ALL - col2 + 87 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-185
-7492
-9421

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL COUNT( DISTINCT - - 49 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL COUNT ( DISTINCT - - 49 ) FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT MIN( - 59 ) + + 64 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-1515
SELECT MIN ( - 59 ) + + 64 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5
3

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

query I rowsort
SELECT + - col2 * + ( - col0 ) + + col0 FROM tab0 cor0
----
720
957
9700

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT MAX ( + ( col0 ) ) + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT 10 FROM tab2 AS cor0 WHERE col1 * - col2 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT 4 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT 4 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT DISTINCT + SUM( - 13 ) DIV - 78 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1522
SELECT DISTINCT + SUM ( - 13 ) / - 78 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT 9 + ( 87 ) + - - 68 + + 87 + - 34 * + - COUNT( + 47 ) * 44 * + + 94 col1 FROM tab1
----
422123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1523
SELECT DISTINCT 9 + ( 87 ) + - - 68 + + 87 + - 34 * + - COUNT ( + 47 ) * 44 * + + 94 col1 FROM tab1
----
422123

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL + 14 - + 66 + + COUNT( * ) AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + 14 - + 66 + + COUNT ( * ) AS col0 FROM tab0
----
-49

query I rowsort
SELECT - 67 - - 86 * + + ( + 70 ) + - 15 AS col2 FROM tab0 AS cor0
----
5938
5938
5938

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

query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT COUNT( ALL CAST( col2 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1528
SELECT COUNT ( ALL CAST ( col2 AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL + 23 DIV - COUNT( * ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + 23 / - COUNT ( * ) AS col1 FROM tab1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT - SUM( DISTINCT col2 ) DIV + 49 AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1530
SELECT - SUM ( DISTINCT col2 ) / + 49 AS col1 FROM tab1
----
-4

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1532
SELECT + + col0 DIV + - col1 + + col0, col1 AS col0 FROM tab1 AS cor0
----
48
14
68
5
90
47

skipif mysql # not compatible
query II rowsort label-1532
SELECT + + col0 / + - col1 + + col0, col1 AS col0 FROM tab1 AS cor0
----
48
14
68
5
90
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1535
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col0, + col2 + + col2 + 53 + - col1 / col1 * ( + CAST( NULL AS SIGNED ) ), + 27, - 90 )
----

skipif mysql # not compatible
query III rowsort label-1535
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col0, + col2 + + col2 + 53 + - col1 / col1 * ( + CAST ( NULL AS INTEGER ) ), + 27, - 90 )
----

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

skipif mysql # not compatible
query II rowsort label-1536
SELECT CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col0 FROM tab2
----
NULL
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 + col0 col0 FROM tab1
----
-1
-35
5

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - col1 ) + + 5 BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col2 / + ( + 79 ) FROM tab1 WHERE + col0 <> NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL BETWEEN + - col0 * col1 / - - 55 + - col1 * - - col1 AND NULL )
----

query I rowsort
SELECT + 40 - - - 64 - + col1 AS col1 FROM tab2
----
-101
-75
-91

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 WHERE + 21 IS NULL
----

query I rowsort
SELECT ALL + 86 * + 48 * + col2 * + + col1 FROM tab2
----
12714240
16041408
4842144

query I rowsort
SELECT DISTINCT + 80 + + col2 + + - col0 * + col1 AS col2 FROM tab1
----
-286
-4129
-538

query I rowsort
SELECT DISTINCT - 53 + - col0 FROM tab0
----
-140
-150
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1551
SELECT DISTINCT col2 * 75 - + col1 + + CAST( NULL AS SIGNED ) AS col1, + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1551
SELECT DISTINCT col2 * 75 - + col1 + + CAST ( NULL AS INTEGER ) AS col1, + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ( + 65 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + 39 * + col0 AS col0 FROM tab2 AS cor0
----
1794
2496
2925

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

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

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT col1 * - + ( - + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) / + col1 AND + 17
----

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

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

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

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

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

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

query I rowsort
SELECT - 74 * 57 * col0 AS col1 FROM tab0 AS cor0
----
-366966
-409146
-63270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT ALL + COUNT( + + col2 ) DIV + 52 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL + COUNT ( + + col2 ) / + 52 FROM tab2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT DISTINCT + 52 DIV - col2 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + 52 / - col2 AS col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT ( + col0 ) + - + col2 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - 19 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - 19 < NULL
----
NULL

query II rowsort
SELECT - col2 AS col2, 32 + + 52 AS col0 FROM tab0 AS cor0
----
-10
84
-47
84
-99
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * col2 - - col1 col2 FROM tab1 AS cor0
----
1362
1611
2222

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT DISTINCT - + 43 AS col1, + SUM( ALL 34 ) FROM tab2 AS cor0
----
-43
102

skipif mysql # not compatible
query II rowsort label-1569
SELECT DISTINCT - + 43 AS col1, + SUM ( ALL 34 ) FROM tab2 AS cor0
----
-43
102

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

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

query I rowsort
SELECT DISTINCT - 75 + + 2 FROM tab0
----
-73

query I rowsort
SELECT col1 + ( - 49 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1076
-1883
-2775

query I rowsort
SELECT + 81 + - col1 AS col2 FROM tab1 AS cor0
----
34
67
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 48 IN ( - col0, + col1 + + 90 )
----

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

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

query II rowsort
SELECT DISTINCT + - col0 AS col2, 27 FROM tab0 AS cor0
----
-15
27
-87
27
-97
27

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT - + 20 + COUNT ( * ) / COUNT ( * ) / 48 AS col1 FROM tab0 AS cor0
----
-20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1579
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) * 44 DIV + 96 AS col0 FROM tab2 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-1579
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) * 44 / + 96 AS col0 FROM tab2 AS cor0
----
3
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL - ( - MIN( ALL + 56 ) ) + - 74 * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - ( - MIN ( ALL + 56 ) ) + - 74 * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL + 52 - COUNT( + col0 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + 52 - COUNT ( + col0 ) FROM tab1
----
49

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT col2 AS col1 FROM tab0 WHERE + col0 = + + ( + - CAST ( NULL AS INTEGER ) ) + - + col0 * - col2
----

query I rowsort
SELECT - col1 - + col1 * - + col0 AS col0 FROM tab0 WHERE NOT ( + ( - col0 ) BETWEEN NULL AND + col2 + - - col0 + + col2 / + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 65 * + + col0 * - + ( - col0 ) col2 FROM tab1 AS cor0
----
-16230240
-27707875
-36602020

query I rowsort
SELECT ALL + - 4 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL ( + 29 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + 14 * + col1 AS col2 FROM tab2
----
1078
714
938

query I rowsort
SELECT - 55 * - - 48 AS col0 FROM tab1
----
-2640
-2640
-2640

query I rowsort
SELECT ALL + + col2 * - - 30 FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT + col1 DIV + + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT + col1 / + + col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 93 col0 FROM tab1 AS cor0
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1594
SELECT - MIN( col0 ) DIV + + SUM( ALL - - col1 ) * + 85 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT - MIN ( col0 ) / + + SUM ( ALL - - col1 ) * + 85 FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT DISTINCT - 58, col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT - 58 - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col1 > NULL
----
-58

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - 58 - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 > NULL
----
-58

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

query I rowsort
SELECT + + ( 0 ) AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL - MIN( DISTINCT - 84 ) col0 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1600
SELECT ALL - MIN ( DISTINCT - 84 ) col0 FROM tab0
----
84

query I rowsort
SELECT DISTINCT col1 + + - 77 - - 72 + col2 * + - col0 AS col2 FROM tab2
----
-1012
-2488
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - MIN( - 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-1602
SELECT - MIN ( - 8 ) FROM tab1
----
8

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

query I rowsort
SELECT DISTINCT 74 + ( + + 14 ) AS col1 FROM tab0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT ALL 74 * + CAST( + + col2 AS SIGNED ) + + - col1 FROM tab2
----
1651
2883
4225

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 74 * + CAST ( + + col2 AS INTEGER ) + + - col1 FROM tab2
----
1651
2883
4225

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT DISTINCT 1 DIV COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT 1 / COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 91 + + 71 AS col0 FROM tab0
----
162

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

query I rowsort
SELECT - col0 * + - col2 + col0 AS col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT ALL - ( 1 ) * 91 + - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 27d484b9f50b0dcf369533b0063708a0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 43 NOT BETWEEN 39 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT + 57 + - COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + 57 + - COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
54

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

query I rowsort
SELECT ALL + - 20 + 90 AS col0 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT - col2 + - col0 + col2 * + col2 FROM tab0 AS cor0
----
2147
3
9605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1618
SELECT col0 * 54 + CAST( - 5 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2749
4585
4909

skipif mysql # not compatible
query I rowsort label-1618
SELECT col0 * 54 + CAST ( - 5 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2749
4585
4909

query I rowsort
SELECT ALL + ( col1 ) - + - 37 FROM tab0 AS cor0
----
118
38
58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT - 19, - COUNT( ( + - 15 ) ) AS col1 FROM tab1
----
-19
-3

skipif mysql # not compatible
query II rowsort label-1621
SELECT - 19, - COUNT ( ( + - 15 ) ) AS col1 FROM tab1
----
-19
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 51 col2 FROM tab2
----
3876
3876
3876

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1623
SELECT 63 AS col2, ( - - col0 ) * - ( + col0 ) + - - 57 * - ( ( + col1 ) ) * + + col0 * + - col2 / - CAST( NULL AS SIGNED ) * + + col1 * + 75 * - col2 / - 64 AS col0 FROM tab1
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-1623
SELECT 63 AS col2, ( - - col0 ) * - ( + col0 ) + - - 57 * - ( ( + col1 ) ) * + + col0 * + - col2 / - CAST ( NULL AS INTEGER ) * + + col1 * + 75 * - col2 / - 64 AS col0 FROM tab1
----
63
NULL
63
NULL
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT + MAX( ALL - ( + col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + MAX ( ALL - ( + col1 ) ) AS col1 FROM tab2
----
-51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT + + COUNT( * ) DIV COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1626
SELECT + + COUNT ( * ) / COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT col2 + + - 93 + + 93 + col0 DIV 81 * - 29 col2 FROM tab0 AS cor0
----
-19
47
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1627
SELECT DISTINCT col2 + + - 93 + + 93 + col0 / 81 * - 29 col2 FROM tab0 AS cor0
----
-19
47
70

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT MAX( ALL col2 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1631
SELECT MAX ( ALL col2 ) / + COUNT ( * ) FROM tab1 AS cor0
----
32

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

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

query I rowsort
SELECT col2 * col0 + 2 AS col2 FROM tab0 AS cor0
----
707
872
9605

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT 75 + 57 + - COUNT( * ) AS col1, + MIN( ALL col1 ) FROM tab1 AS cor0
----
129
5

skipif mysql # not compatible
query II rowsort label-1634
SELECT 75 + 57 + - COUNT ( * ) AS col1, + MIN ( ALL col1 ) FROM tab1 AS cor0
----
129
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT - ( + - 28 ) DIV ( + 50 ) + + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1635
SELECT - ( + - 28 ) / ( + 50 ) + + - col1 FROM tab2
----
-51
-67
-77

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND 36
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1638
SELECT 85 AS col2, - col2 DIV + col0 AS col0 FROM tab0
----
85
-1
85
-3
85
0

skipif mysql # not compatible
query II rowsort label-1638
SELECT 85 AS col2, - col2 / + col0 AS col0 FROM tab0
----
85
-1
85
-3
85
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT MAX( + col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1640
SELECT MAX ( + col2 ) AS col0 FROM tab2 cor0
----
58

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

skipif mysql # not compatible
query II rowsort label-1641
SELECT - + COUNT ( * ), 6 AS col0 FROM tab2 AS cor0
----
-3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 42 col2, + ( col2 ) AS col1 FROM tab1 AS cor0
----
42
59
42
68
42
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT - ( col2 ) DIV 72 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT - ( col2 ) / 72 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1645
SELECT COUNT ( * ) / 50 AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / - col1 IN ( - 7 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL + COUNT( * ) * - CAST( 91 AS SIGNED ) AS col1 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + COUNT ( * ) * - CAST ( 91 AS INTEGER ) AS col1 FROM tab0
----
-273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) <= + col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT CAST( - col0 AS SIGNED ) * 3 AS col2 FROM tab0
----
-261
-291
-45

skipif mysql # not compatible
query I rowsort label-1650
SELECT CAST ( - col0 AS INTEGER ) * 3 AS col2 FROM tab0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT + MAX( - col1 ) FROM tab2 WHERE NOT ( 92 + - col2 * 42 ) NOT BETWEEN ( - col0 ) / ( 51 ) AND - col2 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + MAX ( - col1 ) FROM tab2 WHERE NOT ( 92 + - col2 * 42 ) NOT BETWEEN ( - col0 ) / ( 51 ) AND - col2 * 11
----
NULL

query I rowsort
SELECT ALL 74 * + col1 AS col0 FROM tab2
----
3774
4958
5698

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

query I rowsort
SELECT ALL - col2 * 55 FROM tab1
----
-3245
-3740
-5280

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) <> ( 90 )
----

query I rowsort
SELECT 79 FROM tab0 WHERE 24 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT DISTINCT + col1 * + ( + col0 DIV ( - col2 ) ) FROM tab0
----
-168
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + col1 * + ( + col0 / ( - col2 ) ) FROM tab0
----
-168
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL + col0 DIV col0 + - col1 col0 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT ALL + col0 / col0 + - col1 col0 FROM tab2
----
-50
-66
-76

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

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

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

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

query I rowsort
SELECT DISTINCT 90 + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + col0 * col0 AS col2 FROM tab2
----
2093
4056
5567

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 = col0 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL col2 * + col2 - col0 DIV 99 AS col1 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL col2 * + col2 - col0 / 99 AS col1 FROM tab1
----
3481
4624
9216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL COUNT( * ) + ( 21 ) * 40 FROM tab2
----
843

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL COUNT ( * ) + ( 21 ) * 40 FROM tab2
----
843

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( - col1 ) AND + 41 * col1
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - 22 * 91 + col1 NOT BETWEEN - col1 AND - 6
----

query I rowsort
SELECT ALL 62 * - 48 FROM tab0
----
-2976
-2976
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT MIN( col2 ) + MIN( ALL ( 43 ) - - col0 ) AS col1 FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-1673
SELECT MIN ( col2 ) + MIN ( ALL ( 43 ) - - col0 ) AS col1 FROM tab2
----
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COUNT( * ) * - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1675
SELECT COUNT ( * ) * - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT + - SUM( DISTINCT col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1676
SELECT + - SUM ( DISTINCT col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT ALL + 11 + - col0 * 77 AS col2 FROM tab1 AS cor0
----
-3916
-6534
-6996

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

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

query I rowsort
SELECT ALL + 23 AS col2 FROM tab2 cor0
----
23
23
23

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

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

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

query I rowsort
SELECT - 4 * - col0 FROM tab0 cor0
----
348
388
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT COUNT( * ) * - SUM( + 92 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT COUNT ( * ) * - SUM ( + 92 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT + 79 + + 93 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) * CAST( NULL AS SIGNED ) <= col1
----

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 79 + + 93 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) * CAST ( NULL AS INTEGER ) <= col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT 54 DIV - col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-1688
SELECT 54 / - col1 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT + col0 * - col0 * + col1 AS col2 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT 8 * col1 * + 59 AS col1 FROM tab1
----
22184
2360
6608

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

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

query I rowsort
SELECT - 43 * col2 + 42 AS col2 FROM tab1
----
-2495
-2882
-4086

query I rowsort
SELECT DISTINCT - 43 * + + 10 * 83 + + col2 FROM tab0
----
-35591
-35643
-35680

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 28 + COUNT( * ) * COUNT( DISTINCT + 27 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 28 + COUNT ( * ) * COUNT ( DISTINCT + 27 ) FROM tab1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT ALL - col0 * + col0 + - col1 DIV - col0 FROM tab2 AS cor0
----
-2115
-4095
-5625

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - col0 * + col0 + - col1 / - col0 FROM tab2 AS cor0
----
-2115
-4095
-5625

query I rowsort
SELECT DISTINCT 2 * + - col2 * col0 + - 47 FROM tab2 cor0
----
-2163
-5167
-8747

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col0 + 50 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col0 + 50 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL - 88 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - 88 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT col1 DIV - col2 AS col2 FROM tab2 AS cor0 WHERE col2 > - col1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1699
SELECT col1 / - col2 AS col2 FROM tab2 AS cor0 WHERE col2 > - col1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT ( + col1 ) - - col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT ( + col1 ) - - col1 / - col2 AS col1 FROM tab2 AS cor0
----
49
66
76

query II rowsort
SELECT 29, col1 AS col2 FROM tab1
----
29
14
29
47
29
5

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

query I rowsort
SELECT DISTINCT col2 - ( - col2 ) FROM tab0
----
198
20
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT ALL 66 AS col2, - SUM( ALL col1 ) col2 FROM tab2
----
66
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1705
SELECT ALL 66 AS col2, - SUM ( ALL col1 ) col2 FROM tab2
----
66
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + COUNT( * ) * SUM( ALL + col2 * + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 * - col2 ) BETWEEN NULL AND ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + COUNT ( * ) * SUM ( ALL + col2 * + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 * - col2 ) BETWEEN NULL AND ( + 38 )
----
NULL

query II rowsort
SELECT ALL + - col0, col1 * + col2 AS col2 FROM tab2 AS cor0
----
-46
1173
-64
3080
-75
3886

query II rowsort
SELECT 10 AS col2, - 40 AS col0 FROM tab0 AS cor0
----
10
-40
10
-40
10
-40

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT + + COUNT( * ) AS col2, 71 * + COUNT( * ) FROM tab1 AS cor0
----
3
213

skipif mysql # not compatible
query II rowsort label-1710
SELECT + + COUNT ( * ) AS col2, 71 * + COUNT ( * ) FROM tab1 AS cor0
----
3
213

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

query I rowsort
SELECT + 13 * - - 61 AS col1 FROM tab1 AS cor0
----
793
793
793

query I rowsort
SELECT 35 * + col2 FROM tab1
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - MIN( DISTINCT + col1 ) col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 15 / - + 52 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1714
SELECT - MIN ( DISTINCT + col1 ) col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 15 / - + 52 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 14 * col2, - 98 col1 FROM tab1
----
1344
-98
826
-98
952
-98

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + MIN ( - 62 ) AS col2 FROM tab0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL 99 DIV + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL 99 / + col2 AS col2 FROM tab1
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 96 + + 0 <> ( - 54 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT - MAX( + - ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT - MAX ( + - ( + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - + 15 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 - 14 * + 94 + - 0 <= - 75
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1724
SELECT MAX( - + col2 ) * - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT MAX ( - + col2 ) * - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 26 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1725
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 26 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL SUM( DISTINCT 14 ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL SUM ( DISTINCT 14 ) AS col0 FROM tab0
----
14

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab1
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - 10 + 93 + + MIN( ALL col1 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 10 + 93 + + MIN ( ALL col1 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT + col0 + - + col1 FROM tab0 cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + + col0 + col1 col1 FROM tab1 AS cor0
----
108
156
83

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT + col0 * - + col0 + + + col0 + - 72 + - - CAST ( NULL AS INTEGER ) * 45 * CAST ( - ( - col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 + col0 + + - 25 col2 FROM tab1 cor0
----
1
35
41

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT + + col0 + col2 DIV - - col0 - + col2 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1735
SELECT + + col0 + col2 / - - col0 - + col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col2 + - 61 FROM tab1 AS cor0
----
-2
35
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1737
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - col0 = + 31 + - + 30 * col1
----

skipif mysql # not compatible
query III rowsort label-1737
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - col0 = + 31 + - + 30 * col1
----

query I rowsort
SELECT + col2 + 8 FROM tab0 AS cor0
----
107
18
55

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

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL CAST ( + + ( - CAST ( - col2 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + col0 + 68 * 49 + 50 + ( + + col0 ) - - 23 AS col1 FROM tab0
----
3435
3579
3599

query I rowsort
SELECT - col1 FROM tab1 WHERE - 7 NOT IN ( - + col0 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT DISTINCT COUNT( * ), + 9 - + ( - 44 ) AS col0 FROM tab0
----
3
53

skipif mysql # not compatible
query II rowsort label-1743
SELECT DISTINCT COUNT ( * ), + 9 - + ( - 44 ) AS col0 FROM tab0
----
3
53

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

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - COUNT ( * ) + 17 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 >= - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1748
SELECT DISTINCT - + col2 + + 52 col0, - col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-16
1
-44
3
-7
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1748
SELECT DISTINCT - + col2 + + 52 col0, - col0 / - col1 AS col2 FROM tab1 AS cor0
----
-16
1
-44
3
-7
17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 19 IS NOT NULL OR ( NULL ) >= ( - 41 )
----

query I rowsort
SELECT DISTINCT - col0 - - 1 + - + 80 AS col2 FROM tab2
----
-125
-143
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL + - MAX( - 62 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + - MAX ( - 62 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1752
SELECT + CAST( NULL AS DECIMAL ) / + 8 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + CAST ( NULL AS REAL ) / + 8 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1753
SELECT DISTINCT col1 * + col0 * + + col1 AS col1, - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
119646
-23
336675
-58
379456
-40

skipif mysql # not compatible
query II rowsort label-1753
SELECT DISTINCT col1 * + col0 * + + col1 AS col1, - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
119646
-23
336675
-58
379456
-40

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( 85 / + - ( - col0 ) + + 5 + - 2 IN ( - col1 ) )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT 86 * + CAST( ( - - 32 ) AS SIGNED ) FROM tab0 AS cor0
----
2752

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT 86 * + CAST ( ( - - 32 ) AS INTEGER ) FROM tab0 AS cor0
----
2752

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - col2 * + 16 - + - col2 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT - - col2 * col2 DIV + 55 FROM tab2 AS cor0
----
29
61
9

skipif mysql # not compatible
query I rowsort label-1758
SELECT - - col2 * col2 / + 55 FROM tab2 AS cor0
----
29
61
9

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT DISTINCT col2, 34 DIV col1 AS col1 FROM tab0
----
10
1
47
0
99
34

skipif mysql # not compatible
query II rowsort label-1763
SELECT DISTINCT col2, 34 / col1 AS col1 FROM tab0
----
10
1
47
0
99
34

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

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + COUNT ( * ) * + + 53 FROM tab1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT - CAST( SUM( ALL col1 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < ( - col2 ) * 1 * - col2 + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT - CAST ( SUM ( ALL col1 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < ( - col2 ) * 1 * - col2 + + + 95
----
NULL

query I rowsort
SELECT 11 * + - col1 * + + col2 FROM tab1 AS cor0
----
-14784
-3245
-35156

query I rowsort
SELECT ALL col1 * - - 14 FROM tab2 AS cor0
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL 28 * + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
2548

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL 28 * + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
2548

query I rowsort
SELECT col1 * - - col0 + + 98 + + col2 * + + col0 FROM tab2
----
3502
7586
9473

query I rowsort
SELECT DISTINCT + 57 + + + col1 FROM tab0 AS cor0
----
138
58
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col2 col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 19 + + - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 19 + + - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT - 44 * + 72 + 52 FROM tab1 AS cor0
----
-3116
-3116
-3116

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT - COUNT( * ) DIV - + 97 - + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1777
SELECT - COUNT ( * ) / - + 97 - + COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT col2 + - - 69 + - col0 FROM tab2
----
45
46
52

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

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

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 WHERE NOT NULL >= ( NULL ) AND ( - 51 ) IS NOT NULL
----

query II rowsort
SELECT col0 + + ( col0 ) - + + col2 + + - col1 AS col1, 6 - - col2 AS col1 FROM tab1
----
-8
102
106
65
67
74

query I rowsort
SELECT DISTINCT + col0 * - - col1 + + col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT DISTINCT 29 + + - 79 AS col0 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL col1 * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + ( col1 ) + + col0 + col2 + - 76 / + 87 * ( 33 ) + 37 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1784
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + ( col1 ) + + col0 + col2 + - 76 / + 87 * ( 33 ) + 37 )
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT - COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT ALL col2 * - + col1 AS col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - 88 * col2 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT + AVG ( 12 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
NULL

query I rowsort
SELECT ALL col0 * - col1 - 58 FROM tab1 AS cor0
----
-4335
-483
-772

query II rowsort
SELECT 28 * col2 * - - 22, col0 + - ( col1 ) * 15 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 22 * - + 95 + - 26, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT DISTINCT + MIN( 53 ), 56 AS col0 FROM tab1 AS cor0
----
53
56

skipif mysql # not compatible
query II rowsort label-1791
SELECT DISTINCT + MIN ( 53 ), 56 AS col0 FROM tab1 AS cor0
----
53
56

query I rowsort
SELECT + - 89 * + + 2 FROM tab2 cor0
----
-178
-178
-178

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

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

query I rowsort
SELECT - col1 * - + ( + 28 ) FROM tab1
----
1316
140
392

query I rowsort
SELECT DISTINCT - col1 * + 65 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + - col1 - + - col1 NOT BETWEEN ( + - col2 / - col1 * 74 + + 83 + - 14 + + col1 * - col0 ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-1797
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - col1 - + - col1 NOT BETWEEN ( + - col2 / - col1 * 74 + + 83 + - 14 + + col1 * - col0 ) AND - col2
----
0

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

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

query I rowsort
SELECT ALL + col0 + - + 8 AS col1 FROM tab1
----
43
77
83

query I rowsort
SELECT DISTINCT - - col1 + ( col2 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + + col0 * + 39 * col0 - + 96 + 96 + + col1 FROM tab0 AS cor0
----
295212
366952
8856

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT + 80 DIV + + ( + - col2 ) AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + 80 / + + ( + - col2 ) AS col1 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, ( + col1 ) col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NULL AND NOT - ( + col1 ) * - 77 / - + col2 IS NOT NULL
----

query I rowsort
SELECT col0 * - col2 + + - col0 AS col0 FROM tab2
----
-1104
-2624
-4425

query I rowsort
SELECT - col0 / + col1 FROM tab2 cor0 WHERE NULL IN ( + col1 * + + col1 + - 47 )
----

query I rowsort
SELECT - 59 + col1 AS col0 FROM tab2 AS cor0
----
-8
18
8

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

query I rowsort
SELECT col1 * ( col0 ) + + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
2443
5069
5167

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

query II rowsort
SELECT ALL col1 - - 69, + 45 AS col1 FROM tab0
----
150
45
70
45
90
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT + COUNT( * ) - + - COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0 WHERE + col0 * + col0 * - + col0 * + - 48 = CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT + COUNT ( * ) - + - COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0 WHERE + col0 * + col0 * - + col0 * + - 48 = CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 53 + - 43 - + col1 FROM tab1
----
-37
-4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT - 90 - + + col0 + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 WHERE NULL >= + - CAST( ( - col2 ) AS SIGNED ) * - - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-1814
SELECT - 90 - + + col0 + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 WHERE NULL >= + - CAST ( ( - col2 ) AS INTEGER ) * - - col0 + - col1
----

query I rowsort
SELECT 15 * col1 FROM tab0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT 78 - + 88 + 67 DIV col2 AS col1 FROM tab0 AS cor0
----
-10
-4
-9

skipif mysql # not compatible
query I rowsort label-1816
SELECT 78 - + 88 + 67 / col2 AS col1 FROM tab0 AS cor0
----
-10
-4
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - + 21 - + MAX( + col0 ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1817
SELECT - + 21 - + MAX ( + col0 ) AS col2 FROM tab2 cor0
----
-96

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

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

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

query I rowsort
SELECT col2 * + - 13 FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT COUNT( * ) * 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1821
SELECT COUNT ( * ) * 77 FROM tab1 AS cor0
----
231

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - 43 FROM tab0
----
15
-43
87
-43
97
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL ( MAX( DISTINCT + - 35 ) ) + 73 + - 92 AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL ( MAX ( DISTINCT + - 35 ) ) + 73 + - 92 AS col0 FROM tab2
----
-54

query I rowsort
SELECT DISTINCT + + 0 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT ( + 55 ) FROM tab2
----
55

query I rowsort
SELECT ALL + col1 + - + col1 * col1 FROM tab1 AS cor0
----
-182
-20
-2162

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1831
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL - + col2 - + col0 * - + col0 FROM tab0 WHERE - col1 * - col1 IS NOT NULL
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT MIN( + + col0 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT MIN ( + + col0 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT + MIN( ALL - - 69 ) col1 FROM tab2 AS cor0 WHERE 12 * CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT + MIN ( ALL - - 69 ) col1 FROM tab2 AS cor0 WHERE 12 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1835
SELECT * FROM tab2 AS cor0 WHERE 80 + col0 + - - CAST( - col0 AS SIGNED ) / - col1 * 30 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1835
SELECT * FROM tab2 AS cor0 WHERE 80 + col0 + - - CAST ( - col0 AS INTEGER ) / - col1 * 30 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + - col1 / 35 BETWEEN ( col1 * - col0 * + col2 / col2 / 44 + + 76 ) AND - col2 * - - 60 AND NOT NULL IN ( - col0 * - - col1, 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT ( + COUNT( ALL - col0 ) ) - 72 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT ( + COUNT ( ALL - col0 ) ) - 72 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL + 82 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT - col2 + 77 AS col2 FROM tab1
----
-19
18
9

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

query I rowsort
SELECT 66 + ( 3 ) FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 * - 86 col0 FROM tab0
----
-774
-774
-774

query III rowsort
SELECT * FROM tab0 WHERE + col2 = ( + + col2 + col1 + 43 / - 46 + - - ( - col2 ) )
----

query I rowsort
SELECT ( 82 ) * + col0 - - 73 + + col2 FROM tab2
----
3868
5361
6281

query II rowsort
SELECT col2, 46 * - 88 AS col0 FROM tab0
----
10
-4048
47
-4048
99
-4048

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT ALL - 52, + 60 + - + COUNT( * ) AS col0 FROM tab2 cor0
----
-52
57

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL - 52, + 60 + - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-52
57

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

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

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

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

query I rowsort
SELECT + col0 * - + 36 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT - 75 + col0 * + - col1 FROM tab2 AS cor0
----
-2421
-5003
-5100

query I rowsort
SELECT col2 + + - 1 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT - + 61 + - 72 + + col0 * - 8 * - col1 FROM tab1 AS cor0
----
3267
34083
5579

query II rowsort
SELECT ALL col0, col1 * + col2 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - MAX( + - col2 ) + + + 61 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1854
SELECT - MAX ( + - col2 ) + + + 61 FROM tab0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT DISTINCT col2 + CAST( + 49 AS SIGNED ) + 11 FROM tab0
----
107
159
70

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT col2 + CAST ( + 49 AS INTEGER ) + 11 FROM tab0
----
107
159
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT ALL ( col2 ) * + col0 - + + col1 + - col2 DIV + - col2 FROM tab1
----
4883
5011
6142

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL ( col2 ) * + col0 - + + col1 + - col2 / + - col2 FROM tab1
----
4883
5011
6142

query I rowsort
SELECT DISTINCT - 49 + - col0 FROM tab0
----
-136
-146
-64

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

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT COUNT( * ) - + + SUM( - col1 ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1860
SELECT COUNT ( * ) - + + SUM ( - col1 ) AS col0 FROM tab1
----
69

query I rowsort
SELECT - ( - + col1 ) * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT 14 + + + 12 AS col0 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - SUM( ALL - col1 ) + + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-1863
SELECT - SUM ( ALL - col1 ) + + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL - 93 * - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-279

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - 93 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + COUNT( * ) * + COUNT( * ) + - 11 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + - 11 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1866
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( 48 AS SIGNED ) * + - col1 * + col2 / - col2 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1866
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( 48 AS INTEGER ) * + - col1 * + col2 / - col2 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT ALL col2 - col0 AS col2, - col1 FROM tab1 AS cor0
----
-23
-47
-26
-5
45
-14

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

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

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

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

query I rowsort
SELECT ALL - ( col1 ) * - - 93 FROM tab1
----
-1302
-4371
-465

query III rowsort
SELECT * FROM tab0 WHERE NOT - 30 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 68 <> NULL
----

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

query I rowsort
SELECT + col0 * + 17 * - - col2 FROM tab0
----
11985
14790
163251

query II rowsort
SELECT DISTINCT + col2 * - 18 AS col2, + col0 FROM tab0 AS cor0
----
-1782
97
-180
87
-846
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT CAST( + MAX( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1878
SELECT CAST ( + MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + - MAX ( + 96 ) FROM tab2 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL NOT BETWEEN col1 / col1 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT + col0 * col1 DIV col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1882
SELECT + col0 * col1 / col1 FROM tab0
----
15
87
97

query I rowsort
SELECT + - 22 * + col2 * col2 FROM tab1 AS cor0
----
-101728
-202752
-76582

query I rowsort
SELECT - + 52 * + + col0 AS col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

query II rowsort
SELECT + ( ( + col1 ) ) AS col2, - col2 * - - 70 AS col0 FROM tab1 AS cor0
----
14
-6720
47
-4760
5
-4130

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT ALL + COUNT( * ), - 76 * - + 51 * + - 50 + + 11 AS col0 FROM tab0 AS cor0
----
3
-193789

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL + COUNT ( * ), - 76 * - + 51 * + - 50 + + 11 AS col0 FROM tab0 AS cor0
----
3
-193789

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1887
SELECT ( + 53 ) + + col1 + - + col2 * col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 )
----

skipif mysql # not compatible
query I rowsort label-1887
SELECT ( + 53 ) + + col1 + - + col2 * col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 + + col1, col1 col1 FROM tab2
----
-10
67
-26
51
0
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1889
SELECT ( - CAST( + - COUNT( * ) AS SIGNED ) ) DIV COUNT( * ) AS col1, COUNT( - col0 ) AS col2 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-1889
SELECT ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) / COUNT ( * ) AS col1, COUNT ( - col0 ) AS col2 FROM tab1
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT - 64 DIV - + 65 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT - 64 / - + 65 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 60 + - 45 * - + 70 AS col1 FROM tab2
----
3210
3210
3210

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT col2 + + ( col1 ) + - col2 * - 68 + ( - col1 ) DIV + 29 FROM tab1
----
4076
4738
6638

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT col2 + + ( col1 ) + - col2 * - 68 + ( - col1 ) / + 29 FROM tab1
----
4076
4738
6638

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT COUNT( * ) * + 39 AS col1 FROM tab0, tab1 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-1893
SELECT COUNT ( * ) * + 39 AS col1 FROM tab0, tab1 AS cor0
----
351

query I rowsort
SELECT DISTINCT + + col2 * + col2 * - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE - col0 >= - col0
----
51
67
77

query I rowsort
SELECT - 24 + + col2 AS col0 FROM tab0 cor0
----
-14
23
75

query I rowsort
SELECT + 85 * - - 51 - - - 93 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5daa3ba49206a5b3c65ee26ae73f9c6

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT + 4 + + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + 4 + + COUNT ( * ) FROM tab2
----
7

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2 cor0
----
76

query II rowsort
SELECT - + col2, 90 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( + col1 ) * - 58
----

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

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

query I rowsort
SELECT - 2 * + 2 AS col0 FROM tab1
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL + col0 FROM tab2 WHERE NOT ( - ( - + 78 ) * - col1 + - - col0 IN ( 74 / + col1, + col0 ) ) OR col1 >= + ( col2 ) * + CAST( + 7 AS SIGNED ) AND NOT + 10 * - col0 BETWEEN + col0 AND + 77 * + 61
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + col0 FROM tab2 WHERE NOT ( - ( - + 78 ) * - col1 + - - col0 IN ( 74 / + col1, + col0 ) ) OR col1 >= + ( col2 ) * + CAST ( + 7 AS INTEGER ) AND NOT + 10 * - col0 BETWEEN + col0 AND + 77 * + 61
----
46
64
75

query I rowsort
SELECT 51 * + - 76 * - 25 AS col0 FROM tab2
----
96900
96900
96900

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL SUM( + 51 ) * COUNT( * ) FROM tab1
----
459

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL SUM ( + 51 ) * COUNT ( * ) FROM tab1
----
459

query I rowsort
SELECT + col2 * - - col2 AS col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 6 * + col1 AS col2 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT - - col2 DIV - + ( + ( ( - 7 ) ) ) FROM tab2 AS cor0
----
3
5
8

skipif mysql # not compatible
query I rowsort label-1909
SELECT - - col2 / - + ( + ( ( - 7 ) ) ) FROM tab2 AS cor0
----
3
5
8

query II rowsort
SELECT + + 31 AS col1, 36 AS col2 FROM tab0 AS cor0
----
31
36
31
36
31
36

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-1912
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 98 * + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1912
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 98 * + CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT ALL + 83 + + + 19 AS col2 FROM tab1
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT DISTINCT CAST( CAST( col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
1
21
81

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

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

query I rowsort
SELECT ALL - - col1 + - + ( + + col0 ) + - 64 FROM tab0 cor0
----
-130
-160
2

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 ) < NULL
----

query II rowsort
SELECT - + 32, col2 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - + col0, - 10 )
----
-32
23
-32
40
-32
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1920
SELECT ALL + ( + - CAST( - col0 AS SIGNED ) ) DIV - 16 col2 FROM tab2 AS cor0
----
-2
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1920
SELECT ALL + ( + - CAST ( - col0 AS INTEGER ) ) / - 16 col2 FROM tab2 AS cor0
----
-2
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 IN ( - - 20, + 2, - col0 * + col0 * - - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT DISTINCT - + 21 DIV + col2 + 80 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - + 21 / + col2 + 80 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1923
SELECT + col2 + - col0, - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

skipif mysql # not compatible
query II rowsort label-1923
SELECT + col2 + - col0, - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

query II rowsort
SELECT DISTINCT col1, + ( + ( ( - + col0 ) ) ) * col1 * - col0 - + + col2 + + col1 + + 98 + col2 * - 28 FROM tab2
----
51
107398
67
375358
77
314407

query II rowsort
SELECT ALL - 8, col2 FROM tab1
----
-8
59
-8
68
-8
96

query I rowsort
SELECT ALL col1 + - - 0 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 cor0 WHERE col1 NOT IN ( - - col2 )
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT 5 * - CAST( + 94 AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-4230

skipif mysql # not compatible
query I rowsort label-1928
SELECT 5 * - CAST ( + 94 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-4230

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT + COUNT( * ) * ( + - 8 ) AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + COUNT ( * ) * ( + - 8 ) AS col2 FROM tab2
----
-24

query I rowsort
SELECT col0 + - col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 < col0
----
-19
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL - ( - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - ( - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + + MIN( DISTINCT + - col1 ) FROM tab1 cor0 WHERE NULL >= - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + MIN ( DISTINCT + - col1 ) FROM tab1 cor0 WHERE NULL >= - 31
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 22 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1936
SELECT CAST( - col1 AS SIGNED ) AS col0, - 30 * col0 AS col1 FROM tab2 AS cor0
----
-51
-1380
-67
-2250
-77
-1920

skipif mysql # not compatible
query II rowsort label-1936
SELECT CAST ( - col1 AS INTEGER ) AS col0, - 30 * col0 AS col1 FROM tab2 AS cor0
----
-51
-1380
-67
-2250
-77
-1920

query I rowsort
SELECT ALL + 7 AS col0 FROM tab1 WHERE NOT 65 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 78 AS col2, + col0 + 0 col2, + col2 AS col0 FROM tab0
----
9 values hashing to b02dffe5176ae8a19de8a147af89d9a6

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> + + 99
----
97
1
99

query II rowsort
SELECT col0 AS col1, 89 * - 92 + + 75 FROM tab1 AS cor0
----
51
-8113
85
-8113
91
-8113

query I rowsort
SELECT - col1 * + - 93 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT ALL col2 * + col0 * 26 * + col1 AS col1 FROM tab0 AS cor0
----
1484730
249678
475020

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1945
SELECT DISTINCT + col0 AS col2, - col0 DIV - + 57 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-1945
SELECT DISTINCT + col0 AS col2, - col0 / - + 57 FROM tab1 AS cor0
----
51
0
85
1
91
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1946
SELECT DISTINCT - COUNT( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - COUNT ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN + 1 AND NULL
----

query II rowsort
SELECT ALL - col2 AS col0, col0 * 98 FROM tab2 AS cor0
----
-23
4508
-40
6272
-58
7350

query I rowsort
SELECT col2 - + + col2 + col2 - - + col0 * + - col2 FROM tab1
----
-4800
-4956
-6120

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

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

query I rowsort
SELECT DISTINCT - 32 + col1 AS col0 FROM tab0
----
-11
-31
49

query I rowsort
SELECT ALL 91 * col2 FROM tab1
----
5369
6188
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT col2 + - + col0 DIV + + 78 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-1953
SELECT col2 + - + col0 / + + 78 FROM tab1
----
58
67
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1954
SELECT - col0 + - + 48 - + - col1 * col1 * + col0 DIV + col0 - - col0, 79 - - + 34 AS col0 FROM tab2
----
2553
113
4441
113
5881
113

skipif mysql # not compatible
query II rowsort label-1954
SELECT - col0 + - + 48 - + - col1 * col1 * + col0 / + col0 - - col0, 79 - - + 34 AS col0 FROM tab2
----
2553
113
4441
113
5881
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + - 98 - + 19 FROM tab1 cor0
----
-116

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + - 98 - + 19 FROM tab1 cor0
----
-116

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

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

query I rowsort
SELECT DISTINCT - - ( - - col0 ) - - 46 AS col1 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT ALL ( 77 ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

query I rowsort
SELECT - 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) + + col1 >= ( - - col1 )
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) + + col1 >= ( - - col1 )
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1962
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1962
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT 90 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
270

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT 90 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col0 col2 FROM tab0 cor0
----
-1020
-5916
-6596

query II rowsort
SELECT - 91 AS col1, 78 + col1 AS col1 FROM tab2 cor0
----
-91
129
-91
145
-91
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + 45 - + COUNT( * ) col1 FROM tab2 cor0 WHERE NULL > ( NULL )
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1966
SELECT ALL + 45 - + COUNT ( * ) col1 FROM tab2 cor0 WHERE NULL > ( NULL )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1967
SELECT DISTINCT CAST( col2 AS SIGNED ), 46 col2 FROM tab2
----
23
46
40
46
58
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1967
SELECT DISTINCT CAST ( col2 AS INTEGER ), 46 col2 FROM tab2
----
23
46
40
46
58
46

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT 17 * + + col2 * - col1 FROM tab2
----
-19941
-52360
-66062

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT - 11 * - COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - 11 * - COUNT ( * ) FROM tab0
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 0 NOT BETWEEN NULL AND + 76
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT 13 + - + col0 BETWEEN 56 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1974
SELECT - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT 13 + - + col0 BETWEEN 56 AND NULL
----
-3

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1977
SELECT - col0 * col0 + CAST ( + + col2 AS REAL ) + + 51 + col1 + - 81 col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 93 * + col0 - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT - 30 * 83 DIV COUNT( * ) FROM tab0 AS cor0
----
-830

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 30 * 83 / COUNT ( * ) FROM tab0 AS cor0
----
-830

query I rowsort
SELECT ALL - 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT - 50 * - + col1 FROM tab0
----
1050
4050
50

query I rowsort
SELECT - + col2 * - col0 + - col2 FROM tab2 cor0
----
1035
2520
4292

query I rowsort
SELECT DISTINCT + 12 * - col0 * - col0 + + 18 + 85 AS col1 FROM tab1 AS cor0
----
31315
86803
99475

query I rowsort
SELECT DISTINCT - - ( - col2 ) * - 35 * + col1 AS col2 FROM tab0 AS cor0
----
133245
3465
7350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 / + col2 + - + col2 - col0 + 30 * - - 80 col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT COUNT( * ) + - - 89 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-1986
SELECT COUNT ( * ) + - - 89 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + col2 + col0 * - 0 AS col2 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT + 4 * - 14 AS col2 FROM tab1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT 88 DIV - - 85 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1990
SELECT 88 / - - 85 AS col2 FROM tab1
----
1
1
1

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

query I rowsort
SELECT ALL 67 + - + 9 AS col0 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT MAX( + + 8 ) - 16 * 67 * + COUNT( * ) + + 68 FROM tab2
----
-3140

skipif mysql # not compatible
query I rowsort label-1993
SELECT MAX ( + + 8 ) - 16 * 67 * + COUNT ( * ) + + 68 FROM tab2
----
-3140

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - 47 - - + ( MIN( col2 ) ) * 8 AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 47 - - + ( MIN ( col2 ) ) * 8 AS col2 FROM tab0 AS cor0
----
33

query I rowsort
SELECT + 51 + col0 + col2 FROM tab2 AS cor0
----
120
155
184

query I rowsort
SELECT ALL - - 25 - + col2 AS col0 FROM tab1 AS cor0
----
-34
-43
-71

query I rowsort
SELECT ALL + 68 * + col2 FROM tab0 AS cor0
----
3196
6732
680

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

query I rowsort
SELECT ALL 61 * 61 * + 63 FROM tab1 AS cor0
----
234423
234423
234423

query I rowsort
SELECT + 11 * col1 AS col0 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT + col0 * + col1 - + col1 FROM tab0 AS cor0
----
1134
1806
96

query II rowsort
SELECT DISTINCT + 7, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7
15
7
87
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL - COUNT( col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL - COUNT ( col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT - MIN( DISTINCT + 60 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - MIN ( DISTINCT + 60 ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - col2 * col1 - + - 32 AS col1 FROM tab0 WHERE NULL IS NULL
----
-178
-3775
-67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2007
SELECT ALL - + COUNT( col0 ) AS col1, ( - COUNT( * ) ) + + MAX( DISTINCT - col0 ) * 65 * - - SUM( - + 3 ) DIV + COUNT( * ) FROM tab2 WHERE + - col1 + - + col1 IS NOT NULL
----
-3
8967

skipif mysql # not compatible
query II rowsort label-2007
SELECT ALL - + COUNT ( col0 ) AS col1, ( - COUNT ( * ) ) + + MAX ( DISTINCT - col0 ) * 65 * - - SUM ( - + 3 ) / + COUNT ( * ) FROM tab2 WHERE + - col1 + - + col1 IS NOT NULL
----
-3
8967

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) / + col0 NOT IN ( + 94, col2, - 86, ( + 34 ) )
----

query I rowsort
SELECT ( - 48 ) AS col2 FROM tab0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2010
SELECT SUM( ALL CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT SUM ( ALL CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 14 IN ( + col2 * 29 )
----
3

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 14 IN ( + col2 * 29 )
----
3

query I rowsort
SELECT 4 * + + col1 + - 4 FROM tab0 AS cor0
----
0
320
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL + - 43 * + + COUNT( * ) + - MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 18 - + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + - 43 * + + COUNT ( * ) + - MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 18 - + + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + 12 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT col2 * + - 35 FROM tab2
----
-1400
-2030
-805

query II rowsort
SELECT + 18 AS col2, - col2 AS col1 FROM tab0 AS cor0 WHERE col0 + 5 IS NOT NULL
----
18
-10
18
-47
18
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col1 - - col1 ) AND ( NULL )
----

query II rowsort
SELECT DISTINCT + col0, 66 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 - 33 AS col2 FROM tab0 AS cor0
----
-12
-32
48

query I rowsort
SELECT DISTINCT col2 * - + 71 + - 52 AS col2 FROM tab0 AS cor0 WHERE NOT 77 IS NULL
----
-3389
-7081
-762

query I rowsort
SELECT - 84 + - 2 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - col0 + - col2 * + + 82 + + col2 DIV - - 96 AS col1 FROM tab2
----
-1932
-3344
-4831

skipif mysql # not compatible
query I rowsort label-2022
SELECT - col0 + - col2 * + + 82 + + col2 / - - 96 AS col1 FROM tab2
----
-1932
-3344
-4831

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT 1 + COUNT( DISTINCT - + 54 ) * + + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2023
SELECT 1 + COUNT ( DISTINCT - + 54 ) * + + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL - 11 + + COUNT( * ) * - 32 col0 FROM tab0
----
-107

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT col2 DIV - + 27 AS col2 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT col2 / - + 27 AS col2 FROM tab1
----
-2
-3

query III rowsort
SELECT * FROM tab1 WHERE - 94 / col1 - + col2 * + - 42 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2027
SELECT DISTINCT + 88 DIV - - COUNT( * ) AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + 88 / - - COUNT ( * ) AS col2 FROM tab0
----
29

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

query I rowsort
SELECT ALL + 96 * - - col1 + - + col0 FROM tab1 AS cor0
----
1293
395
4421

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

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

query I rowsort
SELECT ALL + - 4 * col1 FROM tab1 cor0
----
-188
-20
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT - ( 95 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-31

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

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

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

query I rowsort
SELECT ALL col0 + + + 23 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
108
114
74

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

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL - + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

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

query I rowsort
SELECT ALL - col1 * - 98 * + col2 - - + col1 AS col2 FROM tab0 AS cor0
----
20601
373167
9703

query I rowsort
SELECT + + col2 + + 41 AS col2 FROM tab1 AS cor0
----
100
109
137

query I rowsort
SELECT 55 * - 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 1637680c7f828d76fe2c576fc6c52ac9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL - MAX( ALL - col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - MAX ( ALL - col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - + col0 * + 80 * + + ( + col0 ) + 1 + - - 53 + - - col1 + col2
----

query II rowsort
SELECT + ( 95 ) AS col2, + col1 FROM tab0 AS cor0
----
95
1
95
21
95
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2044
SELECT * FROM tab1 cor0 WHERE 60 / - - ( col0 ) BETWEEN + col0 AND ( + 51 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2044
SELECT * FROM tab1 cor0 WHERE 60 / - - ( col0 ) BETWEEN + col0 AND ( + 51 + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT - + 51 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col2 IS NULL
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-2045
SELECT - + 51 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col2 IS NULL
----
-51
-51
-51

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT - + col1 * 38 + CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
-1936
-2544
-2924

skipif mysql # not compatible
query I rowsort label-2049
SELECT - + col1 * 38 + CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
-1936
-2544
-2924

query I rowsort
SELECT DISTINCT + 22 + - 20 * + col0 * - + col0 AS col1 FROM tab1 AS cor0
----
144522
165642
52042

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT 15 + + + COUNT( * ) AS col2 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2051
SELECT 15 + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
18

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

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

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

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

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

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

query I rowsort
SELECT ALL + 29 * col2 AS col0 FROM tab2 WHERE NOT + col2 / + col1 * col2 + - - col0 <= - ( + 86 )
----
1160
1682
667

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT MIN( DISTINCT + col0 ) * - ( + 48 ) AS col1 FROM tab2
----
-2208

skipif mysql # not compatible
query I rowsort label-2057
SELECT MIN ( DISTINCT + col0 ) * - ( + 48 ) AS col1 FROM tab2
----
-2208

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL > - col0
----

query II rowsort
SELECT DISTINCT - 67, 64 AS col2 FROM tab2
----
-67
64

query I rowsort
SELECT ALL + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col2 ) / + col1 - + col2 * + 36 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2062
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( - col2 ) FROM tab0 WHERE NOT - col0 - 49 < NULL
----

query I rowsort
SELECT ALL + 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL ( - col1 ) * + 81 * - ( + col0 ) AS col2 FROM tab2
----
190026
399168
407025

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

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * 30 FROM tab0 AS cor0
----
1410
2970
300

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL col2 * - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL col2 * - col1 / - col1 AS col0 FROM tab2 AS cor0
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + MIN( ALL + 55 ) col1 FROM tab1
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT + MIN ( ALL + 55 ) col1 FROM tab1
----
55

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

query I rowsort
SELECT DISTINCT 23 * - 57 + 78 AS col2 FROM tab1
----
-1233

query II rowsort
SELECT - ( + - 9 ), - ( + 40 ) AS col2 FROM tab1
----
9
-40
9
-40
9
-40

query II rowsort
SELECT + 41 AS col1, - col1 FROM tab0
----
41
-1
41
-21
41
-81

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

query I rowsort
SELECT - ( + 13 ) + - 76 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT ALL col0 * + 13 + - 44 AS col0 FROM tab0
----
1087
1217
151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2083
SELECT ALL + col1 * + - 46 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL + col1 * + - 46 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 44 - col2 + + - 85 FROM tab2 AS cor0
----
-64
-81
-99

query I rowsort
SELECT DISTINCT - 14 - - col0 + + 69 AS col1 FROM tab2 cor0
----
101
119
130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT - COUNT( * ) - + 16 + - 23 * + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - COUNT ( * ) - + 16 + - 23 * + COUNT ( * ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ALL 39 - + 56 * - + col1 FROM tab0 AS cor0
----
1215
4575
95

query I rowsort
SELECT + + col0 * - col1 + + 3 AS col1 FROM tab1 AS cor0
----
-422
-4274
-711

query I rowsort
SELECT + 4 * + 8 AS col1 FROM tab1
----
32
32
32

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

query II rowsort
SELECT ALL - 41 AS col1, + col1 - - col1 FROM tab2
----
-41
102
-41
134
-41
154

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - - 83 BETWEEN + + 66 - - col0 * 97 AND + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 * - + 93 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + COUNT( * ) FROM tab0 WHERE - 12 <= 45
----
3

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - 12 <= 45
----
3

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

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

query I rowsort
SELECT ALL + col2 * col1 + - col1 FROM tab1
----
1330
290
3149

query III rowsort
SELECT * FROM tab1 WHERE + 67 + 82 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2101
SELECT * FROM tab2 WHERE CAST( + 30 AS SIGNED ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2101
SELECT * FROM tab2 WHERE CAST ( + 30 AS INTEGER ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 17 AS col1 FROM tab2
----
17
17
17

query I rowsort
SELECT DISTINCT + 61 * col0 AS col2 FROM tab2
----
2806
3904
4575

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

skipif mysql # not compatible
query I rowsort label-2104
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT col1 * col0 IN ( - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT 29 + + 34 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL - 77 FROM tab2 WHERE NOT - 90 <> ( 79 * + col1 )
----

query I rowsort
SELECT col2 + + 1 FROM tab2
----
24
41
59

query I rowsort
SELECT DISTINCT - 90 FROM tab1 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT + 10 - + 32 AS col2 FROM tab0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT - 75 DIV - col1 + + col2 * + col0 AS col2 FROM tab1
----
4901
5030
6189

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 75 / - col1 + + col2 * + col0 AS col2 FROM tab1
----
4901
5030
6189

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL 2 + - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT - 56 + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-5
29
35

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 33 ) IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) * col1 + + col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT DISTINCT 19 + col2 * 86 AS col0 FROM tab1
----
5093
5867
8275

query I rowsort
SELECT DISTINCT 89 * col0 - - 42 FROM tab1
----
4581
7607
8141

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

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

query I rowsort
SELECT DISTINCT 81 / - col0 AS col2 FROM tab0 WHERE ( 39 ) IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < col0 * col0 + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + 44 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + 34 AS col2 FROM tab0
----
121
131
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT ALL MIN( CAST( col1 AS SIGNED ) ) * 38 FROM tab2
----
1938

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL MIN ( CAST ( col1 AS INTEGER ) ) * 38 FROM tab2
----
1938

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

query I rowsort
SELECT DISTINCT ( col1 ) * col1 AS col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT col0 * - 8 FROM tab2 WHERE NOT + 56 >= - col1
----

query I rowsort
SELECT col0 - - 29 * - col0 AS col0 FROM tab2 AS cor0
----
-1288
-1792
-2100

query I rowsort
SELECT - 82 + - col2 AS col2 FROM tab1
----
-141
-150
-178

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

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - 48 + + COUNT( * ) * + 12 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 48 + + COUNT ( * ) * + 12 FROM tab2
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 80 + - 6 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 59 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT + ( COUNT( ALL + 31 ) ) + 36 FROM tab2 AS cor0 WHERE - col0 * + col0 IS NOT NULL
----
39

skipif mysql # not compatible
query I rowsort label-2136
SELECT + ( COUNT ( ALL + 31 ) ) + 36 FROM tab2 AS cor0 WHERE - col0 * + col0 IS NOT NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * - 6 BETWEEN ( NULL ) AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * - 6 BETWEEN ( NULL ) AND ( col1 )
----
0

query I rowsort
SELECT - - col0 * + 9 AS col1 FROM tab1 AS cor0
----
459
765
819

query I rowsort
SELECT ALL - ( - col2 ) * 53 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT 82 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT 82 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT - col0 - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( 60 + 24 ) <> - ( + col0 ) + + col0
----

query I rowsort
SELECT ALL - + col2 * + 86 AS col0 FROM tab0 cor0
----
-4042
-8514
-860

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2143
SELECT - CAST( + col0 AS SIGNED ) FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) BETWEEN ( 52 - + col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2143
SELECT - CAST ( + col0 AS INTEGER ) FROM tab1 WHERE NOT CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) BETWEEN ( 52 - + col1 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col0 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 75 >= + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COUNT( * ) FROM tab1 WHERE NOT ( ( + col1 ) + 85 * 38 ) >= + col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( ( + col1 ) + 85 * 38 ) >= + col2 + col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col2 - col0 * 78 ) NOT BETWEEN - col2 + col1 * - 89 AND 67 / col1
----
-3

skipif mysql # not compatible
query I rowsort label-2148
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col2 - col0 * 78 ) NOT BETWEEN - col2 + col1 * - 89 AND 67 / col1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ( + ( - col0 ) ) DIV - ( ( + col1 ) + + 4 ) AS col2 FROM tab1
----
1
2
9

skipif mysql # not compatible
query I rowsort label-2150
SELECT ( + ( - col0 ) ) / - ( ( + col1 ) + + 4 ) AS col2 FROM tab1
----
1
2
9

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( 30 ) OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT DISTINCT - CAST( + - 12 AS SIGNED ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - CAST ( + - 12 AS INTEGER ) AS col0 FROM tab2
----
12

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - - col2 * 15 col2 FROM tab0 AS cor0
----
-10050
-47235
-99495

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( col2 / - col0 )
----

query I rowsort
SELECT - col1 * - 50 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT MIN( ALL + 13 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-2160
SELECT MIN ( ALL + 13 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
13

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2164
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) / + col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2164
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) / + col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( 75 ) < col1 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE + 71 * + col1 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL - MAX( ALL - 16 ) * 63 + - 47 * COUNT( * ) FROM tab1
----
867

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - MAX ( ALL - 16 ) * 63 + - 47 * COUNT ( * ) FROM tab1
----
867

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

query I rowsort
SELECT 45 + - ( - col2 ) FROM tab2
----
103
68
85

query I rowsort
SELECT col0 FROM tab2 WHERE 35 >= + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - SUM( ALL + + ( - - 23 ) ) + + MIN( ALL - col1 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2172
SELECT - SUM ( ALL + + ( - - 23 ) ) + + MIN ( ALL - col1 ) FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + MIN( DISTINCT - ( - - col2 ) ) + + - COUNT( * ) + 66 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + MIN ( DISTINCT - ( - - col2 ) ) + + - COUNT ( * ) + 66 FROM tab0
----
-36

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - col1 IS NOT NULL AND NOT NULL >= + col0
----

query I rowsort
SELECT + col1 + + + col0 AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2176
SELECT ALL - col0 DIV - + 50 col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
0
NULL
1
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2176
SELECT ALL - col0 / - + 50 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
1
NULL
1
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * + col2 + ( col0 ) col0 FROM tab1
----
3566
4715
9267

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

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

query I rowsort
SELECT ALL + + col1 * - 21 * col1 FROM tab1 AS cor0
----
-4116
-46389
-525

query I rowsort
SELECT ALL - 35 FROM tab1 AS cor0 WHERE ( col1 - - col0 * + col0 ) IS NULL
----

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

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

query I rowsort
SELECT ( col1 ) * + col0 * 3 AS col2 FROM tab0 cor0
----
291
3645
5481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 col2 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
-705
-870
-9603

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT 37 * - + SUM( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT 37 * - + SUM ( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT + - COUNT( + 28 ) * + 20 + + 18 * 37 * - COUNT( * ) FROM tab2 AS cor0
----
-2058

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + - COUNT ( + 28 ) * + 20 + + 18 * 37 * - COUNT ( * ) FROM tab2 AS cor0
----
-2058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
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-2192
SELECT + CAST ( + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - 42 AS col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - - 2 * + col2 * 23 AS col0 FROM tab2 AS cor0
----
1058
1840
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT ALL - - 3 DIV + 43 * ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - - 3 / + 43 * ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 12 * - 68 FROM tab2
----
-816
-816
-816

query II rowsort
SELECT col1 AS col1, - col1 * - 94 FROM tab0
----
1
94
21
1974
81
7614

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2199
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) NOT IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2199
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) NOT IN ( CAST ( col2 AS INTEGER ) )
----

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

query II rowsort
SELECT ALL 75 AS col1, 51 AS col1 FROM tab0
----
75
51
75
51
75
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL - MIN( col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL - MIN ( col2 ) col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col1 + - - col0 AS col0 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + - ( COUNT( * ) ) * - + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
783

skipif mysql # not compatible
query I rowsort label-2205
SELECT + - ( COUNT ( * ) ) * - + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
783

query II rowsort
SELECT + 58 + col2 AS col2, - 57 FROM tab2 AS cor0
----
116
-57
81
-57
98
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + COUNT( * ) + - + 13 AS col2 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2207
SELECT + COUNT ( * ) + - + 13 AS col2 FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2208
SELECT CAST( NULL AS DECIMAL ) + - 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT CAST ( NULL AS REAL ) + - 53 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + COUNT( * ) + ( - 78 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + COUNT ( * ) + ( - 78 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - 72 + - col1 * + + 11 + 99 + + col1 + - + col0 + + + col1 * col2 * col1 * 57 AS col0 FROM tab2 AS cor0
----
13517313
14839916
3409382

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT 58 + 33 * CAST( - - 58 AS SIGNED ) FROM tab1 cor0
----
1972
1972
1972

skipif mysql # not compatible
query I rowsort label-2212
SELECT 58 + 33 * CAST ( - - 58 AS INTEGER ) FROM tab1 cor0
----
1972
1972
1972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT - CAST( - col1 AS SIGNED ) + + 53 * + col2 + + ( - col1 ) col0 FROM tab1 AS cor0
----
3127
3604
5088

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2213
SELECT - CAST ( - col1 AS INTEGER ) + + 53 * + col2 + + ( - col1 ) col0 FROM tab1 AS cor0
----
3127
3604
5088

query I rowsort
SELECT - 29 FROM tab1 AS cor0 WHERE 63 NOT IN ( col2 * - col2 + - - col2 )
----
-29
-29
-29

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE + - 92 IS NULL
----

query I rowsort
SELECT + + 3 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT ALL - col1 * col1 DIV + 6 FROM tab0
----
-1093
-73
0

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - col1 * col1 / + 6 FROM tab0
----
-1093
-73
0

query I rowsort
SELECT ALL - col1 + + - col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + col0 + + col2 * 11 - + 79 + col1 FROM tab1
----
1042
660
807

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + MAX( ALL + ( - 48 ) ) FROM tab2 WHERE col2 NOT IN ( col0 / + + col2 )
----
-48

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + MAX ( ALL + ( - 48 ) ) FROM tab2 WHERE col2 NOT IN ( col0 / + + col2 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + - 83 - + - COUNT( * ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2222
SELECT + - 83 - + - COUNT ( * ) FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT MAX( ALL - col1 ) * + 83 AS col2 FROM tab2 AS cor0
----
-4233

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT MAX ( ALL - col1 ) * + 83 AS col2 FROM tab2 AS cor0
----
-4233

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 6 + - - col1 BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT + 64 - COUNT( * ) * + COUNT( * ) * 62 AS col0 FROM tab2 AS cor0
----
-494

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + 64 - COUNT ( * ) * + COUNT ( * ) * 62 AS col0 FROM tab2 AS cor0
----
-494

query I rowsort
SELECT ALL + - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( - + col0, CAST( ( - col0 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( - + col0, CAST ( ( - col0 ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2229
SELECT DISTINCT + 93 * - col0, col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1395
-5
-8091
0
-9021
0

skipif mysql # not compatible
query II rowsort label-2229
SELECT DISTINCT + 93 * - col0, col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1395
-5
-8091
0
-9021
0

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

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

skipif mysql # not compatible
query I rowsort label-2231
SELECT - COUNT ( * ) * - 24 FROM tab0 AS cor0
----
72

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

query I rowsort
SELECT ALL col2 * - + 69 AS col0 FROM tab2 AS cor0
----
-1587
-2760
-4002

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT DISTINCT - col1 DIV - - 34 AS col1 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - col1 / - - 34 AS col1 FROM tab0
----
-2
0

query I rowsort
SELECT - + 22 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-22
-22
-22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT DISTINCT 74, + MIN( DISTINCT + ( - 24 ) ) AS col1 FROM tab2
----
74
-24

skipif mysql # not compatible
query II rowsort label-2238
SELECT DISTINCT 74, + MIN ( DISTINCT + ( - 24 ) ) AS col1 FROM tab2
----
74
-24

query I rowsort
SELECT DISTINCT - - 7 * + col2 + + 67 AS col1 FROM tab1 AS cor0
----
480
543
739

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT ALL + - 76 DIV - col0 + - col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + - 76 / - col0 + - col0 FROM tab1 AS cor0
----
-50
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2241
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2241
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST ( NULL AS REAL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-2243
SELECT - COUNT ( ALL + - 61 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col0 - + 26 FROM tab2 AS cor0
----
20
38
49

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - col2 * + - col0 + + 43 col0 FROM tab0
----
1004
839
9737

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

query I rowsort
SELECT col1 + - 84 - + ( - col0 ) FROM tab0
----
12
14
24

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 76 * - + ( - col2 ) IS NULL
----

query I rowsort
SELECT col0 * - 26 * + - col2 + + col0 * - ( - col1 ) FROM tab2
----
118125
29854
71488

query I rowsort
SELECT DISTINCT 92 + ( + ( - + col0 ) ) - - - col2 AS col2 FROM tab0
----
-104
-5
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT + 25, - COUNT( + ( 42 ) ) AS col2 FROM tab2 AS cor0
----
25
-3

skipif mysql # not compatible
query II rowsort label-2254
SELECT + 25, - COUNT ( + ( 42 ) ) AS col2 FROM tab2 AS cor0
----
25
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT - CAST( + 61 AS SIGNED ) FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-2255
SELECT - CAST ( + 61 AS INTEGER ) FROM tab2
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + ( + col2 ) * + + 56 * col0 AS col2 FROM tab0
----
39480
48720
537768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * 58 * 13 * + 18 col2 FROM tab0 WHERE NOT NULL >= - ( 67 )
----

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

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

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

query I rowsort
SELECT + col2 * + col0 * + col0 * 87 FROM tab0 AS cor0 WHERE NOT NULL <> 77
----

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

query I rowsort
SELECT DISTINCT - ( + 19 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + 10 * COUNT( * ) * + COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-2263
SELECT + 10 * COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
810

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 88 >= + col0
----

query II rowsort
SELECT DISTINCT - 15 * + + 73 + + col0 AS col2, col2 + 19 AS col1 FROM tab0 AS cor0
----
-1008
29
-1080
66
-998
118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 44 * - 36 IN ( col0 )
----

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
51
85
91

query I rowsort
SELECT + ( + 27 ) + col0 * col1 AS col2 FROM tab2 AS cor0
----
2373
4955
5052

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

skipif mysql # not compatible
query I rowsort label-2269
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT ALL - 80 - col1 FROM tab0 AS cor0
----
-101
-161
-81

query I rowsort
SELECT - + col1 * + - col2 + col0 AS col0 FROM tab1 cor0
----
1395
3287
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL 35 * + ( + - CAST( NULL AS SIGNED ) ) * - MIN( + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL 35 * + ( + - CAST ( NULL AS INTEGER ) ) * - MIN ( + col2 ) FROM tab2
----
NULL

query II rowsort
SELECT ALL - 25 AS col1, - col0 FROM tab2
----
-25
-46
-25
-64
-25
-75

query II rowsort
SELECT DISTINCT 50, + col0 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2275
SELECT col1 - + 18 + - col1 + ( + col2 ) DIV - 51, col1 FROM tab0
----
-18
21
-18
81
-19
1

skipif mysql # not compatible
query II rowsort label-2275
SELECT col1 - + 18 + - col1 + ( + col2 ) / - 51, col1 FROM tab0
----
-18
21
-18
81
-19
1

query I rowsort
SELECT + col1 - col1 - + 98 FROM tab2
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT col0 - - ( - - col2 ) DIV + 60 col2 FROM tab0
----
15
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2277
SELECT col0 - - ( - - col2 ) / + 60 col2 FROM tab0
----
15
87
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT DISTINCT - 57 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-57
3

skipif mysql # not compatible
query II rowsort label-2278
SELECT DISTINCT - 57 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-57
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2279
SELECT ALL col2, + col0 DIV + 42 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-2279
SELECT ALL col2, + col0 / + 42 FROM tab2 AS cor0
----
23
1
40
1
58
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT ALL + - COUNT( * ) AS col1, - 64 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-61

skipif mysql # not compatible
query II rowsort label-2280
SELECT ALL + - COUNT ( * ) AS col1, - 64 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-61

query I rowsort
SELECT + ( 6 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 16 * ( + + col0 ) FROM tab1
----
1360
1456
816

query I rowsort
SELECT - - col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL - - MAX( ALL 98 ) AS col2 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - - MAX ( ALL 98 ) AS col2 FROM tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 * - col2 * - - col1 * + col0 col0 FROM tab1 AS cor0
----
1880625
21812700
5140800

query I rowsort
SELECT ALL 42 FROM tab0 cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT ALL - col2 * - 33 FROM tab2 cor0
----
1320
1914
759

query I rowsort
SELECT + col2 * - - 34 - + col0 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, 80 FROM tab0
----
15
80
87
80
97
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT - col0 + + col0 + + CAST( + col2 AS SIGNED ) * - - col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2290
SELECT - col0 + + col0 + + CAST ( + col2 AS INTEGER ) * - - col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + COUNT( * ) + + MAX( DISTINCT + col2 ) * - 77 + - COUNT( - col2 ) FROM tab0 cor0
----
-7623

skipif mysql # not compatible
query I rowsort label-2291
SELECT + COUNT ( * ) + + MAX ( DISTINCT + col2 ) * - 77 + - COUNT ( - col2 ) FROM tab0 cor0
----
-7623

query I rowsort
SELECT col0 + - - 57 AS col2 FROM tab1 AS cor0
----
108
142
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 col0 FROM tab2 AS cor0 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - 13 * SUM( DISTINCT + - col0 ) AS col0 FROM tab2
----
2405

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - 13 * SUM ( DISTINCT + - col0 ) AS col0 FROM tab2
----
2405

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT + 47 DIV + col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-2295
SELECT + 47 / + col1 FROM tab1
----
1
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2296
SELECT 66 AS col2, col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2296
SELECT 66 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 - ( - col1 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - 11 + - col2 FROM tab1 AS cor0
----
-107
-70
-79

query I rowsort
SELECT + col1 - - col2 - + col2 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + COUNT( * ) + - + MIN( DISTINCT - + col2 ) * COUNT( * ) col1 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT + COUNT ( * ) + - + MIN ( DISTINCT - + col2 ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - + col2 AND + - ( + + ( + + col1 ) )
----
51
14
96

query I rowsort
SELECT ALL - col1 * - col2 + - - col2 FROM tab0 cor0
----
198
220
3854

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL 32 * - + COUNT( * ) * - - MIN( DISTINCT - 32 ) FROM tab0
----
3072

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL 32 * - + COUNT ( * ) * - - MIN ( DISTINCT - 32 ) FROM tab0
----
3072

query I rowsort
SELECT ALL - col2 * + col0 FROM tab2 WHERE NOT - col2 > ( - + 0 )
----
-1058
-2560
-4350

query I rowsort
SELECT 42 + 69 AS col2 FROM tab2
----
111
111
111

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT SUM( DISTINCT - - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2309
SELECT SUM ( DISTINCT - - col0 ) AS col1 FROM tab2
----
185

query II rowsort
SELECT + col2, - col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2311
SELECT DISTINCT COUNT( * ), - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2311
SELECT DISTINCT COUNT ( * ), - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - SUM( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2312
SELECT - SUM ( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL - 62, col1 AS col1 FROM tab2 AS cor0
----
-62
51
-62
67
-62
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT DISTINCT - 70 AS col0, + COUNT( * ) * - - 22 FROM tab0
----
-70
66

skipif mysql # not compatible
query II rowsort label-2314
SELECT DISTINCT - 70 AS col0, + COUNT ( * ) * - - 22 FROM tab0
----
-70
66

query II rowsort
SELECT DISTINCT col0, - 76 FROM tab2
----
46
-76
64
-76
75
-76

query II rowsort
SELECT DISTINCT - 11, - col0 + + - col2 AS col0 FROM tab2
----
-11
-104
-11
-133
-11
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2317
SELECT DISTINCT 84 AS col2, CAST( NULL AS SIGNED ) * + - MIN( - + ( - col0 ) ) / + - CAST( - COUNT( + 17 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-2317
SELECT DISTINCT 84 AS col2, CAST ( NULL AS INTEGER ) * + - MIN ( - + ( - col0 ) ) / + - CAST ( - COUNT ( + 17 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2318
SELECT ALL - col1 col2, + 94 + + col0 + + 74 DIV col0 * + col1 * + 32 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
191
-21
181
-81
155629

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2318
SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
191
-21
181
-81
155629

query I rowsort
SELECT + + col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - + 8 * - 66 + + + 88 AS col1 FROM tab1 AS cor0
----
616
616
616

query II rowsort
SELECT ALL col0, 8 FROM tab1 cor0
----
51
8
85
8
91
8

query I rowsort
SELECT + - col1 + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2323
SELECT + COUNT( * ) + + + CAST( NULL AS DECIMAL ) - MIN( - 70 ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT + COUNT ( * ) + + + CAST ( NULL AS REAL ) - MIN ( - 70 ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT - + col0 * - - CAST( + col1 AS SIGNED ) + - + col1 AS col1 FROM tab2 cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-2324
SELECT - + col0 * - - CAST ( + col1 AS INTEGER ) + - + col1 AS col1 FROM tab2 cor0
----
-2397
-5005
-5092

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * 79 * - col1 * - 7 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT 67 + COUNT( ALL 36 ) col2 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT 67 + COUNT ( ALL 36 ) col2 FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT COUNT( - 9 ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2327
SELECT COUNT ( - 9 ) FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT DISTINCT - col2 DIV + 69 + + col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - col2 / + 69 + + col0 FROM tab1
----
50
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2329
SELECT DISTINCT + col2 + - - CAST( NULL AS DECIMAL ) * 63 AS col2, CAST( + - 98 AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2329
SELECT DISTINCT + col2 + - - CAST ( NULL AS REAL ) * 63 AS col2, CAST ( + - 98 AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT DISTINCT col1 * col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT DISTINCT col1 * col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 43 + - col2 AS col2 FROM tab2
----
-15
20
3

query I rowsort
SELECT - 9 + + col0 AS col0 FROM tab2
----
37
55
66

query I rowsort
SELECT DISTINCT col2 * 65 FROM tab0
----
3055
6435
650

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL - ( - col2 ) + + col0 + - ( col1 ) DIV - col1 AS col1 FROM tab1
----
145
148
160

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - ( - col2 ) + + col0 + - ( col1 ) / - col1 AS col1 FROM tab1
----
145
148
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT + 71 - + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 71 - + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - 33 FROM tab2 WHERE - 8 IN ( - + col1, col0, + col2, col0 * + col2 + + col2 / + col1 - 28 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT DISTINCT + col2 DIV - - 55 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + col2 / - - 55 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 78 - + 24 AS col0 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2340
SELECT + - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2340
SELECT + - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query II rowsort
SELECT + + col2 AS col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2342
SELECT ALL + CAST( NULL AS DECIMAL ) * - - col1 + col2 * ( + - col2 ) - - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + CAST ( NULL AS REAL ) * - - col1 + col2 * ( + - col2 ) - - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT + - COUNT( * ) + 96 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + - COUNT ( * ) + 96 FROM tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT col1 - + 21 FROM tab0 AS cor0
----
-20
0
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < - - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL - + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 48 * col1 * + col2 FROM tab1
----
14160
153408
64512

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - ( + SUM( + col2 ) ) AS col2 FROM tab1 WHERE NOT + 43 - - + col0 BETWEEN NULL AND - col1
----
-223

skipif mysql # not compatible
query I rowsort label-2348
SELECT - ( + SUM ( + col2 ) ) AS col2 FROM tab1 WHERE NOT + 43 - - + col0 BETWEEN NULL AND - col1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT 4 * + COUNT( * ) col1 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2349
SELECT 4 * + COUNT ( * ) col1 FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + COUNT( - + col1 ) FROM tab2 AS cor0 WHERE NOT 57 + + 92 + + - col0 - - col0 >= 75
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + COUNT ( - + col1 ) FROM tab2 AS cor0 WHERE NOT 57 + + 92 + + - col0 - - col0 >= 75
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 4 * - 87 * 16 * + + col1 BETWEEN + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL 70 DIV col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL 70 / col2 FROM tab2
----
1
1
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + - col1 * - + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + - col1 * - + 10 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT ALL - col2 + + + 18 * + + col0 * - col2 + - 28 FROM tab2 AS cor0
----
-19095
-46148
-78386

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT - MIN( + 92 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - MIN ( + 92 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT + + ( - - col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 62 + - + CAST( col1 AS SIGNED ) BETWEEN - col1 AND + - 89
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2361
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 62 + - + CAST ( col1 AS INTEGER ) BETWEEN - col1 AND + - 89
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + MAX( - + ( - 53 ) ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + MAX ( - + ( - 53 ) ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT COUNT( ALL - 46 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT DISTINCT COUNT ( ALL - 46 ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - 77 + - col0 + - col0 * - - col0 * - ( col2 ) + + col2 col1 FROM tab2
----
159119
321536
43948

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL + SUM( + col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2365
SELECT ALL + SUM ( + col1 ) col0 FROM tab2
----
195

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col2 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - COUNT( * ) + + 95 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2367
SELECT - COUNT ( * ) + + 95 FROM tab1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2368
SELECT * FROM tab1 WHERE CAST( + col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2368
SELECT * FROM tab1 WHERE CAST ( + col1 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 19 + - - col0 * + + 8 * + - ( - col1 ) col2 FROM tab2
----
18810
39483
40277

query I rowsort
SELECT 78 * col1 + + + 56 AS col2 FROM tab1
----
1148
3722
446

query I rowsort
SELECT - 28 + + - col2 AS col1 FROM tab1 AS cor0
----
-124
-87
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2372
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN col1 * - col1 + - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN col1 * - col1 + - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT 9 <= NULL
----

query I rowsort
SELECT + ( col0 ) * - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 74 NOT IN ( 10 )
----

query I rowsort
SELECT + - col0 * - + 68 - col2 - + col1 AS col2 FROM tab0 cor0
----
5885
6496
892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 36 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 36 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2378
SELECT * FROM tab0 AS cor0 WHERE - col2 <> CAST( NULL AS SIGNED ) + + col2 - col0 * + 59
----

skipif mysql # not compatible
query III rowsort label-2378
SELECT * FROM tab0 AS cor0 WHERE - col2 <> CAST ( NULL AS INTEGER ) + + col2 - col0 * + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT - + ( + 97 ) * - COUNT( * ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - + ( + 97 ) * - COUNT ( * ) FROM tab1 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query II rowsort label-2380
SELECT ALL + col0 * 79, - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
3634
1
5056
1
5925
1

skipif mysql # not compatible
query II rowsort label-2380
SELECT ALL + col0 * 79, - col1 / - col1 AS col2 FROM tab2 AS cor0
----
3634
1
5056
1
5925
1

query I rowsort
SELECT ALL - col1 * + 15 * col1 AS col1 FROM tab1 AS cor0
----
-2940
-33135
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - - COUNT( * ) * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT DISTINCT + 54 DIV - COUNT( DISTINCT - col0 ) + + - 58 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + 54 / - COUNT ( DISTINCT - col0 ) + + - 58 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT ALL col1 AS col1, + col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab2
----
46

query I rowsort
SELECT + ( ( - col2 ) ) * + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT - col1 DIV col2 DIV col2 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - col1 / col2 / col2 / col1 FROM tab0
----
0

query I rowsort
SELECT ALL - + 55 AS col2 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - SUM( + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - SUM ( + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2390
SELECT - CAST( NULL AS SIGNED ) col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2390
SELECT - CAST ( NULL AS INTEGER ) col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 58 * - 43 FROM tab1
----
-2494
-2494
-2494

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2392
SELECT - col1 + - CAST( - + CAST( 61 AS DECIMAL ) AS DECIMAL ) FROM tab2 WHERE NOT - 23 * + col0 + + 35 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2392
SELECT - col1 + - CAST ( - + CAST ( 61 AS REAL ) AS REAL ) FROM tab2 WHERE NOT - 23 * + col0 + + 35 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 * - + col1 = + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 6 * - COUNT( * ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 6 * - COUNT ( * ) AS col2 FROM tab2
----
-18

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - - col2 * + col1 - col2 = + - col1
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT ALL + - col0 DIV + + col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + - col0 / + + col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT MAX( ALL + col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2397
SELECT MAX ( ALL + col0 ) AS col0 FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - 17 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT col0 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 * + 51 / CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT col0 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 * + 51 / CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT 85 DIV COUNT( ALL - col0 ) + + + 27 + - SUM( + col1 ) + + 28 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2402
SELECT 85 / COUNT ( ALL - col0 ) + + + 27 + - SUM ( + col1 ) + + 28 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 25 + - col1 FROM tab1
----
-22
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * 76 + 57 FROM tab0
----
741

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * 76 + 57 FROM tab0
----
741

query I rowsort
SELECT ALL 97 + - col1 AS col1 FROM tab1
----
50
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL COUNT( * ) - 12 + + 76 + - - COUNT( * ) * + 54 AS col0 FROM tab0 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL COUNT ( * ) - 12 + + 76 + - - COUNT ( * ) * + 54 AS col0 FROM tab0 AS cor0
----
229

query I rowsort
SELECT + col0 - + col2 + + col1 AS col1 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT col1 - + - col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT DISTINCT - COUNT( * ) AS col0, - COUNT( + CAST( NULL AS SIGNED ) ) * 99 * COUNT( DISTINCT - col2 ) FROM tab0 WHERE NOT col0 IS NULL
----
-3
0

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( + CAST ( NULL AS INTEGER ) ) * 99 * COUNT ( DISTINCT - col2 ) FROM tab0 WHERE NOT col0 IS NULL
----
-3
0

query II rowsort
SELECT + 56 AS col0, - 29 FROM tab0
----
56
-29
56
-29
56
-29

query II rowsort
SELECT DISTINCT col0 AS col1, ( + 57 ) FROM tab2 AS cor0
----
46
57
64
57
75
57

query I rowsort
SELECT DISTINCT - 94 * + 63 + - 19 FROM tab0 AS cor0
----
-5941

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 <> - col2 / + - col1
----

query I rowsort
SELECT - - 65 * - col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 col1, col1 + 8 - + col2, - + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 508d9e4f017cbfed235b4ff483db387f

query I rowsort
SELECT DISTINCT + - col1 * col2 * - - 7 * + 81 AS col2 FROM tab0 AS cor0
----
-119070
-2158569
-56133

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + 83 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT - COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2419
SELECT - COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * + col0, - col2 * col0, col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - ( - COUNT( * ) ) FROM tab0 WHERE + 25 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - ( - COUNT ( * ) ) FROM tab0 WHERE + 25 = NULL
----
0

query I rowsort
SELECT ALL + 70 AS col0 FROM tab0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - CAST( 78 AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - CAST ( 78 AS INTEGER ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - col2
----

query I rowsort
SELECT - col1 * - ( + 65 ) AS col2 FROM tab1
----
3055
325
910

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 < + 64 * - - col1
----

query I rowsort
SELECT DISTINCT + 96 * 34 AS col0 FROM tab0
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT 3 * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 3 * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT + + COUNT( * ) * + 64 * + 42 AS col0, 38 FROM tab1 AS cor0
----
8064
38

skipif mysql # not compatible
query II rowsort label-2429
SELECT + + COUNT ( * ) * + 64 * + 42 AS col0, 38 FROM tab1 AS cor0
----
8064
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT - COUNT( ALL - - col1 ) FROM tab2 AS cor0 WHERE NOT - col1 * - 80 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2430
SELECT - COUNT ( ALL - - col1 ) FROM tab2 AS cor0 WHERE NOT - col1 * - 80 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2431
SELECT DISTINCT - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) + + AVG ( ALL - col2 ) AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + AVG ( ALL - col2 ) AS col2 FROM tab1
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + COUNT( * ) * - COUNT( * ) * 74 AS col0 FROM tab2
----
-666

skipif mysql # not compatible
query I rowsort label-2433
SELECT + COUNT ( * ) * - COUNT ( * ) * 74 AS col0 FROM tab2
----
-666

query II rowsort
SELECT + col0, - 29 AS col2 FROM tab0 AS cor0
----
15
-29
87
-29
97
-29

query I rowsort
SELECT + col1 * - 19 AS col1 FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT col0 * - + 30 FROM tab2 AS cor0
----
-1380
-1920
-2250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab1 cor0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + 18 col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL - COUNT( * ) * - AVG ( DISTINCT + 34 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - COUNT ( * ) * - AVG ( DISTINCT + 34 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2440
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col1, - 7 FROM tab2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-2440
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col1, - 7 FROM tab2
----
NULL
-7

query I rowsort
SELECT ( + 70 ) + - col2 * + col0 * + col1 AS col2 FROM tab0
----
-18200
-57035
-9533

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2442
SELECT DISTINCT col0 + + - CAST( NULL AS SIGNED ) AS col1, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2442
SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT - col2 + CAST( NULL AS SIGNED ) / + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT - col2 + CAST ( NULL AS INTEGER ) / + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + MAX( DISTINCT 60 ) + MAX( + col0 ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + MAX ( DISTINCT 60 ) + MAX ( + col0 ) FROM tab2
----
135

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + ( col0 ) * + col2 AND - + col1
----

query I rowsort
SELECT ALL col1 - col1 + + col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - MIN( ALL - + 92 ) + - - 82 AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-2447
SELECT - MIN ( ALL - + 92 ) + - - 82 AS col1 FROM tab0
----
174

query I rowsort
SELECT DISTINCT - + 66 * col1 - col2 FROM tab0 AS cor0
----
-1396
-165
-5393

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - MAX( - 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-2449
SELECT - MAX ( - 43 ) FROM tab0
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL - + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab1 AS cor0 WHERE 63 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT - - col0 AS col1, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab0 AS cor0
----
57

query I rowsort
SELECT + + ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT col2 AS col1, + 54 * - col1 * - 6 AS col0 FROM tab1
----
59
1620
68
15228
96
4536

query I rowsort
SELECT ALL - - ( col0 ) AS col1 FROM tab2 WHERE NULL < 30
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2458
SELECT ALL 24 AS col2, + col2 DIV + col2 AS col1 FROM tab2
----
24
1
24
1
24
1

skipif mysql # not compatible
query II rowsort label-2458
SELECT ALL 24 AS col2, + col2 / + col2 AS col1 FROM tab2
----
24
1
24
1
24
1

query I rowsort
SELECT ALL + ( - 64 ) AS col2 FROM tab0
----
-64
-64
-64

query II rowsort
SELECT ALL + col1 * - + col0, + col1 AS col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 49 - - + col0 col0 FROM tab1
----
14
100
47
140
5
134

query I rowsort
SELECT DISTINCT - 36 * - col1 FROM tab0
----
2916
36
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL 85 + - 83 + + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 85 + - 83 + + COUNT ( * ) FROM tab2
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col2 * + col1 + - col0 NOT BETWEEN 44 AND - ( col0 )
----

query II rowsort
SELECT col2 AS col2, - ( - col2 ) AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ( col0 ) DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2466
SELECT ( col0 ) / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + ( - COUNT( DISTINCT + col0 ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT + ( - COUNT ( DISTINCT + col0 ) ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col1 < + - col2 / - + ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + ( col0 ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 55 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) + 76 col2 FROM tab2 cor0
----
127
143
153

query I rowsort
SELECT 14 * - col0 + 27 + - - col1 AS col0 FROM tab2 cor0
----
-566
-792
-956

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 99 IS NULL
----

query I rowsort
SELECT col1 * - col0 + col1 + - + col1 + - 42 FROM tab2 AS cor0
----
-2388
-4970
-5067

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT - 88 DIV - + col2 + - + 83 FROM tab1 AS cor0
----
-82
-82
-83

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 88 / - + col2 + - + 83 FROM tab1 AS cor0
----
-82
-82
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT - col1 + col1 + + 49 * + col0 / - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - col1 + col1 + + 49 * + col0 / - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * - + 53 + - + col0 FROM tab2 AS cor0
----
1173
2056
2999

query I rowsort
SELECT + + col2 * - + col1 - - - 93 FROM tab0 AS cor0
----
-192
-303
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - ( - COUNT( * ) ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2479
SELECT - ( - COUNT ( * ) ) * - 4 AS col0 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + 29 * + + MIN( - col0 ) col0 FROM tab0
----
-2813

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2480
SELECT ALL + 29 * + + MIN ( - col0 ) col0 FROM tab0
----
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT 4 * - CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 4 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( - 46 AS SIGNED ) + + + 30 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( - 46 AS INTEGER ) + + + 30 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * + col1 + col0 * col0 FROM tab2
----
10025
10114
4717

query I rowsort
SELECT DISTINCT + + col1 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

query I rowsort
SELECT DISTINCT col2 + + 54 AS col0 FROM tab1
----
113
122
150

query I rowsort
SELECT - 87 * - + col1 + 54 FROM tab1 AS cor0
----
1272
4143
489

query I rowsort
SELECT col0 + - + 17 AS col0 FROM tab0 AS cor0
----
-2
70
80

query I rowsort
SELECT - col1 * col0 + + + 52 * - 58 FROM tab1 AS cor0
----
-3441
-3730
-7293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT - CAST( + 0 AS SIGNED ) AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2489
SELECT - CAST ( + 0 AS INTEGER ) AS col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / col2 * + + 96 NOT BETWEEN ( - col0 * + col1 + - - col1 * + 52 / 99 + + col0 * col0 ) AND NULL
----

query I rowsort
SELECT ALL col2 * - - 71 AS col1 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT ALL 25 FROM tab1 WHERE + - col0 / + + col1 - - 65 + - + col2 IN ( + 6, 82, - 79, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT 73 * - - 50 * - 9 FROM tab1
----
-32850
-32850
-32850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col1 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2496
SELECT + + 25 DIV - COUNT( * ) FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2496
SELECT + + 25 / - COUNT ( * ) FROM tab1 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ( - COUNT( * ) ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2497
SELECT ( - COUNT ( * ) ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + 77 * col1 * - 16 AS col0 FROM tab0 AS cor0
----
-1232
-25872
-99792

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - + ( - col2 ) + col2 * + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + COUNT( col1 ) - + ( + + 16 ) + + 5 * + COUNT( * ) AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
-16

skipif mysql # not compatible
query I rowsort label-2501
SELECT + COUNT ( col1 ) - + ( + + 16 ) + + 5 * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2502
SELECT + col0, - 54 DIV + col2 FROM tab2
----
46
-2
64
-1
75
0

skipif mysql # not compatible
query II rowsort label-2502
SELECT + col0, - 54 / + col2 FROM tab2
----
46
-2
64
-1
75
0

query I rowsort
SELECT ALL 49 + - + col0 + col0 * + - col0 FROM tab1
----
-2603
-7261
-8323

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + COUNT( - 52 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + COUNT ( - 52 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 34 + - + 40 AS col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + 1 + ( - 28 ) * + col0 + - col0 AS col0 FROM tab2
----
-1333
-1855
-2174

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2507
SELECT MIN( DISTINCT - - 55 ) DIV 98 + + MAX( ALL + col1 ), 93 AS col1, + 87 AS col1 FROM tab0 AS cor0
----
81
93
87

skipif mysql # not compatible
query III rowsort label-2507
SELECT MIN ( DISTINCT - - 55 ) / 98 + + MAX ( ALL + col1 ), 93 AS col1, + 87 AS col1 FROM tab0 AS cor0
----
81
93
87

query I rowsort
SELECT - col1 * + - col1 - - 57 + + col0 FROM tab0 AS cor0
----
155
585
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - 33 col2 FROM tab0
----
1
-33
21
-33
81
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT DISTINCT + col0 * 96 DIV + 62 AS col2 FROM tab0 cor0
----
134
150
23

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + col0 * 96 / + 62 AS col2 FROM tab0 cor0
----
134
150
23

query I rowsort
SELECT DISTINCT - - col0 - - - col2 AS col1 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT - col2 * + 69 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
152468
676368
6910

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + 37 + - COUNT( * ) AS col0 FROM tab1 WHERE + col0 IN ( + col1, + 41 * - + 82 )
----
37

skipif mysql # not compatible
query I rowsort label-2513
SELECT + 37 + - COUNT ( * ) AS col0 FROM tab1 WHERE + col0 IN ( + col1, + 41 * - + 82 )
----
37

query II rowsort
SELECT ALL ( + col1 ), col0 AS col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

query I rowsort
SELECT ALL 2 * + + col2 + col1 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - 37 * COUNT( * ) FROM tab1 WHERE NOT - - 87 NOT IN ( + - col1, col2 * col0, - col2, - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - 37 * COUNT ( * ) FROM tab1 WHERE NOT - - 87 NOT IN ( + - col1, col2 * col0, - col2, - 96 )
----
0

query I rowsort
SELECT DISTINCT ( - + col1 ) * col0 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + col1 + + col1 * 22 AS col2 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT 66 + + 57 * - col1 * - col1 * + col1 FROM tab2
----
17143557
26022447
7561173

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - MIN( ALL - ( - - 58 ) ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-2521
SELECT - MIN ( ALL - ( - - 58 ) ) FROM tab0
----
58

query I rowsort
SELECT DISTINCT - col0 + + + col2 * 31 FROM tab2
----
1176
1723
667

query III rowsort
SELECT * FROM tab1 WHERE + - 99 IS NULL
----

query I rowsort
SELECT DISTINCT + - 35 AS col1 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL - + 11 * + col1 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + MAX( DISTINCT + 85 ) AS col2 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + MAX ( DISTINCT + 85 ) AS col2 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2527
SELECT ALL CAST( + ( CAST( + + col0 AS SIGNED ) ) AS SIGNED ) AS col0, + col1 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL CAST ( + ( CAST ( + + col0 AS INTEGER ) ) AS INTEGER ) AS col0, + col1 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + COUNT( DISTINCT - col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2528
SELECT + COUNT ( DISTINCT - col1 ) col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2530
SELECT - + COUNT( * ) DIV + 24 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2530
SELECT - + COUNT ( * ) / + 24 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2532
SELECT + 73 AS col0, - 86 * - CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
73
-4042
73
-8514
73
-860

skipif mysql # not compatible
query II rowsort label-2532
SELECT + 73 AS col0, - 86 * - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
73
-4042
73
-8514
73
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT + 3 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 / - 80 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT + 3 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 / - 80 IS NULL
----
9

query I rowsort
SELECT 6 + - col2 + + + 72 AS col2 FROM tab1 AS cor0
----
-18
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT - COUNT( 58 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT - COUNT ( 58 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col0 ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * - col1 + - col2 AS col1 FROM tab1 cor0
----
1248
236
3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT ALL - 67 DIV + + 56 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 67 / + + 56 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT ALL + col2 DIV - + ( - 5 ) + - col1 FROM tab2
----
-47
-56
-69

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL + col2 / - + ( - 5 ) + - col1 FROM tab2
----
-47
-56
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - MAX( + - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - MAX ( + - col0 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2542
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) + col0 + + 47 / + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2542
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) + col0 + + 47 / + CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT + - CAST( NULL AS SIGNED ) / + 37 + 24 * - + ( + 44 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT + - CAST ( NULL AS INTEGER ) / + 37 + 24 * - + ( + 44 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT ALL ( 92 ), - COUNT( * ) AS col2 FROM tab1 AS cor0
----
92
-3

skipif mysql # not compatible
query II rowsort label-2545
SELECT ALL ( 92 ), - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
92
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT + - COUNT( ALL - col0 ) AS col1, - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2546
SELECT + - COUNT ( ALL - col0 ) AS col1, - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT + COUNT( - 22 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + COUNT ( - 22 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 20 NOT IN ( + + 43, col0 + - - col0 - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <= + + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col0 * - col2
----

query I rowsort
SELECT ALL - 94 - 10 FROM tab0 AS cor0
----
-104
-104
-104

query I rowsort
SELECT DISTINCT + 45 + - col1 AS col2 FROM tab1 AS cor0
----
-2
31
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT DISTINCT - + 95 DIV 79 + + 84 - - 15 * - - 95 + + col0 FROM tab2 AS cor0
----
1554
1572
1583

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - + 95 / 79 + + 84 - - 15 * - - 95 + + col0 FROM tab2 AS cor0
----
1554
1572
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT MAX( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2554
SELECT MAX ( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + 20, 84 AS col2 FROM tab0
----
20
84
20
84
20
84

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL COUNT( - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL COUNT ( - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + - ( + 70 ) FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * 60 col0 FROM tab2
----
5760

query I rowsort
SELECT DISTINCT - + col0 * - - 83 AS col1 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT - 82 AS col1, COUNT( DISTINCT + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
-82
3

skipif mysql # not compatible
query II rowsort label-2562
SELECT - 82 AS col1, COUNT ( DISTINCT + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
-82
3

query I rowsort
SELECT + 78 * 32 + - 21 AS col1 FROM tab0 AS cor0
----
2475
2475
2475

query I rowsort
SELECT DISTINCT + + col2 * - - col1 * - + col1 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 8 AND NULL
----

query I rowsort
SELECT ALL ( - + col2 ) * col1 + 1 FROM tab2 AS cor0
----
-1172
-3079
-3885

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT MAX( DISTINCT col0 ) * + 61 * 34 col1 FROM tab0 AS cor0
----
201178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2567
SELECT DISTINCT MAX ( DISTINCT col0 ) * + 61 * 34 col1 FROM tab0 AS cor0
----
201178

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - 99 / 32 IS NULL
----

query I rowsort
SELECT - - 91 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 46 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT col2 * 21 + 14 + + 31 DIV + col1 FROM tab1 AS cor0
----
1259
1442
2032

skipif mysql # not compatible
query I rowsort label-2571
SELECT col2 * 21 + 14 + + 31 / + col1 FROM tab1 AS cor0
----
1259
1442
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + - 21 * - - COUNT( * ) * - 72 FROM tab2 AS cor0
----
4536

skipif mysql # not compatible
query I rowsort label-2572
SELECT + - 21 * - - COUNT ( * ) * - 72 FROM tab2 AS cor0
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT DISTINCT - 81 DIV - + 37 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT - 81 / - + 37 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT - 33 AS col2, SUM( ALL + 41 ) * + COUNT( * ) FROM tab2
----
-33
369

skipif mysql # not compatible
query II rowsort label-2574
SELECT - 33 AS col2, SUM ( ALL + 41 ) * + COUNT ( * ) FROM tab2
----
-33
369

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT ALL - + col2 * + col2 + - - col1 + + col2 * col2 DIV col1 + + 24 + - + 11 * + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-1008
-1042
-2242

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - + col2 * + col2 + - - col1 + + col2 * col2 / col1 + + 24 + - + 11 * + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-1008
-1042
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + MIN( 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2576
SELECT + MIN ( 45 ) FROM tab2
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23, - 50 col2 FROM tab2
----
-23
-50
-23
-50
-23
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + MIN( ALL - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2578
SELECT + MIN ( ALL - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT ALL + 7 + - - col2 FROM tab1
----
103
66
75

query I rowsort
SELECT - 49 AS col0 FROM tab2 WHERE - 55 * - - col0 * 65 < - col1 * - 3 * + col1
----
-49
-49
-49

query I rowsort
SELECT ALL col0 + - 53 * - 75 FROM tab2
----
4021
4039
4050

query I rowsort
SELECT col1 + + col0 - + col1 * + col0 FROM tab0
----
-1119
-1719
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE + + col0 / - + ( - col0 ) * + - col0 * + 99 IS NOT NULL OR ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab1
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + 16 + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( 27 + + col1 ) IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-2585
SELECT + 16 + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( 27 + + col1 ) IS NULL
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 14 col2 FROM tab0
----
1218
1358
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT DISTINCT col1 + 21 AS col2 FROM tab0 WHERE + ( - ( CAST( NULL AS SIGNED ) ) ) IS NULL
----
102
22
42

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT col1 + 21 AS col2 FROM tab0 WHERE + ( - ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----
102
22
42

query I rowsort
SELECT ALL 75 * + col2 FROM tab0
----
3525
7425
750

query I rowsort
SELECT 20 * 29 - col0 AS col1 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT col1 DIV 7 col2 FROM tab1
----
0
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2590
SELECT col1 / 7 col2 FROM tab1
----
0
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT col1 DIV + 81 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2591
SELECT col1 / + 81 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT 53 DIV + 1 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-2592
SELECT 53 / + 1 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT MIN( col0 ) DIV - 56 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT MIN ( col0 ) / - 56 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL 82 - 0 AS col0 FROM tab1
----
82
82
82

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT 10 FROM tab2 WHERE NOT - col0 * 82 IN ( - 17 )
----
10
10
10

query I rowsort
SELECT ALL 63 * col1 + + 85 AS col1 FROM tab0
----
1408
148
5188

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + 0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - MAX( ALL 33 ) col0 FROM tab2
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2600
SELECT - MAX ( ALL 33 ) col0 FROM tab2
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2601
SELECT - CAST( + col2 AS SIGNED ) DIV - col0 + + col2 DIV + ( + 58 ) FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2601
SELECT - CAST ( + col2 AS INTEGER ) / - col0 + + col2 / + ( + 58 ) FROM tab0
----
0
2
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * 96 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2603
SELECT 0 + + COUNT( ALL col2 ) * - MIN( - 71 + - ( - 63 ) DIV - col0 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-2603
SELECT 0 + + COUNT ( ALL col2 ) * - MIN ( - 71 + - ( - 63 ) / - col0 ) FROM tab2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + COUNT( * ) * 80 FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + COUNT ( * ) * 80 FROM tab2 cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + COUNT( * ) * + 52 AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) * + 52 AS col2 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-14
-14

query I rowsort
SELECT ALL + col1 * + 55 FROM tab1 AS cor0
----
2585
275
770

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2609
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT DISTINCT - + 15 DIV 87 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - + 15 / 87 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 94 AS col2 FROM tab0 cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL - - col2 * 60 AS col2 FROM tab2 AS cor0
----
1380
2400
3480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col2 FROM tab1 AS cor0
----
-98
-98
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + SUM( DISTINCT - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + SUM ( DISTINCT - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 90 + - col0 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT MIN( ALL + 9 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2618
SELECT MIN ( ALL + 9 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 71 )
----

query I rowsort
SELECT col1 + - + 28 FROM tab2
----
23
39
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2621
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + CAST ( NULL AS REAL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT + MAX( - - 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + MAX ( - - 88 ) FROM tab0
----
88

query I rowsort
SELECT ALL col0 + + - 21 FROM tab2
----
25
43
54

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( col0 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL AVG ( - ( col0 ) ) + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL AVG ( - ( col0 ) ) + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + - 64 + col1 AS col2 FROM tab0 AS cor0
----
-43
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT - + col0 - - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT - + col0 - - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT - ( 59 ) < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 34 NOT BETWEEN - 58 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 15 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + col0 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 30, - ( col2 ) col2 FROM tab1 AS cor0
----
-30
-59
-30
-68
-30
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + - CAST( ( - 36 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-2633
SELECT + - CAST ( ( - 36 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + + col2 - + col0 NOT BETWEEN ( NULL ) AND ( - 70 ) OR NOT ( + 56 * 91 ) IS NOT NULL
----

query II rowsort
SELECT ALL col2, - ( - col0 ) AS col0 FROM tab1 cor0
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 / + col0 + + col1 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - + MIN( 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2637
SELECT - + MIN ( 21 ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT( * ) ) FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT ( * ) ) FROM tab1 AS cor0
----
50
3

query I rowsort
SELECT + 48 * + col0 FROM tab2 AS cor0 WHERE NOT 80 + + col0 IS NOT NULL
----

query I rowsort
SELECT 97 * 62 FROM tab2 AS cor0 WHERE NOT col1 >= + col0
----
6014

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT - 14, - MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-14
-75

skipif mysql # not compatible
query II rowsort label-2641
SELECT - 14, - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-14
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT - ( - MAX( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE col1 + + col2 + col2 <> ( 87 )
----
-23

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - ( - MAX ( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE col1 + + col2 + col2 <> ( 87 )
----
-23

query II rowsort
SELECT + ( + + 5 ) AS col2, 96 + + col2 AS col0 FROM tab2
----
5
119
5
136
5
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT ALL 24 AS col0 FROM tab2 WHERE NOT ( + CAST( col0 AS SIGNED ) + col2 ) >= 0
----

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 24 AS col0 FROM tab2 WHERE NOT ( + CAST ( col0 AS INTEGER ) + col2 ) >= 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2645
SELECT ALL * FROM tab1 WHERE + - col2 * + + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2645
SELECT ALL * FROM tab1 WHERE + - col2 * + + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col2 * + 42 * 70 AS col0 FROM tab0
----
138180
291060
29400

query I rowsort
SELECT ALL + col2 * - col0 * - - 52 * 21 AS col2 FROM tab0
----
-10486476
-769860
-950040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2648
SELECT ( - COUNT( * ) ) * COUNT( * ) DIV + 8 + - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2648
SELECT ( - COUNT ( * ) ) * COUNT ( * ) / + 8 + - COUNT ( * ) FROM tab2 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) > col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( col2 + col0 ) IN ( CAST( - 41 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( col2 + col0 ) IN ( CAST ( - 41 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT + - ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT + - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 47 AS col0 FROM tab1 AS cor0 WHERE col0 * col1 - col2 IS NOT NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + - - col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 40 * + col1 + - col0 FROM tab2 AS cor0
----
1994
2605
3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL ( + ( col1 ) ) + - ( - CAST( NULL AS SIGNED ) ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL ( + ( col1 ) ) + - ( - CAST ( NULL AS INTEGER ) ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 9 FROM tab1 AS cor0 WHERE ( NULL ) > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + COUNT( 14 ) FROM tab1 AS cor0 WHERE NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT + COUNT ( 14 ) FROM tab1 AS cor0 WHERE NULL > - col0
----
0

query I rowsort
SELECT ALL col1 - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 < + + col2
----
108
96
98

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2 cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE ( NULL = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT 10 * + CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
-510
-670
-770

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT 10 * + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT 91 * + - col2 + + col0 AS col0 FROM tab2
----
-2047
-3576
-5203

query I rowsort
SELECT DISTINCT col2 - col0 * + col2 FROM tab1 WHERE NOT ( - col2 * + col1 NOT BETWEEN - - 68 * - 92 AND NULL )
----

query I rowsort
SELECT + ( + + 98 ) * - - ( - col0 ) + - 54 + col2 FROM tab2
----
-4539
-6286
-7346

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + ( SUM( DISTINCT col2 ) ) AS col1 FROM tab2 WHERE ( ( - col1 > col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + ( SUM ( DISTINCT col2 ) ) AS col1 FROM tab2 WHERE ( ( - col1 > col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT ( COUNT( * ) ) * + COUNT( * ) * - - ( + COUNT( * ) ) * - 18 FROM tab0
----
-486

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT ( COUNT ( * ) ) * + COUNT ( * ) * - - ( + COUNT ( * ) ) * - 18 FROM tab0
----
-486

query I rowsort
SELECT 1 + - 9 + + 40 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT - col2 * col1 * - - CAST( NULL AS SIGNED ) * ( + col2 ) + - col0 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT - col2 * col1 * - - CAST ( NULL AS INTEGER ) * ( + col2 ) + - col0 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 19 + col0 AS col2 FROM tab2
----
65
83
94

query I rowsort
SELECT - col2 + + col2 + + 54 AS col2 FROM tab0
----
54
54
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2672
SELECT DISTINCT + COUNT( * ) + + - ( - + CAST( NULL AS SIGNED ) ) + - ( + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + COUNT ( * ) + + - ( - + CAST ( NULL AS INTEGER ) ) + - ( + COUNT ( * ) ) FROM tab1
----
NULL

query II rowsort
SELECT + col1 + 20, col2 AS col2 FROM tab1
----
25
59
34
96
67
68

query I rowsort
SELECT ALL 35 + - 19 * col0 FROM tab0 WHERE - - col0 NOT BETWEEN ( + 6 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col1 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2677
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 NOT BETWEEN - col2 + - CAST( 96 AS SIGNED ) AND ( NULL ) ) OR NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2677
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 NOT BETWEEN - col2 + - CAST ( 96 AS INTEGER ) AND ( NULL ) ) OR NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT + MAX( DISTINCT - 74 ) - + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT + MAX ( DISTINCT - 74 ) - + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2679
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 63 * col2 AS col2 FROM tab0
----
2961
6237
630

query I rowsort
SELECT ALL col1 - + 14 FROM tab0 WHERE NOT + col1 IN ( - col2 )
----
-13
67
7

query I rowsort
SELECT DISTINCT ( - col2 ) + + col2 + - 87 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2683
SELECT ALL + - col1 AS col0, CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2683
SELECT ALL + - col1 AS col0, CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL - 99 * + CAST( NULL AS SIGNED ) * + 55 + - COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - 99 * + CAST ( NULL AS INTEGER ) * + 55 + - COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT SUM( 63 ) FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT SUM ( 63 ) FROM tab0 cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2687
SELECT SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT - + col0 AS col1 FROM tab2 WHERE NOT - 74 NOT IN ( + col2, CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query I rowsort label-2688
SELECT - + col0 AS col1 FROM tab2 WHERE NOT - 74 NOT IN ( + col2, CAST ( NULL AS INTEGER ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT + CAST( + col0 AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2689
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT 47 FROM tab0 WHERE + ( + - 66 ) < - col2 / col2 + col1 - - col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT DISTINCT 8, COUNT( * ) - - COUNT( * ) AS col2 FROM tab0
----
8
6

skipif mysql # not compatible
query II rowsort label-2691
SELECT DISTINCT 8, COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0
----
8
6

query II rowsort
SELECT 42 AS col2, 92 FROM tab0
----
42
92
42
92
42
92

query I rowsort
SELECT - - 27 + + col0 FROM tab0 WHERE NOT - 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2694
SELECT ALL * FROM tab1 WHERE NOT CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2694
SELECT ALL * FROM tab1 WHERE NOT CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 28 = - ( - col2 ) + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 99 * + - col0 AS col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT - COUNT( * ), - 58 * - - 85 AS col2 FROM tab2 AS cor0
----
-3
-4930

skipif mysql # not compatible
query II rowsort label-2697
SELECT - COUNT ( * ), - 58 * - - 85 AS col2 FROM tab2 AS cor0
----
-3
-4930

query II rowsort
SELECT + col0 AS col0, - 14 FROM tab2 AS cor0
----
46
-14
64
-14
75
-14

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45

query I rowsort
SELECT DISTINCT + - col0 + 33 * - col1 FROM tab0 AS cor0
----
-130
-2688
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 - - - 11 col0 FROM tab0 AS cor0
----
-108
-207
-73

query I rowsort
SELECT DISTINCT + col1 + - + 13 + + - col1 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - + 51 + - MAX( ALL col2 ) * - - MAX( ALL - col0 ) FROM tab2 cor0
----
2617

skipif mysql # not compatible
query I rowsort label-2703
SELECT - + 51 + - MAX ( ALL col2 ) * - - MAX ( ALL - col0 ) FROM tab2 cor0
----
2617

query II rowsort
SELECT + 42 * col2 AS col0, - 79 AS col0 FROM tab0 cor0
----
1974
-79
4158
-79
420
-79

query I rowsort
SELECT DISTINCT + col1 * + 52 + + 86 AS col2 FROM tab1 AS cor0
----
2530
346
814

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2706
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) = + + col2
----

skipif mysql # not compatible
query III rowsort label-2706
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + + col2
----

query I rowsort
SELECT 3 * + + 26 AS col2 FROM tab1 cor0
----
78
78
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 BETWEEN ( + - col2 ) AND ( - col1 * col1 )
----

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2710
SELECT * FROM tab2 WHERE NULL NOT IN ( - col1 * + col2 + + col2 + col2 * - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-2710
SELECT * FROM tab2 WHERE NULL NOT IN ( - col1 * + col2 + + col2 + col2 * - CAST ( NULL AS INTEGER ), - col1 )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE + ( + - ( - col1 ) ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 74 * - col0 AS col0 FROM tab1
----
-3774
-6290
-6734

query I rowsort
SELECT + 8 - - - col1 AS col2 FROM tab0 cor0
----
-13
-73
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2715
SELECT + 81 * 5 AS col2, CAST( NULL AS SIGNED ), + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - 2 )
----
405
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2715
SELECT + 81 * 5 AS col2, CAST ( NULL AS INTEGER ), + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - 2 )
----
405
NULL
0

query I rowsort
SELECT - - col2 + + 79 FROM tab2 AS cor0
----
102
119
137

onlyif mysql # DIV for integer division: 
query II rowsort label-2717
SELECT DISTINCT + - 61 DIV + col0 - + col0, 68 AS col0 FROM tab1 AS cor0
----
-52
68
-85
68
-91
68

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT + - 61 / + col0 - + col0, 68 AS col0 FROM tab1 AS cor0
----
-52
68
-85
68
-91
68

query I rowsort
SELECT ALL + col0 - - col1 * - ( + col0 ) FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT ALL + - 7 + + - ( 80 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * col1 col1 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT + col0 * - - ( + 35 ) AS col1 FROM tab0
----
3045
3395
525

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 + col1 + + + 43 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT - 33 DIV + - col0 - + col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2723
SELECT - 33 / + - col0 - + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + col2 * - + 22 + - col1 + - + 53 * col0 FROM tab1 AS cor0
----
-4829
-5808
-6366

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ( - 83 ) - COUNT( * ) FROM tab2 WHERE NOT ( + - col2 * + + col2 * - - col1 + + 75 + - col0 + col0 + + col2 * 42 ) IS NOT NULL
----
-83

skipif mysql # not compatible
query I rowsort label-2725
SELECT ( - 83 ) - COUNT ( * ) FROM tab2 WHERE NOT ( + - col2 * + + col2 * - - col1 + + 75 + - col0 + col0 + + col2 * 42 ) IS NOT NULL
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) * + - 19 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) * + - 19 * + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col0 - + 83 AS col2 FROM tab2
----
-14
21
50

query I rowsort
SELECT 4 + 59 AS col0 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - ( ( + + 93 ) ) FROM tab2 AS cor0
----
-116
-133
-151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2731
SELECT - 65 col2, + CAST( col2 AS SIGNED ) * + ( - 85 ) - + 4 + + col0 FROM tab0 AS cor0
----
-65
-3984
-65
-767
-65
-8322

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2731
SELECT - 65 col2, + CAST ( col2 AS INTEGER ) * + ( - 85 ) - + 4 + + col0 FROM tab0 AS cor0
----
-65
-3984
-65
-767
-65
-8322

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 75
----

query II rowsort
SELECT col1, - col0 * + col1 AS col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT DISTINCT - 67 * - 32 + + + 41 AS col2 FROM tab1 cor0
----
2185

query I rowsort
SELECT ALL 74 + - col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT - col1 * + 23 + col0 DIV - + 91 + - 86 + - - col1 + - 11 + - 36 + + col2 FROM tab1 cor0
----
-1100
-184
-345

skipif mysql # not compatible
query I rowsort label-2736
SELECT - col1 * + 23 + col0 / - + 91 + - 86 + - - col1 + - 11 + - 36 + + col2 FROM tab1 cor0
----
-1100
-184
-345

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - 70 + - + 17 + - - col2 / - - ( + ( - col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT - MIN( - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab2 WHERE NOT col1 NOT BETWEEN col2 AND + - col1
----

query I rowsort
SELECT DISTINCT 56 + + col0 FROM tab2
----
102
120
131

onlyif mysql # DIV for integer division: 
query II rowsort label-2741
SELECT ALL + ( - - ( col1 ) ) + + col2 AS col0, col0 DIV + 86 FROM tab1
----
110
0
115
1
64
0

skipif mysql # not compatible
query II rowsort label-2741
SELECT ALL + ( - - ( col1 ) ) + + col2 AS col0, col0 / + 86 FROM tab1
----
110
0
115
1
64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + 49 + + COUNT( * ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 49 + + COUNT ( * ) AS col0 FROM tab2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT col2 * + CAST( + - col2 AS SIGNED ) AS col1 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-2743
SELECT col2 * + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT ALL + COUNT( * ) * + - COUNT( * ) DIV - + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) / - + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 49 AND + - 14
----

query I rowsort
SELECT ALL + - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 27 * - col1 FROM tab0 AS cor0
----
-2187
-27
-567

query I rowsort
SELECT ALL + + 59 AS col0 FROM tab0 AS cor0 WHERE NULL <> 92 + - + 3
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 82 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + 92 ) ) col2 FROM tab1
----
-92

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 90 > NULL
----

query I rowsort
SELECT ALL - 12 * - 47 + - - col1 AS col2 FROM tab2 AS cor0
----
615
631
641

query I rowsort
SELECT + col2 * 83 * - - 62 AS col1 FROM tab0 AS cor0
----
241862
509454
51460

query I rowsort
SELECT - col2 * + + 34 AS col1 FROM tab2 AS cor0
----
-1360
-1972
-782

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + col1 NOT BETWEEN 43 + col1 AND ( NULL )
----
51
14
96
85
5
59

query I rowsort
SELECT + col0 * + 11 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + COUNT( * ) + ( - 32 ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2758
SELECT + COUNT ( * ) + ( - 32 ) AS col1 FROM tab1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + col1 DIV + ( 63 ) + + 32 * - col2 * col0 FROM tab2
----
-139199
-33856
-81919

skipif mysql # not compatible
query I rowsort label-2759
SELECT + col1 / + ( 63 ) + + 32 * - col2 * col0 FROM tab2
----
-139199
-33856
-81919

query II rowsort
SELECT col1 + + - col1, + col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT - + 36 * + 38 FROM tab0 AS cor0
----
-1368
-1368
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - SUM( DISTINCT + ( + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2762
SELECT - SUM ( DISTINCT + ( + col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2763
SELECT ALL + 11 + + + col1 + - col2 - col2 / + + col2 * + CAST( NULL AS DECIMAL ) * + col1 * 20 * + - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 11 + + + col1 + - col2 - col2 / + + col2 * + CAST ( NULL AS REAL ) * + col1 * 20 * + - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 96 + - col1 FROM tab1 AS cor0
----
-101
-110
-143

onlyif mysql # DIV for integer division: 
query II rowsort label-2765
SELECT + col2 * ( - col0 ) AS col2, + col1 DIV - col0 FROM tab1
----
-4896
0
-5015
0
-6188
0

skipif mysql # not compatible
query II rowsort label-2765
SELECT + col2 * ( - col0 ) AS col2, + col1 / - col0 FROM tab1
----
-4896
0
-5015
0
-6188
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT + 45 * COUNT( * ) - - ( ( + 40 ) ) AS col0 FROM tab2
----
175

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT + 45 * COUNT ( * ) - - ( ( + 40 ) ) AS col0 FROM tab2
----
175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT ALL 65 AS col2 FROM tab0 WHERE NOT ( NOT NULL >= col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col2 + 71 AND + col2 / + + col0 / - ( col0 ) + + + 46 + + col1 - col0 + - col2 * col0 / - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 AS col0, ( + - col1 ) * ( - - col2 ) col0 FROM tab2
----
75
-1173
75
-3080
75
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT col0, col1 + - + 9 AS col1 FROM tab1 AS cor0
----
51
5
85
-4
91
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT ALL + 81 AS col2, - COUNT( * ) + - + 14 col0 FROM tab2 AS cor0 WHERE NULL <= col2
----
81
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2773
SELECT ALL + 81 AS col2, - COUNT ( * ) + - + 14 col0 FROM tab2 AS cor0 WHERE NULL <= col2
----
81
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2774
SELECT + + col1 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2774
SELECT + + col1 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT col2 * + 30 * - col0 AS col2 FROM tab0
----
-21150
-26100
-288090

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT COUNT( + ( 15 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2776
SELECT COUNT ( + ( 15 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col1 * - 98 FROM tab1
----
-1372
-4606
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT DISTINCT ( - COUNT( * ) ) * + - CAST( + + 63 AS SIGNED ) + MIN( + col1 ) + + 39 * 3 + - COUNT( * ) AS col1 FROM tab2 cor0
----
354

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT ( - COUNT ( * ) ) * + - CAST ( + + 63 AS INTEGER ) + MIN ( + col1 ) + + 39 * 3 + - COUNT ( * ) AS col1 FROM tab2 cor0
----
354

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT COUNT( * ) * + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2779
SELECT COUNT ( * ) * + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - 17 AS col2 FROM tab2 cor0
----
-17
-17
-17

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 29 IN ( - - col2 * - col1, 93, ( col2 ) + + + col1 + + col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( 43 ) FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT COUNT( * ) AS col0, + COUNT( * ) col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2783
SELECT COUNT ( * ) AS col0, + COUNT ( * ) col2 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL col2 + col1 - + + col1 / CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL col2 + col1 - + + col1 / CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 31 * - 10 FROM tab0
----
-310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col2 + + - col2 col1 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL - 98 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 98 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 + + - col2 col0 FROM tab1
----
-152
-161
-189

query I rowsort
SELECT 53 + + - col2 FROM tab1
----
-15
-43
-6

query I rowsort
SELECT + col0 + + + col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT col0 + + + 16 AS col1 FROM tab1
----
101
107
67

query III rowsort
SELECT * FROM tab0 WHERE + 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + 68 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - MIN( ALL + col1 ) * + + COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - MIN ( ALL + col1 ) * + + COUNT ( * ) AS col0 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT col1 * + + col0 + 48 AS col2 FROM tab0
----
1263
145
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT ALL - col2 * col0 DIV + col2 col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2796
SELECT ALL - col2 * col0 / + col2 col2 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2797
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN - col1 * 66 AND + 22
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2797
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN - col1 * 66 AND + 22
----
15
81
47

query I rowsort
SELECT DISTINCT + - 80 FROM tab0 cor0
----
-80

query I rowsort
SELECT ALL - col2 - 2 AS col0 FROM tab0 cor0
----
-101
-12
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT - + CAST( NULL AS SIGNED ) + + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT - + CAST ( NULL AS INTEGER ) + + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 + 76 + + col0 col0 FROM tab1
----
50
84
90

query I rowsort
SELECT + col1 * + 85 * col1 * col1 AS col2 FROM tab2
----
11275335
25564855
38805305

query I rowsort
SELECT ALL ( + - 49 ) FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT + COUNT( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + COUNT ( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 46 + 31 / + - 97 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2806
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * - 23 * - - 13 AND + CAST( NULL AS SIGNED ) / + col2
----

skipif mysql # not compatible
query III rowsort label-2806
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * - 23 * - - 13 AND + CAST ( NULL AS INTEGER ) / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( DISTINCT col0 ) col0 FROM tab2 AS cor0 WHERE NOT - 16 - + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT - ( - col1 ) + - col2, + col0 FROM tab0 AS cor0
----
-98
97
11
87
34
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + SUM( ALL ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + SUM ( ALL ( + col1 ) ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IS NOT NULL AND - col0 IS NULL
----

query I rowsort
SELECT + col0 + + col2 + + col2 - - col2 FROM tab0 AS cor0
----
117
156
394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 + - + 86 AS col2 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT DISTINCT col2 + - 36 FROM tab1
----
23
32
60

query II rowsort
SELECT ALL + col1 * - - col1, - col2 AS col0 FROM tab1
----
196
-96
2209
-68
25
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT - col2 DIV - 7 FROM tab0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-2816
SELECT - col2 / - 7 FROM tab0
----
1
14
6

query I rowsort
SELECT DISTINCT 23 FROM tab0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 77 <> NULL
----

query II rowsort
SELECT ALL - col2 AS col0, - 90 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL + 64 + - ( - COUNT( * ) ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + 64 + - ( - COUNT ( * ) ) FROM tab2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( * ) + 96 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( * ) + 96 FROM tab1 AS cor0
----
99

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 FROM tab0 AS cor0 WHERE NULL < col1 * + col0
----

query I rowsort
SELECT DISTINCT + col0 * + 84 AS col0 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT DISTINCT + col2 + + col0 + - + 53 FROM tab0 AS cor0
----
143
44
9

query I rowsort
SELECT 52 - - - col1 FROM tab1 AS cor0
----
38
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL - - CAST( - col2 AS SIGNED ) - ( + CAST( + ( 49 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-108
-117
-145

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - - CAST ( - col2 AS INTEGER ) - ( + CAST ( + ( 49 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-108
-117
-145

query I rowsort
SELECT ALL - col0 * - 9 + + - 27 FROM tab0 AS cor0
----
108
756
846

query I rowsort
SELECT ALL col2 + + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( 88 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 72 AS col1 FROM tab2 cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT DISTINCT + - 67 + - col1 DIV + col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT + - 67 + - col1 / + col0 FROM tab1 AS cor0
----
-67

query II rowsort
SELECT - 41, - col2 AS col2 FROM tab0 AS cor0
----
-41
-10
-41
-47
-41
-99

query I rowsort
SELECT + - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - col1 DIV 15 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col1 / 15 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT + ( + COUNT( * ) ) * - ( ( + + 79 ) ) * + 14 + - + 78 FROM tab0
----
-3396

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + ( + COUNT ( * ) ) * - ( ( + + 79 ) ) * + 14 + - + 78 FROM tab0
----
-3396

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT - MAX( + - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - MAX ( + - col1 ) AS col1 FROM tab1
----
5

query II rowsort
SELECT ALL + 26, - 17 AS col1 FROM tab0
----
26
-17
26
-17
26
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT DISTINCT + col2, col0 DIV + col0 + - col0 FROM tab2 AS cor0
----
23
-45
40
-63
58
-74

skipif mysql # not compatible
query II rowsort label-2841
SELECT DISTINCT + col2, col0 / + col0 + - col0 FROM tab2 AS cor0
----
23
-45
40
-63
58
-74

query I rowsort
SELECT ALL - 84 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - COUNT( * ) * - 78 AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-2844
SELECT - COUNT ( * ) * - 78 AS col2 FROM tab0
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT ALL CAST( + col2 AS SIGNED ) + + ( + 35 ) AS col0 FROM tab1 AS cor0
----
103
131
94

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL CAST ( + col2 AS INTEGER ) + + ( + 35 ) AS col0 FROM tab1 AS cor0
----
103
131
94

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 64 col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT - + ( - - 20 ) * - col0 * + 1 AS col0 FROM tab2 cor0
----
1280
1500
920

query I rowsort
SELECT - 65 + 46 FROM tab2
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 WHERE + - 19 + - 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 98 + + - col1 FROM tab2
----
2203
3843
5617

query I rowsort
SELECT ALL 98 + - 5 AS col0 FROM tab1
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col1 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( - 65 ) * + 30 * COUNT( * ) + - + COUNT( * ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( - 65 ) * + 30 * COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT + COUNT( * ) + - 34 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + COUNT ( * ) + - 34 FROM tab2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2857
SELECT ALL - CAST( + ( - CAST( + - col1 AS DECIMAL ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL - CAST ( + ( - CAST ( + - col1 AS REAL ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - 72 + - col0 AND - col2
----

query II rowsort
SELECT ALL + col0 - + + col1 * - 81, col2 AS col1 FROM tab0 cor0
----
178
99
1788
10
6576
47

query I rowsort
SELECT - col1 * - 91 - - col1 AS col1 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT - col1 * + col0 - + - col0 AS col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT - col0 * - - 81 - - col0 FROM tab2 cor0
----
-3680
-5120
-6000

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT ALL - 35 DIV + - 34 col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2864
SELECT ALL - 35 / + - 34 col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT ALL - col1 DIV - col2 col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT ALL - col1 / - col2 col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col0 * ( + col0 ) AS col2 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT - 81 AS col1, 6 AS col0 FROM tab0
----
-81
6
-81
6
-81
6

query II rowsort
SELECT - col1, ( col2 ) FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 80 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0 * + 62 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - col1 col2 FROM tab2
----
-4539
-5963
-6853

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL - 20 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - 20 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT COUNT( - col0 ) + - 76 * - 78 FROM tab0 AS cor0
----
5931

skipif mysql # not compatible
query I rowsort label-2875
SELECT COUNT ( - col0 ) + - 76 * - 78 FROM tab0 AS cor0
----
5931

query I rowsort
SELECT - 1 + + col2 FROM tab1 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + - MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + - MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL + col2, + col2 * - - 72 AS col0 FROM tab0 AS cor0
----
10
720
47
3384
99
7128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT MIN( - ( + col1 ) ) DIV + - 96 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT MIN ( - ( + col1 ) ) / + - 96 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT ALL 13 DIV - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 13 / - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT MIN( DISTINCT - 9 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2881
SELECT MIN ( DISTINCT - 9 ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT + ( - 6 ) AS col2, + MAX( + - col2 ) FROM tab1
----
-6
-59

skipif mysql # not compatible
query II rowsort label-2882
SELECT + ( - 6 ) AS col2, + MAX ( + - col2 ) FROM tab1
----
-6
-59

query I rowsort
SELECT DISTINCT + 14 + + col1 AS col0 FROM tab0
----
15
35
95

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - ( + 14 ) FROM tab0
----
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 25 * + col1 + - - col2 FROM tab0
----
124
2072
535

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - + COUNT( * ) - 72 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - + COUNT ( * ) - 72 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT - + MAX( DISTINCT - 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - + MAX ( DISTINCT - 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab0, tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 57 * col1 + 62 - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
2673
288
764

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - ( - COUNT( - + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2892
SELECT - ( - COUNT ( - + col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE NOT col2 * - - 37 * - col0 * - 89 NOT BETWEEN - col2 - - col1 AND - + col0 + - col1 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT ALL - ( - 4 ) DIV - + 16 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - ( - 4 ) / - + 16 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col1 - 76 FROM tab0 AS cor0
----
-175
-286
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT + COUNT( * ) * + COUNT( + - 57 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + COUNT ( * ) * + COUNT ( + - 57 ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2897
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col2 * + - 49 col2 FROM tab2 AS cor0
----
NULL
-1127
NULL
-1960
NULL
-2842

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2897
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col2 * + - 49 col2 FROM tab2 AS cor0
----
NULL
-1127
NULL
-1960
NULL
-2842

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1 cor0
----
81
81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2900
SELECT DISTINCT * FROM tab2 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2900
SELECT DISTINCT * FROM tab2 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2901
SELECT ALL * FROM tab1 WHERE NOT - col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2901
SELECT ALL * FROM tab1 WHERE NOT - col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT DISTINCT COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1 * col1 AS col1, + col2 FROM tab0
----
1
99
441
10
6561
47

query I rowsort
SELECT - ( 61 ) AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT col1 AS col1, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT 16 + - col0 + - - col0 * 71 FROM tab1 AS cor0
----
3586
5966
6386

query II rowsort
SELECT col0, ( + 16 ) FROM tab2 AS cor0
----
46
16
64
16
75
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT + MAX( ALL - + 26 ) AS col0 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + MAX ( ALL - + 26 ) AS col0 FROM tab1 cor0
----
-26

query I rowsort
SELECT - - col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT ALL + - 38 - + MAX( ( - 33 ) ) DIV - - ( 80 ) AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + - 38 - + MAX ( ( - 33 ) ) / - - ( 80 ) AS col1 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT + + MIN( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

query I rowsort
SELECT + col2 FROM tab0 WHERE - col2 < - - 96
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2913
SELECT * FROM tab1 WHERE col0 / - col2 + - col2 > - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2913
SELECT * FROM tab1 WHERE col0 / - col2 + - col2 > - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT 24 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT col1 DIV - col1 + + + 79 AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT col1 / - col1 + + + 79 AS col2 FROM tab0
----
78

query I rowsort
SELECT ALL + 53 + + col2 + col2 FROM tab1
----
171
189
245

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + 17 * - COUNT( * ) - 63 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + 17 * - COUNT ( * ) - 63 FROM tab1 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63, ( + - col1 ) col0 FROM tab1 AS cor0
----
-63
-14
-63
-47
-63
-5

query I rowsort
SELECT - col2 * + - 37 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT ALL 84 AS col2 FROM tab0 WHERE + + 3 + + col1 + - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 55 * + + 88 * - + col0 * - 73 - + col0 < + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT CAST( + col1 AS SIGNED ), col2 AS col2 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-2923
SELECT CAST ( + col1 AS INTEGER ), col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2924
SELECT COUNT( * ) DIV CAST( 74 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT COUNT ( * ) / CAST ( 74 AS INTEGER ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 2 ) AS col1 FROM tab1 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * - col2 IS NOT NULL )
----

query I rowsort
SELECT - - 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query II rowsort
SELECT 68, col0 FROM tab0
----
68
15
68
87
68
97

query II rowsort
SELECT 37 AS col2, + col0 * - col2 * - - col1 FROM tab0
----
37
-18270
37
-57105
37
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT - COUNT( * ) AS col1, + ( + 35 ) + - MAX( DISTINCT + + 56 ) FROM tab1
----
-3
-21

skipif mysql # not compatible
query II rowsort label-2931
SELECT - COUNT ( * ) AS col1, + ( + 35 ) + - MAX ( DISTINCT + + 56 ) FROM tab1
----
-3
-21

query I rowsort
SELECT col2 * 0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 4 * col1 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 80, col1 FROM tab0
----
80
1
80
21
80
81

query I rowsort
SELECT ALL + 25 + + + 78 FROM tab2
----
103
103
103

query II rowsort
SELECT ALL col1 AS col1, + ( - col2 ) + - 82 FROM tab0
----
1
-181
21
-92
81
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2938
SELECT DISTINCT col2 + + + 55 + - - ( - 77 ), + col2 * + ( - col2 ) + - + col1 - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1
----
37
NULL
46
NULL
74
NULL

skipif mysql # not compatible
query II rowsort label-2938
SELECT DISTINCT col2 + + + 55 + - - ( - 77 ), + col2 * + ( - col2 ) + - + col1 - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1
----
37
NULL
46
NULL
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + + MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + + MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - + COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2941
SELECT - + COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2942
SELECT * FROM tab2 WHERE + 9 + - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2942
SELECT * FROM tab2 WHERE + 9 + - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * - - 59 col0 FROM tab0
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE col1 + col1 IS NULL
----
0

query I rowsort
SELECT - 80 + - col0 FROM tab0 cor0
----
-167
-177
-95

query I rowsort
SELECT DISTINCT + ( - col1 ) + + + 1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT col1 * + + col0 + - col1 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL CAST( col1 AS SIGNED ) + + 6 FROM tab1 AS cor0
----
11
20
53

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL CAST ( col1 AS INTEGER ) + + 6 FROM tab1 AS cor0
----
11
20
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT CAST( NULL AS SIGNED ) * - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( NULL AS INTEGER ) * - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + MIN( ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2950
SELECT + MIN ( ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + - ( - - 43 ) FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + + col1 * 94 AS col0 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT col1 * - col0 * - col1 + - col0 - - - col1 * + col1 + - col2 * - col1 FROM tab2 AS cor0
----
118172
335997
376543

query I rowsort
SELECT DISTINCT - - 66 - + 94 AS col0 FROM tab2 AS cor0
----
-28

query II rowsort
SELECT ALL + 34 * + + col2 AS col1, col1 AS col2 FROM tab1 AS cor0
----
2006
5
2312
47
3264
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT SUM( + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2956
SELECT SUM ( + + col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / 3 NOT IN ( col1 + + - col2, - col1 + - col1 * + 46 * - col2 * + 40 * + col1 + - col1 - + col1, + + ( + + 30 ) )
----

query II rowsort
SELECT + ( - + col0 ) - - col0, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 - - ( - 79 ) - - 35 col0 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT ALL + col0 + + ( + + 17 ) AS col2 FROM tab2 AS cor0
----
63
81
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2961
SELECT - col1 * col0 * CAST( NULL AS DECIMAL ) + + - 32 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT - col1 * col0 * CAST ( NULL AS REAL ) + + - 32 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - SUM( - 42 ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - SUM ( - 42 ) FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT ALL + - CAST( NULL AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT ALL - col1 DIV ( + - 66 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - col1 / ( + - 66 ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1 AS col1, - 72 FROM tab1
----
14
-72
47
-72
5
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT + COUNT( + ( + col1 ) ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + COUNT ( + ( + col1 ) ) * COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT - 79 DIV - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 79 / - COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT - CAST( - col1 AS SIGNED ) * + + col0 * col1 FROM tab1 AS cor0
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-2968
SELECT - CAST ( - col1 AS INTEGER ) * + + col0 * col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT - - col1 * + 16 * - col2 + - col2 FROM tab2 AS cor0
----
-18791
-49320
-62234

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + COUNT( * ) * - 35 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2970
SELECT + COUNT ( * ) * - 35 FROM tab1 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND col2 / ( - - 6 ) * + + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 * + - col1
----

query I rowsort
SELECT + - 99 FROM tab1 WHERE NOT NULL BETWEEN - col1 * col1 AND + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2975
SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST( NULL AS DECIMAL ) * 53 IS NULL )
----
-20
64
-3
46
-38
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2975
SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST ( NULL AS REAL ) * 53 IS NULL )
----
-20
64
-3
46
-38
75

query I rowsort
SELECT DISTINCT - col1 * + - 57 FROM tab2
----
2907
3819
4389

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN ( + 45 / - + 85 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 11 ) * - - ( 53 ) AS col1 FROM tab0
----
583
583
583

query I rowsort
SELECT - 74 * + col1 AS col1 FROM tab2
----
-3774
-4958
-5698

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT DISTINCT col2 DIV col0 + - 45 AS col0 FROM tab0
----
-42
-44
-45

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT col2 / col0 + - 45 AS col0 FROM tab0
----
-42
-44
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col2 FROM tab1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col2, - col0 - - - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + - col0 ) + col0 - + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 + - col1 - - col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 78 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 78 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT 20 * - - MAX( + - col2 ) FROM tab1
----
-1180

skipif mysql # not compatible
query I rowsort label-2986
SELECT 20 * - - MAX ( + - col2 ) FROM tab1
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + MIN( DISTINCT - 41 ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2987
SELECT + MIN ( DISTINCT - 41 ) AS col1 FROM tab0
----
-41

query I rowsort
SELECT ALL + 74 - + + 82 * 39 FROM tab2 AS cor0
----
-3124
-3124
-3124

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT DISTINCT - 25 + + col2 DIV - + 49 FROM tab2 AS cor0
----
-25
-26

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - 25 + + col2 / - + 49 FROM tab2 AS cor0
----
-25
-26

query I rowsort
SELECT DISTINCT + col1 - + - col0 * + ( + 93 ) FROM tab1 cor0
----
4757
7910
8510

query I rowsort
SELECT DISTINCT + - ( - col1 ) - - - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) * - 39 AS col2 FROM tab2 AS cor0
----
-1989
-2613
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2993
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 58 * - - col1 AS col1 FROM tab2
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT + ( + COUNT( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + ( + COUNT ( + col0 ) ) FROM tab0
----
3

query I rowsort
SELECT + 46 + 94 - col1 AS col1 FROM tab2
----
63
73
89

query I rowsort
SELECT col2 * - 43 FROM tab2
----
-1720
-2494
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT ALL col2 DIV + + col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL col2 / + + col2 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT + col0 DIV - + col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2999
SELECT + col0 / - + col0 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ( ( + ( + COUNT( * ) ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3000
SELECT ( ( + ( + COUNT ( * ) ) ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 8 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
8

query I rowsort
SELECT + - 26 * + + col1 AS col2 FROM tab1 AS cor0
----
-1222
-130
-364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col1 + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) + - 55 AS col1 FROM tab0 AS cor0
----
-142
-152
-70

query I rowsort
SELECT ALL ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 + - col2 * col1 col0 FROM tab0 AS cor0
----
-101
-133
-3839

query I rowsort
SELECT + 14 + - - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-45
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL - - COUNT( * ) * + MAX( - - 56 ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - - COUNT ( * ) * + MAX ( - - 56 ) FROM tab1 AS cor0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT + - 99 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 70 + col2 * - + 73 AS col0 FROM tab1
----
-4237
-4894
-6938

query III rowsort
SELECT * FROM tab0 WHERE - 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 * - + 71 FROM tab1 cor0
----
-3337
-355
-994

query I rowsort
SELECT ALL - 55 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT COUNT( * ) + - MIN( ALL - col1 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3016
SELECT COUNT ( * ) + - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT 87 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3017
SELECT 87 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT 0 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT 0 + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT - col0 FROM tab1 WHERE - - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT SUM( - col2 ) + - + MAX( DISTINCT + col0 ) AS col2 FROM tab0
----
-253

skipif mysql # not compatible
query I rowsort label-3020
SELECT SUM ( - col2 ) + - + MAX ( DISTINCT + col0 ) AS col2 FROM tab0
----
-253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + + + col1 col2 FROM tab0 WHERE 12 IS NOT NULL
----
27
7
87

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 col0 FROM tab0 cor0
----
57
57
57

query II rowsort
SELECT DISTINCT + col0 - - col1, 63 AS col0 FROM tab0 AS cor0
----
108
63
96
63
98
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - COUNT( ALL + 68 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3025
SELECT - COUNT ( ALL + 68 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3026
SELECT ALL col1 - + CAST( NULL AS SIGNED ) AS col0, col2 * 94 AS col1 FROM tab2 AS cor0
----
NULL
2162
NULL
3760
NULL
5452

skipif mysql # not compatible
query II rowsort label-3026
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) AS col0, col2 * 94 AS col1 FROM tab2 AS cor0
----
NULL
2162
NULL
3760
NULL
5452

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT - - COUNT( DISTINCT - - ( - + col2 ) ), 93 col0 FROM tab1 AS cor0
----
3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3027
SELECT - - COUNT ( DISTINCT - - ( - + col2 ) ), 93 col0 FROM tab1 AS cor0
----
3
93

query I rowsort
SELECT DISTINCT + 94 - - 35 + + 89 FROM tab1 AS cor0
----
218

query I rowsort
SELECT 11 - - + 74 + - - 86 FROM tab2 cor0
----
171
171
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + + SUM( + - 80 ) * 74 AS col2 FROM tab0 AS cor0
----
-17760

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + + SUM ( + - 80 ) * 74 AS col2 FROM tab0 AS cor0
----
-17760

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3032
SELECT DISTINCT CAST( CAST( 88 AS SIGNED ) AS SIGNED ), - CAST( NULL AS DECIMAL ) + - ( 29 ) AS col1 FROM tab1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT CAST ( CAST ( 88 AS INTEGER ) AS INTEGER ), - CAST ( NULL AS REAL ) + - ( 29 ) AS col1 FROM tab1
----
88
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 88 * + + col1 FROM tab0
----
1848
7128
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT col1 * + col2 * - 34 * + col1 * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT col1 * + col2 * - 34 * + col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT 27 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3037
SELECT 27 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN - col0 AND col0
----
59
68
96

query I rowsort
SELECT ALL 26 - + col2 AS col1 FROM tab0
----
-21
-73
16

query I rowsort
SELECT 64 FROM tab1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3041
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * CAST( col2 / - col1 AS SIGNED ) AND 38
----

skipif mysql # not compatible
query III rowsort label-3041
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * CAST ( col2 / - col1 AS INTEGER ) AND 38
----

query I rowsort
SELECT ( + col0 ) * col0 + + 66 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 * - 75 AND + 82
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 7 FROM tab1 WHERE ( col0 * ( - col2 * - 76 ) ) IS NOT NULL
----
7
7
7

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 72 + + 29 FROM tab2
----
101

query I rowsort
SELECT DISTINCT ( 19 ) AS col1 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT COUNT( DISTINCT 84 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3048
SELECT COUNT ( DISTINCT 84 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 + + 67 FROM tab1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3051
SELECT DISTINCT * FROM tab0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3051
SELECT DISTINCT * FROM tab0 WHERE NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 / - col0 AS col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT 23 + - col0 AS col2 FROM tab1
----
-28
-62
-68

query I rowsort
SELECT + 52 + + col2 FROM tab0
----
151
62
99

query I rowsort
SELECT - 68 * col0 FROM tab0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL + MAX( DISTINCT - col2 ) + - ( 53 ) AS col1 FROM tab0 AS cor0 WHERE - col1 < + col0
----
-63

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + MAX ( DISTINCT - col2 ) + - ( 53 ) AS col1 FROM tab0 AS cor0 WHERE - col1 < + col0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( col2 ) ) NOT IN ( + col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL + MIN( ALL - 18 ) + MAX( ALL col0 ) AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + MIN ( ALL - 18 ) + MAX ( ALL col0 ) AS col0 FROM tab1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT - 55 DIV - 52 - col2 * col2 FROM tab0
----
-2208
-9800
-99

skipif mysql # not compatible
query I rowsort label-3059
SELECT - 55 / - 52 - col2 * col2 FROM tab0
----
-2208
-9800
-99

query I rowsort
SELECT - - col2 + 94 FROM tab1 cor0
----
153
162
190

query I rowsort
SELECT ALL - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3062
SELECT DISTINCT col2 / col0 FROM tab2 AS cor0 WHERE ( - CAST( - 42 AS DECIMAL ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT col2 / col0 FROM tab2 AS cor0 WHERE ( - CAST ( - 42 AS REAL ) ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 * col1 + 7 * 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL COUNT( col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL COUNT ( col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col0 * 56 AS col2 FROM tab2 WHERE NOT - 1 <= - col0 + col2 OR NOT ( NULL ) IS NOT NULL
----
2576
3584
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT - CAST( - 17 AS SIGNED ) AS col0 FROM tab1
----
17
17
17

skipif mysql # not compatible
query I rowsort label-3066
SELECT - CAST ( - 17 AS INTEGER ) AS col0 FROM tab1
----
17
17
17

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab0 WHERE NOT ( - col1 ) = - 34
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2 WHERE NOT - col0 IS NULL
----
10

query I rowsort
SELECT col1 * 80 FROM tab0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 65 DIV + col1 AS col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-3070
SELECT 65 / + col1 AS col1 FROM tab1
----
1
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL - - 81 * - COUNT( * ) FROM tab2 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - - 81 * - COUNT ( * ) FROM tab2 cor0
----
-243

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col2 * + col0 + + col0 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT col0 AS col0, 75 FROM tab0
----
15
75
87
75
97
75

query I rowsort
SELECT col0 + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + col2 + + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 72 + + col0 + col2 FROM tab0 AS cor0
----
134
169
268

query I rowsort
SELECT col0 + 54 AS col0 FROM tab2 AS cor0
----
100
118
129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 86 * - 56 * col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT CAST( - col2 AS SIGNED ) * - col2 * col2 * - col0 AS col1 FROM tab0
----
-1557345
-87000
-94119003

skipif mysql # not compatible
query I rowsort label-3082
SELECT CAST ( - col2 AS INTEGER ) * - col2 * col2 * - col0 AS col1 FROM tab0
----
-1557345
-87000
-94119003

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3083
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE ( ( + - 64 ) ) = - CAST( col0 AS DECIMAL )
----
-1

skipif mysql # not compatible
query I rowsort label-3083
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE ( ( + - 64 ) ) = - CAST ( col0 AS REAL )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT col0 * + col0 AS col1 FROM tab0 WHERE + 34 + 89 - + col1 * ( + 81 * CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3084
SELECT col0 * + col0 AS col1 FROM tab0 WHERE + 34 + 89 - + col1 * ( + 81 * CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - - 69 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( 18 )
----

query I rowsort
SELECT DISTINCT col2 + - 60 FROM tab2 WHERE + - col1 NOT BETWEEN + col0 AND col0
----
-2
-20
-37

query I rowsort
SELECT DISTINCT col2 + - col0 + + col0 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE ( - + col0 * - col1 / 77 ) = col1
----

query I rowsort
SELECT DISTINCT - col0 + - 64 - 13 FROM tab1 AS cor0
----
-128
-162
-168

query I rowsort
SELECT ALL - 27 * + col2 + - col2 - - - col1 AS col2 FROM tab2 cor0
----
-1197
-1691
-695

query I rowsort
SELECT DISTINCT - 93 * - col1 + 47 AS col2 FROM tab1 AS cor0
----
1349
4418
512

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * + ( - col2 ) + + col1 + ( col1 ) AS col2 FROM tab1 cor0
----
1372
305
3290

query I rowsort
SELECT - col0 + + + 10 FROM tab0
----
-5
-77
-87

query I rowsort
SELECT - col1 * 60 FROM tab0 AS cor0
----
-1260
-4860
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3097
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> ( - + 32 - - - CAST( - col2 AS SIGNED ) * 60 )
----

skipif mysql # not compatible
query III rowsort label-3097
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> ( - + 32 - - - CAST ( - col2 AS INTEGER ) * 60 )
----

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + MAX( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + MAX ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + - 33 AS col2 FROM tab2 cor0
----
-33
-33
-33

query II rowsort
SELECT - col2 AS col1, + col0 AS col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT COUNT( + 82 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3103
SELECT COUNT ( + 82 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col2, + ( + - col2 ) FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT 83 * - col2 FROM tab0
----
-3901
-8217
-830

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT 11 col1, + COUNT( * ) FROM tab0
----
11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3106
SELECT 11 col1, + COUNT ( * ) FROM tab0
----
11
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - col0 > col2
----

query II rowsort
SELECT 48, - col0 AS col0 FROM tab1
----
48
-51
48
-85
48
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + + ( 2 ) + - COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( 7 ) AND ( NULL ) )
----
2

skipif mysql # not compatible
query I rowsort label-3109
SELECT + + ( 2 ) + - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( 7 ) AND ( NULL ) )
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col1 col0, - col0 FROM tab0
----
1
-97
441
-87
6561
-15

query I rowsort
SELECT ALL - col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab2 AS cor0
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( 58 )
----

query I rowsort
SELECT 10 FROM tab1 WHERE NOT - 35 < ( - 24 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 49 / + col1 - 57 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 * + - col0 * + col1 * + col1 / - 45 )
----

query I rowsort
SELECT - col2 * - 47 AS col0 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL - + 41 AS col0 FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT ALL + 26 * + + COUNT( * ) AS col0, 22 AS col0 FROM tab1 AS cor0
----
78
22

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL + 26 * + + COUNT ( * ) AS col0, 22 AS col0 FROM tab1 AS cor0
----
78
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE col2 IN ( col1 / + col1 - - + 41 + + 14 + + CAST( NULL AS SIGNED ) ) OR ( - col1 * - 40 ) >= col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE col2 IN ( col1 / + col1 - - + 41 + + 14 + + CAST ( NULL AS INTEGER ) ) OR ( - col1 * - 40 ) >= col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + + + 46 IS NULL
----

query I rowsort
SELECT 93 * - 35 + + + 66 FROM tab0
----
-3189
-3189
-3189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT COUNT( * ) + - - CAST( + - MAX( DISTINCT - + 94 ) AS SIGNED ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3123
SELECT COUNT ( * ) + - - CAST ( + - MAX ( DISTINCT - + 94 ) AS INTEGER ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab1 WHERE - + col2 + 62 + 73 IS NULL
----

query I rowsort
SELECT DISTINCT + 52 + - 57 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT 60 * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT 60 * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
540

query I rowsort
SELECT + 32 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + + 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( + - col1 + - col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + COUNT( DISTINCT ( col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3134
SELECT + COUNT ( DISTINCT ( col0 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - col2 / + col2 - - 33
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3136
SELECT + 39 * - col2 DIV + col2, col1 FROM tab0
----
-39
1
-39
21
-39
81

skipif mysql # not compatible
query II rowsort label-3136
SELECT + 39 * - col2 / + col2, col1 FROM tab0
----
-39
1
-39
21
-39
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT ( + + 97 ) DIV - 56 + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT ( + + 97 ) / - 56 + - col1 FROM tab2
----
-52
-68
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3138
SELECT + - CAST( NULL AS DECIMAL ) * - col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3138
SELECT + - CAST ( NULL AS REAL ) * - col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + + SUM( - CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + + SUM ( - CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL IN ( + 89, + col0 * + col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3141
SELECT DISTINCT - col1, 88 DIV - col2 AS col2 FROM tab2 AS cor0
----
-51
-3
-67
-1
-77
-2

skipif mysql # not compatible
query II rowsort label-3141
SELECT DISTINCT - col1, 88 / - col2 AS col2 FROM tab2 AS cor0
----
-51
-3
-67
-1
-77
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT - 79 * + col1 * + col0 + col2 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
-185283
-389235
-396908

skipif mysql # not compatible
query I rowsort label-3142
SELECT - 79 * + col1 * + col0 + col2 / col1 + col1 AS col1 FROM tab2 AS cor0
----
-185283
-389235
-396908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL - - CAST( - col2 AS SIGNED ) * + col1 + + - col1 + - col0 FROM tab0 AS cor0
----
-197
-318
-3903

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - - CAST ( - col2 AS INTEGER ) * + col1 + + - col1 + - col0 FROM tab0 AS cor0
----
-197
-318
-3903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT - + CAST( - 88 AS SIGNED ) + - 77 AS col1 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3144
SELECT - + CAST ( - 88 AS INTEGER ) + - 77 AS col1 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL SUM( DISTINCT 37 ) AS col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL SUM ( DISTINCT 37 ) AS col1 FROM tab2 AS cor0
----
37

query I rowsort
SELECT + - 84 * - 96 + + + 6 FROM tab2 AS cor0
----
8070
8070
8070

query II rowsort
SELECT ALL + col1 / ( + col0 ) AS col0, + 40 * - + ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col2, - 52 + - ( + col0 ), 39 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - - col2 NOT BETWEEN 83 AND + - 76 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT ALL + COUNT( * ) DIV 58 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + COUNT ( * ) / 58 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 59 * - 36 AS col0 FROM tab1 AS cor0
----
-2124
-2124
-2124

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT 71 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT 71 / - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 * col0 * + - col2 * - - col1 AS col2 FROM tab0
----
1589490
856575
931491

query I rowsort
SELECT ALL ( col2 ) * 6 FROM tab1
----
354
408
576

query III rowsort
SELECT * FROM tab2 WHERE - col0 / 60 + - ( - col1 ) + - 14 * + col1 / + ( - - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT - MAX( + col0 ) * - 61 AS col0 FROM tab2
----
4575

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - MAX ( + col0 ) * - 61 AS col0 FROM tab2
----
4575

query I rowsort
SELECT DISTINCT col1 * col2 + - + col0 + + col0 * col1 * + - col0 FROM tab2
----
-106789
-312376
-373064

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + + col0 * + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - 28 AS col2 FROM tab2 WHERE + ( - + 94 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT col2 * + 48 - - col0 DIV + col2 FROM tab1
----
2833
3265
4608

skipif mysql # not compatible
query I rowsort label-3159
SELECT col2 * + 48 - - col0 / + col2 FROM tab1
----
2833
3265
4608

query I rowsort
SELECT DISTINCT + 8 + - 41 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT - 80 + - CAST( - 37 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
21
3
32

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 80 + - CAST ( - 37 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
21
3
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 - + ( ( - 77 ) )
----

query II rowsort
SELECT DISTINCT - col0 * + 28, col1 FROM tab1 AS cor0
----
-1428
14
-2380
5
-2548
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT DISTINCT + + col1 DIV + 77 + + col0 DIV + 98 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + + col1 / + 77 + + col0 / + 98 AS col0 FROM tab0 AS cor0
----
0
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT NULL = col2 - + 37
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3167
SELECT 4 * - 65 AS col1, - AVG ( + CAST( + 17 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS DECIMAL ) * + col2 / + col2 * + - col1 <= + + col0
----
-260
NULL

skipif mysql # not compatible
query II rowsort label-3167
SELECT 4 * - 65 AS col1, - AVG ( + CAST ( + 17 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS REAL ) * + col2 / + col2 * + - col1 <= + + col0
----
-260
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL - + ( + COUNT( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - + ( + COUNT ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 26 FROM tab2 cor0
----
26
26
26

query II rowsort
SELECT 34 AS col1, 7 FROM tab1 AS cor0
----
34
7
34
7
34
7

query I rowsort
SELECT ALL - - 13 * - col1 FROM tab2 cor0
----
-1001
-663
-871

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT ALL + col1 DIV + - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + col1 / + - col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 40 <= + col0 * + + 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - COUNT( * ) + - SUM( DISTINCT - col2 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - COUNT ( * ) + - SUM ( DISTINCT - col2 ) FROM tab2
----
118

query II rowsort
SELECT - ( + col1 ) AS col2, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT + + col2 * - 8 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + SUM( ALL + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3179
SELECT + SUM ( ALL + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ( - ( - 14 ) ) + - MAX( 3 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3180
SELECT ( - ( - 14 ) ) + - MAX ( 3 ) FROM tab2
----
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - ( col2 ) * - 80 + ( + col2 ) + - + col1 - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT - ( col2 ) * - 80 + ( + col2 ) + - + col1 - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL COUNT( * ) * - - CAST( - - COUNT( * ) AS SIGNED ) + + + 95 AS col1 FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL COUNT ( * ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) + + + 95 AS col1 FROM tab2 AS cor0
----
104

query II rowsort
SELECT - col1, - col2 * + col2 AS col0 FROM tab1
----
-14
-9216
-47
-4624
-5
-3481

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

query III rowsort
SELECT * FROM tab0 WHERE NULL < - + col2
----

query I rowsort
SELECT - - col1 - + ( - col1 ) + col2 FROM tab1 cor0
----
124
162
69

query I rowsort
SELECT DISTINCT - 31 - 32 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT MIN( ALL - col0 ) - ( - COUNT( * ) ) FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT MIN ( ALL - col0 ) - ( - COUNT ( * ) ) FROM tab2 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - 48 * + MAX( + - ( + 9 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
432

skipif mysql # not compatible
query I rowsort label-3190
SELECT - 48 * + MAX ( + - ( + 9 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
432

query I rowsort
SELECT - 47 + 80 * col0 AS col1 FROM tab2
----
3633
5073
5953

query III rowsort
SELECT * FROM tab1 WHERE + 77 IS NULL
----

query I rowsort
SELECT ALL col2 * ( - - col1 ) FROM tab0
----
210
3807
99

query I rowsort
SELECT + col1 + 55 - - 61 FROM tab1
----
121
130
163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT DISTINCT - col2, 70 + CAST( 15 AS SIGNED ) AS col2 FROM tab2
----
-23
85
-40
85
-58
85

skipif mysql # not compatible
query II rowsort label-3195
SELECT DISTINCT - col2, 70 + CAST ( 15 AS INTEGER ) AS col2 FROM tab2
----
-23
85
-40
85
-58
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + SUM( col0 ) * COUNT( * ) + + ( COUNT( * ) ) + - + ( + 24 ) FROM tab0
----
576

skipif mysql # not compatible
query I rowsort label-3196
SELECT + SUM ( col0 ) * COUNT ( * ) + + ( COUNT ( * ) ) + - + ( + 24 ) FROM tab0
----
576

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 * + + col2, col1 AS col0 FROM tab2
----
-1058
51
-2560
77
-4350
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3199
SELECT DISTINCT + 36 * - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-108
NULL

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + 36 * - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-108
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3200
SELECT ALL + 33 * - CAST( NULL AS SIGNED ), 64 AS col0 FROM tab2 AS cor0
----
NULL
64
NULL
64
NULL
64

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL + 33 * - CAST ( NULL AS INTEGER ), 64 AS col0 FROM tab2 AS cor0
----
NULL
64
NULL
64
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT DISTINCT ( CAST( + col2 AS SIGNED ) ) * col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT ( CAST ( + col2 AS INTEGER ) ) * col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) - - - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 21 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3203
SELECT SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT - COUNT( * ) AS col2, - 11 FROM tab0
----
-3
-11

skipif mysql # not compatible
query II rowsort label-3204
SELECT - COUNT ( * ) AS col2, - 11 FROM tab0
----
-3
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT ALL col2 DIV col2 + + col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL col2 / col2 + + col2 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT + COUNT( * ) AS col2, MAX( - 99 ) FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-3206
SELECT + COUNT ( * ) AS col2, MAX ( - 99 ) FROM tab0
----
3
-99

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 75 + - 58 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - COUNT( * ) * 3 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - COUNT ( * ) * 3 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL COUNT( * ) + - - 46 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL COUNT ( * ) + - - 46 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT - COUNT( * ) * + MIN( ALL col2 ) AS col1 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL col2 ) AS col1 FROM tab1 cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT SUM( DISTINCT - 19 ) col0 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3213
SELECT DISTINCT SUM ( DISTINCT - 19 ) col0 FROM tab0
----
-19

query I rowsort
SELECT 60 * - col2 + - 31 - col1 - - col2 AS col0 FROM tab1
----
-3517
-4090
-5709

query I rowsort
SELECT ALL - 2 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( col2, 75, - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( col2, 75, - - col1 )
----
0

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab1 AS cor0 WHERE - 54 = - + col1
----

query I rowsort
SELECT DISTINCT - - ( - - 79 ) AS col1 FROM tab2 AS cor0
----
79

query I rowsort
SELECT col0 - + 30 AS col1 FROM tab0
----
-15
57
67

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * ( - 32 ) * 74 + + + ( + col1 ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 4 <> 2
----

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab1 cor0
----
51

query I rowsort
SELECT - 94 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + COUNT( * ) * - + SUM( DISTINCT col1 ) AS col2 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-3224
SELECT + COUNT ( * ) * - + SUM ( DISTINCT col1 ) AS col2 FROM tab2
----
-585

query I rowsort
SELECT ALL - 9 * - + col2 AS col0 FROM tab2 cor0
----
207
360
522

query I rowsort
SELECT + + col2 * - - col0 + - col0 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

query II rowsort
SELECT - col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT ( - SUM( DISTINCT - col0 ) ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT ( - SUM ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - 72 * - COUNT( * ) + - SUM( - col2 ) FROM tab1
----
439

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 72 * - COUNT ( * ) + - SUM ( - col2 ) FROM tab1
----
439

query I rowsort
SELECT ALL 95 + - ( - col1 ) FROM tab1
----
100
109
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT DISTINCT - 88 + - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3233
SELECT DISTINCT - 88 + - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query II rowsort
SELECT - 83 + 69 AS col1, - 59 AS col2 FROM tab2
----
-14
-59
-14
-59
-14
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT ALL - 49 DIV + col0 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3235
SELECT ALL - 49 / + col0 col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE 97 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - 55 + + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + + 89 * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - 55 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + + 89 * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - + 26 AS col2 FROM tab0 AS cor0
----
-25
-5
55

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

query I rowsort
SELECT - col2 - 77 * col1 * + 92 + - col0 FROM tab0
----
-148861
-573866
-7280

query I rowsort
SELECT + 81 - + 40 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 31 + - COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 31 + - COUNT ( * ) FROM tab0 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-3244
SELECT + - ( 73 ) - + 18, col2 DIV 8 AS col2 FROM tab0 cor0
----
-91
1
-91
12
-91
5

skipif mysql # not compatible
query II rowsort label-3244
SELECT + - ( 73 ) - + 18, col2 / 8 AS col2 FROM tab0 cor0
----
-91
1
-91
12
-91
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT ALL 17 * + 78 - col1 DIV + 33 - + + col0 * + col2 FROM tab1 cor0
----
-3570
-3689
-4863

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL 17 * + 78 - col1 / + 33 - + + col0 * + col2 FROM tab1 cor0
----
-3570
-3689
-4863

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col2 * - 67 = NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - ( - + 36 ) = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT COUNT( * ) * + ( + ( COUNT( * ) ) ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) * + ( + ( COUNT ( * ) ) ) AS col2 FROM tab0
----
9

query I rowsort
SELECT 82 * - 78 * col2 * - + 40 FROM tab2
----
10233600
14838720
5884320

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT - col2 DIV - - ( 15 ) AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3251
SELECT - col2 / - - ( 15 ) AS col1 FROM tab2
----
-1
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 75 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= ( + ( 36 ) ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 * - col1 AS col0 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 WHERE + - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL + COUNT( + 70 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + COUNT ( + 70 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT - + COUNT( ALL - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + col0 * col2 * - - col1 / col0 * + + 46 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT - + COUNT ( ALL - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + col0 * col2 * - - col1 / col0 * + + 46 + + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + col1 ) col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT 26 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1, col0 * - + 96, - - ( + col1 ) * - + col1 - col1 + - 12 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 95 + + col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT ALL - COUNT( * ) AS col0, + 29 FROM tab0
----
-3
29

skipif mysql # not compatible
query II rowsort label-3261
SELECT ALL - COUNT ( * ) AS col0, + 29 FROM tab0
----
-3
29

query I rowsort
SELECT - + 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT + 45 * - + col0 FROM tab2
----
-2070
-2880
-3375

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * 70 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT ALL + COUNT( * ), 86 AS col2 FROM tab1 AS cor0
----
3
86

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL + COUNT ( * ), 86 AS col2 FROM tab1 AS cor0
----
3
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL + COUNT( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ALL + COUNT ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT ALL - 19 * - CAST( - MIN( DISTINCT col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-969

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - 19 * - CAST ( - MIN ( DISTINCT col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-969

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3268
SELECT ALL - col0, - col0 + - col1 DIV 80 * col1 * CAST( - 83 AS SIGNED ) col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3268
SELECT ALL - col0, - col0 + - col1 / 80 * col1 * CAST ( - 83 AS INTEGER ) col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL col2 * - - col0 FROM tab1 WHERE - col2 < - - col0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE + - 16 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - - ( - + col1 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 32 * + 55 - - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + - 0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + + 88 * + + 52 + COUNT( * ) FROM tab2 AS cor0
----
4579

skipif mysql # not compatible
query I rowsort label-3274
SELECT + + 88 * + + 52 + COUNT ( * ) FROM tab2 AS cor0
----
4579

query I rowsort
SELECT - 57 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT DISTINCT 92 DIV + + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT 92 / + + col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL col0 * col0 + + CAST( NULL AS SIGNED ) * 56 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL col0 * col0 + + CAST ( NULL AS INTEGER ) * 56 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT DISTINCT + + ( + COUNT( * ) ) + + COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT DISTINCT + + ( + COUNT ( * ) ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + 30 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 30 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT CAST( AVG ( ALL + 70 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT CAST ( AVG ( ALL + 70 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT + COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3282
SELECT + COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 21 * + + 81 AS col0 FROM tab1
----
1701
1701
1701

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL COUNT( * ) AS col1, 26 * 36 AS col0 FROM tab1
----
3
936

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL COUNT ( * ) AS col1, 26 * 36 AS col0 FROM tab1
----
3
936

onlyif mysql # DIV for integer division: 
query II rowsort label-3285
SELECT - 90, + 82 DIV + 47 AS col0 FROM tab0 WHERE NOT + 53 IS NULL
----
-90
1
-90
1
-90
1

skipif mysql # not compatible
query II rowsort label-3285
SELECT - 90, + 82 / + 47 AS col0 FROM tab0 WHERE NOT + 53 IS NULL
----
-90
1
-90
1
-90
1

query I rowsort
SELECT - ( - + 30 ) AS col1 FROM tab0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT - - 60 DIV - ( 89 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT - - 60 / - ( 89 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + ( - + 29 ) AS col1 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3290
SELECT CAST( NULL AS SIGNED ) AS col1, col1 + - 86 * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
4123
NULL
8515
NULL
881

skipif mysql # not compatible
query II rowsort label-3290
SELECT CAST ( NULL AS INTEGER ) AS col1, col1 + - 86 * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
4123
NULL
8515
NULL
881

query II rowsort
SELECT ALL + - col2 AS col1, 12 AS col2 FROM tab0 AS cor0
----
-10
12
-47
12
-99
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - COUNT( - col1 ) * + ( - + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3292
SELECT - COUNT ( - col1 ) * + ( - + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT + 31 * col0 + + 64 AS col2 FROM tab0 AS cor0
----
2761
3071
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT 13 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3294
SELECT 13 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + SUM( - col0 ) FROM tab2
----
-194

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + SUM ( - col0 ) FROM tab2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - 88 + + - 38 + COUNT( ALL - col1 ) * 6 + + COUNT( * ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 88 + + - 38 + COUNT ( ALL - col1 ) * 6 + + COUNT ( * ) FROM tab2
----
-105

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( col2 * - col1 * + col1 * - - 14 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) <> NULL )
----

query I rowsort
SELECT ALL 90 + + col1 + 25 AS col1 FROM tab1
----
120
129
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT - 61 * + - COUNT( * ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT - 61 * + - COUNT ( * ) FROM tab2
----
183

query I rowsort
SELECT 34 FROM tab2 WHERE + 88 + - col0 IS NULL
----

query I rowsort
SELECT ALL 56 * + 73 AS col0 FROM tab1
----
4088
4088
4088

query I rowsort
SELECT ALL - 29 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-29
-29
-29

query I rowsort
SELECT ALL col1 * 55 * - + 94 AS col1 FROM tab0
----
-108570
-418770
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT MAX( DISTINCT + 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT MAX ( DISTINCT + 96 ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT DISTINCT - 97 * + 11, - ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-1067
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3306
SELECT DISTINCT - 97 * + 11, - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-1067
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3308
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3308
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 41 * - - 55 * + - col0 FROM tab0
----
-196185
-218735
-33825

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT - 28 DIV + + 53 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - 28 / + + 53 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT - CAST( NULL AS SIGNED ) * 87 / 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - CAST ( NULL AS INTEGER ) * 87 / 32 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 * col0, - 36 / + col2, ( - col2 ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL COUNT( * ) * + COUNT( * ) * + - 85 * COUNT( * ) FROM tab0
----
-2295

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + - 85 * COUNT ( * ) FROM tab0
----
-2295

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 <> - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 75 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 32 * + + ( - col1 ) + - col1 - col1 col2 FROM tab2 cor0
----
143514
189574
83130

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + + COUNT( * ) + - MAX( - + ( - 95 ) ) AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3318
SELECT + + COUNT ( * ) + - MAX ( - + ( - 95 ) ) AS col0 FROM tab1 AS cor0
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 * 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT + + SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT + + SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col0 / + col0 * + + 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 59 / + - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT - ( - - COUNT( * ) ), - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3323
SELECT - ( - - COUNT ( * ) ), - COUNT ( * ) FROM tab1
----
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT - col0 DIV + + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT - col0 / + + col2 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3326
SELECT COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT - 99 * - - col1 + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1335
-410
-4562

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 99 * - - col1 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1335
-410
-4562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3328
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab2 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL - - COUNT( * ) * + - COUNT( * ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3330
SELECT ALL - - COUNT ( * ) * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + ( - SUM( - - 90 ) ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( - SUM ( - - 90 ) ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT DISTINCT + + 13 AS col2 FROM tab2 WHERE + col2 / - col1 IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT - 33, COUNT( * ) AS col2 FROM tab1
----
-33
3

skipif mysql # not compatible
query II rowsort label-3333
SELECT - 33, COUNT ( * ) AS col2 FROM tab1
----
-33
3

query I rowsort
SELECT - col1 * - 46 AS col1 FROM tab1
----
2162
230
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT - MAX( DISTINCT + + CAST( ( + 34 ) AS SIGNED ) ) * SUM( DISTINCT - 24 ) + + COUNT( * ) AS col2 FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-3335
SELECT - MAX ( DISTINCT + + CAST ( ( + 34 ) AS INTEGER ) ) * SUM ( DISTINCT - 24 ) + + COUNT ( * ) AS col2 FROM tab1
----
819

query I rowsort
SELECT + 24 * - col1 AS col0 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + ( MAX( ALL col2 ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3337
SELECT + ( MAX ( ALL col2 ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - - COUNT( * ) + + SUM( ALL + + col2 ) AS col0 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-3338
SELECT - - COUNT ( * ) + + SUM ( ALL + + col2 ) AS col0 FROM tab0 cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT ALL + 47 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2
-47
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + 47 / - col1 AS col2 FROM tab0 AS cor0
----
-2
-47
0

query I rowsort
SELECT DISTINCT - 70 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + + COUNT( * ) + - MAX( + 67 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + + COUNT ( * ) + - MAX ( + 67 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-58

query I rowsort
SELECT ALL - 75 + - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-156
-76
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - + 75 FROM tab1 cor0
----
-24
10
16

query I rowsort
SELECT ALL - col1 * 67 - + + col0 AS col0 FROM tab1 AS cor0
----
-3240
-420
-989

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 + - ( - col1 ) - - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 4 AS col0 FROM tab1
----
59
4
68
4
96
4

query I rowsort
SELECT ALL + col2 + + 4 FROM tab0
----
103
14
51

query I rowsort
SELECT + col2 FROM tab1 WHERE ( - col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - + col2 + + col0 BETWEEN col0 * - 81 - - col2 AND NULL
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col2 col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL 9 + + col1 FROM tab2
----
60
76
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT + COUNT( * ) DIV COUNT( + + col1 ) * - COUNT( * ) + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT + COUNT ( * ) / COUNT ( + + col1 ) * - COUNT ( * ) + COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT col0 * + col1 * - CAST( - ( col2 ) AS SIGNED ) FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-3355
SELECT col0 * + col1 * - CAST ( - ( col2 ) AS INTEGER ) FROM tab1
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 * + col0 + - - 47 * + col0 AND - + col1 + col0
----

query I rowsort
SELECT + - 8 AS col0 FROM tab1 WHERE - 78 NOT BETWEEN - col0 AND NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - + col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT - SUM( - col1 ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 <= - - CAST( col2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - SUM ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 <= - - CAST ( col2 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 13 + - 57 AS col0 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 * + col1 NOT BETWEEN NULL AND 66 AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 JOIN tab0 AS cor1 ON NOT NULL <= - 75
----

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab2 cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( - col1 ) ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3366
SELECT ALL * FROM tab1 WHERE + - col1 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3366
SELECT ALL * FROM tab1 WHERE + - col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL 29, - COUNT( * ) AS col1 FROM tab0
----
29
-3

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL 29, - COUNT ( * ) AS col1 FROM tab0
----
29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT SUM( ALL - col2 ) * + 46 AS col1 FROM tab0
----
-7176

skipif mysql # not compatible
query I rowsort label-3368
SELECT SUM ( ALL - col2 ) * + 46 AS col1 FROM tab0
----
-7176

query I rowsort
SELECT ALL + 50 + col1 * + ( - + 75 ) FROM tab1
----
-1000
-325
-3475

query II rowsort
SELECT + col0 * + col1 + + col1, col0 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 * + + col2 - + - col1 + - 24 FROM tab1 WHERE NOT + 9 = + col0
----
3462
4647
9206

onlyif mysql # aggregate syntax: 
query II rowsort label-3372
SELECT 76 AS col2, - COUNT( * ) col1 FROM tab2
----
76
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3372
SELECT 76 AS col2, - COUNT ( * ) col1 FROM tab2
----
76
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + - col2 = 47 + - col0 * + col1 * + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * col0 + + col1 + - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT 22 DIV col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT 22 / col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col1 + col0 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > 35 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 = + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * + col0 * 86 col0 FROM tab0
----
246906
275286
42570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT col1 / + col0 - - col1 + + col0 + - + col2 + - - CAST( NULL AS SIGNED ) * col1 + col0 FROM tab0 WHERE 28 / - col2 > col1
----

skipif mysql # not compatible
query I rowsort label-3381
SELECT col1 / + col0 - - col1 + + col0 + - + col2 + - - CAST ( NULL AS INTEGER ) * col1 + col0 FROM tab0 WHERE 28 / - col2 > col1
----

query I rowsort
SELECT + col0 * - + col1 + + col2 AS col0 FROM tab1 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL 59 + + - 38 AS col0 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT + - COUNT( * ) * 0 + 29 DIV COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3384
SELECT + - COUNT ( * ) * 0 + 29 / COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + col0 - - + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - MAX( ALL + 98 ) * - 18 * - SUM( + + col0 ) + 52 AS col1 FROM tab1 AS cor0
----
-400376

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - MAX ( ALL + 98 ) * - 18 * - SUM ( + + col0 ) + 52 AS col1 FROM tab1 AS cor0
----
-400376

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - 74 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL = NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 68 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col2 AND - 90
----

query I rowsort
SELECT + col2 * - col2 * + 29 FROM tab2 AS cor0
----
-15341
-46400
-97556

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3392
SELECT - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT col2 DIV - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT col2 / - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3394
SELECT ALL - COUNT( DISTINCT + - 34 ) AS col2, COUNT( * ) + MAX( + CAST( NULL AS DECIMAL ) ) - + COUNT( + + 64 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3394
SELECT ALL - COUNT ( DISTINCT + - 34 ) AS col2, COUNT ( * ) + MAX ( + CAST ( NULL AS REAL ) ) - + COUNT ( + + 64 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + ( - COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT DISTINCT + ( - COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 20 * - col0 AS col1 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT 2 * col2 * col0 FROM tab1
----
10030
12376
9792

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT col1 * + col0 DIV - + col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3399
SELECT col1 * + col0 / - + col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT SUM( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE NOT 93 + + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT SUM ( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE NOT 93 + + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE - 43 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + ( + - 96 ) AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT - + 84 * + col2 + - col1 FROM tab2 AS cor0
----
-1983
-3437
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL + COUNT( * ) + - ( - 87 ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL + COUNT ( * ) + - ( - 87 ) AS col0 FROM tab1 AS cor0
----
90

query I rowsort
SELECT + 82 + + - 60 AS col1 FROM tab0 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 84
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL - - 99 / - 78 AS col0 FROM tab0 WHERE NOT + 27 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - - 99 / - 78 AS col0 FROM tab0 WHERE NOT + 27 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT - col2 * - - 9 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
-10557
-27720
-34974

skipif mysql # not compatible
query I rowsort label-3408
SELECT - col2 * - - 9 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
-10557
-27720
-34974

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3409
SELECT - MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT - 83 * + col1 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * - 93 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 44 * + + col0 - ( + 36 ) - - - col2 * - 32 AS col0 FROM tab1 AS cor0
----
5280
5592
6144

query I rowsort
SELECT ALL - 47 * 16 AS col1 FROM tab1 cor0
----
-752
-752
-752

query I rowsort
SELECT DISTINCT - 97 + + - 22 AS col2 FROM tab1 AS cor0
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT - 67 * - SUM( - col0 ) * - CAST( NULL AS SIGNED ) + - 4 + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT - 67 * - SUM ( - col0 ) * - CAST ( NULL AS INTEGER ) + - 4 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND 43
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND 43
----
0

query I rowsort
SELECT ALL - + col1 + + ( + + col2 ) * col1 * - - col1 AS col1 FROM tab0 AS cor0
----
308286
4389
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 74 - + + 64 - + - ( 7 ) * + + col0 * + 96 AS col0 FROM tab2 cor0
----
30774
42870
50262

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3420
SELECT * FROM tab1 WHERE NULL >= - + CAST( + - 58 AS SIGNED ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-3420
SELECT * FROM tab1 WHERE NULL >= - + CAST ( + - 58 AS INTEGER ) + + + col0
----

query I rowsort
SELECT + col1 + ( + + col2 ) AS col1 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL - col0 DIV + - col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - col0 / + - col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT 31 + - SUM( 29 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 31 + - SUM ( 29 ) AS col0 FROM tab2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ( + + 20 ) DIV 14 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3424
SELECT ( + + 20 ) / 14 col2 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT 29 AS col2, - 97 FROM tab1
----
29
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) * + 58 - - + 61 AS col1, col2 + - col1 col0 FROM tab1
----
-229
54
-2665
21
-751
82

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT - + col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT - CAST( - 26 AS SIGNED ) * 49 - COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
1274

skipif mysql # not compatible
query I rowsort label-3428
SELECT - CAST ( - 26 AS INTEGER ) * 49 - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
1274

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 43 + + + 34 - + - col2 >= + col0
----

query I rowsort
SELECT DISTINCT - 69 * + + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 72 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
3723
6205
6643

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT + + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3434
SELECT ALL col0 DIV CAST( - - 89 AS SIGNED ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL col0 / CAST ( - - 89 AS INTEGER ) FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 <= ( NULL )
----

query I rowsort
SELECT - col0 * + 17 AS col2 FROM tab2
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3438
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + - 42 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3438
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + - 42 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < - - col1 + - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3440
SELECT DISTINCT 5 DIV + + COUNT( * ) AS col0, 35 FROM tab1 AS cor0
----
1
35

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT 5 / + + COUNT ( * ) AS col0, 35 FROM tab1 AS cor0
----
1
35

query II rowsort
SELECT col2 + + col2 AS col2, + 8 + - + col0 FROM tab0 AS cor0
----
198
-89
20
-79
94
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT COUNT( * ) * + 51 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3442
SELECT COUNT ( * ) * + 51 FROM tab1 AS cor0
----
153

query II rowsort
SELECT 69, + col0 FROM tab2
----
69
46
69
64
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + MIN( DISTINCT + 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + MIN ( DISTINCT + 93 ) FROM tab0
----
93

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col2 / + col1 <> - + ( - - col1 )
----
14
47
5

query I rowsort
SELECT ALL 89 + + 16 AS col0 FROM tab1
----
105
105
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 < + col2 * ( + - col2 ) * + 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT ALL COUNT( * ) AS col1, - 24 FROM tab2
----
3
-24

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL COUNT ( * ) AS col1, - 24 FROM tab2
----
3
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> + + col2 / + ( + 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3452
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3452
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 AS col2, 70 AS col2 FROM tab0 AS cor0
----
1
70
21
70
81
70

query I rowsort
SELECT 9 FROM tab0 WHERE NULL IS NULL
----
9
9
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3455
SELECT CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab1 WHERE NOT 17 > + 30 * col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab1 WHERE NOT 17 > + 30 * col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT + col1 * CAST( 28 AS SIGNED ) AS col2 FROM tab2
----
1428
1876
2156

skipif mysql # not compatible
query I rowsort label-3456
SELECT + col1 * CAST ( 28 AS INTEGER ) AS col2 FROM tab2
----
1428
1876
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL + MIN( DISTINCT + col2 ) + 67 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + MIN ( DISTINCT + col2 ) + 67 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3458
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( col1 * + CAST( + col1 AS SIGNED ) - + ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3458
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( col1 * + CAST ( + col1 AS INTEGER ) - + ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 9 + + col1 * + col0 FROM tab0 WHERE NOT ( NULL ) = + col2
----

query I rowsort
SELECT DISTINCT - 16 * - 32 FROM tab1
----
512

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * - col2 ) = + 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL CAST( NULL AS SIGNED ) / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 25 + - col1 FROM tab1
----
-22
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT 45 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT 45 / col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL - ( col0 ) DIV - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - ( col0 ) / - col2 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( 63 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab2 WHERE NULL IS NULL
----
55

query III rowsort
SELECT ALL * FROM tab2 WHERE 94 * + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) = + col1 + 79 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + 25 + COUNT( * ) col0 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3472
SELECT + 25 + COUNT ( * ) col0 FROM tab2
----
28

query I rowsort
SELECT col2 + 95 AS col2 FROM tab0
----
105
142
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - MAX( + 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - MAX ( + 10 ) FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + ( + COUNT( * ) ) + 20 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + ( + COUNT ( * ) ) + 20 FROM tab1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT MIN( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 85 + col0 FROM tab1
----
-34
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3478
SELECT * FROM tab1 WHERE NOT ( CAST( - 56 AS SIGNED ) + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3478
SELECT * FROM tab1 WHERE NOT ( CAST ( - 56 AS INTEGER ) + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT col0 DIV + col2 + + 73 FROM tab2
----
74
74
75

skipif mysql # not compatible
query I rowsort label-3479
SELECT col0 / + col2 + + 73 FROM tab2
----
74
74
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT 78 + + 0 * - ( COUNT( * ) ) col1 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3481
SELECT 78 + + 0 * - ( COUNT ( * ) ) col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT MAX( - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT MAX ( - col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT ALL ( col1 ) * 63 FROM tab1 AS cor0
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT - MAX( ( col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT - MAX ( ( col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 14 * col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL + SUM( + ( col2 ) ) * 35 AS col1 FROM tab1 AS cor0
----
7805

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + SUM ( + ( col2 ) ) * 35 AS col1 FROM tab1 AS cor0
----
7805

query I rowsort
SELECT DISTINCT 80 * 5 AS col2 FROM tab0 AS cor0
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT - COUNT( ALL - 87 ) * + MIN( DISTINCT - 93 * col1 ) col0 FROM tab2 AS cor0
----
21483

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT - COUNT ( ALL - 87 ) * + MIN ( DISTINCT - 93 * col1 ) col0 FROM tab2 AS cor0
----
21483

query I rowsort
SELECT ALL ( - 99 ) FROM tab0
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col1 - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 + - col1
----

query I rowsort
SELECT ( ( 78 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL + 45 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 88 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - 91 * + COUNT( * ) col0 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3495
SELECT - 91 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT + col2 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3497
SELECT + col2 / + col0 AS col2 FROM tab1 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + 65 ) + - 43 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 * 81 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 <> - col1 * col0
----

query I rowsort
SELECT ALL + 68 / ( col0 / + col1 ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col0 + + ( 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT DISTINCT col0 DIV + 46 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT col0 / + 46 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 + + col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= - 54 * - 53 + 69
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 WHERE - col0 + + col0 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3505
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE - col0 + + col0 IS NOT NULL
----
9

query I rowsort
SELECT - 47 * col0 + + col1 FROM tab1 WHERE col0 > ( - col2 )
----
-2383
-3990
-4230

query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) AS col2 FROM tab2 WHERE - col2 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT col2 + col0 * + 24 FROM tab0
----
2098
2427
407

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + ( - col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 24 * col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT COUNT( * ) + - 86 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT COUNT ( * ) + - 86 FROM tab1
----
-83

query I rowsort
SELECT ALL - + col2 + - col2 * - 74 FROM tab0 AS cor0
----
3431
7227
730

query I rowsort
SELECT - col2 + - 19 FROM tab2 AS cor0
----
-42
-59
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / col2 * 78 + 83 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3515
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / col2 * 78 + 83 col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL BETWEEN ( - col1 ) AND + col0 )
----

query I rowsort
SELECT + col1 * - + col0 - + 20 * + 28 AS col1 FROM tab0
----
-1775
-2387
-657

query I rowsort
SELECT ALL 23 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT 78 - - COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3519
SELECT 78 - - COUNT ( * ) FROM tab0
----
81

query I rowsort
SELECT + 70 - + 54 * - col1 FROM tab2
----
2824
3688
4228

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT MAX( DISTINCT 13 ) - + MAX( + col0 ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-3521
SELECT MAX ( DISTINCT 13 ) - + MAX ( + col0 ) AS col2 FROM tab0
----
-84

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL NOT IN ( - col1 + - col2 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT - col1 - - col1 DIV + - col2 AS col1 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-3523
SELECT - col1 - - col1 / + - col2 AS col1 FROM tab2
----
-53
-68
-78

query I rowsort
SELECT - col2 + - - col2 * + 30 * - 17 + ( 59 ) AS col2 FROM tab2 AS cor0
----
-11694
-20381
-29579

query I rowsort
SELECT DISTINCT ( col1 ) - col1 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 20 )
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 20 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 54 * col0 * + - col1 * col0 + col0 col2 FROM tab1 cor0
----
-1950665
-1966305
-21017087

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - + 55 * - col0 - col0 IS NULL
----
-59
-68
-96

query II rowsort
SELECT + ( - col0 ) AS col2, col1 * + col2 * col1 AS col0 FROM tab2
----
-46
59823
-64
237160
-75
260362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT 65 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT 65 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT col0 * CAST( + + col1 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3533
SELECT col0 * CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - - col1 * + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query III rowsort label-3535
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 BETWEEN ( + col2 DIV col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3535
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 BETWEEN ( + col2 / col0 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT 58 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL - + col0 * + + col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2 AS cor0 WHERE NOT ( 82 ) IN ( ( col0 ) )
----
41

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab1 cor0
----
56

query I rowsort
SELECT - + col1 + - - 35 AS col1 FROM tab0 AS cor0
----
-46
14
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT + col0 DIV + col2 AS col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3543
SELECT + col0 / + col2 AS col2 FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE ( NULL = ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL CAST( + col2 AS SIGNED ) + + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL CAST ( + col2 AS INTEGER ) + + - col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT ALL + col0 * - 10 + col2 DIV - col2 + + 30 * - ( col1 ) * + col0 FROM tab1
----
-129221
-13601
-21931

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + col0 * - 10 + col2 / - col2 + + 30 * - ( col1 ) * + col0 FROM tab1
----
-129221
-13601
-21931

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( col1, col0 )
----

query I rowsort
SELECT ALL 6 + - - col0 AS col0 FROM tab1 AS cor0
----
57
91
97

query I rowsort
SELECT ALL ( + col1 ) + + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - 55 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT COUNT( ALL + 4 ) + 68 AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3552
SELECT COUNT ( ALL + 4 ) + 68 AS col0 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT 80 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
89

skipif mysql # not compatible
query I rowsort label-3553
SELECT 80 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
89

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( + + 33 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 31 col1 FROM tab1 cor0
----
1581
2635
2821

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - 99 + 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT + + ( + + COUNT( * ) ) AS col1, 38 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-3559
SELECT + + ( + + COUNT ( * ) ) AS col1, 38 FROM tab1 AS cor0
----
3
38

query I rowsort
SELECT ALL - + 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51

query II rowsort
SELECT DISTINCT - 95 AS col0, + 54 FROM tab1
----
-95
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT - - ( + col0 ) - - + 98 * - + col2 AS col1 FROM tab2 WHERE NOT NULL < - - 4 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3562
SELECT - - ( + col0 ) - - + 98 * - + col2 AS col1 FROM tab2 WHERE NOT NULL < - - 4 * + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT col1 * col2 NOT BETWEEN + - col2 + - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT col1 * col2 NOT BETWEEN + - col2 + - + col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) NOT IN ( - CAST( col0 AS SIGNED ) + - 63 / - ( + + 52 ) + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) NOT IN ( - CAST ( col0 AS INTEGER ) + - 63 / - ( + + 52 ) + + CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 <> NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col0 + - + ( - col2 ) * + col0 * + col2 BETWEEN + col0 / - 61 AND NULL
----

query I rowsort
SELECT DISTINCT - ( 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT DISTINCT + COUNT( * ) * + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT DISTINCT + COUNT ( * ) * + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( + ( + - ( + + col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT 98 + SUM( DISTINCT + - 70 ) * - - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-6622

skipif mysql # not compatible
query I rowsort label-3571
SELECT 98 + SUM ( DISTINCT + - 70 ) * - - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + SUM( ALL 0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT + SUM ( ALL 0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT COUNT( - 64 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT COUNT ( - 64 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + 7 * + + 25 AS col0, col1 FROM tab1
----
175
14
175
47
175
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT - CAST( + 53 AS SIGNED ) * col2 FROM tab1 cor0
----
-3127
-3604
-5088

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CAST ( + 53 AS INTEGER ) * col2 FROM tab1 cor0
----
-3127
-3604
-5088

query II rowsort
SELECT DISTINCT - ( + + col1 ), 50 AS col1 FROM tab2 AS cor0 WHERE - 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col2 + - col1 + + - 23, col2 - col2 * + col2 col2 FROM tab1 AS cor0
----
-28
-3422
-37
-9120
-70
-4556

query I rowsort
SELECT ALL - col1 * + col2 + + col1 * - col0 - col1 AS col0 FROM tab2 cor0
----
-3570
-8085
-8978

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 = - 36
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT + MIN( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + MIN ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 30 + + - 90 AS col2 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT 7 + + col0 FROM tab0
----
104
22
94

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= + col0
----

query I rowsort
SELECT ALL 70 * - - col2 + + - col1 * + 47 FROM tab1
----
2551
3895
6062

query III rowsort
SELECT * FROM tab0 WHERE + + col2 NOT IN ( - col1, 33 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT ALL + ( - 51 ) + + + 96 - - ( + 52 ) + + + COUNT( * ) DIV 54 AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + ( - 51 ) + + + 96 - - ( + 52 ) + + + COUNT ( * ) / 54 AS col0 FROM tab2
----
97

query II rowsort
SELECT DISTINCT - - 80 * col1 + ( + - col1 ) * + + col2, col1 AS col2 FROM tab0 AS cor0
----
-19
1
1470
21
2673
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3588
SELECT - + 44, - COUNT( * ) DIV + 75 AS col1 FROM tab0 AS cor0
----
-44
0

skipif mysql # not compatible
query II rowsort label-3588
SELECT - + 44, - COUNT ( * ) / + 75 AS col1 FROM tab0 AS cor0
----
-44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL + COUNT( * ) - - + 28 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + COUNT ( * ) - - + 28 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL - col2 - 44 AS col0 FROM tab0 AS cor0
----
-143
-54
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 67 + + col0 ) NOT BETWEEN + col0 * 5 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + 93 FROM tab2
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT DISTINCT + COUNT( * ), 71 AS col0 FROM tab1
----
3
71

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT + COUNT ( * ), 71 AS col0 FROM tab1
----
3
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 92 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - - ( + - ( COUNT( DISTINCT + 18 ) ) ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3595
SELECT DISTINCT - - ( + - ( COUNT ( DISTINCT + 18 ) ) ) col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT ALL 23, + COUNT( * ) col2 FROM tab1 AS cor0
----
23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3596
SELECT ALL 23, + COUNT ( * ) col2 FROM tab1 AS cor0
----
23
3

query I rowsort
SELECT + - 0 AS col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ( - col0 ) AS col1, col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL + ( 51 ) FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + 3 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 47 * + - col1 FROM tab1
----
2209
235
658

query I rowsort
SELECT ALL - col0 + + + 0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - - col1 + + - 88 FROM tab2 AS cor0
----
-11
-21
-37

query II rowsort
SELECT ALL + col2, - col1 + - 21 * - col1 AS col1 FROM tab1 AS cor0
----
59
100
68
940
96
280

query II rowsort
SELECT DISTINCT col1 + - 37 + - - 69, - col1 * + 95 AS col0 FROM tab2 AS cor0
----
109
-7315
83
-4845
99
-6365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, col1 col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - col2 AS col0, col2 + - 72 * + + ( - col1 ) FROM tab1 AS cor0
----
-59
419
-68
3452
-96
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT + 14 * CAST( + col1 AS SIGNED ) * 49 col2 FROM tab1 AS cor0
----
32242
3430
9604

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + 14 * CAST ( + col1 AS INTEGER ) * 49 col2 FROM tab1 AS cor0
----
32242
3430
9604

query I rowsort
SELECT DISTINCT - col0 - 39 FROM tab0 AS cor0
----
-126
-136
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT MIN( - 92 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT MIN ( - 92 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + col1, - 72 col0 FROM tab1
----
-37
-72
-44
-72
-80
-72

query I rowsort
SELECT 38 * + col2 AS col2 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT 55 * col1 DIV + 12 AS col1 FROM tab2
----
233
307
352

skipif mysql # not compatible
query I rowsort label-3615
SELECT 55 * col1 / + 12 AS col1 FROM tab2
----
233
307
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ( + ( 95 ) ) - - SUM( + 85 ) FROM tab1
----
350

skipif mysql # not compatible
query I rowsort label-3616
SELECT ( + ( 95 ) ) - - SUM ( + 85 ) FROM tab1
----
350

query I rowsort
SELECT ALL 3 + + + col2 AS col2 FROM tab0
----
102
13
50

query I rowsort
SELECT DISTINCT col0 + + col0 * + col2 + - - 23 FROM tab2
----
1127
2647
4448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3619
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - ( - col1 ) - + - 42 * - col1 * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3619
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - ( - col1 ) - + - 42 * - col1 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 18 col0 FROM tab0 AS cor0
----
-117
-28
-65

query II rowsort
SELECT + col2 + - + col0 AS col1, + ( + 92 ) FROM tab1 AS cor0
----
-23
92
-26
92
45
92

query I rowsort
SELECT DISTINCT + 16 + - 31 + - + 68 AS col1 FROM tab0 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL - + 72 DIV - col0 - col0 AS col0 FROM tab2 AS cor0
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - + 72 / - col0 - col0 AS col0 FROM tab2 AS cor0
----
-45
-63
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 12 ) col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0 WHERE NOT + ( - col2 ) * + 15 <> - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col1 AS col2 FROM tab2 WHERE + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col1 AS col2 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + 45 * + COUNT( * ) * - MAX( - col1 ) col0 FROM tab1
----
675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3627
SELECT ALL + 45 * + COUNT ( * ) * - MAX ( - col1 ) col0 FROM tab1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT - ( 8 ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - ( 8 ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3629
SELECT DISTINCT - ( col1 ) DIV - - col1 AS col2, - col0 FROM tab1
----
-1
-51
-1
-85
-1
-91

skipif mysql # not compatible
query II rowsort label-3629
SELECT DISTINCT - ( col1 ) / - - col1 AS col2, - col0 FROM tab1
----
-1
-51
-1
-85
-1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - MIN( 2 ) * + 30 AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3630
SELECT - MIN ( 2 ) * + 30 AS col0 FROM tab0
----
-60

query I rowsort
SELECT - + col0 * + + 90 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT SUM( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3632
SELECT SUM ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT - + 73 * - col1 + - + col2 * - ( 0 ) DIV + + ( col2 ) FROM tab0 AS cor0
----
1533
5913
73

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT - + 73 * - col1 + - + col2 * - ( 0 ) / + + ( col2 ) FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT ALL - - 76 * - - col1 + ( col0 ) DIV - col2 col2 FROM tab2 AS cor0
----
3874
5091
5851

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3634
SELECT ALL - - 76 * - - col1 + ( col0 ) / - col2 col2 FROM tab2 AS cor0
----
3874
5091
5851

onlyif mysql # DIV for integer division: 
query II rowsort label-3635
SELECT DISTINCT - 23 DIV - + 3 + + col0, - 58 AS col2 FROM tab1 cor0
----
58
-58
92
-58
98
-58

skipif mysql # not compatible
query II rowsort label-3635
SELECT DISTINCT - 23 / - + 3 + + col0, - 58 AS col2 FROM tab1 cor0
----
58
-58
92
-58
98
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - ( + col1 ) col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 98 ) * + 37 + + + 28 - + 0 col1 FROM tab2 AS cor0
----
3654
3654
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL - - COUNT( DISTINCT + 60 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3638
SELECT ALL - - COUNT ( DISTINCT + 60 ) col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT CAST( - AVG ( ALL - + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT CAST ( - AVG ( ALL - + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3640
SELECT * FROM tab1 WHERE NOT + + ( + - col2 ) * - - col2 + + + col1 BETWEEN - + col0 AND CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3640
SELECT * FROM tab1 WHERE NOT + + ( + - col2 ) * - - col2 + + + col1 BETWEEN - + col0 AND CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL SUM( + - ( 68 ) ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL SUM ( + - ( 68 ) ) FROM tab0
----
-204

query I rowsort
SELECT DISTINCT col2 + - + col2 + - col2 * + col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col0 + + - col2 - - - col2 FROM tab0
----
-101
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT - 80 + CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
-12
-21
16

skipif mysql # not compatible
query I rowsort label-3644
SELECT - 80 + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
-12
-21
16

query I rowsort
SELECT DISTINCT ( - - 93 ) + + 37 AS col2 FROM tab1
----
130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3646
SELECT + 67 / + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) + 23 + - + 79 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT + 67 / + MAX ( DISTINCT CAST ( NULL AS REAL ) ) + 23 + - + 79 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3647
SELECT DISTINCT + 22, col2 DIV + + col2 AS col0 FROM tab0 AS cor0
----
22
1

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT + 22, col2 / + + col2 AS col0 FROM tab0 AS cor0
----
22
1

query I rowsort
SELECT ALL + 26 + - + col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 94 * + - 22 AS col2 FROM tab2 cor0
----
2068
2068
2068

query I rowsort
SELECT - col1 * + col2 * - 82 FROM tab0 AS cor0
----
17220
312174
8118

query I rowsort
SELECT + col2 / 84 * - col1 AS col0 FROM tab2 AS cor0 WHERE + col0 + - ( 43 ) + + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 * 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 * 46 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - 19 FROM tab2 WHERE NULL IS NULL
----
-19
-19
-19

query I rowsort
SELECT 31 * + 67 / AVG ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT ALL 93 - COUNT( * ), 0 AS col1 FROM tab2 AS cor0
----
90
0

skipif mysql # not compatible
query II rowsort label-3655
SELECT ALL 93 - COUNT ( * ), 0 AS col1 FROM tab2 AS cor0
----
90
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT ALL + 5 DIV - ( - 90 ) * + col1 + + col0 + col0 + - 87 FROM tab2 AS cor0
----
41
5
63

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 5 / - ( - 90 ) * + col1 + + col0 + col0 + - 87 FROM tab2 AS cor0
----
41
5
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT COUNT( * ) - + 74 + - 30 FROM tab2 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT COUNT ( * ) - + 74 + - 30 FROM tab2 cor0
----
-101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + ( - col1 ) + - + col0 * 98 * + - col0 <= + + col0
----

query I rowsort
SELECT ALL col0 * - col2 + - - col0 AS col1 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT col2 * 27 AS col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL 24 * COUNT( * ) AS col1 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 24 * COUNT ( * ) AS col1 FROM tab2 cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT + 0 DIV - 50 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + 0 / - 50 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - 65 + col0 FROM tab1 cor0
----
-240
-2964
-859

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - COUNT( * ) * + - SUM( - col1 ) + + 56 * - + COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-366

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - COUNT ( * ) * + - SUM ( - col1 ) + + 56 * - + COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( NOT col0 * - col0 IS NULL )
----
10
47
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT - 79 DIV col2 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 79 / col2 FROM tab2 AS cor0
----
-1
-1
-3

query I rowsort
SELECT ALL + + 5 * - col1 * + col0 + - - ( - ( 1 ) ) AS col0 FROM tab0 AS cor0
----
-486
-6076
-9136

query I rowsort
SELECT + col1 * - - col0 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT SUM( - 11 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3675
SELECT SUM ( - 11 ) FROM tab2
----
-33

query II rowsort
SELECT + col2 AS col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT - ( + MIN( ALL + col2 ) ), 98 AS col2 FROM tab1
----
-59
98

skipif mysql # not compatible
query II rowsort label-3677
SELECT - ( + MIN ( ALL + col2 ) ), 98 AS col2 FROM tab1
----
-59
98

query I rowsort
SELECT DISTINCT + 75 + + - col0 FROM tab0
----
-12
-22
60

query I rowsort
SELECT col1 * + col0 FROM tab1 WHERE NOT - col0 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 0 + + col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3681
SELECT DISTINCT col1, + col0 DIV - 38 AS col0 FROM tab1
----
14
-1
47
-2
5
-2

skipif mysql # not compatible
query II rowsort label-3681
SELECT DISTINCT col1, + col0 / - 38 AS col0 FROM tab1
----
14
-1
47
-2
5
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - - 62 )
----

query I rowsort
SELECT DISTINCT - col2 + - 29 * - + col0 - - col2 * + - 81 * - - 68 FROM tab2
----
-125373
-218504
-317347

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - COUNT( - col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3684
SELECT - COUNT ( - col2 ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT - col2, + 1 AS col2 FROM tab0 AS cor0
----
-10
1
-47
1
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT - - col2 * col2 DIV 26 FROM tab2 AS cor0
----
129
20
61

skipif mysql # not compatible
query I rowsort label-3686
SELECT - - col2 * col2 / 26 FROM tab2 AS cor0
----
129
20
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) * 4 FROM tab2 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) * 4 FROM tab2 AS cor0
----
-3
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3688
SELECT ALL + + MIN( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + + MIN ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * 42 * - - col1 FROM tab0 AS cor0
----
139
18609
275577

query I rowsort
SELECT DISTINCT + - 18 * + - 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
594

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL BETWEEN ( + 67 ) AND ( NULL )
----

query I rowsort
SELECT ALL 99 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 - + col1 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT + COUNT( * ) + 68 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + COUNT ( * ) + 68 FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL - - col1 + ( - col1 ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col2, col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + + 67 * - COUNT( DISTINCT - 18 ) AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3700
SELECT + + 67 * - COUNT ( DISTINCT - 18 ) AS col1 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - 46 * COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-3701
SELECT - 46 * COUNT ( * ) FROM tab0 AS cor0
----
-138

query I rowsort
SELECT + - ( + col0 ) - 35 FROM tab0 AS cor0
----
-122
-132
-50

query II rowsort
SELECT + col2 - col0 AS col1, + 35 FROM tab2
----
-17
35
-23
35
-24
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT CAST( NULL AS SIGNED ) * 2 - - + col2 / + 86 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT CAST ( NULL AS INTEGER ) * 2 - - + col2 / + 86 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL COUNT( + 36 ) FROM tab1 WHERE NOT col0 * col1 - col2 * + 45 BETWEEN - col0 AND + 22 * + - col1 * - col0 - - col0 * - col0
----
2

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL COUNT ( + 36 ) FROM tab1 WHERE NOT col0 * col1 - col2 * + 45 BETWEEN - col0 AND + 22 * + - col1 * - col0 - - col0 * - col0
----
2

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT + ( - 10 ) IS NOT NULL
----

query I rowsort
SELECT + + col1 * + 54 * - col1 * - col1 + + + col2 * + 75 - + - 42 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT + MAX( 76 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3708
SELECT + MAX ( 76 ) AS col2 FROM tab0 AS cor0
----
76

query II rowsort
SELECT + 11 * + + col0 - + + col0, 77 + + col2 AS col2 FROM tab2 AS cor0
----
460
100
640
117
750
135

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 60 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT DISTINCT - col0 AS col1, - col1 + + col1 DIV - col1 AS col2 FROM tab0
----
-15
-82
-87
-22
-97
-2

skipif mysql # not compatible
query II rowsort label-3712
SELECT DISTINCT - col0 AS col1, - col1 + + col1 / - col1 AS col2 FROM tab0
----
-15
-82
-87
-22
-97
-2

query I rowsort
SELECT + 91 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + 71 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 27 * + + col1 AS col1 FROM tab1 AS cor0
----
1269
135
378

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > - 18
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3717
SELECT ALL + col1 DIV CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + col1 / CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT - + col1, + 72 AS col1 FROM tab0 AS cor0 WHERE NOT 80 IS NULL
----
-1
72
-21
72
-81
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT - col2 + + 25 + - - CAST( NULL AS SIGNED ) * - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT - col2 + + 25 + - - CAST ( NULL AS INTEGER ) * - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3720
SELECT + COUNT( * ) DIV + 72 + + COUNT( - col2 ) AS col1, 11 AS col0 FROM tab1
----
3
11

skipif mysql # not compatible
query II rowsort label-3720
SELECT + COUNT ( * ) / + 72 + + COUNT ( - col2 ) AS col1, 11 AS col0 FROM tab1
----
3
11

query I rowsort
SELECT DISTINCT + 13 + + col1 AS col1 FROM tab1
----
18
27
60

query I rowsort
SELECT ALL + 7 + + col0 FROM tab0
----
104
22
94

query II rowsort
SELECT col1 + + + 48 AS col2, col1 FROM tab1
----
53
5
62
14
95
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT - col1 * - 58 + - col0 DIV col2 DIV - col2 FROM tab0
----
1218
4698
58

skipif mysql # not compatible
query I rowsort label-3724
SELECT - col1 * - 58 + - col0 / col2 / - col2 FROM tab0
----
1218
4698
58

query I rowsort
SELECT - - 76 FROM tab0 WHERE + col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL = col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT + - 17 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - 17 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * ( - + col2 ) + + col0 * 1 AS col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT DISTINCT col2 - - col0 * col1 FROM tab2 cor0
----
2369
4968
5083

query I rowsort
SELECT ALL 9 + - 24 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-15
-15

query I rowsort
SELECT col2 - - 14 + + 45 FROM tab2
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT MIN( DISTINCT 68 ) - COUNT( * ) AS col1 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-3732
SELECT MIN ( DISTINCT 68 ) - COUNT ( * ) AS col1 FROM tab0
----
65

query II rowsort
SELECT ALL + col2 + + + col1 AS col2, + 74 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - 96 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT DISTINCT 12 + + + 78 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + 20 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3736
SELECT + 20 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - MIN( + - 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3737
SELECT - MIN ( + - 84 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT COUNT( + + col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT DISTINCT COUNT ( + + col2 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT ( - 48 ) * + COUNT( * ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT ( - 48 ) * + COUNT ( * ) FROM tab1
----
-144

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE + + 56 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT ( - + col2 ) + - + col1 AS col2 FROM tab0
----
-100
-128
-31

query II rowsort
SELECT ALL - 53 * - 63 AS col1, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3339
23
3339
40
3339
58

query I rowsort
SELECT DISTINCT - 41 + + 98 AS col0 FROM tab1 cor0
----
57

query I rowsort
SELECT ALL + col2 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3745
SELECT * FROM tab1 AS cor0 WHERE col2 * + + CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-3745
SELECT * FROM tab1 AS cor0 WHERE col2 * + + CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3746
SELECT + 19 DIV + col2 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
0
-15
0
-97
1
-87

skipif mysql # not compatible
query II rowsort label-3746
SELECT + 19 / + col2 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
0
-15
0
-97
1
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 62 col1 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL - ( + MAX( CAST( - - 59 AS SIGNED ) ) ) col2 FROM tab2
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT ALL - ( + MAX ( CAST ( - - 59 AS INTEGER ) ) ) col2 FROM tab2
----
-59

query II rowsort
SELECT + col1 * col1 + + + col2, col0 FROM tab0 WHERE col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT SUM( ALL 91 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT SUM ( ALL 91 ) FROM tab1
----
273

query I rowsort
SELECT DISTINCT - col1 * 29 + + col1 FROM tab0
----
-2268
-28
-588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3753
SELECT * FROM tab0 WHERE - ( - + CAST( NULL AS SIGNED ) ) + - 60 <= col1
----

skipif mysql # not compatible
query III rowsort label-3753
SELECT * FROM tab0 WHERE - ( - + CAST ( NULL AS INTEGER ) ) + - 60 <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT 69 DIV + - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT 69 / + - col0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + 47 + - 58 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT DISTINCT 84 * - 30 AS col2 FROM tab2
----
-2520

query I rowsort
SELECT DISTINCT + 53 + + - 66 FROM tab1
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3758
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3758
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, col1 col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3759
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, col1 col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + col2 + - - col2 * - col0 + + col0 * - + col1 > - 38 * - col1 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL COUNT( * ) * - MIN( ALL + - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL COUNT ( * ) * - MIN ( ALL + - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
225

query I rowsort
SELECT 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT * FROM tab0 cor0 WHERE 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - - 72 AS col2 FROM tab0 AS cor0
----
153
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL col2 * - + col0 AS col0 FROM tab0 AS cor0 WHERE 13 / + 91 + - - CAST( col0 AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL col2 * - + col0 AS col0 FROM tab0 AS cor0 WHERE 13 / + 91 + - - CAST ( col0 AS INTEGER ) * + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + COUNT( * ) * + COUNT( * ) + + COUNT( * ) + 40 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
40

skipif mysql # not compatible
query I rowsort label-3767
SELECT + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) + 40 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND + col1 * + - 67
----

query I rowsort
SELECT DISTINCT - - col1 * + col2 * - ( - 35 ) - + col0 FROM tab2 AS cor0
----
107736
135935
41009

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT MIN( DISTINCT + col1 ) * - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3770
SELECT MIN ( DISTINCT + col1 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 33 AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-3772
SELECT DISTINCT - col2 DIV - - col2 AS col1, + col0 + + 40 FROM tab0 AS cor0
----
-1
127
-1
137
-1
55

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT - col2 / - - col2 AS col1, + col0 + + 40 FROM tab0 AS cor0
----
-1
127
-1
137
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - 2 * COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 2 * COUNT ( * ) AS col0 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col1 FROM tab0 WHERE NOT + + col2 = + - 93 + 32
----
48

query I rowsort
SELECT - 51 * - 17 + - col1 FROM tab2 AS cor0
----
790
800
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + MIN( DISTINCT + ( - col2 ) ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3776
SELECT + MIN ( DISTINCT + ( - col2 ) ) AS col0 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL - ( - ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 83 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - col0 * + 53 AS col2 FROM tab2 AS cor0
----
-2438
-3392
-3975

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + 17 <> NULL
----

query II rowsort
SELECT DISTINCT + 91 AS col1, - 66 + col2 AS col2 FROM tab0 AS cor0
----
91
-19
91
-56
91
33

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT col2 + - ( - col0 ) DIV - - col1 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-3784
SELECT col2 + - ( - col0 ) / - - col1 FROM tab1
----
69
76
99

query I rowsort
SELECT + 56 * - + col0 + - col1 FROM tab0
----
-4893
-5433
-921

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT col1 + + col1 DIV col0 col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3786
SELECT col1 + + col1 / col0 col0 FROM tab0
----
1
21
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT DISTINCT COUNT( DISTINCT col0 ) + - 62, 74 AS col2 FROM tab2
----
-59
74

skipif mysql # not compatible
query II rowsort label-3787
SELECT DISTINCT COUNT ( DISTINCT col0 ) + - 62, 74 AS col2 FROM tab2
----
-59
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL + 62 - - 23 - - COUNT( * ) - - + 59 AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + 62 - - 23 - - COUNT ( * ) - - + 59 AS col0 FROM tab1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL + 25 * - col1 + - + CAST( 9 AS SIGNED ) AS col0 FROM tab2
----
-1284
-1684
-1934

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + 25 * - col1 + - + CAST ( 9 AS INTEGER ) AS col0 FROM tab2
----
-1284
-1684
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * + 30 - + ( col1 ) FROM tab1 AS cor0
----
1765
1993
2866

query I rowsort
SELECT + col1 - + 66 FROM tab1
----
-19
-52
-61

query I rowsort
SELECT DISTINCT - - 27 FROM tab1 AS cor0 WHERE ( + col0 ) > - col1 + + 7 / + 30 + - col2 + 64 + col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3794
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - + ( COUNT( * ) ) * 73 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - + ( COUNT ( * ) ) * 73 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL - + 98 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - + 98 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 18 * - ( - 99 ) * - col2 * 50 * - col0 FROM tab0
----
-62815500
-77517000
-855627300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col1 FROM tab1
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT SUM( DISTINCT - 36 ) * COUNT( * ) AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3799
SELECT SUM ( DISTINCT - 36 ) * COUNT ( * ) AS col1 FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL + + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col2 + + 7 + - col1 AS col1 FROM tab2 cor0
----
-110
-118
-67

query I rowsort
SELECT ALL - 1 + + col2 + + col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3539
4691
9311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 92 ) col2 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3805
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3805
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST ( + col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT - + col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3806
SELECT - + col0 / - col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - MIN( ALL - + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT - MIN ( ALL - + 0 ) FROM tab0
----
0

query I rowsort
SELECT ALL col2 * - + col1 AS col1 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT - col2 + - + col0 AS col0, 77 FROM tab2 WHERE ( NOT 58 IS NULL )
----
-104
77
-133
77
-69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT MIN( + - 19 ) - 89 * COUNT( * ) AS col0 FROM tab0
----
-286

skipif mysql # not compatible
query I rowsort label-3810
SELECT MIN ( + - 19 ) - 89 * COUNT ( * ) AS col0 FROM tab0
----
-286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT - CAST( - + 11 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif mysql # not compatible
query I rowsort label-3811
SELECT - CAST ( - + 11 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT + 2 + + - ( - - 13 ) FROM tab0
----
-11

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT ALL + + col1 + - + 20 AS col2 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT col1 + col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT 61 + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 57 + - + 41 )
----
61

skipif mysql # not compatible
query I rowsort label-3816
SELECT 61 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 57 + - + 41 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + 68 - + - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 68 - + - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
74

query II rowsort
SELECT - + 9 AS col2, col0 / col2 * col0 AS col1 FROM tab2 WHERE NOT col2 * - 49 * + col0 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col2 FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT col2 * - 18 * + 40 AS col2 FROM tab2 AS cor0
----
-16560
-28800
-41760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + + col2 NOT BETWEEN ( + col0 ) + + + 50 * - col2 / - col1 * - + col1 AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT + ( + COUNT( * ) ) DIV + 26 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT + ( + COUNT ( * ) ) / + 26 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT ALL + - col0 DIV - 89 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + - col0 / - 89 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT - MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE col2 + - ( 56 ) BETWEEN + - 62 + + + col0 * ( 60 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 col1, 86 * - 48 + + col1 + ( + ( 35 ) ) - - 19 + + - col0 * - col1 col2 FROM tab1
----
70
-3346
70
-3644
70
250

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT 27 * COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3827
SELECT 27 * COUNT ( * ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 9 col1 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) * 15 * 59 DIV - - ( - 73 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) * 15 * 59 / - - ( - 73 ) AS col2 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ( - COUNT( * ) ) + 2 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3831
SELECT ( - COUNT ( * ) ) + 2 AS col1 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL - SUM( + - col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3832
SELECT ALL - SUM ( + - col0 ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + - COUNT( * ) + + 79 AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3833
SELECT + - COUNT ( * ) + + 79 AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT DISTINCT + + 76 DIV + col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + + 76 / + col0 FROM tab1 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL - - COUNT( * ) FROM tab0 WHERE + + col1 = - + col0 + col1
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE + + col1 = - + col0 + col1
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE ( NULL BETWEEN NULL AND ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query II rowsort
SELECT ALL col0 AS col1, 69 AS col2 FROM tab1 WHERE - + col0 IS NULL
----

query II rowsort
SELECT DISTINCT col0 + + - col2 AS col1, + col0 + col1 * + 65 FROM tab2 AS cor0 WHERE - col2 > 35
----

query I rowsort
SELECT - + col0 + 35 AS col2 FROM tab2 AS cor0
----
-11
-29
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + MAX( DISTINCT 68 ) * + + MIN( DISTINCT + col1 ) + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
3545

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + MAX ( DISTINCT 68 ) * + + MIN ( DISTINCT + col1 ) + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
3545

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 + + col1 * + - 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT col1 + - CAST( - + 74 AS SIGNED ) col2 FROM tab2 cor0
----
125
141
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3843
SELECT col1 + - CAST ( - + 74 AS INTEGER ) col2 FROM tab2 cor0
----
125
141
151

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 85 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 95 / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT col1 DIV - + col0 + - col1 + - col2 col2 FROM tab2
----
-118
-125
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3846
SELECT col1 / - + col0 + - col1 + - col2 col2 FROM tab2
----
-118
-125
-75

query III rowsort
SELECT * FROM tab1 WHERE 80 <= 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL COUNT( ALL - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL COUNT ( ALL - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT + 53 + ( - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0
----
100
152
63

skipif mysql # not compatible
query I rowsort label-3849
SELECT + 53 + ( - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0
----
100
152
63

query II rowsort
SELECT ( - - col2 ) * + + col1 * 37 * + col0 * col0 + - 16 * + col0, + col1 AS col1 FROM tab0
----
31693035
81
34463615
1
58809738
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NULL BETWEEN - col2 + - col0 * - - col1 AND 12
----

query I rowsort
SELECT ALL - 84 - + - col0 FROM tab0 cor0
----
-69
13
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT + COUNT( DISTINCT + 23 ) DIV + COUNT( * ) - + - 95 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + COUNT ( DISTINCT + 23 ) / + COUNT ( * ) - + - 95 FROM tab2 AS cor0
----
95

query I rowsort
SELECT ALL - 15 + - 31 FROM tab0 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 91 FROM tab2
----
23
91
40
91
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + + 38 > 13
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + 38 > 13
----
0

query I rowsort
SELECT + col1 * + 21 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - MIN( ALL - col1 ) * 24 AS col2 FROM tab1
----
1128

skipif mysql # not compatible
query I rowsort label-3861
SELECT - MIN ( ALL - col1 ) * 24 AS col2 FROM tab1
----
1128

query I rowsort
SELECT - col1 + - 52 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT CAST( NULL AS SIGNED ) * SUM( DISTINCT - col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT - + COUNT( * ) AS col0, + 32 AS col1 FROM tab2 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-3865
SELECT - + COUNT ( * ) AS col0, + 32 AS col1 FROM tab2 AS cor0
----
-3
32

query I rowsort
SELECT ( - 64 ) FROM tab0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + 8 + COUNT( * ) col2 FROM tab2
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3868
SELECT ALL + 8 + COUNT ( * ) col2 FROM tab2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT + col0 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + col0 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 - - - 9 FROM tab0 cor0 WHERE NOT NULL < + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT - 84 DIV + ( - 34 ) + - col0 FROM tab0
----
-13
-85
-95

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 84 / + ( - 34 ) + - col0 FROM tab0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT COUNT( * ) * - 68 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-612

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT COUNT ( * ) * - 68 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( DISTINCT + - 75 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( DISTINCT + - 75 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT - - ( 24 ) + col2 DIV col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT - - ( 24 ) + col2 / col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - + 37 AS col1 FROM tab1 AS cor0
----
-37

query II rowsort
SELECT + + col2, - 18 FROM tab0 AS cor0
----
10
-18
47
-18
99
-18

query III rowsort
SELECT - col1 AS col0, 38 * + col2 - + col2, - col1 AS col1 FROM tab1 cor0
----
9 values hashing to 06d2602ee552cb494dadabf9bcb4cf3b

query I rowsort
SELECT 38 * - col2 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL + CAST( + + 50 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + + 15 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3880
SELECT ALL + CAST ( + + 50 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + + 15 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 39 - - 14 FROM tab0
----
-3379
-3769
-571

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col2 + 70
----

query I rowsort
SELECT + col1 - + col0 + 79 FROM tab2
----
71
84
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3884
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) + - 15 + + - col2 * + col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-3884
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) + - 15 + + - col2 * + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT col2 DIV - col1 - col0 + + col1 * + col2 + + col2 FROM tab0
----
133
2
3839

skipif mysql # not compatible
query I rowsort label-3885
SELECT col2 / - col1 - col0 + + col1 * + col2 + + col2 FROM tab0
----
133
2
3839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 72 ) col0 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + ( + - COUNT( - 16 ) ) * - + 39 AS col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3887
SELECT + ( + - COUNT ( - 16 ) ) * - + 39 AS col2 FROM tab1 AS cor0
----
117

query I rowsort
SELECT - + col1 * col1 * + - col2 FROM tab1 AS cor0 WHERE NOT + 7 / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT DISTINCT ( - COUNT( DISTINCT + - col1 ) ) col1, 66 * + 34 col2 FROM tab1
----
-3
2244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3890
SELECT DISTINCT ( - COUNT ( DISTINCT + - col1 ) ) col1, 66 * + 34 col2 FROM tab1
----
-3
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT - col2 DIV + - 20 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3891
SELECT - col2 / + - 20 FROM tab2
----
1
2
2

query I rowsort
SELECT + 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query II rowsort
SELECT ALL col0, + ( - col2 ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - ( - - 62 ) AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT + - col0 * + - col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - - col2 IS NULL
----

query I rowsort
SELECT ALL 86 * - - 4 + 37 FROM tab1
----
381
381
381

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3898
SELECT ALL * FROM tab0 WHERE NULL IN ( - + col1, - ( col2 ), + 75 * + col1, col1, - + col0, + ( - + col2 ) / CAST( col1 AS SIGNED ) * 79 * 77 - + + 69 * 31 )
----

skipif mysql # not compatible
query III rowsort label-3898
SELECT ALL * FROM tab0 WHERE NULL IN ( - + col1, - ( col2 ), + 75 * + col1, col1, - + col0, + ( - + col2 ) / CAST ( col1 AS INTEGER ) * 79 * 77 - + + 69 * 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT COUNT( * ) + + 57 AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3899
SELECT COUNT ( * ) + + 57 AS col1 FROM tab0
----
60

query I rowsort
SELECT ALL - col1 * - col0 * - 13 * + col0 + col0 AS col2 FROM tab2
----
-1402862
-4100032
-4899300

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT MIN( DISTINCT - 68 ) + - 86 AS col1 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT MIN ( DISTINCT - 68 ) + - 86 AS col1 FROM tab2
----
-154

query II rowsort
SELECT DISTINCT + 24 AS col0, + ( - - col2 ) AS col0 FROM tab1
----
24
59
24
68
24
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3903
SELECT ALL col0 AS col0, col1 DIV + 3 - 7 AS col1 FROM tab0
----
15
20
87
0
97
-7

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL col0 AS col0, col1 / + 3 - 7 AS col1 FROM tab0
----
15
20
87
0
97
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3904
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT + 8 DIV 85 * - col2 + - - col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3905
SELECT + 8 / 85 * - col2 + - - col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - ( - + col0 ) + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + 73 BETWEEN - col2 * 70 AND ( - - 78 + - + col2 + col0 + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3909
SELECT + COUNT( * ) DIV - + 33 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) / - + 33 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col2 * - - 12 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT - MAX( + + 89 ) AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-3911
SELECT - MAX ( + + 89 ) AS col2 FROM tab2
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 AS col0, - col0 col2 FROM tab2
----
17
-46
17
-64
17
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-3913
SELECT col0 AS col2, 62 DIV col1 AS col0 FROM tab0
----
15
0
87
2
97
62

skipif mysql # not compatible
query II rowsort label-3913
SELECT col0 AS col2, 62 / col1 AS col0 FROM tab0
----
15
0
87
2
97
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT + COUNT( * ) AS col1, - 40 FROM tab0
----
3
-40

skipif mysql # not compatible
query II rowsort label-3915
SELECT + COUNT ( * ) AS col1, - 40 FROM tab0
----
3
-40

query I rowsort
SELECT ALL col0 + - col0 * col0 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - MIN( ALL + 12 ) AS col0 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3918
SELECT - MIN ( ALL + 12 ) AS col0 FROM tab1
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT - MIN( col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - MIN ( col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 25 + 18 AS col2 FROM tab0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT COUNT( + 46 ) * CAST( NULL AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) * 81 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT COUNT ( + 46 ) * CAST ( NULL AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) * 81 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT ( 30 ) * 38 + COUNT( ALL - col0 ) AS col1 FROM tab1
----
1143

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT ( 30 ) * 38 + COUNT ( ALL - col0 ) AS col1 FROM tab1
----
1143

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col0 AS col1 FROM tab0
----
240
7656
9506

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT COUNT( * ) FROM tab0 WHERE NOT 88 * + 4 - - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT COUNT ( * ) FROM tab0 WHERE NOT 88 * + 4 - - col0 <= NULL
----
0

query I rowsort
SELECT ALL + col1 * + 55 AS col2 FROM tab1
----
2585
275
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT MAX( ALL col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3930
SELECT MAX ( ALL col0 ) col1 FROM tab2
----
75

query I rowsort
SELECT + 60 FROM tab2 WHERE NULL BETWEEN NULL AND 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab0 WHERE + 90 BETWEEN NULL AND + 31
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT 53 AS col0 FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-3935
SELECT 53 AS col0 FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) <> - col2
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 + col0 >= 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT col1 * CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab0
----
100
451
6608

skipif mysql # not compatible
query I rowsort label-3937
SELECT col1 * CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab0
----
100
451
6608

query I rowsort
SELECT + 31 * + col1 + - col0 AS col2 FROM tab2
----
1535
2002
2323

query I rowsort
SELECT DISTINCT 81 * col0 AS col1 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT COUNT( * ) + COUNT( * ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - 32 + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3941
SELECT - 32 + COUNT ( * ) FROM tab0 AS cor0
----
-29

query I rowsort
SELECT 91 * col2 + + col1 AS col1 FROM tab0 cor0
----
4358
9010
931

query I rowsort
SELECT - 98 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT + col1 + col2 * - col2 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab0 cor0 WHERE ( col1 * col0 ) NOT IN ( col1 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 49 AS col2 FROM tab0 AS cor0 WHERE + col1 <> ( + col0 )
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT ALL + 92 * + CAST( NULL AS SIGNED ) - + 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + 92 * + CAST ( NULL AS INTEGER ) - + 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT + ( col0 ) DIV - col1 + + 51 col1 FROM tab2 AS cor0
----
50
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT DISTINCT + ( col0 ) / - col1 + + 51 col1 FROM tab2 AS cor0
----
50
51

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE ( + 33 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 79 )
----

query I rowsort
SELECT + 87 FROM tab1 AS cor0 WHERE NOT + col0 / - 36 + col1 <= ( + 82 * + col0 - - col2 )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0 WHERE ( + 34 * + 50 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT COUNT( * ) * - 67 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT COUNT ( * ) * - 67 FROM tab2 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE 34 - + 99 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE 34 - + 99 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 94 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL ( col2 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 * - 89 > NULL
----

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 * - 89 > NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT + 89 DIV - 4 AS col0 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + 89 / - 4 AS col0 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL - col0 + - 28 * + 77 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2202
-2220
-2231

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT MAX( col2 ) * + 83 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT MAX ( col2 ) * + 83 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( 97 )
----
NULL

query I rowsort
SELECT DISTINCT 75 - - 25 AS col1 FROM tab0 WHERE ( + col1 BETWEEN ( NULL ) AND ( - 1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT + SUM( DISTINCT col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + SUM ( DISTINCT col2 ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( - col2 ) * 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL - SUM( ALL + col2 ) * + 1 * + 61 + + MIN( + col2 ) FROM tab1
----
-13544

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - SUM ( ALL + col2 ) * + 1 * + 61 + + MIN ( + col2 ) FROM tab1
----
-13544

query I rowsort
SELECT + 86 AS col1 FROM tab2 WHERE NOT - + 44 * + 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT 6 * + 93 + - COUNT( * ) FROM tab0
----
555

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT 6 * + 93 + - COUNT ( * ) FROM tab0
----
555

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT DISTINCT - + 50 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - + 50 / - + col2 AS col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( 72 * col0 ) < - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT col1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( 72 * col0 ) < - col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT DISTINCT COUNT( * ) DIV + - 46 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT COUNT ( * ) / + - 46 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT + COUNT( col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3974
SELECT + COUNT ( col1 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col1 AS col0, col2 * col1 + 90 FROM tab0 AS cor0
----
1
189
21
300
81
3897

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - + MIN( ALL col1 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - + MIN ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1

query I rowsort
SELECT col2 * - ( - - 52 ) FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL col2 * - + CAST( + 52 AS SIGNED ) AS col0 FROM tab1
----
-3068
-3536
-4992

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL col2 * - + CAST ( + 52 AS INTEGER ) AS col0 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT DISTINCT AVG ( DISTINCT 22 ) AS col1 FROM tab0 WHERE NOT ( + - CAST( NULL AS SIGNED ) + + 47 + + col2 ) NOT BETWEEN + 13 AND + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT AVG ( DISTINCT 22 ) AS col1 FROM tab0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) + + 47 + + col2 ) NOT BETWEEN + 13 AND + 74
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NULL IN ( + + col0 / col0 / ( + 67 * 85 ) + col2 )
----

query I rowsort
SELECT 42 + + col2 AS col1 FROM tab1
----
101
110
138

query I rowsort
SELECT ALL + + 57 FROM tab0 WHERE col1 IS NOT NULL
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT + 96 AS col2 FROM tab1 WHERE NULL IS NULL
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT - 63 DIV col0 + - col0 FROM tab2
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 63 / col0 + - col0 FROM tab2
----
-47
-64
-75

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - + 42 * col0 >= 71 + col1 * - col0
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3988
SELECT 56 * + CAST( NULL AS DECIMAL ) * - col0 - + - 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT 56 * + CAST ( NULL AS REAL ) * - col0 - + - 13 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL - CAST( MIN( - 91 ) AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - CAST ( MIN ( - 91 ) AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 26 + - ( - col2 ) + - col1 FROM tab0
----
-37
-60
72

query I rowsort
SELECT DISTINCT col0 + - 46 FROM tab2
----
0
18
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT MIN( DISTINCT 72 ) + MIN( ALL col1 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT MIN ( DISTINCT 72 ) + MIN ( ALL col1 ) FROM tab1
----
77

query I rowsort
SELECT + 50 + - - col1 AS col1 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL ( + + 83 ) + + COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL ( + + 83 ) + + COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - MIN( DISTINCT - ( + 64 ) ) FROM tab1 cor0 WHERE + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT - MIN ( DISTINCT - ( + 64 ) ) FROM tab1 cor0 WHERE + col1 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL + ( + COUNT( * ) ) * + 30 col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3996
SELECT ALL + ( + COUNT ( * ) ) * + 30 col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL + + 18 * 50 FROM tab2 AS cor0
----
900
900
900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col0 * - col1
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT + 61, - 65 * + - COUNT( * ) AS col2 FROM tab2
----
61
195

skipif mysql # not compatible
query II rowsort label-4002
SELECT + 61, - 65 * + - COUNT ( * ) AS col2 FROM tab2
----
61
195

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN - col0 * - 50 + - col2 + + 28 * col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - - col0 )
----

query I rowsort
SELECT ALL + col1 * + col0 AS col2 FROM tab2 WHERE col0 BETWEEN ( + 34 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4006
SELECT - CAST( NULL AS SIGNED ) * - + 3 AS col2, 24 col2 FROM tab2
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4006
SELECT - CAST ( NULL AS INTEGER ) * - + 3 AS col2, 24 col2 FROM tab2
----
NULL
24
NULL
24
NULL
24

query II rowsort
SELECT ALL col2, + ( - 61 ) FROM tab0
----
10
-61
47
-61
99
-61

query I rowsort
SELECT ALL col1 * - col1 * - col2 * + - 53 FROM tab2
----
-12569480
-13799186
-3170619

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - 8 ) IS NULL OR NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT + + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + CAST( + col1 AS SIGNED ) + 38 IS NOT NULL
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4011
SELECT + + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + CAST ( + col1 AS INTEGER ) + 38 IS NOT NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - 48 * - + MAX( - col1 ) FROM tab2 AS cor0
----
-2448

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - 48 * - + MAX ( - col1 ) FROM tab2 AS cor0
----
-2448

query I rowsort
SELECT ALL 0 + - col2 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - SUM( DISTINCT - 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-4014
SELECT - SUM ( DISTINCT - 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL - ( - MAX( DISTINCT col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - ( - MAX ( DISTINCT col2 ) ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT SUM( ALL - 92 ) + 38 FROM tab2
----
-238

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT SUM ( ALL - 92 ) + 38 FROM tab2
----
-238

query I rowsort
SELECT - 85 + col1 FROM tab2
----
-18
-34
-8

query I rowsort
SELECT DISTINCT 73 + - col2 + - 66 * + ( col1 ) * - col0 AS col0 FROM tab1
----
28064
282287
47101

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 79 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4019
SELECT 79 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

query II rowsort
SELECT ALL + 77 + - - 61 AS col0, - 37 FROM tab2 AS cor0
----
138
-37
138
-37
138
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4021
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 8 ) AND ( 72 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4021
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 8 ) AND ( 72 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - ( - - COUNT( * ) ) * - 80 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4022
SELECT - ( - - COUNT ( * ) ) * - 80 FROM tab2 AS cor0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * + 35 * col2 col0 FROM tab1 AS cor0
----
100800
61950
71400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT - COUNT( * ) * 97 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT - COUNT ( * ) * 97 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT 55 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT 55 / - - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - col0 col0 FROM tab1
----
-4080
-6800
-7280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4028
SELECT * FROM tab2 WHERE col1 <= col1 * - 77 * + col0 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4028
SELECT * FROM tab2 WHERE col1 <= col1 * - 77 * + col0 / CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 * - 49 + col2 + - 76 col1 FROM tab1 WHERE 63 > NULL
----

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + + 15 * - col2 - col2 * col2 + 60 + col0 * col1 - - col2 FROM tab0 AS cor0
----
-156560
-34022
297

query I rowsort
SELECT DISTINCT - col1 + 50 - - + col0 FROM tab1 AS cor0
----
130
87
94

query I rowsort
SELECT ALL col0 + + + ( + + 0 ) + - - 91 AS col1 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL 68 - - COUNT( * ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 68 - - COUNT ( * ) FROM tab1 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 WHERE ( 68 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 73 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + - MIN( + 79 ) col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT DISTINCT + - MIN ( + 79 ) col1 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - 78 + - + col1 AS col2 FROM tab1 AS cor0
----
-4607
-5351
-7502

query I rowsort
SELECT - col2 * - 61 * + 45 FROM tab1 AS cor0
----
161955
186660
263520

query I rowsort
SELECT - 8 FROM tab2 AS cor0 WHERE NOT ( 42 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 / - col2 > ( + + col0 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT DISTINCT + col2 AS col1, col2 * - CAST( + - 24 AS SIGNED ) AS col2 FROM tab0
----
10
240
47
1128
99
2376

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + col2 AS col1, col2 * - CAST ( + - 24 AS INTEGER ) AS col2 FROM tab0
----
10
240
47
1128
99
2376

query I rowsort
SELECT ALL - 93 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( ( + + 74 ) ) FROM tab2
----
74

query I rowsort
SELECT ALL - col0 * + 88 AS col1 FROM tab2
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL - 41 * 7 AS col2 FROM tab0 WHERE NOT + 78 / + - CAST( NULL AS SIGNED ) IN ( + col0 * - 80 - ( - col1 ), col1 - col2 )
----

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - 41 * 7 AS col2 FROM tab0 WHERE NOT + 78 / + - CAST ( NULL AS INTEGER ) IN ( + col0 * - 80 - ( - col1 ), col1 - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + - 73 + col0 col1 FROM tab2 AS cor0
----
3769
4966
5685

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 76 BETWEEN ( + - ( col2 ) * col0 - 64 + - + 50 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + MIN( - 55 ) col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4054
SELECT + MIN ( - 55 ) col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT - - col2 * 30 * 66 AS col0 FROM tab1 cor0
----
116820
134640
190080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4056
SELECT ALL col0 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL col0 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT ALL - 64, - MAX( + 12 ) AS col2 FROM tab0 AS cor0
----
-64
-12

skipif mysql # not compatible
query II rowsort label-4057
SELECT ALL - 64, - MAX ( + 12 ) AS col2 FROM tab0 AS cor0
----
-64
-12

query I rowsort
SELECT DISTINCT + col2 + - - 14 AS col1 FROM tab0 AS cor0
----
113
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + MIN( + + col1 ) + + + MIN( - 74 ) - - + 98 AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4059
SELECT + MIN ( + + col1 ) + + + MIN ( - 74 ) - - + 98 AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT + + col2 * col0 + col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT + ( - CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + ( - CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + - col2 * - 90 + + col0 AS col1 FROM tab0 AS cor0
----
4245
9007
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL CAST( NULL AS SIGNED ) * - - 42 * + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL CAST ( NULL AS INTEGER ) * - - 42 * + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + + 73 AS col0 FROM tab2
----
124
140
150

query II rowsort
SELECT DISTINCT - col0 + + + col2 AS col2, - col2 FROM tab1
----
-23
-68
-26
-59
45
-96

query II rowsort
SELECT DISTINCT + col0 + + col0 AS col0, - col1 AS col0 FROM tab2
----
128
-77
150
-67
92
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT - CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT - CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - col1 + col0 - - col1 * - ( - col0 ) + + - 39 AS col2 FROM tab1 AS cor0
----
4423
481
754

query I rowsort
SELECT + 87 + - + col1 FROM tab2 WHERE NOT - 60 + col0 < NULL
----

query II rowsort
SELECT + 68 AS col1, - col0 + + col0 FROM tab2
----
68
0
68
0
68
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT 16 AS col2, 13 - - COUNT( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
16
16

skipif mysql # not compatible
query II rowsort label-4071
SELECT 16 AS col2, 13 - - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab0 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 = 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT - + MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4074
SELECT - + MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT 15 * - MAX( DISTINCT - + 5 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4075
SELECT 15 * - MAX ( DISTINCT - + 5 ) FROM tab1
----
75

query I rowsort
SELECT DISTINCT - 27 * - - 31 AS col2 FROM tab0
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - SUM( col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - SUM ( col1 ) FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT + CAST( + 62 AS SIGNED ) FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + CAST ( + 62 AS INTEGER ) FROM tab2 cor0
----
62

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - + 4 * - ( + COUNT( * ) ) * - + ( + - 53 ) - + 74 AS col2 FROM tab1 AS cor0
----
562

skipif mysql # not compatible
query I rowsort label-4081
SELECT - + 4 * - ( + COUNT ( * ) ) * - + ( + - 53 ) - + 74 AS col2 FROM tab1 AS cor0
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL SUM( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL SUM ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL = col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT + 14 + 85 + col2 DIV + 32 FROM tab2
----
100
100
99

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 14 + 85 + col2 / + 32 FROM tab2
----
100
100
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT CAST( - - 49 AS SIGNED ) + col1 + 66 AS col1 FROM tab1
----
120
129
162

skipif mysql # not compatible
query I rowsort label-4084
SELECT CAST ( - - 49 AS INTEGER ) + col1 + 66 AS col1 FROM tab1
----
120
129
162

query I rowsort
SELECT DISTINCT 21 FROM tab0, tab2 cor0
----
21

query I rowsort
SELECT ALL - 34 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT + CAST( col0 AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT + CAST ( col0 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4088
SELECT ALL + col0 / 19 + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL + col0 / 19 + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT - 52 + - 83 + - col2 AS col0 FROM tab2 cor0
----
-158
-175
-193

query I rowsort
SELECT DISTINCT + 38 + + 25 + - col0 * - + 80 + - 99 * 26 FROM tab2 AS cor0
----
1169
2609
3489

query I rowsort
SELECT col0 + 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + col2 + + 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT col2 DIV + 26 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4093
SELECT col2 / + 26 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - 72 * - col0 - + + ( - col0 ) FROM tab2 AS cor0
----
3358
4672
5475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 88, col2 col2 FROM tab0 AS cor0
----
-88
10
-88
47
-88
99

query I rowsort
SELECT DISTINCT + 29 - - - col2 + - col2 * col0 FROM tab0 AS cor0
----
-723
-851
-9673

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4097
SELECT + CAST( NULL AS DECIMAL ) * - 33 * + ( - + 71 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT + CAST ( NULL AS REAL ) * - 33 * + ( - + 71 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 * 62 FROM tab1
----
-18290
-198152
-83328

query III rowsort
SELECT * FROM tab1 WHERE ( + 79 ) = 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT DISTINCT - CAST( - - COUNT( col2 ) AS SIGNED ) * + + COUNT( * ) * COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - CAST ( - - COUNT ( col2 ) AS INTEGER ) * + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT ALL - 49 * col1 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT + 44 - col0 FROM tab1
----
-41
-47
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - col2 DIV 2 + - col1 col0 FROM tab1
----
-34
-62
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4103
SELECT DISTINCT - col2 / 2 + - col1 col0 FROM tab1
----
-34
-62
-81

query III rowsort
SELECT * FROM tab2 WHERE - 50 IS NULL
----

query I rowsort
SELECT + - col2 * + + col2 * - col1 + col0 + + col1 AS col2 FROM tab2 AS cor0
----
123341
225530
27076

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT ALL + col0 + - + 11 DIV col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + col0 + - + 11 / col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - + col2 + + - 18 + - 65 FROM tab1 AS cor0
----
-142
-151
-179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 85 ) + + col2 col0 FROM tab2 AS cor0
----
-27
-45
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4109
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 17 + + col1 AND + + CAST( NULL AS DECIMAL ) + - - col0
----

skipif mysql # not compatible
query III rowsort label-4109
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 17 + + col1 AND + + CAST ( NULL AS REAL ) + - - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL ( + 13 ) DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL ( + 13 ) / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - - ( + 53 ) * - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
5141
64395
96831

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 <= + col1 + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT DISTINCT + CAST( + - 10 AS SIGNED ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + CAST ( + - 10 AS INTEGER ) FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4115
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL + col2 + col1 + - 79 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col1 IN ( - 91 )
----
-5
38
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 * + + 5 IS NULL
----

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - + 20 AND NULL
----

query I rowsort
SELECT + AVG ( ALL + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT - 89 + - COUNT( DISTINCT - + 0 ), + SUM( 23 ) * + + 23 AS col0 FROM tab1
----
-90
1587

skipif mysql # not compatible
query II rowsort label-4121
SELECT - 89 + - COUNT ( DISTINCT - + 0 ), + SUM ( 23 ) * + + 23 AS col0 FROM tab1
----
-90
1587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + + 53 col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 5 + - col0 - - 98 AND NULL
----

query I rowsort
SELECT - 46 + - + col1 FROM tab2 cor0
----
-113
-123
-97

query II rowsort
SELECT ALL - col1, 14 AS col1 FROM tab1 AS cor0
----
-14
14
-47
14
-5
14

query I rowsort
SELECT - col1 * + ( 82 ) AS col0 FROM tab1 AS cor0
----
-1148
-3854
-410

query II rowsort
SELECT ALL + 37 + + - 28 AS col1, + col1 + - + 74 FROM tab0
----
9
-53
9
-73
9
7

onlyif mysql # DIV for integer division: 
query II rowsort label-4128
SELECT + 24 DIV + + col1 AS col1, - 29 FROM tab0
----
0
-29
1
-29
24
-29

skipif mysql # not compatible
query II rowsort label-4128
SELECT + 24 / + + col1 AS col1, - 29 FROM tab0
----
0
-29
1
-29
24
-29

query III rowsort
SELECT * FROM tab1 WHERE col1 * 43 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT + COUNT( * ) + + 92 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT + COUNT ( * ) + + 92 FROM tab0 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab0 AS cor0 WHERE + 32 IN ( + col1, + col2, - col2, - + 35 - col1 )
----

query I rowsort
SELECT - col0 + - 94 * ( + + col1 ) + + + 89 FROM tab2 AS cor0
----
-4751
-6284
-7213

query I rowsort
SELECT + 69 + + 0 + + + ( + - 46 ) AS col0 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + col1 - - col1 + col1 AS col2 FROM tab1 cor0
----
141
15
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT ALL + col0 DIV - - col0 - - 94 * + 24 FROM tab1 AS cor0
----
2257
2257
2257

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + col0 / - - col0 - - 94 * + 24 FROM tab1 AS cor0
----
2257
2257
2257

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4137
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 * col1 + - col0 <> - CAST( + col0 AS SIGNED ) + - - 74 * 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4137
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 * col1 + - col0 <> - CAST ( + col0 AS INTEGER ) + - - 74 * 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT ALL + CAST( NULL AS SIGNED ) / 67 * + MIN( DISTINCT 91 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + CAST ( NULL AS INTEGER ) / 67 * + MIN ( DISTINCT 91 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * - 7 + - col2 AS col2 FROM tab2
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT - 82 * - 59 + + 44 - + + COUNT( * ) + 84 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
4966

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 82 * - 59 + + 44 - + + COUNT ( * ) + 84 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
4966

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT ALL + col2 DIV ( - col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + col2 / ( - col0 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - SUM( + col2 ) * - ( 13 ) AS col2 FROM tab0
----
2028

skipif mysql # not compatible
query I rowsort label-4142
SELECT - SUM ( + col2 ) * - ( 13 ) AS col2 FROM tab0
----
2028

query I rowsort
SELECT - col2 * - + 61 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - - COUNT( * ) FROM tab0 WHERE + 23 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4144
SELECT - - COUNT ( * ) FROM tab0 WHERE + 23 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 48 * - col0 * + col2 col0 FROM tab1
----
-1203600
-13960128
-3290112

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 65 + - - col1 - + + 57 FROM tab0
----
29
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 96 * + + col2 FROM tab2 AS cor0
----
2208
3840
5568

query I rowsort
SELECT DISTINCT - col1 * - - 12 * - col0 FROM tab1 AS cor0
----
5100
51324
8568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4153
SELECT + - 56 AS col2, - col1 + + - col0 FROM tab2 AS cor0 WHERE NOT - col2 - - 88 NOT IN ( + + 64 / CAST( - col0 AS SIGNED ) + - 54 * + col1 * - 38, - col2 )
----

skipif mysql # not compatible
query II rowsort label-4153
SELECT + - 56 AS col2, - col1 + + - col0 FROM tab2 AS cor0 WHERE NOT - col2 - - 88 NOT IN ( + + 64 / CAST ( - col0 AS INTEGER ) + - 54 * + col1 * - 38, - col2 )
----

query I rowsort
SELECT ALL AVG ( col0 ) AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 89 + + 62 + col0 - + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT ALL col2 DIV 37 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL col2 / 37 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4157
SELECT * FROM tab2 WHERE NOT - + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4157
SELECT * FROM tab2 WHERE NOT - + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT COUNT( ALL - 90 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT COUNT ( ALL - 90 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - ( col0 ) <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 + - + 59, - col0 AS col1 FROM tab2
----
-1
-75
-19
-64
-36
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + SUM( DISTINCT - - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + SUM ( DISTINCT - - col2 ) AS col2 FROM tab0
----
156

query III rowsort
SELECT * FROM tab2 WHERE - col0 = + col2 / + 61 * - + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT + col0 + - CAST( NULL AS SIGNED ) + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT + col0 + - CAST ( NULL AS INTEGER ) + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 24 * + - ( + col0 ) * - ( - col1 ) + + - col1 AS col2 FROM tab2 cor0
----
118195
120533
56253

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL 41 * + col2 FROM tab1 AS cor0 WHERE + 40 + + 4 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 + - ( col0 ) * + - ( + col1 ) + - - col0 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 + - ( col0 ) * + - ( + col1 ) + - - col0 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + COUNT( * ) - + + 10 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4170
SELECT + COUNT ( * ) - + + 10 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + - COUNT( DISTINCT + - 10 ) - + ( + 9 ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4171
SELECT + - COUNT ( DISTINCT + - 10 ) - + ( + 9 ) AS col0 FROM tab1 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL > 56 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col0 col2, - 37 + col0 col1 FROM tab0
----
-225
-22
-7569
50
-9409
60

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + 57, - 2 / - col1 * col0 )
----

query I rowsort
SELECT DISTINCT - 72 * + 38 AS col1 FROM tab2
----
-2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT + 14 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) - - - ( + col0 ) AND + 41 - + col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 14 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) - - - ( + col0 ) AND + 41 - + col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 72 col2 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + 24 col0 FROM tab0 AS cor0
----
-1128
-2376
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL 28 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL 28 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4182
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4182
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND col0 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4183
SELECT COUNT( * ) DIV - 42 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT COUNT ( * ) / - 42 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT + - 90 DIV - 31 + col1 FROM tab2 AS cor0
----
53
69
79

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + - 90 / - 31 + col1 FROM tab2 AS cor0
----
53
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT - - col1 * col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1475
150212
18816

skipif mysql # not compatible
query I rowsort label-4185
SELECT - - col1 * col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( - 94 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT + + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT + + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 WHERE + 19 <> + - col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - - 66 ) AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT ALL 96 + col1 FROM tab1
----
101
110
143

query I rowsort
SELECT ALL col1 + ( 51 ) FROM tab0
----
132
52
72

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT + 44 + + COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + 44 + + COUNT ( * ) FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - ( - - 79 ) + COUNT( * ) AS col2 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - ( - - 79 ) + COUNT ( * ) AS col2 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL 49 * + + col2 * + col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + ( 80 ) AS col1, 19 + + col2 AS col2 FROM tab1 AS cor0
----
80
115
80
78
80
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + COUNT( * ) * 31 col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4199
SELECT + COUNT ( * ) * 31 col1 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT - 4 + CAST( NULL AS SIGNED ) / - + 69 FROM tab0 AS cor0 WHERE ( + 39 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT - 4 + CAST ( NULL AS INTEGER ) / - + 69 FROM tab0 AS cor0 WHERE ( + 39 ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0, - 1 * - + 52 - + + col2 FROM tab1 AS cor0
----
51
-44
85
-7
91
-16

query I rowsort
SELECT - - 41 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + col0 * 10 + - 92 AS col1 FROM tab2
----
368
548
658

query I rowsort
SELECT DISTINCT + ( - 84 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

query I rowsort
SELECT DISTINCT col0 - ( col2 ) * - - col1 AS col1 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT 70 * - - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col2 col2, + col2 AS col0 FROM tab2 AS cor0
----
17
58
23
23
24
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT DISTINCT + COUNT( * ) - + + MAX( ALL + col0 ), + SUM( DISTINCT - + 16 ) AS col2 FROM tab1 AS cor0
----
-88
-16

skipif mysql # not compatible
query II rowsort label-4208
SELECT DISTINCT + COUNT ( * ) - + + MAX ( ALL + col0 ), + SUM ( DISTINCT - + 16 ) AS col2 FROM tab1 AS cor0
----
-88
-16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 62 IS NULL
----

query I rowsort
SELECT - + col1 - - col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
37
44
80

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 - + col0 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + + ( + 72 ) AS col1 FROM tab2 cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 61 + + col0 + + - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4214
SELECT ALL * FROM tab2 WHERE - col0 + - ( CAST( + col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4214
SELECT ALL * FROM tab2 WHERE - col0 + - ( CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT MAX( - ( + col1 ) ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4216
SELECT MAX ( - ( + col1 ) ) col1 FROM tab1
----
-5

query II rowsort
SELECT DISTINCT - 65, + 55 AS col1 FROM tab0
----
-65
55

query I rowsort
SELECT DISTINCT + 51 + 49 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + 90 = + 31
----
-3

skipif mysql # not compatible
query I rowsort label-4219
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 90 = + 31
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - 55 * - - COUNT( * ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 55 * - - COUNT ( * ) FROM tab2
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT SUM( - + CAST( - 8 AS SIGNED ) ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4221
SELECT SUM ( - + CAST ( - 8 AS INTEGER ) ) FROM tab0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED ) * - + COUNT( * ) / + - 45 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / + - 45 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col1 FROM tab0 WHERE NOT col2 > NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col2, + 26 FROM tab0 AS cor0
----
15
26
87
26
97
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT + 32 * COUNT( * ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT + 32 * COUNT ( * ) AS col0 FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL + + CAST( - col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT ALL + + CAST ( - col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 77 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4229
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col0, 65 AS col1 FROM tab1 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0, 65 AS col1 FROM tab1 AS cor0
----
-3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - + SUM( DISTINCT - 77 ) * + - COUNT( col2 ) * + 51 FROM tab2 AS cor0
----
-11781

skipif mysql # not compatible
query I rowsort label-4230
SELECT - + SUM ( DISTINCT - 77 ) * + - COUNT ( col2 ) * + 51 FROM tab2 AS cor0
----
-11781

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT DISTINCT - col0 + - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - col0 + - col2 / col0 AS col0 FROM tab0 AS cor0
----
-18
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT CAST( + + 28 AS SIGNED ) * col2 FROM tab0
----
1316
2772
280

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT CAST ( + + 28 AS INTEGER ) * col2 FROM tab0
----
1316
2772
280

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - ( col2 ) / - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT DISTINCT + 36 + + MAX( DISTINCT col2 ) DIV COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + 36 + + MAX ( DISTINCT col2 ) / COUNT ( * ) FROM tab1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL + 72 * COUNT( ALL col0 ) + - + CAST( COUNT( * ) AS SIGNED ) + + 98 FROM tab0 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + 72 * COUNT ( ALL col0 ) + - + CAST ( COUNT ( * ) AS INTEGER ) + + 98 FROM tab0 AS cor0
----
311

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT col0 DIV + + 95 + + col1 AS col1 FROM tab0 cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-4236
SELECT col0 / + + 95 + + col1 AS col1 FROM tab0 cor0
----
2
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT DISTINCT + + 81 - - CAST( NULL AS SIGNED ) * + col1 + + col0 / + + col0 + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + + 81 - - CAST ( NULL AS INTEGER ) * + col1 + + col0 / + + col0 + + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4239
SELECT - CAST( NULL AS DECIMAL ) AS col2, + 31 FROM tab1 cor0
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
query II rowsort label-4239
SELECT - CAST ( NULL AS REAL ) AS col2, + 31 FROM tab1 cor0
----
NULL
31
NULL
31
NULL
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - - MAX( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4241
SELECT - - MAX ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT 3 AS col0, + 42 FROM tab2 AS cor0
----
3
42

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * ( + + 51 ) col2 FROM tab2
----
-4692
-4692
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL >= + col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4246
SELECT ALL 98 DIV col2 AS col2, 22 FROM tab1
----
1
22
1
22
1
22

skipif mysql # not compatible
query II rowsort label-4246
SELECT ALL 98 / col2 AS col2, 22 FROM tab1
----
1
22
1
22
1
22

query III rowsort
SELECT * FROM tab2 WHERE NOT 68 - + + 83 + - col2 * + col0 NOT IN ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4248
SELECT ALL 64 DIV - 69 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-4248
SELECT ALL 64 / - 69 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + MIN( - 84 ) AS col0 FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4249
SELECT + MIN ( - 84 ) AS col0 FROM tab0 cor0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT - - 71 DIV - - COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4250
SELECT - - 71 / - - COUNT ( * ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL COUNT( col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL COUNT ( col2 ) FROM tab2 cor0
----
3

query II rowsort
SELECT col0, col0 - col1 + - ( - 17 ) FROM tab0
----
15
-49
87
83
97
113

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-69

query II rowsort
SELECT ALL col1 AS col1, - 44 FROM tab0
----
1
-44
21
-44
81
-44

query I rowsort
SELECT + 89 * - col2 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT - ( + 86 ) AS col2 FROM tab2 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col1 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * - - ( 56 ) col1 FROM tab2 AS cor0
----
-1242
-2176
-3173

query I rowsort
SELECT + 86 * - + 72 FROM tab0 AS cor0 WHERE + 34 + ( - col1 ) BETWEEN - 51 + - - col2 + - - 46 * - ( ( - 68 ) ) AND - ( - col0 )
----

query II rowsort
SELECT ALL + 69 AS col2, + 60 AS col2 FROM tab0 AS cor0
----
69
60
69
60
69
60

query I rowsort
SELECT ALL + 52 / col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 84 * - col0 + - col0 FROM tab2
----
-3910
-5440
-6375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL 97 * COUNT( * ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) >= - + col0
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 97 * COUNT ( * ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) >= - + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4264
SELECT + col0 + + col1 + 44 + - CAST( NULL AS SIGNED ), - col0 * + 51 AS col0 FROM tab1
----
NULL
-2601
NULL
-4335
NULL
-4641

skipif mysql # not compatible
query II rowsort label-4264
SELECT + col0 + + col1 + 44 + - CAST ( NULL AS INTEGER ), - col0 * + 51 AS col0 FROM tab1
----
NULL
-2601
NULL
-4335
NULL
-4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT + CAST( NULL AS SIGNED ) + - - ( col0 ) + - 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + CAST ( NULL AS INTEGER ) + - - ( col0 ) + - 85 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4267
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 46 * - col1 * - - col2 * - col2 * col1 + + - col2 FROM tab0
----
2028590
450747
666689407

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT + COUNT( * ) + + 81 AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + COUNT ( * ) + + 81 AS col0 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 * col0 col2 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT - 71 + - - col1 DIV + 82 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - 71 + - - col1 / + 82 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - ( - COUNT( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4273
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4274
SELECT col2 DIV - ( + col1 ) col2, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4274
SELECT col2 / - ( + col1 ) col2, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - MIN( ALL + 84 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4276
SELECT - MIN ( ALL + 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( DISTINCT + + col1 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT + + col1 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT DISTINCT + + MAX( ALL col0 ) AS col1, 4 + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col2
----
NULL
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4279
SELECT DISTINCT + + MAX ( ALL col0 ) AS col1, 4 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col2
----
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT + - col1 * - - col2 DIV + - col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + - col1 * - - col2 / + - col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE - 14 / + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * 24 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT + col1 * 92 FROM tab0
----
1932
7452
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ALL - 43 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - 43 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - MIN( ALL - 49 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - MIN ( ALL - 49 ) AS col2 FROM tab1
----
49

query I rowsort
SELECT + col0 * - 40 AS col1 FROM tab0
----
-3480
-3880
-600

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - ( + 87 ) * + col1 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT DISTINCT COUNT( * ), 23 AS col0 FROM tab1
----
3
23

skipif mysql # not compatible
query II rowsort label-4289
SELECT DISTINCT COUNT ( * ), 23 AS col0 FROM tab1
----
3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 75 ) col0 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT + MIN( DISTINCT 45 ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT + MIN ( DISTINCT 45 ) AS col1 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE 10 + + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE 10 + + col0 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - col1 - - - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT CAST( - + 80 AS SIGNED ) + + 77 AS col2 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4295
SELECT CAST ( - + 80 AS INTEGER ) + + 77 AS col2 FROM tab2
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 WHERE + + 36 * - 96 * + - col1 * col1 NOT BETWEEN - 15 AND - 11 + - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT - col2 * - + 32 + - ( col1 ) FROM tab0
----
1423
299
3167

query I rowsort
SELECT ALL 49 + - - 75 AS col2 FROM tab0
----
124
124
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4300
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( - - col0 AS SIGNED ) + - 13
----

skipif mysql # not compatible
query III rowsort label-4300
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( - - col0 AS INTEGER ) + - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + - COUNT( * ) * + 52 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - COUNT ( * ) * + 52 FROM tab1 AS cor0
----
-156

query I rowsort
SELECT ALL col1 * - col1 + - 32 + col0 AS col2 FROM tab1 AS cor0
----
-177
-2150
28

query I rowsort
SELECT col2 * - - col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT + 35 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 35 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4305
SELECT ALL - + CAST( NULL AS SIGNED ) * - ( + col2 ), 69 AS col2 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - + CAST ( NULL AS INTEGER ) * - ( + col2 ), 69 AS col2 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + MAX( col1 ) + - - COUNT( * ) AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + MAX ( col1 ) + - - COUNT ( * ) AS col2 FROM tab2
----
80

query II rowsort
SELECT ALL - col1 AS col2, 3 + 53 + + ( + col2 ) * - 55 FROM tab0
----
-1
-5389
-21
-494
-81
-2529

query I rowsort
SELECT + ( 53 ) - col0 FROM tab1
----
-32
-38
2

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col0 / + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + 61 AS col2 FROM tab2
----
107
125
136

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col0 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + + - col1 col2 FROM tab2 AS cor0
----
16
26
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT + COUNT( * ), - COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4313
SELECT + COUNT ( * ), - COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT ALL 86 * - - ( + col1 ) FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4315
SELECT DISTINCT ( + 64 ), CAST( - + 8 AS SIGNED ) AS col0 FROM tab0
----
64
-8

skipif mysql # not compatible
query II rowsort label-4315
SELECT DISTINCT ( + 64 ), CAST ( - + 8 AS INTEGER ) AS col0 FROM tab0
----
64
-8

query I rowsort
SELECT DISTINCT + col1 * + 92 * + 18 FROM tab1
----
23184
77832
8280

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 57 / + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL 57 * + CAST( NULL AS SIGNED ) * - + ( - - 29 ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 57 * + CAST ( NULL AS INTEGER ) * - + ( - - 29 ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT + SUM( ALL - 1 ) * - 69 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + SUM ( ALL - 1 ) * - 69 FROM tab2 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT ALL + col0 DIV - 93 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + col0 / - 93 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + + 31 ) FROM tab1 AS cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4322
SELECT + 67 DIV + + 61 + + col0 + - col1, + col0 AS col2 FROM tab2 AS cor0
----
-12
64
-4
46
9
75

skipif mysql # not compatible
query II rowsort label-4322
SELECT + 67 / + + 61 + + col0 + - col1, + col0 AS col2 FROM tab2 AS cor0
----
-12
64
-4
46
9
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + + ( 72 ) DIV + 45 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4323
SELECT + + ( 72 ) / + 45 col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - + col1 ) < + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL MIN( 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL MIN ( 78 ) FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4326
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - 94 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4326
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - 94 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT ALL CAST( 44 AS SIGNED ), + col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL CAST ( 44 AS INTEGER ), + col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4328
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) - + col0 IS NULL
----

query I rowsort
SELECT + ( - + 0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL col1 / 26 - 86 - - col1 * + 59 FROM tab0 WHERE NOT + - col0 * + + col0 + - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL col1 / 26 - 86 - - col1 * + 59 FROM tab0 WHERE NOT + - col0 * + + col0 + - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * + - 23 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - + COUNT( * ) FROM tab0 WHERE NOT + col0 * + col2 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT + col0 * + col2 + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - COUNT( * ) * - COUNT( * ) + - 39 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COUNT ( * ) * - COUNT ( * ) + - 39 FROM tab2
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL AND col2 - - + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * + 42 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT COUNT( * ) + - + 73 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-4336
SELECT COUNT ( * ) + - + 73 FROM tab1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 83 col0 FROM tab2
----
-25
-43
-60

query I rowsort
SELECT DISTINCT + 86 * + 59 AS col1 FROM tab2 AS cor0
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + 12 * - ( + COUNT( col1 ) ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 12 * - ( + COUNT ( col1 ) ) FROM tab2 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 85 * + 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT 72 DIV + col1 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4341
SELECT 72 / + col1 FROM tab2 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT ALL + + col1 DIV - - col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + + col1 / - - col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT - CAST( col1 AS SIGNED ) * - col0 * - - col0 FROM tab2
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-4343
SELECT - CAST ( col1 AS INTEGER ) * - col0 * - - col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - 70 - - 97 FROM tab1 WHERE - col0 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col0 FROM tab0
----
174
194
30

query I rowsort
SELECT + - col0 AS col2 FROM tab1 WHERE NULL <> - col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = NULL AND CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = NULL AND CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 76 * + col1 + 34 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
11815
6511
9615

query I rowsort
SELECT col2 + + - col1 + - + col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT col0 + + ( - + 90 ) * col1 AS col0 FROM tab1
----
-1209
-365
-4139

query II rowsort
SELECT ALL + col0 + col0 AS col1, - col1 + col2 FROM tab0
----
174
-11
194
98
30
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4352
SELECT CAST( col2 AS SIGNED ) AS col1, 62 * + 93 AS col1 FROM tab1
----
59
5766
68
5766
96
5766

skipif mysql # not compatible
query II rowsort label-4352
SELECT CAST ( col2 AS INTEGER ) AS col1, 62 * + 93 AS col1 FROM tab1
----
59
5766
68
5766
96
5766

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT col2 DIV + + 22 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4353
SELECT col2 / + + 22 FROM tab2
----
1
1
2

query II rowsort
SELECT ALL - col1 - + + 37 AS col2, col2 * + col2 FROM tab0
----
-118
2209
-38
9801
-58
100

query I rowsort
SELECT ALL col2 + 11 AS col2 FROM tab1
----
107
70
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL - ( ( - CAST( ( - COUNT( * ) ) AS SIGNED ) ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT ALL - ( ( - CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 * - + col0 * + ( - col2 ) FROM tab2
----
163840
326250
48668

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4359
SELECT CAST( - col2 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4359
SELECT CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT DISTINCT + 63 DIV + - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + 63 / + - col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT ALL - 13 * + + col2 AS col0 FROM tab0 cor0
----
-1287
-130
-611

query II rowsort
SELECT DISTINCT - + col0, + col0 + 44 AS col1 FROM tab2 AS cor0
----
-46
90
-64
108
-75
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT DISTINCT ( - - col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT ( - - col2 ) / col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT 52 * + COUNT( * ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4364
SELECT 52 * + COUNT ( * ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-4365
SELECT ALL + - col0 AS col2, - col2 * 18 DIV + - col1 FROM tab1 AS cor0
----
-51
123
-85
212
-91
26

skipif mysql # not compatible
query II rowsort label-4365
SELECT ALL + - col0 AS col2, - col2 * 18 / + - col1 FROM tab1 AS cor0
----
-51
123
-85
212
-91
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - - MAX( ALL + 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - - MAX ( ALL + 0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4367
SELECT ALL CAST( ( + col1 ) AS SIGNED ) + col2 col2, - col0 FROM tab2
----
117
-64
125
-75
74
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4367
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + col2 col2, - col0 FROM tab2
----
117
-64
125
-75
74
-46

query II rowsort
SELECT 87 * - + 92 AS col0, col2 + + col1 AS col0 FROM tab0
----
-8004
100
-8004
128
-8004
31

query I rowsort
SELECT ALL 95 * - + col1 * col1 FROM tab0
----
-41895
-623295
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - 58 + + + 78 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = col2 + + - col0
----
-58

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - 58 + + + 78 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = col2 + + - col0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT + col2 DIV + 20 AS col0, 25 FROM tab0 AS cor0
----
0
25
2
25
4
25

skipif mysql # not compatible
query II rowsort label-4371
SELECT + col2 / + 20 AS col0, 25 FROM tab0 AS cor0
----
0
25
2
25
4
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - 55 AS col1 FROM tab2 AS cor0
----
-106
-122
-132

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - col1 * 6 + + - col2 + - 36 FROM tab1 AS cor0
----
-125
-216
-386

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - MAX( ALL + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4377
SELECT - MAX ( ALL + + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - 35 - - col1 FROM tab1 AS cor0
----
-21
-30
12

query I rowsort
SELECT - col0 * col2 * - - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col2 - - col1 + + - col1 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT 83 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT 83 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * col0 - col1 AS col0 FROM tab1
----
4882
5010
6141

query II rowsort
SELECT ALL + col2, col1 * - col1 - - col0 - - col1 AS col1 FROM tab1
----
59
65
68
-2071
96
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT + col1 DIV + + ( col0 ) - - col2 AS col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-4384
SELECT + col1 / + + ( col0 ) - - col2 AS col2 FROM tab0
----
10
52
99

query I rowsort
SELECT ( + - 13 ) + col2 AS col1 FROM tab2
----
10
27
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT ALL col1 DIV + 3 FROM tab2
----
17
22
25

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL col1 / + 3 FROM tab2
----
17
22
25

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN + - ( - 66 ) AND 51
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - col2 AND - 97
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4389
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + 30 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + 30 AS col0 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col2 ) BETWEEN + 15 * + + col0 AND - ( 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 91 AS col0, 2 + + - col2 FROM tab2 AS cor0
----
-91
-21
-91
-38
-91
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT + - 41, - COUNT( 97 ) AS col2 FROM tab1 cor0
----
-41
-3

skipif mysql # not compatible
query II rowsort label-4393
SELECT + - 41, - COUNT ( 97 ) AS col2 FROM tab1 cor0
----
-41
-3

query I rowsort
SELECT + col2 * - - col2 * - ( + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 <= + 3
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 40 + 18 IS NOT NULL
----

query I rowsort
SELECT col2 * 90 AS col0 FROM tab2 cor0
----
2070
3600
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL CAST( 10 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL CAST ( 10 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT - - SUM( DISTINCT - - col1 ) AS col0, MAX( DISTINCT + 75 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
103
225

skipif mysql # not compatible
query II rowsort label-4398
SELECT - - SUM ( DISTINCT - - col1 ) AS col0, MAX ( DISTINCT + 75 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
103
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - - MAX( - - 39 ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4399
SELECT - - MAX ( - - 39 ) FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL COUNT( * ) + - 94 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL COUNT ( * ) + - 94 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab0
----
-196
-62
-97

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 * + col1 AS col0 FROM tab1
----
-51
196
-85
25
-91
2209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4403
SELECT DISTINCT - 31 + + CAST( + 52 AS SIGNED ), + col1 + col2 AS col1 FROM tab2
----
21
117
21
125
21
74

skipif mysql # not compatible
query II rowsort label-4403
SELECT DISTINCT - 31 + + CAST ( + 52 AS INTEGER ), + col1 + col2 AS col1 FROM tab2
----
21
117
21
125
21
74

query I rowsort
SELECT DISTINCT - col1 + - 33 AS col0 FROM tab1
----
-38
-47
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL - COUNT( * ) + + 74 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - COUNT ( * ) + + 74 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 71 * - COUNT( * ) - MIN( col1 ) + - COUNT( * ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
-214

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 71 * - COUNT ( * ) - MIN ( col1 ) + - COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-214

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4407
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-4407
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1 WHERE NOT 19 IS NULL
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE 20 = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT 75 DIV + COUNT( * ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-4410
SELECT 75 / + COUNT ( * ) AS col2 FROM tab1
----
25

query I rowsort
SELECT - AVG ( ALL 45 ) / 49 FROM tab2 WHERE NOT ( 24 ) BETWEEN - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 69 * col1 AS col0 FROM tab0
----
1449
5589
69

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + 11 NOT BETWEEN NULL AND col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL COUNT( * ) - + 0 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL COUNT ( * ) - + 0 AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - 67 - + COUNT( - col1 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 67 - + COUNT ( - col1 ) FROM tab2
----
-70

query I rowsort
SELECT ALL 12 * 36 AS col0 FROM tab1
----
432
432
432

query I rowsort
SELECT DISTINCT - col2 / col0 + - 38 AS col0 FROM tab1 WHERE 87 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab1 WHERE - 32 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL COUNT( DISTINCT ( ( ( - col0 ) ) ) ) col0 FROM tab0 WHERE NULL BETWEEN - col1 + col2 AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4420
SELECT ALL COUNT ( DISTINCT ( ( ( - col0 ) ) ) ) col0 FROM tab0 WHERE NULL BETWEEN - col1 + col2 AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= ( 92 + - col0 )
----

query I rowsort
SELECT col1 * 5 FROM tab2
----
255
335
385

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT 10 * COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4423
SELECT 10 * COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT - col2 * 60 AS col2 FROM tab0
----
-2820
-5940
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT ALL + col0 DIV 39 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + col0 / 39 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - 64 * COUNT( * ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-4426
SELECT - 64 * COUNT ( * ) AS col2 FROM tab0
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT COUNT( * ) * MIN( ALL CAST( + col0 AS SIGNED ) * + col0 ) FROM tab1 WHERE NOT + col2 * + ( - col1 ) IN ( col1 )
----
7803

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT COUNT ( * ) * MIN ( ALL CAST ( + col0 AS INTEGER ) * + col0 ) FROM tab1 WHERE NOT + col2 * + ( - col1 ) IN ( col1 )
----
7803

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4428
SELECT col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4428
SELECT col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT 77 + + COUNT( * ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-4430
SELECT 77 + + COUNT ( * ) FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT DISTINCT col0 * - ( 34 * col2 ) AS col0 FROM tab1 WHERE NOT ( - col1 ) BETWEEN + CAST( NULL AS SIGNED ) + 8 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT col0 * - ( 34 * col2 ) AS col0 FROM tab1 WHERE NOT ( - col1 ) BETWEEN + CAST ( NULL AS INTEGER ) + 8 AND NULL
----

query I rowsort
SELECT 14 + + col2 FROM tab1
----
110
73
82

query I rowsort
SELECT DISTINCT 50 - + col2 * col2 AS col0 FROM tab1
----
-3431
-4574
-9166

query III rowsort
SELECT * FROM tab2 WHERE NULL < col2 * + 81
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 NOT IN ( 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - 80 IS NULL
----

query I rowsort
SELECT + col2 * + col1 - + col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL ( - 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 26 FROM tab1 AS cor0 WHERE NOT NULL <> col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - MIN( col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - MIN ( col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT - 40 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + MIN( DISTINCT 58 ) AS col1 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + MIN ( DISTINCT 58 ) AS col1 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL + + COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + + COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-4445
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - + MIN( DISTINCT - 57 ) AS col1 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - + MIN ( DISTINCT - 57 ) AS col1 FROM tab2 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL + SUM( + 80 ) AS col0 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + SUM ( + 80 ) AS col0 FROM tab1 AS cor0
----
240

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col1 ) > NULL
----

query I rowsort
SELECT col2 * + 68 AS col0 FROM tab0 AS cor0
----
3196
6732
680

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 94 BETWEEN col1 * + col2 AND 64
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 92 ) NOT IN ( 28 + + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab0 WHERE 20 * col0 NOT IN ( + col2 )
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT ( + SUM( DISTINCT 62 ) ) AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT ( + SUM ( DISTINCT 62 ) ) AS col1 FROM tab0
----
62

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE ( - col2 * col1 ) <> ( + 57 * + col2 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL + col2 * - col1 / col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + col2 * - col1 / col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL SUM( 41 ) + 37 AS col0 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL SUM ( 41 ) + 37 AS col0 FROM tab0 AS cor0
----
160

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 * - col1 ) <= NULL AND NULL IS NULL
----

query I rowsort
SELECT col1 + + 13 + + col1 * 14 FROM tab0 AS cor0
----
1228
28
328

query I rowsort
SELECT DISTINCT + col0 * + + col0 - - col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT DISTINCT 59 * - 2 + col1 FROM tab2
----
-41
-51
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL 64 + + MAX( DISTINCT + col1 ) * - MAX( + col2 * 28 ) FROM tab1 AS cor0
----
-126272

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL 64 + + MAX ( DISTINCT + col1 ) * - MAX ( + col2 * 28 ) FROM tab1 AS cor0
----
-126272

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4465
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN CAST( - col0 AS SIGNED ) AND col0
----
75
67
58

skipif mysql # not compatible
query III rowsort label-4465
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN CAST ( - col0 AS INTEGER ) AND col0
----
75
67
58

query I rowsort
SELECT DISTINCT 71 - col0 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4467
SELECT - col0 * + - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4467
SELECT - col0 * + - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT SUM( ALL + 50 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4469
SELECT SUM ( ALL + 50 ) FROM tab1 AS cor0
----
150

query I rowsort
SELECT col1 * + 9 + 19 * - col2 FROM tab0 AS cor0
----
-1
-164
-1872

query I rowsort
SELECT + col1 - 93 FROM tab2 AS cor0 WHERE NOT ( col0 * + col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT + CAST( - AVG ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4472
SELECT + CAST ( - AVG ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-52

query I rowsort
SELECT ALL col2 - - col0 + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col2 * - 25 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT ALL - 72 DIV - col1 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - 72 / - col1 FROM tab1 AS cor0
----
1
14
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * - col1 col1 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT - SUM( ALL + + 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT - SUM ( ALL + + 54 ) FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + 33 * - COUNT( * ) * - 56 AS col1 FROM tab1
----
5544

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 33 * - COUNT ( * ) * - 56 AS col1 FROM tab1
----
5544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4479
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) * - ( - - 34 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - col2 * CAST ( NULL AS REAL ) * - ( - - 34 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE col1 * + col2 NOT BETWEEN 31 AND - 84 * col1
----
-46
-64
-75

query II rowsort
SELECT + col2 AS col0, 76 FROM tab2
----
23
76
40
76
58
76

query III rowsort
SELECT * FROM tab2 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + - 42 AS col1 FROM tab2 AS cor0
----
22
33
4

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + + col0 >= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT 68 <> - 18 * col0 * + col1 * col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * + + 5 col0 FROM tab2 AS cor0
----
-315
-315
-315

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NULL AND NOT 86 * + - col2 + col1 * + col0 < col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4488
SELECT ALL + CAST( + col1 AS SIGNED ) DIV - + 78 * col0 * + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + CAST ( + col1 AS INTEGER ) / - + 78 * col0 * + + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + 7 )
----

query I rowsort
SELECT - col1 + - + col2 * - + 36 * 70 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 15 AS col0 FROM tab2
----
61
79
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT ALL + 82 DIV col0 + col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 82 / col0 + col1 FROM tab1
----
15
47
5

query I rowsort
SELECT ALL col0 + 99 - + - 77 + - col0 FROM tab0
----
176
176
176

query I rowsort
SELECT ALL col1 + + 64 + - col0 FROM tab1 AS cor0
----
-16
20
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 89 + + col1 * + - col2 * 65 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 11 IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT - 4 + 21 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL + + ( + - ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT - 63 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - 63 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + + 55 AS col1 FROM tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + 55 AS col1 FROM tab1 cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 * - 57 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4502
SELECT ALL CAST( NULL AS SIGNED ) col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4502
SELECT ALL CAST ( NULL AS INTEGER ) col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT 40 * SUM( 95 ) FROM tab0
----
11400

skipif mysql # not compatible
query I rowsort label-4503
SELECT 40 * SUM ( 95 ) FROM tab0
----
11400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 col1, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT col0 * + 30 FROM tab0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4506
SELECT DISTINCT + 63 AS col2, CAST( AVG ( DISTINCT col0 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4506
SELECT DISTINCT + 63 AS col2, CAST ( AVG ( DISTINCT col0 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
63
NULL

query I rowsort
SELECT ALL - 79 * - col0 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4509
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col0 AND + col0
----

skipif mysql # not compatible
query III rowsort label-4509
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - + SUM( DISTINCT 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + SUM ( DISTINCT 4 ) FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col2 * col2 + col1 - - + 86 * 60 AS col0 FROM tab2
----
5763
6877
8649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 24 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - SUM( DISTINCT + 74 ) - - 39 * - 55 FROM tab1, tab2 AS cor0
----
-2219

skipif mysql # not compatible
query I rowsort label-4514
SELECT - SUM ( DISTINCT + 74 ) - - 39 * - 55 FROM tab1, tab2 AS cor0
----
-2219

query I rowsort
SELECT ALL 88 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT - 46 DIV col1 * - - col1 col1 FROM tab0 cor0
----
-42
-46
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4517
SELECT DISTINCT - 46 / col1 * - - col1 col1 FROM tab0 cor0
----
-42
-46
0

query I rowsort
SELECT + - col2 * + 19 AS col1 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT - COUNT( * ) AS col2, + 20 FROM tab0
----
-3
20

skipif mysql # not compatible
query II rowsort label-4519
SELECT - COUNT ( * ) AS col2, + 20 FROM tab0
----
-3
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col0 * 35 + - col2 <= - col0 + + ( - col1 ) + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - ( + - col2 ) * - + ( col1 ) + col0 - col2 * - col0 * + col2 - col1 FROM tab1 WHERE ( + + col1 ) IS NULL
----

query I rowsort
SELECT ALL ( + 29 ) AS col0 FROM tab1 WHERE NOT - col0 IN ( col2, - col0 + col2 * 39 )
----
29
29
29

query I rowsort
SELECT DISTINCT - + 66 AS col2 FROM tab0 WHERE NOT - 20 - - + col2 IS NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT 78 - COUNT( * ) + - 21 AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT 78 - COUNT ( * ) + - 21 AS col1 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT COUNT( * ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4527
SELECT COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT 96 + - col0 FROM tab0 AS cor0
----
-1
81
9

query I rowsort
SELECT col2 + ( 71 ) + - ( col1 ) FROM tab2 AS cor0
----
34
43
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 76 + + 62 col0 FROM tab1 cor0
----
-4422
-5106
-7234

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 84 * + 38 IS NOT NULL
----

query I rowsort
SELECT - - 56 * 51 AS col2 FROM tab2 AS cor0
----
2856
2856
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4535
SELECT COUNT( + - ( col0 ) ) FROM tab1 AS cor0 WHERE NOT ( CAST( + CAST( col1 AS SIGNED ) AS DECIMAL ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4535
SELECT COUNT ( + - ( col0 ) ) FROM tab1 AS cor0 WHERE NOT ( CAST ( + CAST ( col1 AS INTEGER ) AS REAL ) ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + - MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + - MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col2 + 19 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4539
SELECT - + col1 AS col2, 17 DIV + col2 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-4539
SELECT - + col1 AS col2, 17 / + col2 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, + col0 + 82 FROM tab1 AS cor0
----
-43
133
-43
167
-43
173

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 73 IS NULL
----

query I rowsort
SELECT ALL + + col2 * + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4544
SELECT col0 * CAST( + 36 AS SIGNED ) AS col2, col2 AS col1 FROM tab0
----
3132
10
3492
99
540
47

skipif mysql # not compatible
query II rowsort label-4544
SELECT col0 * CAST ( + 36 AS INTEGER ) AS col2, col2 AS col1 FROM tab0
----
3132
10
3492
99
540
47

query I rowsort
SELECT ALL + 11 * - col1 AS col0 FROM tab2 AS cor0
----
-561
-737
-847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT MAX( + + col2 ) DIV + 90 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4546
SELECT MAX ( + + col2 ) / + 90 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - MIN( DISTINCT - 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4547
SELECT - MIN ( DISTINCT - 41 ) FROM tab0
----
41

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col2 ) BETWEEN NULL AND - + 32
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4550
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + CAST( - col0 AS SIGNED ) - 40 * - + 3 * ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4550
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + CAST ( - col0 AS INTEGER ) - 40 * - + 3 * ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4551
SELECT + 56 AS col2 FROM tab2 AS cor0 WHERE - col2 * - CAST( - - col1 AS DECIMAL ) IS NOT NULL
----
56
56
56

skipif mysql # not compatible
query I rowsort label-4551
SELECT + 56 AS col2 FROM tab2 AS cor0 WHERE - col2 * - CAST ( - - col1 AS REAL ) IS NOT NULL
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4552
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) + - 44 col1 FROM tab2 AS cor0
----
2
20
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - 9 + + + COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4554
SELECT - 9 + + + COUNT ( * ) FROM tab2 cor0
----
-6

query II rowsort
SELECT ALL - col1 AS col1, + 69 * - + col2 FROM tab1 AS cor0
----
-14
-6624
-47
-4692
-5
-4071

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < col1 + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - col0 AS col2, 8 FROM tab1 cor0
----
-51
8
-85
8
-91
8

query I rowsort
SELECT ALL - - 36 * + + col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT - ( - ( - - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - ( - ( - - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * + CAST( NULL AS SIGNED ) * - - col2 = + - 44 + - col2
----

skipif mysql # not compatible
query III rowsort label-4563
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * + CAST ( NULL AS INTEGER ) * - - col2 = + - 44 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + 46 * + - 77 * - COUNT( * ) FROM tab2
----
10626

skipif mysql # not compatible
query I rowsort label-4564
SELECT + 46 * + - 77 * - COUNT ( * ) FROM tab2
----
10626

query I rowsort
SELECT - 79 * 25 FROM tab0
----
-1975
-1975
-1975

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - COUNT( * ) * - 43 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4566
SELECT - COUNT ( * ) * - 43 FROM tab1
----
129

query II rowsort
SELECT ALL + col0 AS col0, 0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - col2 AS col2, - 37 AS col2 FROM tab2 AS cor0
----
-23
-37
-40
-37
-58
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + - MIN( 70 ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4569
SELECT + - MIN ( 70 ) FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT + COUNT( ALL 61 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + COUNT ( ALL 61 ) FROM tab1
----
3

query I rowsort
SELECT ALL col0 * - 69 AS col2 FROM tab1
----
-3519
-5865
-6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + + col1 ), col0 col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT - 85 * MAX( + 41 ) FROM tab0
----
-3485

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - 85 * MAX ( + 41 ) FROM tab0
----
-3485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4575
SELECT DISTINCT col2, CAST( + + col0 AS SIGNED ) FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-4575
SELECT DISTINCT col2, CAST ( + + col0 AS INTEGER ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT 73, - MIN( - - col0 ) * + + 19 + + SUM( - - 62 ) AS col1 FROM tab0
----
73
-99

skipif mysql # not compatible
query II rowsort label-4576
SELECT 73, - MIN ( - - col0 ) * + + 19 + + SUM ( - - 62 ) AS col1 FROM tab0
----
73
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4577
SELECT + CAST( NULL AS DECIMAL ) * + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT + CAST ( NULL AS REAL ) * + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT COUNT( * ) * + 13 AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4578
SELECT COUNT ( * ) * + 13 AS col2 FROM tab2
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col0 ) >= + - col2 * - - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 63 col1 FROM tab0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT COUNT( * ) * + SUM( col2 ) + + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT COUNT ( * ) * + SUM ( col2 ) + + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4582
SELECT + + CAST( NULL AS DECIMAL ) * + 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT + + CAST ( NULL AS REAL ) * + 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 * + - col2 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

query I rowsort
SELECT ALL - + ( - col1 ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT 51 * - - 37 + - col2 AS col1 FROM tab2 AS cor0
----
1829
1847
1864

query I rowsort
SELECT - + col2 + 97 AS col0 FROM tab2 AS cor0
----
39
57
74

query II rowsort
SELECT - col0 + col0 AS col2, col0 + 41 FROM tab0
----
0
128
0
138
0
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4588
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 27, - col2 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
query II rowsort label-4588
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 27, - col2 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 98 AS col1 FROM tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4591
SELECT DISTINCT + 58 + - col1 AS col1 FROM tab0 cor0 WHERE - col1 * - - CAST( NULL AS DECIMAL ) NOT BETWEEN - col1 AND 77 * - col1 + + + 63
----

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + 58 + - col1 AS col1 FROM tab0 cor0 WHERE - col1 * - - CAST ( NULL AS REAL ) NOT BETWEEN - col1 AND 77 * - col1 + + + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT DISTINCT - col1 * - col0 * + - CAST( + 29 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-142912
-145725
-68034

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - col1 * - col0 * + - CAST ( + 29 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-142912
-145725
-68034

query I rowsort
SELECT ALL 35 * + - 76 AS col0 FROM tab1
----
-2660
-2660
-2660

query I rowsort
SELECT col0 - - 79 AS col1 FROM tab0
----
166
176
94

query I rowsort
SELECT 10 - + - 47 FROM tab1
----
57
57
57

query I rowsort
SELECT DISTINCT 2 + + + ( - 63 ) AS col2 FROM tab1
----
-61

query I rowsort
SELECT 18 + - 88 FROM tab0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL + SUM( ALL + - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + SUM ( ALL + - col1 ) FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + col1 * + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + - MAX( ALL - 62 ) * 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2976

skipif mysql # not compatible
query I rowsort label-4600
SELECT + - MAX ( ALL - 62 ) * 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col0 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL > + 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT ( + - 56 ) * - - SUM( + col2 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-6776
3

skipif mysql # not compatible
query II rowsort label-4603
SELECT ( + - 56 ) * - - SUM ( + col2 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-6776
3

query I rowsort
SELECT + 65 * col2 AS col2 FROM tab2 AS cor0
----
1495
2600
3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT DISTINCT - 23 + col1 - + col1 * col0 col2 FROM tab1 AS cor0 WHERE col2 * 33 * + col2 * CAST( 84 AS SIGNED ) IS NOT NULL
----
-4253
-443
-723

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4605
SELECT DISTINCT - 23 + col1 - + col1 * col0 col2 FROM tab1 AS cor0 WHERE col2 * 33 * + col2 * CAST ( 84 AS INTEGER ) IS NOT NULL
----
-4253
-443
-723

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT col0 DIV 37 - - + 65 FROM tab2 cor0
----
66
66
67

skipif mysql # not compatible
query I rowsort label-4606
SELECT col0 / 37 - - + 65 FROM tab2 cor0
----
66
66
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL - col2 DIV + ( + - col2 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - col2 / + ( + - col2 ) AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + ( - - col1 ) * - 30 / + - 98 AS col2 FROM tab2 WHERE - - 60 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT - 56 + COUNT( * ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - 56 + COUNT ( * ) FROM tab1
----
-53

query I rowsort
SELECT 9 + + col0 AS col1 FROM tab2
----
55
73
84

query I rowsort
SELECT DISTINCT + 29 + + - 72 FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - - MIN( col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4612
SELECT - - MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 58 BETWEEN + col1 AND - 67 * + + col0 - - 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - ( 3 ) + + 28 ) AND col1
----

query II rowsort
SELECT col1 AS col2, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE + - col0 * - col1 + col1 + + col0 * + ( col2 ) < - col2 * + 10 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - 68 + - COUNT( * ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 68 + - COUNT ( * ) FROM tab2
----
-71

query I rowsort
SELECT col0 + - - 30 * col1 + col1 FROM tab2 AS cor0
----
1627
2152
2451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 56 col2 FROM tab1 AS cor0
----
-42
-51
-9

query I rowsort
SELECT DISTINCT + 24 * + 31 AS col1 FROM tab1 AS cor0
----
744

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 91 ) IS NULL
----

query I rowsort
SELECT + 40 + ( + col2 ) AS col1 FROM tab1 cor0
----
108
136
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4623
SELECT DISTINCT + + ( + CAST( 94 AS SIGNED ) ) DIV + COUNT( 43 ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + + ( + CAST ( 94 AS INTEGER ) ) / + COUNT ( 43 ) AS col2 FROM tab2 AS cor0
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4625
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col0, col1 * col2 + col1, col0 * + CAST( NULL AS SIGNED ), - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4625
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col0, col1 * col2 + col1, col0 * + CAST ( NULL AS INTEGER ), - - col0 )
----

query I rowsort
SELECT ( ( + - col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - - col2
----

query I rowsort
SELECT DISTINCT - ( - - col0 ) + + - col1 FROM tab0
----
-108
-96
-98

query II rowsort
SELECT ALL col0 * + 42 AS col2, - 76 FROM tab1
----
2142
-76
3570
-76
3822
-76

query I rowsort
SELECT ALL + 90 + + col2 * - ( - - col1 ) FROM tab2
----
-1083
-2990
-3796

onlyif mysql # DIV for integer division: 
query II rowsort label-4631
SELECT DISTINCT 99 DIV - - 43, + col1 + - col2 + - col2 * - ( col1 ) AS col1 FROM tab0
----
2
1
2
221
2
3841

skipif mysql # not compatible
query II rowsort label-4631
SELECT DISTINCT 99 / - - 43, + col1 + - col2 + - col2 * - ( col1 ) AS col1 FROM tab0
----
2
1
2
221
2
3841

onlyif mysql # DIV for integer division: 
query II rowsort label-4632
SELECT col2 DIV + 63, col1 + col2 col2 FROM tab0
----
0
128
0
31
1
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4632
SELECT col2 / + 63, col1 + col2 col2 FROM tab0
----
0
128
0
31
1
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT SUM( + + col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4633
SELECT DISTINCT SUM ( + + col1 ) col2 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - ( + col1 ) col1, col2 / col0 AS col0 FROM tab1 cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT MAX( ALL + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4635
SELECT MAX ( ALL + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL ( - 0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4637
SELECT * FROM tab0 WHERE NOT 41 * - - col1 * + CAST( + 81 AS SIGNED ) IS NOT NULL OR NOT ( NULL = + col0 + + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4637
SELECT * FROM tab0 WHERE NOT 41 * - - col1 * + CAST ( + 81 AS INTEGER ) IS NOT NULL OR NOT ( NULL = + col0 + + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <= - 94 + + col0 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT - 51 DIV - 60 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 51 / - 60 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col2 AS col2, 19 FROM tab2 AS cor0
----
23
19
40
19
58
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT ALL - col2 DIV + 52 col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4642
SELECT ALL - col2 / + 52 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col2 * 64 * - col1 AS col1 FROM tab0 WHERE NOT + 77 IS NULL
----
-13440
-243648
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT SUM( DISTINCT col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4644
SELECT DISTINCT SUM ( DISTINCT col0 ) col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col2 + + + 81 IN ( - 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 67 + - col1 FROM tab1 WHERE - 25 - + ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - - COUNT( * ) * - + 79 + - 97 FROM tab2 WHERE NULL IS NULL
----
-334

skipif mysql # not compatible
query I rowsort label-4647
SELECT - - COUNT ( * ) * - + 79 + - 97 FROM tab2 WHERE NULL IS NULL
----
-334

query I rowsort
SELECT DISTINCT + 57 + 62 * - col2 * - ( - col0 ) FROM tab2
----
-158663
-269643
-65539

query I rowsort
SELECT ALL + 63 + + - 1 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL - - 2 + + + 48 AS col0 FROM tab0 WHERE NOT ( col2 = + col1 )
----
50
50
50

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col2 + col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
-98
21
11
81
34

query I rowsort
SELECT ALL + col2 + - 20 * 91 FROM tab0
----
-1721
-1773
-1810

query I rowsort
SELECT ALL - 46 + + 36 * - 9 * - 87 FROM tab1 AS cor0
----
28142
28142
28142

query I rowsort
SELECT DISTINCT 23 + col2 AS col0 FROM tab1 cor0
----
119
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4656
SELECT + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT + 99 * - + col2 - + + col0 AS col2, + 1 AS col0 FROM tab0 AS cor0
----
-1077
1
-4668
1
-9898
1

query I rowsort
SELECT + 13 - ( col0 ) AS col1 FROM tab1 AS cor0
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT 61 - - - MIN( 38 ) col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT 61 - - - MIN ( 38 ) col1 FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT COUNT( * ) * + + 21 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT COUNT ( * ) * + + 21 FROM tab0
----
63

query II rowsort
SELECT DISTINCT col1, - 19 FROM tab2
----
51
-19
67
-19
77
-19

query I rowsort
SELECT ALL + 56 * + - 7 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1, 16 * 73 AS col1 FROM tab0
----
-1
1168
-21
1168
-81
1168

query I rowsort
SELECT DISTINCT + - 3 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - - 61 + + + 12 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col2
----
73

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - - 61 + + + 12 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col2
----
73

query I rowsort
SELECT ALL + 3 * + 44 * - col1 AS col1 FROM tab0 AS cor0
----
-10692
-132
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT col0 DIV col2 * + - col1 AS col0 FROM tab2 cor0
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-4667
SELECT col0 / col2 * + - col1 AS col0 FROM tab2 cor0
----
-102
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT - - COUNT( * ) AS col1, 47 AS col1 FROM tab0 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-4668
SELECT - - COUNT ( * ) AS col1, 47 AS col1 FROM tab0 AS cor0
----
3
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT DISTINCT ( - ( + - 41 ) ) DIV - 83 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT ( - ( + - 41 ) ) / - 83 AS col0 FROM tab2
----
0

query I rowsort
SELECT 5 * + col0 AS col2 FROM tab1 AS cor0
----
255
425
455

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 27 ) * 83 + + + 97 FROM tab1 AS cor0
----
2338
2338
2338

query II rowsort
SELECT ALL col1 + - col0 AS col1, + col0 FROM tab2 cor0
----
-8
75
13
64
5
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE - + 87 * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT SUM( + col0 ) + - + MIN( - col2 ) AS col1 FROM tab0
----
298

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT SUM ( + col0 ) + - + MIN ( - col2 ) AS col1 FROM tab0
----
298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4676
SELECT 32 + + 6 + col0 AS col0, CAST( col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) + + - col2 + + + col0 * + 65 FROM tab0
----
125
NULL
135
NULL
53
NULL

skipif mysql # not compatible
query II rowsort label-4676
SELECT 32 + + 6 + col0 AS col0, CAST ( col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + + - col2 + + + col0 * + 65 FROM tab0
----
125
NULL
135
NULL
53
NULL

query I rowsort
SELECT ALL - col0 + + col1 * - - col1 FROM tab2
----
2555
4414
5865

query I rowsort
SELECT DISTINCT - 22 * + 22 AS col1 FROM tab1
----
-484

query I rowsort
SELECT DISTINCT ( + - col2 ) + ( - col0 ) + - col2 AS col1 FROM tab2
----
-144
-191
-92

query I rowsort
SELECT + 55 * 34 * + col2 * - + 5 + 89 + + col1 + - 94 FROM tab2 AS cor0
----
-215004
-373928
-542238

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 > + col0 - - - 35
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 32 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + ( + COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4683
SELECT DISTINCT + ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - + col1 ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + - 70 + + COUNT( col1 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - 70 + + COUNT ( col1 ) FROM tab1 AS cor0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab2 AS cor0 WHERE NOT col0 - - col2 + + col1 / + - col1 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT MAX( - - ( + + col0 ) ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT MAX ( - - ( + + col0 ) ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 5 * + MAX( - col2 ) col0 FROM tab2
----
-115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4690
SELECT 5 * + MAX ( - col2 ) col0 FROM tab2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT MIN( col1 ) * COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4691
SELECT MIN ( col1 ) * COUNT ( * ) FROM tab2
----
153

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - 41 - + col0 IS NOT NULL
----

query I rowsort
SELECT - 60 * + ( + + col1 ) AS col0 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + 27 * 53 * + COUNT( DISTINCT - 2 ) AS col1 FROM tab2
----
1431

skipif mysql # not compatible
query I rowsort label-4694
SELECT + 27 * 53 * + COUNT ( DISTINCT - 2 ) AS col1 FROM tab2
----
1431

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - col2 OR NOT - col0 + - + ( 71 ) >= ( + col1 + 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT DISTINCT SUM( DISTINCT + ( + + col2 ) ), 26 col0 FROM tab1 cor0
----
223
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4696
SELECT DISTINCT SUM ( DISTINCT + ( + + col2 ) ), 26 col0 FROM tab1 cor0
----
223
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + COUNT( + - 11 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4697
SELECT + COUNT ( + - 11 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT col2 + ( + - 93 ) * col2 AS col1 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT 64 * - - col2 AS col2 FROM tab2
----
1472
2560
3712

query II rowsort
SELECT DISTINCT + 90 AS col2, col0 + 66 FROM tab0 AS cor0
----
90
153
90
163
90
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4701
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4701
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 40, + col1 FROM tab1 AS cor0
----
40
14
40
47
40
5

query I rowsort
SELECT + 13 + + col1 AS col2 FROM tab1 cor0 WHERE col1 * - - col2 = - col2 + - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT + 91 DIV + col2 + 93 AS col2 FROM tab0 AS cor0
----
102
93
94

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 91 / + col2 + 93 AS col2 FROM tab0 AS cor0
----
102
93
94

query I rowsort
SELECT ALL col0 + + + col0 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL + 42 FROM tab0 WHERE NOT NULL < NULL OR NULL IS NULL
----
42
42
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT COUNT( * ) * 13 AS col1, COUNT( DISTINCT - 91 ) FROM tab0 WHERE - + col1 - - 85 > 14
----
26
1

skipif mysql # not compatible
query II rowsort label-4707
SELECT COUNT ( * ) * 13 AS col1, COUNT ( DISTINCT - 91 ) FROM tab0 WHERE - + col1 - - 85 > 14
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL MAX( 88 ) * + + COUNT( * ) + + + 93 FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL MAX ( 88 ) * + + COUNT ( * ) + + + 93 FROM tab1
----
357

onlyif mysql # aggregate syntax: 
query II rowsort label-4709
SELECT DISTINCT - 12 + + + COUNT( * ) AS col2, - MAX( ALL - 25 ) + COUNT( * ) AS col1 FROM tab0
----
-9
28

skipif mysql # not compatible
query II rowsort label-4709
SELECT DISTINCT - 12 + + + COUNT ( * ) AS col2, - MAX ( ALL - 25 ) + COUNT ( * ) AS col1 FROM tab0
----
-9
28

query I rowsort
SELECT - 0 * - ( + col1 ) + - ( + + col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + 68 + - COUNT( * ) AS col1 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + 68 + - COUNT ( * ) AS col1 FROM tab0
----
65

query I rowsort
SELECT - col1 * + + col0 + col1 * + col1 FROM tab2 cor0
----
-536
1001
255

query I rowsort
SELECT - + col0 + - + col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + 88 - - - col2 FROM tab2 AS cor0
----
30
48
65

query I rowsort
SELECT ALL + 84 + - + 24 FROM tab0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 57 IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4717
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 57 IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT DISTINCT - col0 DIV - + 14 + - 38 + - - col1 AS col1 FROM tab0 AS cor0
----
-11
-31
44

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - col0 / - + 14 + - 38 + - - col1 AS col1 FROM tab0 AS cor0
----
-11
-31
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT - - COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - - COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col0, col2 * - 71 AS col1 FROM tab1 AS cor0
----
-51
-6816
-85
-4189
-91
-4828

onlyif mysql # DIV for integer division: 
query II rowsort label-4721
SELECT + col1 AS col0, 55 * + col2 DIV 1 * col0 - + 57 AS col2 FROM tab0 cor0
----
1
528108
21
47793
81
38718

skipif mysql # not compatible
query II rowsort label-4721
SELECT + col1 AS col0, 55 * + col2 / 1 * col0 - + 57 AS col2 FROM tab0 cor0
----
1
528108
21
47793
81
38718

query II rowsort
SELECT - col0, col2 FROM tab0 cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT - SUM( DISTINCT - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - SUM ( DISTINCT - - col2 ) FROM tab2
----
-121

query I rowsort
SELECT ALL 90 * + + col2 AS col2 FROM tab1
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT ALL ( - 73 ) AS col1, COUNT( * ) FROM tab2 WHERE NOT + 50 / - col1 + + + col2 * col1 - ( 7 ) <= ( NULL )
----
-73
0

skipif mysql # not compatible
query II rowsort label-4725
SELECT ALL ( - 73 ) AS col1, COUNT ( * ) FROM tab2 WHERE NOT + 50 / - col1 + + + col2 * col1 - ( 7 ) <= ( NULL )
----
-73
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 56 + + 35 NOT BETWEEN - col1 / + ( - - 38 ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + col2 DIV - ( ( 30 ) ) AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT + col2 / - ( ( 30 ) ) AS col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + + 58 / + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT DISTINCT - COUNT( * ) * + - MAX( DISTINCT - 32 ) col0 FROM tab2
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4729
SELECT DISTINCT - COUNT ( * ) * + - MAX ( DISTINCT - 32 ) col0 FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL + MAX( DISTINCT - 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + MAX ( DISTINCT - 29 ) FROM tab2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4731
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4731
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 14 AS col1, - col1 AS col1 FROM tab1
----
14
-14
14
-47
14
-5

query I rowsort
SELECT 91 + 95 FROM tab2
----
186
186
186

query I rowsort
SELECT ALL 47 * col1 * - col1 * col0 AS col2 FROM tab0
----
-1803249
-4559
-4625505

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4735
SELECT DISTINCT * FROM tab2 WHERE ( NULL IN ( col2, - 73, - col1 - + col1 * 88 + 61 * col1 / - + col2 * 43, col0 * col2 * col0 * - CAST( - col1 AS DECIMAL ) + - col2, + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4735
SELECT DISTINCT * FROM tab2 WHERE ( NULL IN ( col2, - 73, - col1 - + col1 * 88 + 61 * col1 / - + col2 * 43, col0 * col2 * col0 * - CAST ( - col1 AS REAL ) + - col2, + + col2 ) )
----

query I rowsort
SELECT - col2 * - 64 * col1 * + 93 + - + ( + col0 ) FROM tab2 WHERE + 53 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT ALL COUNT( * ) DIV - 3 + + SUM( ALL - col1 ) FROM tab2
----
-196

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL COUNT ( * ) / - 3 + + SUM ( ALL - col1 ) FROM tab2
----
-196

query II rowsort
SELECT col1 AS col0, - ( - col2 ) + - 38 FROM tab2
----
51
-15
67
20
77
2

query I rowsort
SELECT ALL col0 + + 31 + col0 + - col1 AS col1 FROM tab1
----
119
166
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT COUNT( * ) DIV + 84 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > col0
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT COUNT ( * ) / + 84 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4745
SELECT DISTINCT - 20 - COUNT( * ), + 67 * - 9 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23
201

skipif mysql # not compatible
query II rowsort label-4745
SELECT DISTINCT - 20 - COUNT ( * ), + 67 * - 9 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23
201

query I rowsort
SELECT ALL + + col0 * + - 95 FROM tab0 AS cor0
----
-1425
-8265
-9215

query II rowsort
SELECT ALL col2 + - - col0 AS col2, + 22 + + 2 AS col2 FROM tab1
----
144
24
147
24
159
24

query I rowsort
SELECT ALL - + col0 * - col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT + CAST( ( + COUNT( * ) ) AS SIGNED ) * - 63 AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) * - 63 AS col2 FROM tab2 AS cor0
----
-189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT - MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - col0 * + + ( - - col0 ) - + + col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT 5 * + COUNT( * ) col2 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT 5 * + COUNT ( * ) col2 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT 0 AS col2, - COUNT( * ) FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-4755
SELECT 0 AS col2, - COUNT ( * ) FROM tab0
----
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT COUNT( - 75 ) AS col2 FROM tab0 WHERE NOT - + col1 * - + CAST( NULL AS SIGNED ) + 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT COUNT ( - 75 ) AS col2 FROM tab0 WHERE NOT - + col1 * - + CAST ( NULL AS INTEGER ) + 56 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 54 * 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT DISTINCT + COUNT( * ), - 52 AS col1 FROM tab1 cor0
----
3
-52

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT + COUNT ( * ), - 52 AS col1 FROM tab1 cor0
----
3
-52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + 94 IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE + col0 NOT BETWEEN - - col1 AND ( + col0 )
----

query II rowsort
SELECT col0, 73 * - + ( + col1 ) FROM tab1 WHERE - + col0 IS NULL
----

query I rowsort
SELECT 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - + col2
----

query I rowsort
SELECT DISTINCT + - 57 AS col0 FROM tab2 cor0
----
-57

query I rowsort
SELECT ALL + col2 * - - col1 AS col2 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col0 * ( + 75 ) * - col0 AS col2 FROM tab1 AS cor0
----
-195075
-541875
-621075

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL MIN( + col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4768
SELECT ALL MIN ( + col0 ) col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - + col2 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT - 86 - - col1 FROM tab0
----
-5
-65
-85

query I rowsort
SELECT col2 * 57 - 6 * - 46 * + + 48 FROM tab0
----
13818
15927
18891

query I rowsort
SELECT - col1 - + 59 FROM tab1
----
-106
-64
-73

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 58 IS NOT NULL AND 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT 59 + + + ( - COUNT( * ) ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT 59 + + + ( - COUNT ( * ) ) FROM tab2
----
56

query I rowsort
SELECT ALL col2 + + 24 + - col2 AS col1 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT + CAST( NULL AS SIGNED ) + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + CAST ( NULL AS INTEGER ) + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4777
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4777
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 74 * + - col2 AS col2 FROM tab2 AS cor0
----
-1702
-2960
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT - 30 DIV - col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4779
SELECT - 30 / - col2 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - col2 * + 18 * + - col0 + - - 85 AS col0 FROM tab2 AS cor0
----
19129
46165
78385

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT ALL + ( - 13 ) DIV + 9 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + ( - 13 ) / + 9 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ( - COUNT( ALL + col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4782
SELECT ( - COUNT ( ALL + col1 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - 67 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * 64 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4784
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
81

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT + + 35 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT - + CAST( - MAX( ALL + col2 ) AS SIGNED ) FROM tab0 WHERE ( col2 * - - col1 ) NOT BETWEEN col2 * - - 56 AND - - col1 + - col1
----
99

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - + CAST ( - MAX ( ALL + col2 ) AS INTEGER ) FROM tab0 WHERE ( col2 * - - col1 ) NOT BETWEEN col2 * - - 56 AND - - col1 + - col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT col1 * - CAST( - 75 AS SIGNED ) + - - 87 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT col1 * - CAST ( - 75 AS INTEGER ) + - - 87 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + - 46 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + - 46 IS NULL
----
-3

query I rowsort
SELECT ALL ( - + col1 ) FROM tab2 WHERE NULL NOT BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT ALL 33 AS col0 FROM tab0 WHERE NOT ( NOT col0 IN ( + 68, - col1, + - 67 * - 42 * + ( + 15 ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN NULL AND 31 + - 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT - 75 / + col2 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT - 75 / + col2 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 49 * 26 / + ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT ALL + 9 DIV + + MAX( - + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + 9 / + + MAX ( - + col0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 AND - col0 * - + 13 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE NOT + - 46 * + col2 > + col2 + col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT COUNT( * ) + - 45 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4798
SELECT COUNT ( * ) + - 45 AS col1 FROM tab2
----
-42

query I rowsort
SELECT + - 89 + - ( col1 ) FROM tab2 cor0
----
-140
-156
-166

query I rowsort
SELECT + - 49 + col2 * + + col2 + - - col1 FROM tab2 AS cor0
----
1628
3382
531

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN - - col1 - - + 84 AND col0
----

query I rowsort
SELECT - - 19 + - + 95 - col0 FROM tab0 AS cor0
----
-163
-173
-91

query I rowsort
SELECT ALL - col1 + - 16 FROM tab1 AS cor0
----
-21
-30
-63

query I rowsort
SELECT DISTINCT + col2 * + 48 AS col0 FROM tab0 cor0
----
2256
4752
480

query I rowsort
SELECT + 6 + 73 AS col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT 38 + col0 FROM tab0 AS cor0
----
125
135
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 62 + + col1 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 20 - col2 AS col2 FROM tab2 AS cor0
----
-20
-3
-38

query I rowsort
SELECT + col0 * + col1 + 61 FROM tab1 cor0 WHERE ( NOT ( + col0 BETWEEN NULL AND - 16 ) )
----
4338
486
775

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT + col0 DIV - 66 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT + col0 / - 66 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - 50 + + + 89 + + col0 FROM tab0
----
126
136
54

query I rowsort
SELECT DISTINCT + col0 * + col2 * - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL - 26 * - - 6 FROM tab0 AS cor0
----
-156
-156
-156

query II rowsort
SELECT col2 * col2 + - 65 + col1, col2 + 96 AS col0 FROM tab1 AS cor0
----
3421
155
4606
164
9165
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 + + 81 - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 + + 81 - - col2 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 41 < NULL
----

query I rowsort
SELECT ALL - 24 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + col2 + + - 35 - - col0 FROM tab1 AS cor0
----
4912
5065
6244

query I rowsort
SELECT 25 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - ( + 10 ) - - col0 AS col2 FROM tab2 AS cor0
----
506
704
825

query I rowsort
SELECT DISTINCT + - ( col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + col2 FROM tab0 AS cor0 WHERE NOT - 93 IS NULL
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT + - COUNT( + + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + - COUNT ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - 70 FROM tab0 WHERE NOT + ( col1 ) + - 29 * + 3 < 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT ALL - 53 col0, + SUM( DISTINCT - 54 ) FROM tab2
----
-53
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4827
SELECT ALL - 53 col0, + SUM ( DISTINCT - 54 ) FROM tab2
----
-53
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4828
SELECT + CAST( 98 AS SIGNED ) AS col2, + MIN( + 11 ) col1 FROM tab2
----
98
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4828
SELECT + CAST ( 98 AS INTEGER ) AS col2, + MIN ( + 11 ) col1 FROM tab2
----
98
11

query I rowsort
SELECT ALL 87 + 17 + + 74 * col2 FROM tab1
----
4470
5136
7208

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - COUNT( ALL 9 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4830
SELECT - COUNT ( ALL 9 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL MAX( - - col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL MAX ( - - col0 ) col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - 75 * COUNT( * ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 75 * COUNT ( * ) FROM tab1
----
-225

query I rowsort
SELECT DISTINCT + 23 + - 57 AS col2 FROM tab0
----
-34

query I rowsort
SELECT - 6 * + 11 * col1 AS col0 FROM tab2
----
-3366
-4422
-5082

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + 73 * col2 FROM tab0
----
3431
7227
730

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 > 74
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT DISTINCT col0 DIV col0 * + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT col0 / col0 * + + col1 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * - + col1 col0 FROM tab1 cor0
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT + ( 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - ( 24 ) AS col1 FROM tab1 AS cor0
----
59
-24
68
-24
96
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT 94 - 25 * CAST( - MIN( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
1369

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT 94 - 25 * CAST ( - MIN ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT SUM( DISTINCT - col0 ) * - + 40 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
27240

skipif mysql # not compatible
query I rowsort label-4844
SELECT SUM ( DISTINCT - col0 ) * - + 40 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27240

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT + ( 16 ) DIV + 17 - - col2 AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + ( 16 ) / + 17 - - col2 AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL + 58 - col1 * 36 AS col0 FROM tab1 AS cor0
----
-122
-1634
-446

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT + 9 - - 17 DIV col1 AS col0 FROM tab2 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-4847
SELECT + 9 - - 17 / col1 AS col0 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4848
SELECT - CAST( - + 48 AS SIGNED ) DIV + - CAST( + - col0 AS SIGNED ) - + 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-4848
SELECT - CAST ( - + 48 AS INTEGER ) / + - CAST ( + - col0 AS INTEGER ) - + 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96

query II rowsort
SELECT - 78 + 41 - - 34 AS col0, + col0 + col0 AS col2 FROM tab2
----
-3
128
-3
150
-3
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4850
SELECT + col1 + ( + CAST( NULL AS DECIMAL ) ) + - col2 + + col2 / 59 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + col1 + ( + CAST ( NULL AS REAL ) ) + - col2 + + col2 / 59 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4851
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( + 36 AS SIGNED ) = - 82 * - col1
----

skipif mysql # not compatible
query III rowsort label-4851
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( + 36 AS INTEGER ) = - 82 * - col1
----

query II rowsort
SELECT DISTINCT + - col2 AS col1, + ( 48 ) * + - col0 * - 5 + col1 AS col2 FROM tab1 AS cor0
----
-59
20405
-68
21887
-96
12254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - 20 - 53 col0 FROM tab2
----
-1053
-1053
-1053

query I rowsort
SELECT DISTINCT + 49 * 27 + - col0 AS col1 FROM tab2
----
1248
1259
1277

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( col2 + - 99 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab1 WHERE NULL <= col2
----

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab2 WHERE NOT col1 <> ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + MAX( ALL - ( - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4858
SELECT + MAX ( ALL - ( - col2 ) ) FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL IN ( - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT COUNT( * ) AS col1 FROM tab1 WHERE 67 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4862
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE 67 IS NOT NULL
----
3

query I rowsort
SELECT + 78 + col0 FROM tab1
----
129
163
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + + 61 col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab2 WHERE NOT - col0 > + 35
----
0
0
0

query I rowsort
SELECT + ( + 82 ) FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 * - 99 FROM tab1
----
1386
4653
495

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4869
SELECT * FROM tab0 WHERE + col1 BETWEEN CAST( + col0 AS DECIMAL ) * - col2 AND - 22
----

skipif mysql # not compatible
query III rowsort label-4869
SELECT * FROM tab0 WHERE + col1 BETWEEN CAST ( + col0 AS REAL ) * - col2 AND - 22
----

query I rowsort
SELECT ALL 30 * col1 AS col1 FROM tab2
----
1530
2010
2310

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( NULL ) AND 31
----
91
47
68

query I rowsort
SELECT ALL + 56 * + 32 + - col1 FROM tab2
----
1715
1725
1741

query I rowsort
SELECT 63 * - col1 AS col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT 0 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 6 * + 33 FROM tab0
----
198
198
198

query I rowsort
SELECT 75 * - col2 AS col0 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT CAST( 54 AS SIGNED ) col1 FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4878
SELECT CAST ( 54 AS INTEGER ) col1 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT 22 DIV col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4879
SELECT 22 / col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4880
SELECT ALL * FROM tab1 cor0 WHERE + CAST( 12 AS SIGNED ) + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4880
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( 12 AS INTEGER ) + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 81 ) AND ( col2 + - col1 * - 75 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( - col2 * + 53 ) <= ( col2 * 37 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col0 FROM tab2 WHERE NOT - 17 * col1 NOT BETWEEN ( + col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) * col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 - - col2 * col0 <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT ALL - MAX( DISTINCT + 20 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - MAX ( DISTINCT + 20 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4888
SELECT * FROM tab1 WHERE - col0 + ( CAST( NULL AS SIGNED ) ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4888
SELECT * FROM tab1 WHERE - col0 + ( CAST ( NULL AS INTEGER ) ) * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 75 FROM tab2
----
-11
-29
0

query I rowsort
SELECT + 42 AS col0 FROM tab2 WHERE 27 * col2 NOT IN ( col0 )
----
42
42
42

query I rowsort
SELECT ALL - - col1 * + col2 + + col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT + 90 + - col1 DIV col0 AS col0 FROM tab1 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4892
SELECT + 90 + - col1 / col0 AS col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL NOT IN ( col2 + - 77 )
----

skipif mysql # not compatible
query I rowsort label-4893
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL NOT IN ( col2 + - 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - + 30 + + SUM( DISTINCT - 17 + col1 ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4894
SELECT - + 30 + + SUM ( DISTINCT - 17 + col1 ) AS col2 FROM tab2 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL - + ( col2 ) - - col0 DIV col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - + ( col2 ) - - col0 / col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 42 ) - + col1 col1 FROM tab2 AS cor0
----
-109
-119
-93

query I rowsort
SELECT - - ( ( 93 ) ) FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + + col0 - + col0 * 80 AS col1 FROM tab2 cor0
----
-3634
-5056
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT SUM( DISTINCT 18 ) AS col2 FROM tab2 AS cor0 WHERE 19 > - col2
----
18

skipif mysql # not compatible
query I rowsort label-4899
SELECT SUM ( DISTINCT 18 ) AS col2 FROM tab2 AS cor0 WHERE 19 > - col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL - ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 62 * col1 * 59 FROM tab2
----
186558
245086
281666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT ALL 89 DIV + + COUNT( * ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 89 / + + COUNT ( * ) AS col2 FROM tab1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + 28 DIV + + 62 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 28 / + + 62 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL COUNT( + - 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL COUNT ( + - 39 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4905
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4905
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST ( col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT * FROM tab0 WHERE ( - 50 * CAST( 89 * - col2 AS SIGNED ) + + col1 / - col1 ) NOT BETWEEN col2 AND NULL OR NULL > NULL
----

skipif mysql # not compatible
query III rowsort label-4906
SELECT * FROM tab0 WHERE ( - 50 * CAST ( 89 * - col2 AS INTEGER ) + + col1 / - col1 ) NOT BETWEEN col2 AND NULL OR NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - MIN( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4907
SELECT - MIN ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - COUNT( * ) + + 60 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
51

skipif mysql # not compatible
query I rowsort label-4908
SELECT - COUNT ( * ) + + 60 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
51

query I rowsort
SELECT DISTINCT 82 * - - ( - 81 ) FROM tab2
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + COUNT( DISTINCT - 96 ) AS col2 FROM tab1, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + COUNT ( DISTINCT - 96 ) AS col2 FROM tab1, tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT + MIN( ALL + 1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + MIN ( ALL + 1 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 * - - col2 > NULL
----

query II rowsort
SELECT - + col1 AS col1, ( + col2 ) AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT DISTINCT - 75 AS col2, + 65 * - ( + col0 ) AS col0 FROM tab0 cor0
----
-75
-5655
-75
-6305
-75
-975

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * + col2 ) IS NOT NULL OR NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 46 col0 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + + 78 * SUM( - - col2 ) FROM tab0 AS cor0
----
12168

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + + 78 * SUM ( - - col2 ) FROM tab0 AS cor0
----
12168

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 54 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0 WHERE 32 <> - col2 / col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0 WHERE 32 <> - col2 / col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 + 22 + + 92 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT DISTINCT COUNT( * ) AS col1, 32 AS col1 FROM tab2 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT COUNT ( * ) AS col1, 32 AS col1 FROM tab2 AS cor0
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( 98 / - + col1 + 79 ) NOT IN ( col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 98 / - + col1 + 79 ) NOT IN ( col2 )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE + col2 BETWEEN col0 + col0 AND ( NULL )
----

query I rowsort
SELECT col0 * 52 AS col2 FROM tab1
----
2652
4420
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT 80 + + COUNT( DISTINCT + + 45 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT DISTINCT 80 + + COUNT ( DISTINCT + + 45 ) col1 FROM tab0
----
81

query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab0 WHERE - - 21 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 + + 24 AS col2, + col2 - col2 FROM tab0
----
123
0
34
0
71
0

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( 23 + col0 + col1 )
----

query I rowsort
SELECT ALL col0 + + + 64 * + - col1 - col2 AS col1 FROM tab1
----
-294
-2985
-941

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * 52 ) AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 4 FROM tab0 cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND ( col0 )
----

query I rowsort
SELECT ALL + 72 + 90 FROM tab0 cor0
----
162
162
162

query I rowsort
SELECT - col0 * + 45 FROM tab1 AS cor0 WHERE ( NOT + col1 + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + col1 * col2 + col2 * - col2 AS col0 FROM tab2 cor0
----
1480
522
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT DISTINCT + - col0 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + - col0 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 94 + - col2 + - col1 FROM tab2 AS cor0
----
-23
-31
20

query I rowsort
SELECT DISTINCT - col0 * 59 AS col1 FROM tab2
----
-2714
-3776
-4425

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( + col1 * - + col2 * - 26 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 63 NOT IN ( + - 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT - col0 DIV - - col1 + + + col1 - ( - 36 ) FROM tab2 cor0
----
102
113
87

skipif mysql # not compatible
query I rowsort label-4943
SELECT - col0 / - - col1 + + + col1 - ( - 36 ) FROM tab2 cor0
----
102
113
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> ( 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + - COUNT( * ) - + 80 AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4945
SELECT + - COUNT ( * ) - + 80 AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT ALL 72 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT - 4 * COUNT( * ) col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT DISTINCT - 4 * COUNT ( * ) col1 FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4948
SELECT ALL 2 AS col1, 44 * + CAST( NULL AS SIGNED ) + - 80 AS col2 FROM tab2 AS cor0
----
2
NULL
2
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-4948
SELECT ALL 2 AS col1, 44 * + CAST ( NULL AS INTEGER ) + - 80 AS col2 FROM tab2 AS cor0
----
2
NULL
2
NULL
2
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + 6 * - + 67 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4950
SELECT - - col0 AS col1, 67 DIV - 84 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4950
SELECT - - col0 AS col1, 67 / - 84 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT + + col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT + + col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4952
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( + - col1 ) ) BETWEEN ( + CAST( NULL AS SIGNED ) ) * + col0 AND - 37
----

skipif mysql # not compatible
query III rowsort label-4952
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( + - col1 ) ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) * + col0 AND - 37
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 50 * - col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + + 30 - col0 IS NOT NULL
----

query II rowsort
SELECT ALL ( - col2 ), col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4958
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) + 3 * - CAST( NULL AS SIGNED ) = + 66
----

skipif mysql # not compatible
query III rowsort label-4958
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) + 3 * - CAST ( NULL AS INTEGER ) = + 66
----

query I rowsort
SELECT ALL + - 88 * + + col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT + col2 DIV + - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + col2 / + - col0 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT col0 AS col2, 39 + col2 * + 13 AS col1 FROM tab2 AS cor0
----
46
338
64
559
75
793

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4962
SELECT + col1 AS col0, CAST( NULL AS DECIMAL ) * - + 21 * + 77 AS col0 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4962
SELECT + col1 AS col0, CAST ( NULL AS REAL ) * - + 21 * + 77 AS col0 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT - 42 + - ( + - 68 ) * col0 AS col1 FROM tab1
----
3426
5738
6146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL BETWEEN + 0 * 87 * + CAST( + 32 AS SIGNED ) AND col2 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-4964
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL BETWEEN + 0 * 87 * + CAST ( + 32 AS INTEGER ) AND col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4965
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < CAST( - + 75 AS SIGNED ) * + 10
----

skipif mysql # not compatible
query III rowsort label-4965
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < CAST ( - + 75 AS INTEGER ) * + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT 31 + - MAX( + col1 ) - 20 * 54 FROM tab2 AS cor0
----
-1126

skipif mysql # not compatible
query I rowsort label-4966
SELECT 31 + - MAX ( + col1 ) - 20 * 54 FROM tab2 AS cor0
----
-1126

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT ALL - 5 * + col0 DIV + 1 FROM tab2 AS cor0
----
-230
-320
-375

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - 5 * + col0 / + 1 FROM tab2 AS cor0
----
-230
-320
-375

query I rowsort
SELECT + col2 + + - col2 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT 42, - col0 * - col1 AS col1 FROM tab2
----
42
2346
42
4928
42
5025

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 19 + - + col0 FROM tab1
----
-32
-66
-72

query II rowsort
SELECT ALL 77 * + + 1 * + col0 AS col2, + ( 36 ) AS col0 FROM tab1
----
3927
36
6545
36
7007
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, + 50 col2 FROM tab0
----
15
50
87
50
97
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col2 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL - + ( - 49 ) * + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - + ( - 49 ) * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - 14 * - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - 14 * - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * 74 + - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
666

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * 74 + - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
666

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 BETWEEN NULL AND col0 + col0
----

query I rowsort
SELECT DISTINCT - - col0 * - 94 FROM tab1 AS cor0
----
-4794
-7990
-8554

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT + + 22 * + col0 AS col2 FROM tab2 cor0
----
1012
1408
1650

query I rowsort
SELECT + 57 * col1 + + col1 * + col1 AS col0 FROM tab0 WHERE NOT - col1 NOT IN ( - 85, + col0, - + col2, + col1 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT - + CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT + col2 + + - col1 + + col0 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4985
SELECT - + CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT + col2 + + - col1 + + col0 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT + 33 AS col1, CAST( NULL AS SIGNED ) / - col0 * 71 AS col1 FROM tab2
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 33 AS col1, CAST ( NULL AS INTEGER ) / - col0 * 71 AS col1 FROM tab2
----
33
NULL
33
NULL
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4987
SELECT ALL col1 col1, CAST( + col2 AS SIGNED ) FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT ALL col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + col1 * + 67 AS col2 FROM tab2
----
3417
4489
5159

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + + 25 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL SUM( DISTINCT + 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL SUM ( DISTINCT + 71 ) FROM tab2
----
71

query I rowsort
SELECT - 14 * - col2 AS col2 FROM tab2
----
322
560
812

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT ALL - + 16 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - + 16 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 * + 41 / + - 4 * 98 * - col1 IS NULL
----

query I rowsort
SELECT + - 4 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + - - col1 - + + 1 * col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 + col0 - 93 * + col0 AS col0 FROM tab1
----
-4596
-7761
-8304

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + ( COUNT( + - col1 ) ) + + COUNT( * ) + + 29 AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4997
SELECT + ( COUNT ( + - col1 ) ) + + COUNT ( * ) + + 29 AS col1 FROM tab2
----
35

query II rowsort
SELECT DISTINCT 84 AS col0, col0 + col0 AS col2 FROM tab2 AS cor0
----
84
128
84
150
84
92

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col0 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + + 72 AS col2 FROM tab1 AS cor0
----
131
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT - - col2 DIV + - col1 + - - col0 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - - col2 / + - col1 + - - col0 FROM tab0 AS cor0
----
-2
15
87

query I rowsort
SELECT + col1 * col0 * - - col2 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL col0 DIV + 20 + col0 AS col2 FROM tab0 AS cor0
----
101
15
91

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL col0 / + 20 + col0 AS col2 FROM tab0 AS cor0
----
101
15
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT ALL + 84 col1, COUNT( * ) FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5004
SELECT ALL + 84 col1, COUNT ( * ) FROM tab2 AS cor0
----
84
3

query I rowsort
SELECT DISTINCT - col0 / + - col2 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col1 + + 51
----

query I rowsort
SELECT + ( + col2 ) * - 63 AS col1 FROM tab2 AS cor0
----
-1449
-2520
-3654

query II rowsort
SELECT - 61 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-61
14
-61
47
-61
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, col0 AS col1 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5009
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col1, 41 AS col0 FROM tab1 AS cor0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5009
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1, 41 AS col0 FROM tab1 AS cor0
----
NULL
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL 74 + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL 74 + COUNT ( * ) FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT DISTINCT col2 + + col0 + + col2 DIV - 11 col2 FROM tab0
----
187
58
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT DISTINCT col2 + + col0 + + col2 / - 11 col2 FROM tab0
----
187
58
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT 59 + - CAST( col2 AS SIGNED ) - 15 AS col2 FROM tab0
----
-3
-55
34

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 59 + - CAST ( col2 AS INTEGER ) - 15 AS col2 FROM tab0
----
-3
-55
34

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( + + col2 ) NOT BETWEEN - col1 AND + ( col2 )
----

query I rowsort
SELECT DISTINCT + - col1 - - col1 FROM tab1 WHERE ( NOT NULL NOT IN ( col2, col2, - 55 * + 68 ) )
----

query II rowsort
SELECT DISTINCT col1 - - col1 AS col2, + col0 FROM tab0
----
162
15
2
97
42
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT 75 + + ( + COUNT( * ) ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT 75 + + ( + COUNT ( * ) ) FROM tab1
----
78

query II rowsort
SELECT DISTINCT col0, + col2 + col0 AS col1 FROM tab1
----
51
147
85
144
91
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 64 col2 FROM tab0
----
10
64
47
64
99
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5022
SELECT col2, + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5022
SELECT col2, + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT + - MAX( + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + - MAX ( + 86 ) FROM tab0 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT + + CAST( - 96 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-5024
SELECT + + CAST ( - 96 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-96
-96
-96

query I rowsort
SELECT - ( + + 45 ) AS col0 FROM tab2 AS cor0
----
-45
-45
-45

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + ( - + col2 ) ) col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + - COUNT( * ) FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL 66 * - 85 FROM tab0
----
-5610
-5610
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL 93 * - SUM( - + ( - + col2 ) ) FROM tab2
----
-11253

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL 93 * - SUM ( - + ( - + col2 ) ) FROM tab2
----
-11253

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 91 / - + col2 AND col1 - - + col0 + col1 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT - ( + + 66 ) DIV col0 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5035
SELECT - ( + + 66 ) / col0 col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT ALL + - COUNT( + col2 ) * 25 DIV MIN( ALL - 69 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + - COUNT ( + col2 ) * 25 / MIN ( ALL - 69 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 - col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT - CAST( + + AVG ( + col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5038
SELECT - CAST ( + + AVG ( + col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
54

query I rowsort
SELECT ALL - 44 * col1 + col2 - - + 54 FROM tab1 AS cor0
----
-107
-1946
-466

query I rowsort
SELECT ALL ( col1 ) - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5042
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + 2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5042
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + 2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - + col2 + col0 * + 83 FROM tab0 AS cor0
----
1198
7211
7952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 81 AS col2 FROM tab1 cor0
----
81
81
81

query II rowsort
SELECT - - 67, col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL > - col1
----

query I rowsort
SELECT DISTINCT col2 * + col2 + + 25 AS col2 FROM tab1
----
3506
4649
9241

query III rowsort
SELECT * FROM tab1 WHERE 84 * 35 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT ALL - 30 AS col1, COUNT( * ) FROM tab2
----
-30
3

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL - 30 AS col1, COUNT ( * ) FROM tab2
----
-30
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL + 78 * - - CAST( NULL AS SIGNED ) + + - 61 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + 78 * - - CAST ( NULL AS INTEGER ) + + - 61 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT 3 * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 3 * + - COUNT ( * ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col2 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT ALL + 74 + + - 6 - + + col0 FROM tab2
----
-7
22
4

query II rowsort
SELECT ALL col0, - 31 * - - 30 + + 23 FROM tab0
----
15
-907
87
-907
97
-907

query I rowsort
SELECT ALL + + col2 / col1 + + - 73 FROM tab2 WHERE + - col0 BETWEEN NULL AND - - 20 + - col2 + ( - 10 )
----

query I rowsort
SELECT DISTINCT + col1 + + col2 + - col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 84 - - col0 FROM tab1
----
135
169
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 57 ) col1, col1 AS col0 FROM tab2
----
57
51
57
67
57
77

query I rowsort
SELECT ALL + 2 FROM tab0 AS cor0 WHERE - 73 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL - 41 - + col0 DIV col1 FROM tab2 cor0
----
-41
-41
-42

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - 41 - + col0 / col1 FROM tab2 cor0
----
-41
-41
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5061
SELECT + - ( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, ( col2 ) DIV ( col1 ) - - 48 + + + 68 DIV - - col2 col0 FROM tab0 AS cor0
----
NULL
147
NULL
49
NULL
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5061
SELECT + - ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, ( col2 ) / ( col1 ) - - 48 + + + 68 / - - col2 col0 FROM tab0 AS cor0
----
NULL
147
NULL
49
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT + MIN( DISTINCT + + 97 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5062
SELECT + MIN ( DISTINCT + + 97 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL ( + CAST( - - 58 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL ( + CAST ( - - 58 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5064
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( col0 AS DECIMAL ) / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5064
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( col0 AS REAL ) / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + + MAX( col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5066
SELECT + + MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - ( SUM( col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5067
SELECT - ( SUM ( col0 ) ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col1 * - 37 FROM tab1
----
51
-518
85
-185
91
-1739

query I rowsort
SELECT ALL + 41 * - 30 AS col1 FROM tab1
----
-1230
-1230
-1230

query I rowsort
SELECT ALL col0 + + col0 + - col1 * col2 FROM tab1
----
-1242
-125
-3014

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT - 9 + + CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT - 9 + + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 64 + + + col0 * - + col0 * - col1 FROM tab0
----
159013
18289
9473

query I rowsort
SELECT ALL + 93 * - 5 AS col0 FROM tab1
----
-465
-465
-465

query I rowsort
SELECT DISTINCT 88 + + col2 FROM tab2 AS cor0
----
111
128
146

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( - 93 + + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 * - col1 col2 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( ( NULL ) NOT BETWEEN NULL AND NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 * + - 83 col1 FROM tab0 AS cor0
----
3948
8316
840

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5081
SELECT - col0 - + CAST( NULL AS SIGNED ) AS col1, col1 + + - col2 DIV - col1 - + 2 FROM tab1 AS cor0
----
NULL
14
NULL
18
NULL
46

skipif mysql # not compatible
query II rowsort label-5081
SELECT - col0 - + CAST ( NULL AS INTEGER ) AS col1, col1 + + - col2 / - col1 - + 2 FROM tab1 AS cor0
----
NULL
14
NULL
18
NULL
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL + ( + + col0 ) * 57 DIV + - col2 FROM tab2
----
-114
-73
-91

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + ( + + col0 ) * 57 / + - col2 FROM tab2
----
-114
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + COUNT( * ) - - 61 AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5083
SELECT + COUNT ( * ) - - 61 AS col0 FROM tab0
----
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2 + - + col0 * - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col0 / + 84 + col1 = 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1, - ( + 85 ) * - - col0 * + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL + MIN( - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + MIN ( - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab2 WHERE - + col0 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab2 WHERE - + col0 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 87 + ( col1 ) + + - col1 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT - COUNT( * ) AS col0, 81 FROM tab0 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-5092
SELECT - COUNT ( * ) AS col0, 81 FROM tab0 AS cor0
----
-3
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT ALL + + col0, 89 AS col1 FROM tab0 AS cor0
----
15
89
87
89
97
89

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 + + + col0 AND + + 8
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT - COUNT( * ) DIV - - COUNT( DISTINCT + 38 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5097
SELECT - COUNT ( * ) / - - COUNT ( DISTINCT + 38 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + 25 + + col1 * + 50 * - col2 * - + col0 IS NOT NULL
----

query II rowsort
SELECT - col2, - 16 AS col1 FROM tab0 AS cor0
----
-10
-16
-47
-16
-99
-16

query I rowsort
SELECT - + ( col2 ) * + ( - col1 ) + - col1 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5101
SELECT + ( - - 91 ) DIV col2 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT + ( - - 91 ) / col2 / CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT - MAX( - - 56 ) AS col0 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - MAX ( - - 56 ) AS col0 FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col1 * + + col1 + - 71 IS NULL
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col1 * + + col1 + - 71 IS NULL
----
26
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5104
SELECT * FROM tab0 WHERE NOT - CAST( - - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5104
SELECT * FROM tab0 WHERE NOT - CAST ( - - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 37 ) AS col1 FROM tab2
----
37
37
37

query II rowsort
SELECT DISTINCT - 54 + - ( - col2 ), + 92 * col0 AS col0 FROM tab2
----
-14
5888
-31
4232
4
6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( col0 ) col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 91 + + COUNT( + 92 ) * + + 3 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 91 + + COUNT ( + 92 ) * + + 3 FROM tab0
----
-82

query I rowsort
SELECT ALL + 75 + + col0 FROM tab2
----
121
139
150

query I rowsort
SELECT DISTINCT + 86 + + col1 AS col1 FROM tab2 AS cor0
----
137
153
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT 82 * + col2 * col0 + CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT 82 * + col2 * col0 + CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN - - ( - 99 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT col2 * 91 * - col1 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT col2 * 91 * - col1 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 18 - - - col1 FROM tab0 AS cor0
----
-3
-63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5115
SELECT DISTINCT + 81 DIV + - CAST( NULL AS SIGNED ), COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5115
SELECT DISTINCT + 81 / + - CAST ( NULL AS INTEGER ), COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL - MIN( col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT ALL - MIN ( col2 ) col0 FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT DISTINCT col2 DIV col2 * - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT col2 / col2 * - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT ALL COUNT( * ) DIV - COUNT( * ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT ALL COUNT ( * ) / - COUNT ( * ) col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5119
SELECT 55 / + - CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5119
SELECT 55 / + - CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT col2 * - CAST( 52 AS SIGNED ) FROM tab2
----
-1196
-2080
-3016

skipif mysql # not compatible
query I rowsort label-5120
SELECT col2 * - CAST ( 52 AS INTEGER ) FROM tab2
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + MAX( - col0 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + MAX ( - col0 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + col1 * - + col1 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + + 66 * col1 AS col0 FROM tab1
----
-28050
-282282
-47124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 36 NOT IN ( + col2 / 72 * col2 + - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT + MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5125
SELECT + MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5126
SELECT DISTINCT SUM( + col1 ), 88 + + - 68 * - 93 AS col2 FROM tab1
----
66
6412

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT SUM ( + col1 ), 88 + + - 68 * - 93 AS col2 FROM tab1
----
66
6412

query I rowsort
SELECT DISTINCT + col1 + + 55 * col0 AS col1 FROM tab0
----
4806
5336
906

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + COUNT( * ) + + SUM( ALL - 95 ) AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-282

skipif mysql # not compatible
query I rowsort label-5128
SELECT + COUNT ( * ) + + SUM ( ALL - 95 ) AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-282

query II rowsort
SELECT + col1 AS col2, col0 - col1 FROM tab2
----
51
-5
67
8
77
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab2
----
29

query I rowsort
SELECT DISTINCT - + ( 64 ) AS col2 FROM tab1 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 69 col0 FROM tab1 AS cor0 WHERE NOT - 64 >= 49
----
69

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT 56 DIV - + col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT 56 / - + col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + 9 - COUNT( * ) + + - 54 AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + 9 - COUNT ( * ) + + - 54 AS col0 FROM tab1
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - col2 - + col0 + col0 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT - 56 * + - 69 * - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-11595

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - 56 * + - 69 * - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-11595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 - + col0 col2, col1 col0 FROM tab0 AS cor0
----
-17
21
-27
1
55
81

query I rowsort
SELECT + col0 - - + col1 - + col0 AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE 37 + - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL - + MIN( + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - + MIN ( + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT MIN( + + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-5146
SELECT MIN ( + + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT ALL col2 * col0 * - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT - 41 * 74 AS col0 FROM tab2 AS cor0 WHERE NOT - 15 IS NULL
----
-3034
-3034
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + COUNT( * ) * + - MIN( DISTINCT 42 ) AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + COUNT ( * ) * + - MIN ( DISTINCT 42 ) AS col2 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL ( MIN( + + col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL ( MIN ( + + col2 ) ) AS col2 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 39 col1 FROM tab2
----
1560
2262
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * col0 col2 FROM tab2
----
2760
3840
4500

query III rowsort
SELECT * FROM tab2 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( - col2 ) * + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT - col0, + col1 AS col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5157
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col2 AS col2, 1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

query I rowsort
SELECT - 46 * + col2 + col1 + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 < col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT MIN( - 80 ) * - 75 AS col1 FROM tab0
----
6000

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT MIN ( - 80 ) * - 75 AS col1 FROM tab0
----
6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT - ( CAST( NULL AS SIGNED ) ) * + - ( + MAX( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT - ( CAST ( NULL AS INTEGER ) ) * + - ( + MAX ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 80 + - col0 * col2 FROM tab0 AS cor0
----
-625
-790
-9523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT ALL + COUNT( + col2 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + COUNT ( + col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT DISTINCT col1 DIV + + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT col1 / + + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT - COUNT( * ) + + - 74 AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - COUNT ( * ) + + - 74 AS col2 FROM tab0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - 11 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 11 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-99

query I rowsort
SELECT ALL col2 + + - 97 FROM tab2
----
-39
-57
-74

query I rowsort
SELECT ALL - 59 + col1 FROM tab1
----
-12
-45
-54

query I rowsort
SELECT 16 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16
16
16

query I rowsort
SELECT - col1 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5176
SELECT ALL + 48 DIV 58 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + 48 / 58 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT SUM( DISTINCT col2 ) + - - COUNT( * ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-5177
SELECT SUM ( DISTINCT col2 ) + - - COUNT ( * ) FROM tab2
----
124

query I rowsort
SELECT DISTINCT - 89 + + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 33 AS col1 FROM tab2 AS cor0
----
-46
-33
-64
-33
-75
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) * - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL + col1 * + 79 FROM tab2 AS cor0
----
4029
5293
6083

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT 91 / col2 + + 45 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col1 - - - 39 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT + 2 + + col2 FROM tab2 WHERE NOT + col0 * - col2 / - col0 * - col0 = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 2 + + col2 FROM tab2 WHERE NOT + col0 * - col2 / - col0 * - col0 = + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * 4 >= - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - 37 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - 37 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-111

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + ( + col2 ) ) / - ( + - 81 ) >= + 67 * + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + 65 * + 82 + col0 / - + col0 = col0
----

skipif mysql # not compatible
query III rowsort label-5190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + 65 * + 82 + col0 / - + col0 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + COUNT( * ) + - 26 AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5191
SELECT + COUNT ( * ) + - 26 AS col0 FROM tab2
----
-23

query I rowsort
SELECT - - col1 * + 10 + + col2 AS col0 FROM tab0 WHERE NOT NULL < + - col2 + - - col1
----

query II rowsort
SELECT ALL + 88, col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

query I rowsort
SELECT DISTINCT + - 1 * + - col2 AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5195
SELECT + + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5196
SELECT - 49 DIV - COUNT( * ) AS col2 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-5196
SELECT - 49 / - COUNT ( * ) AS col2 FROM tab1 cor0
----
16

query I rowsort
SELECT + 51 * + col0 AS col1 FROM tab2 AS cor0
----
2346
3264
3825

onlyif mysql # DIV for integer division: 
query II rowsort label-5198
SELECT ALL - col0, col0 DIV col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-5198
SELECT ALL - col0, col0 / col2 / + col2 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT ALL - col1 + - col1 + + - col0 - + + ( - ( + 90 ) ) AS col1 FROM tab2
----
-119
-128
-58

query III rowsort
SELECT * FROM tab2 WHERE + 77 BETWEEN - + 58 - 16 / col2 * + col2 AND - col2
----

query I rowsort
SELECT ALL col2 * + col2 + - - col0 * + + col1 AS col0 FROM tab1
----
3906
8901
9930

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - ( 40 ) + - COUNT( * ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-5202
SELECT - ( 40 ) + - COUNT ( * ) FROM tab0
----
-43

query I rowsort
SELECT + 37 + col2 * + col1 FROM tab0
----
136
247
3844

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 / + ( col1 )
----

query I rowsort
SELECT ALL 38 + - col0 + + col1 AS col1 FROM tab2 cor0
----
30
43
51

query I rowsort
SELECT + + col0 + col1 - - col0 FROM tab0 AS cor0
----
111
195
195

query II rowsort
SELECT - 90 AS col1, - col1 + - - 84 + + - 28 FROM tab1
----
-90
42
-90
51
-90
9

query I rowsort
SELECT + 97 - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( 53 ) + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5210
SELECT - ( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT - ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL - ( + SUM( ALL - - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - ( + SUM ( ALL - - col1 ) ) FROM tab2
----
-195

query II rowsort
SELECT DISTINCT 29 AS col1, + 69 + - col2 FROM tab1
----
29
-27
29
1
29
10

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1, tab0 AS cor0
----
-36

query II rowsort
SELECT DISTINCT - 9, col2 * + col2 / + col0 AS col2 FROM tab0 WHERE NOT ( 32 ) + + 11 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL COUNT( DISTINCT 26 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL COUNT ( DISTINCT 26 ) AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT - + col1 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 53 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT - col2 DIV + - ( - - col2 ) - col0 + + col2 + + ( + 20 ) * + - col1 FROM tab2 AS cor0
----
-1042
-1356
-1563

skipif mysql # not compatible
query I rowsort label-5220
SELECT - col2 / + - ( - - col2 ) - col0 + + col2 + + ( + 20 ) * + - col1 FROM tab2 AS cor0
----
-1042
-1356
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL COUNT( * ) + - 46 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL COUNT ( * ) + - 46 AS col1 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT + + ( - 15 ) + - 98 FROM tab1 AS cor0
----
-113
-113
-113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + - 71 AND col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5224
SELECT * FROM tab1 AS cor0 WHERE col2 = - col1 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5224
SELECT * FROM tab1 AS cor0 WHERE col2 = - col1 * - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT + - col0 + - col0 * + 72 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT + - col0 + - col0 * + 72 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 42 ) AS col2 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT + 38 DIV + col1 AS col1 FROM tab0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 38 / + col1 AS col1 FROM tab0
----
0
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT COUNT( * ) * - + 46 AS col1 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5228
SELECT COUNT ( * ) * - + 46 AS col1 FROM tab1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + ( MAX( ALL - + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5229
SELECT + ( MAX ( ALL - + col1 ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE - 83 * col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - 83 * col2 IS NULL
----
0

query I rowsort
SELECT - - ( 78 ) AS col1 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL - + ( - - COUNT( * ) ) * + MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - + ( - - COUNT ( * ) ) * + MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 27 * col1 * col0 col2 FROM tab2 AS cor0
----
-133056
-135675
-63342

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + + MAX( + col1 ) * - - MIN( + - col2 ) AS col2 FROM tab2 AS cor0
----
-4466

skipif mysql # not compatible
query I rowsort label-5234
SELECT + + MAX ( + col1 ) * - - MIN ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT DISTINCT col1 * + CAST( + col1 AS SIGNED ) + - - col1 FROM tab2 cor0
----
2652
4556
6006

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT col1 * + CAST ( + col1 AS INTEGER ) + - - col1 FROM tab2 cor0
----
2652
4556
6006

query I rowsort
SELECT ALL - - col1 * - 51 FROM tab1 AS cor0
----
-2397
-255
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT DISTINCT CAST( col0 AS SIGNED ) * - 15 AS col1 FROM tab1 cor0
----
-1275
-1365
-765

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - 15 AS col1 FROM tab1 cor0
----
-1275
-1365
-765

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 48 <> col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 63 col2, 57 FROM tab2
----
-63
57
-63
57
-63
57

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 IS NULL
----
59
68
96

query II rowsort
SELECT ALL - 94, + 7 AS col2 FROM tab2 WHERE NOT 22 NOT IN ( + - ( col2 ) * 79, 41 )
----

query II rowsort
SELECT - 24, col0 FROM tab0 AS cor0 WHERE NOT ( + col1 IS NULL )
----
-24
15
-24
87
-24
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT DISTINCT - + COUNT( * ) AS col0, 79 AS col1 FROM tab2 AS cor0
----
-3
79

skipif mysql # not compatible
query II rowsort label-5244
SELECT DISTINCT - + COUNT ( * ) AS col0, 79 AS col1 FROM tab2 AS cor0
----
-3
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT + COUNT( * ), 98 AS col1 FROM tab0
----
3
98

skipif mysql # not compatible
query II rowsort label-5245
SELECT + COUNT ( * ), 98 AS col1 FROM tab0
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT ALL col1, CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL col1, CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT - - 89 * + col0 AS col0, 53 FROM tab1 AS cor0
----
4539
53
7565
53
8099
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5248
SELECT col0 - - col0 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) > col1
----

skipif mysql # not compatible
query I rowsort label-5248
SELECT col0 - - col0 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) > col1
----

query I rowsort
SELECT ALL - col1 + - ( + 20 ) FROM tab0
----
-101
-21
-41

query III rowsort
SELECT * FROM tab0 WHERE - ( - 6 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - - col0 - + 97 * + 85 * - col0 FROM tab0 AS cor0
----
122970
716445
790162

query I rowsort
SELECT ALL + col2 * - 2 * + col2 * - col2 FROM tab2 AS cor0
----
128000
24334
390224

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * + 15 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 41 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT ALL + COUNT( * ), - 3 * SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
3
585

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL + COUNT ( * ), - 3 * SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
3
585

query I rowsort
SELECT ALL + col2 * ( col0 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT + 9 AS col1, COUNT( - + col1 ) AS col0 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-5257
SELECT + 9 AS col1, COUNT ( - + col1 ) AS col0 FROM tab2 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT DISTINCT + + ( - SUM( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + + ( - SUM ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5259
SELECT ALL col0, - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL col0, - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ALL + ( + col0 ) * - col1 AS col2 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT ( - + 82 ) AS col1 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT ALL + 51 * + col2 / + - col0 * CAST( NULL AS SIGNED ) + 66 + + col1 * - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT ALL + 51 * + col2 / + - col0 * CAST ( NULL AS INTEGER ) + 66 + + col1 * - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col2 + ( - col2 ) FROM tab0 AS cor0
----
-110
-2256
-9900

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT MIN( DISTINCT + + 52 ) col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT MIN ( DISTINCT + + 52 ) col1 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5266
SELECT ALL MAX( ALL - col0 ), - 39 * + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL MAX ( ALL - col0 ), - 39 * + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL

query I rowsort
SELECT DISTINCT + col1 * 15 * + 54 FROM tab1
----
11340
38070
4050

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5270
SELECT + col0 DIV col0, col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-5270
SELECT + col0 / col0, col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

query I rowsort
SELECT ALL + col1 * col1 + col1 + + col1 AS col1 FROM tab1 AS cor0
----
224
2303
35

query I rowsort
SELECT ALL - 23 * - + 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a213b3772c26cd4a713ce2dc10212aee

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5273
SELECT + + CAST( col2 AS SIGNED ) - + col2 DIV 1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT + + CAST ( col2 AS INTEGER ) - + col2 / 1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL + col1 + - 54 AS col1 FROM tab2
----
-3
13
23

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT JOIN tab1 cor1 ON NULL IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - 7 + + COUNT( * ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 7 + + COUNT ( * ) AS col2 FROM tab2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT CAST( + CAST( - + COUNT( * ) AS SIGNED ) AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5277
SELECT CAST ( + CAST ( - + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT ALL - 47 + - col0 AS col1 FROM tab1 AS cor0
----
-132
-138
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <> ( + + ( - - col0 ) )
----

query I rowsort
SELECT - - ( - + ( - + 99 ) ) + + col1 + - + ( - col0 ) * + - col0 FROM tab2 AS cor0
----
-1966
-3920
-5459

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT DISTINCT MIN( col0 ) + 25, + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
40
199

skipif mysql # not compatible
query II rowsort label-5281
SELECT DISTINCT MIN ( col0 ) + 25, + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
40
199

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL + 38 - - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + 38 - - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT MAX( + 35 ) DIV + 94 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT MAX ( + 35 ) / + 94 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * 4 AS col2 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT DISTINCT col2 + col2 + col1 * col1 AS col2 FROM tab1
----
143
2345
388

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( - 16 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( - 16 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 24 * - 65 = - + 66 - ( + col0 ) * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT 8 AS col1, 50 AS col2 FROM tab1
----
8
50
8
50
8
50

query II rowsort
SELECT col1 * - col2, col0 AS col1 FROM tab1 AS cor0
----
-1344
51
-295
85
-3196
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + ( - SUM( + 58 ) ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5293
SELECT + ( - SUM ( + 58 ) ) FROM tab0 AS cor0
----
-174

query I rowsort
SELECT DISTINCT col1 * + col1 + - 47 * + 30 FROM tab2 AS cor0
----
1191
3079
4519

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - 78 ) FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT col2 * + + 87 FROM tab0
----
4089
8613
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - 10 AS col0 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT ALL AVG ( DISTINCT - col2 ) + - - ( 94 ) AS col0 FROM tab0 WHERE - - 76 = 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5301
SELECT ALL ( + CAST( - 41 AS SIGNED ) ) DIV + 24 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL ( + CAST ( - 41 AS INTEGER ) ) / + 24 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + MAX( + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5302
SELECT + MAX ( + col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE col1 + + + col2 * - col2 <= + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 5 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 87
----

query II rowsort
SELECT ALL + col0 AS col1, 65 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
65
64
65
75
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT DISTINCT - + ( col1 ) DIV col2 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - + ( col1 ) / col2 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - ( + - col0 ) + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( + - col0 ) + col2 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col1 * + 71 FROM tab2
----
3621
4757
5467

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col1 FROM tab2 WHERE NOT + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + ( MIN( col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5311
SELECT + ( MIN ( col0 ) ) FROM tab2
----
46

query I rowsort
SELECT - col2 / ( 83 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - col1 * 55 FROM tab0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5314
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) >= - col1 * col0
----

skipif mysql # not compatible
query III rowsort label-5314
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) >= - col1 * col0
----

query I rowsort
SELECT DISTINCT 24 * col1 FROM tab0
----
1944
24
504

query I rowsort
SELECT 71 + + col1 FROM tab2
----
122
138
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT - COUNT( * ) DIV - 72 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - COUNT ( * ) / - 72 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT - 36 * COUNT( * ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT - 36 * COUNT ( * ) AS col2 FROM tab2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT DISTINCT + 80 DIV 54 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + 80 / 54 AS col2 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 63 / 49 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT col0 DIV 59 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5321
SELECT col0 / 59 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT 20 DIV - SUM( + col2 * + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT 20 / - SUM ( + col2 * + col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL - ( 11 ) * 93 - + col2 * 71 FROM tab0 WHERE ( col0 - col0 ) IS NOT NULL
----
-1733
-4360
-8052

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL + 21 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + 21 / + col2 FROM tab0
----
0
0
2

query I rowsort
SELECT col2 + + col2 FROM tab1 WHERE NOT + col1 * ( + 57 * 27 ) + + 32 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5326
SELECT - 65 DIV COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5326
SELECT - 65 / COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT DISTINCT - ( 12 ) + + 65 FROM tab1
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5328
SELECT + ( - 13 ) / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT + ( - 13 ) / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT + col1 DIV col1 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5329
SELECT + col1 / col1 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 92 + + col0 * + col0 FROM tab2
----
2024
4004
5533

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 89
----

query I rowsort
SELECT - 42 * col0 + - col1 * + col2 FROM tab1
----
-3486
-3865
-7018

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 WHERE NOT ( 69 ) BETWEEN ( NULL ) AND col1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 78 * 75 ) NOT IN ( 89 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT - COUNT( 19 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - COUNT ( 19 ) FROM tab0
----
-3

query I rowsort
SELECT + col0 * + 45 AS col1 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - COUNT( - 23 ) - - 88 AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
79

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - COUNT ( - 23 ) - - 88 AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
79

query I rowsort
SELECT 84 FROM tab1 AS cor0 WHERE NOT 5 BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + 1 AND NULL
----

query I rowsort
SELECT - ( - 6 ) AS col0 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + + col0 * 50 AS col2 FROM tab1 AS cor0
----
2550
4250
4550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT ( + col1 ) DIV 3 FROM tab2 AS cor0
----
17
22
25

skipif mysql # not compatible
query I rowsort label-5344
SELECT ( + col1 ) / 3 FROM tab2 AS cor0
----
17
22
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL SUM( + col1 ) col1 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5345
SELECT ALL SUM ( + col1 ) col1 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT - + col0 * - 37 + + 91 FROM tab1 cor0
----
1978
3236
3458

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - COUNT( * ) + MAX( DISTINCT 47 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5349
SELECT - COUNT ( * ) + MAX ( DISTINCT 47 ) FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5350
SELECT DISTINCT * FROM tab2 WHERE + CAST( + 41 AS SIGNED ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-5350
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + 41 AS INTEGER ) IN ( + col1 )
----

query I rowsort
SELECT ALL - ( + col1 ) + 14 AS col2 FROM tab1
----
-33
0
9

query I rowsort
SELECT ALL - col2 + 28 AS col0 FROM tab0
----
-19
-71
18

query III rowsort
SELECT * FROM tab2 WHERE col2 * 65 + - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT SUM( ALL col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5354
SELECT SUM ( ALL col2 ) col2 FROM tab0
----
156

query I rowsort
SELECT col1 * - col0 + - 67 AS col1 FROM tab2 WHERE col2 + - col0 * 79 IS NULL
----

query I rowsort
SELECT DISTINCT - 77 + 73 FROM tab2
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - 83 - col0 * col2 ) BETWEEN 46 AND - col1 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 29 / 71 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT - + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT ALL + 3, - col1 AS col2 FROM tab0
----
3
-1
3
-21
3
-81

query I rowsort
SELECT ( - 7 ) + - - col2 AS col0 FROM tab1
----
52
61
89

query I rowsort
SELECT 67 + + + 61 AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT ALL + col0 - col2 + - 79 AS col0 FROM tab0 AS cor0
----
-111
-2
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT + COUNT( * ) * - ( - + 43 ) + 22 col2 FROM tab0 AS cor0
----
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT DISTINCT + COUNT ( * ) * - ( - + 43 ) + 22 col2 FROM tab0 AS cor0
----
151

query I rowsort
SELECT DISTINCT 71 * - - col1 - + 85 * 38 FROM tab2 AS cor0
----
1527
2237
391

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE - 19 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE - 19 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 88 - - col0 ) <= ( col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 53 * - 74 AS col2 FROM tab2
----
-3922
-3922
-3922

query I rowsort
SELECT + AVG ( DISTINCT ( + col0 ) ) AS col1 FROM tab1 WHERE NOT NULL < ( - - col2 )
----
NULL

query I rowsort
SELECT 5 * - col1 AS col0 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - - col1 * + 52 NOT IN ( col0 + ( + 85 + - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 76 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT + 18 DIV + col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT + 18 / + col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + 66 * COUNT( * ) * 72 FROM tab0
----
14256

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 66 * COUNT ( * ) * 72 FROM tab0
----
14256

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT 54 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT 54 / + col2 FROM tab2
----
0
1
2

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( - - col2 * col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT ALL ( col0 ) + col2 DIV - col2 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL ( col0 ) + col2 / - col2 AS col0 FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT 72 + - 27 * 79 + + col1 / + CAST( NULL AS SIGNED ) + col0 / + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT 72 + - 27 * 79 + + col1 / + CAST ( NULL AS INTEGER ) + col0 / + col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * - + ( - col0 ) ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 17 / col2 + - + col0 + + col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5382
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( col0 AS SIGNED ) * 2 * + 21 + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5382
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( col0 AS INTEGER ) * 2 * + 21 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL - + MAX( - 44 ) FROM tab2 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - + MAX ( - 44 ) FROM tab2 cor0
----
44

query II rowsort
SELECT DISTINCT + col1 + + col2 AS col1, + 18 * - - col2 + - - 84 FROM tab1
----
110
1812
115
1308
64
1146

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL - 40 * - SUM( col1 ) FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - 40 * - SUM ( col1 ) FROM tab1 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - COUNT( * ) * + + 46 AS col1 FROM tab0 WHERE + + 20 IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT - COUNT ( * ) * + + 46 AS col1 FROM tab0 WHERE + + 20 IN ( + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT ALL ( + + col1 ) + + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT + col2 + + 19 FROM tab1
----
115
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE 36 / col2 <= ( - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE 36 / col2 <= ( - 73 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 49 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 = + 46 + - - ( + - col2 ) / - col1
----
3

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 = + 46 + - - ( + - col2 ) / - col1
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL 69 * - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL 69 * - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 85 / 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + col2 DIV col1 - + ( + + 39 ) + + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-48
-67
-76

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col2 / col1 - + ( + + 39 ) + + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-48
-67
-76

query I rowsort
SELECT - + 14 AS col1 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT MAX( ALL 15 ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5398
SELECT MAX ( ALL 15 ) AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col2 FROM tab1 cor0 WHERE NOT ( NULL NOT IN ( - 30 - + + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT DISTINCT - 43 * - - CAST( 94 AS SIGNED ) FROM tab1 AS cor0
----
-4042

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - 43 * - - CAST ( 94 AS INTEGER ) FROM tab1 AS cor0
----
-4042

onlyif mysql # DIV for integer division: 
query II rowsort label-5401
SELECT ALL + col2 DIV + 9 col1, + col0 FROM tab0 AS cor0
----
1
87
11
97
5
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5401
SELECT ALL + col2 / + 9 col1, + col0 FROM tab0 AS cor0
----
1
87
11
97
5
15

query I rowsort
SELECT ALL col2 * + + 29 FROM tab1
----
1711
1972
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT ALL col1 DIV + col2 FROM tab0 WHERE ( 1 ) IN ( 15 ) OR NOT ( NOT ( 20 + + col2 ) > col2 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL col1 / + col2 FROM tab0 WHERE ( 1 ) IN ( 15 ) OR NOT ( NOT ( 20 + + col2 ) > col2 * col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 77 NOT IN ( - col1 )
----
64
77
40

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + - 62 IS NULL
----
59
68
96

query I rowsort
SELECT - col2 * 2 AS col0 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT - col2 / - col0 FROM tab0 WHERE NOT - 58 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 56, col2 FROM tab0 cor0
----
-56
10
-56
47
-56
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT MIN( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5410
SELECT MIN ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5411
SELECT + 90 * COUNT( * ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5411
SELECT + 90 * COUNT ( * ) / + + COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5412
SELECT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - - col0 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT ALL - 32 + CAST( NULL AS SIGNED ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5414
SELECT ALL - 32 + CAST ( NULL AS INTEGER ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5415
SELECT 12 AS col1, 73 + - 23 + - CAST( - 32 AS SIGNED ) FROM tab1, tab0 AS cor0
----
18 values hashing to e6b5727eb48cb07b4071071569715a38

skipif mysql # not compatible
query II rowsort label-5415
SELECT 12 AS col1, 73 + - 23 + - CAST ( - 32 AS INTEGER ) FROM tab1, tab0 AS cor0
----
18 values hashing to e6b5727eb48cb07b4071071569715a38

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT + - col2 DIV - - col1 + - col0 + col2 FROM tab1 AS cor0
----
-24
-37
39

skipif mysql # not compatible
query I rowsort label-5416
SELECT + - col2 / - - col1 + - col0 + col2 FROM tab1 AS cor0
----
-24
-37
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 77 * + - col2 <> - col1 / col1 * + col1 * + ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 77 * + - col2 <> - col1 / col1 * + col1 * + ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - - 57 + 19 - - MIN( 40 ) AS col2 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-5419
SELECT - - 57 + 19 - - MIN ( 40 ) AS col2 FROM tab2 AS cor0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COUNT( * ) + ( + 81 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5420
SELECT COUNT ( * ) + ( + 81 ) FROM tab0 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - + col0 * - - col0 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + - + 23 col1 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> 83
----

skipif mysql # not compatible
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - 67 * - - col2 + ( - - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 83 * - col2 AS col1 FROM tab0
----
3901
8217
830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) - - col2 AS col0 FROM tab2 WHERE NOT + - col0 + - 20 + + - 40 + - col0 * + 63 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) - - col2 AS col0 FROM tab2 WHERE NOT + - col0 + - 20 + + - 40 + - col0 * + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5428
SELECT * FROM tab2 WHERE - - CAST( - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab2 WHERE - - CAST ( - col1 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 * - col0 col2 FROM tab2
----
2093
4056
5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * + ( + 98 ) * - - col2 * + ( + col0 ) col2 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - 53 * + col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> 29 + + 78
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 76 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL - col0 AS col1, - col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-46
2652
-64
6006
-75
4556

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - col0 DIV 58 * 15 AS col0 FROM tab0 AS cor0
----
-15
-15
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT - col0 / 58 * 15 AS col0 FROM tab0 AS cor0
----
-15
-15
0

query I rowsort
SELECT ALL + ( + + 97 ) * - col0 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5437
SELECT * FROM tab2 cor0 WHERE NOT 29 NOT BETWEEN NULL AND - + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5437
SELECT * FROM tab2 cor0 WHERE NOT 29 NOT BETWEEN NULL AND - + CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col2 ) < - - col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + + 8 ) FROM tab0 AS cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT + 35 DIV - ( - + col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + 35 / - ( - + col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + 86 * + col1 * - + 85 FROM tab2 AS cor0
----
-372810
-489770
-562870

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT 12 * + ( 28 ) FROM tab0
----
336
336
336

query I rowsort
SELECT DISTINCT - 93 * col2 * + col0 FROM tab0
----
-65565
-80910
-893079

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + 72 * + MIN( + + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-6552

skipif mysql # not compatible
query I rowsort label-5446
SELECT + 72 * + MIN ( + + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-6552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT 11 * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5447
SELECT 11 * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1, col1, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 79
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5450
SELECT - CAST( NULL AS DECIMAL ) * - + col1 + + 25 - - + CAST( - 73 AS SIGNED ) + + col1, - col2 * + 53 AS col1 FROM tab2
----
NULL
-1219
NULL
-2120
NULL
-3074

skipif mysql # not compatible
query II rowsort label-5450
SELECT - CAST ( NULL AS REAL ) * - + col1 + + 25 - - + CAST ( - 73 AS INTEGER ) + + col1, - col2 * + 53 AS col1 FROM tab2
----
NULL
-1219
NULL
-2120
NULL
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT DISTINCT + - col0 DIV - col2 AS col0 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + - col0 / - col2 AS col0 FROM tab0 cor0
----
0
8

query I rowsort
SELECT ( 11 ) AS col0 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE + ( - 78 ) * - col0 - + 35 NOT BETWEEN ( + 64 ) AND - 85 + col1
----
59
68
96

query I rowsort
SELECT - col0 * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - MIN( ALL col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5455
SELECT - MIN ( ALL col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT - - COUNT( * ) DIV 29 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT - - COUNT ( * ) / 29 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 29 * + + col1 + - - col1 AS col2 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( * ) * 3 + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( * ) * 3 + - COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL col0 * - col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL col0 * - col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 * 62 + - 86 FROM tab1
----
5246
5246
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT COUNT( * ) + ( + 39 ) col0 FROM tab0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT COUNT ( * ) + ( + 39 ) col0 FROM tab0
----
42

query I rowsort
SELECT ALL 85 + + + 65 + + col2 AS col1 FROM tab0
----
160
197
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2 AS col1, 94 * - - col2 col0 FROM tab1 AS cor0
----
110
9024
115
6392
64
5546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col1 + + - col1 + 76 IS NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 29 NOT BETWEEN - 64 AND NULL
----

query I rowsort
SELECT + + col2 * - + 28 FROM tab1 AS cor0
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - ( - + ( - - COUNT( * ) ) ) * - - SUM( - - 59 ) * - + 31 AS col2 FROM tab1
----
-16461

skipif mysql # not compatible
query I rowsort label-5467
SELECT - ( - + ( - - COUNT ( * ) ) ) * - - SUM ( - - 59 ) * - + 31 AS col2 FROM tab1
----
-16461

query I rowsort
SELECT - col0 * + col0 * - 29 FROM tab0
----
219501
272861
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT + - COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + - COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - - ( - - col0 ) * ( - col0 ) FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL 81 * - 27 * - CAST( 13 AS SIGNED ) FROM tab1 AS cor0
----
28431
28431
28431

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 81 * - 27 * - CAST ( 13 AS INTEGER ) FROM tab1 AS cor0
----
28431
28431
28431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT + MIN( DISTINCT - CAST( - ( col1 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5472
SELECT + MIN ( DISTINCT - CAST ( - ( col1 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT - COUNT( DISTINCT 6 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - COUNT ( DISTINCT 6 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
-1

query I rowsort
SELECT 81 * + col0 FROM tab1
----
4131
6885
7371

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT ALL + col0 DIV - + col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5475
SELECT ALL + col0 / - + col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col1 col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - - 55 * - col1 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT - 23 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - 23 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5479
SELECT + ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + AVG ( + col2 ) col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * + ( - 64 ) + - + ( 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT COUNT( * ) FROM tab1 WHERE 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT COUNT ( * ) FROM tab1 WHERE 52 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5482
SELECT CAST( + + SUM( - col2 ) AS SIGNED ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5482
SELECT CAST ( + + SUM ( - col2 ) AS INTEGER ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL SUM( - col2 ) + + + 30 AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL SUM ( - col2 ) + + + 30 AS col0 FROM tab0
----
-126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5484
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV - - 34 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - - 34 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( * ) + + 49 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( * ) + + 49 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL - 42 / + + 51 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL - 42 / + + 51 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - + col2 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
3337
4465
9069

query I rowsort
SELECT ALL + col2 * - + col1 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT ALL CAST( - MAX( col1 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT + - 21 >= - - 58
----
-81

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL CAST ( - MAX ( col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT + - 21 >= - - 58
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT DISTINCT - 99 + - col2 + + CAST( NULL AS SIGNED ) * - 12 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5490
SELECT DISTINCT - 99 + - col2 + + CAST ( NULL AS INTEGER ) * - 12 col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT CAST( - 83 AS SIGNED ) AS col1 FROM tab0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-5491
SELECT CAST ( - 83 AS INTEGER ) AS col1 FROM tab0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( 40 ) - MAX( - col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( 40 ) - MAX ( - col2 ) FROM tab2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT + col1 - - - ( + col2 ) * - col2 + - + col0 DIV 53 FROM tab0 AS cor0
----
120
2290
9801

skipif mysql # not compatible
query I rowsort label-5493
SELECT + col1 - - - ( + col2 ) * - col2 + - + col0 / 53 FROM tab0 AS cor0
----
120
2290
9801

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL - - SUM( - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL - - SUM ( - col1 ) AS col2 FROM tab0 cor0
----
-103

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT - 80 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT - 80 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5498
SELECT + + 1 DIV + - MAX( - 46 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT + + 1 / + - MAX ( - 46 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT + col0 * + - col1 * col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 12 - - - 50, - col2 + col2, + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 14 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5502
SELECT ALL - + 97 * - - MAX( 87 ) * COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) / - CAST( - col1 AS DECIMAL ) IS NULL )
----
-25314

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - + 97 * - - MAX ( 87 ) * COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) / - CAST ( - col1 AS REAL ) IS NULL )
----
-25314

query II rowsort
SELECT - - ( - 36 ) AS col2, 69 FROM tab0 AS cor0
----
-36
69
-36
69
-36
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT + + CAST( + + SUM( DISTINCT + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5504
SELECT + + CAST ( + + SUM ( DISTINCT + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT SUM( ALL + - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5505
SELECT SUM ( ALL + - col2 ) AS col1 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 6 ) col0 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT SUM( + + 80 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-5507
SELECT SUM ( + + 80 ) FROM tab1
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5508
SELECT ALL CAST( NULL AS DECIMAL ) / + - 34 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL CAST ( NULL AS REAL ) / + - 34 + - col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + col2 + - 71 + + 17 * col1 * - 50 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 + - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + - MIN( DISTINCT ( 83 ) ) + + ( COUNT( * ) ) - - 46 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5511
SELECT + - MIN ( DISTINCT ( 83 ) ) + + ( COUNT ( * ) ) - - 46 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 * + col2 * 89 = ( ( + + 57 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT - + CAST( col2 AS SIGNED ) * + col2 - + col0 * + + col2 AS col0 FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-1587
-4160
-7714

skipif mysql # not compatible
query I rowsort label-5514
SELECT - + CAST ( col2 AS INTEGER ) * + col2 - + col0 * + + col2 AS col0 FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-1587
-4160
-7714

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT + COUNT( * ) + + + 4 AS col0 FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + COUNT ( * ) + + + 4 AS col0 FROM tab1 cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT + SUM( DISTINCT - 18 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT + SUM ( DISTINCT - 18 ) AS col2 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT + COUNT( * ) AS col2, + 37 * - 89 AS col2 FROM tab2 AS cor0
----
3
-3293

skipif mysql # not compatible
query II rowsort label-5518
SELECT + COUNT ( * ) AS col2, + 37 * - 89 AS col2 FROM tab2 AS cor0
----
3
-3293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 31 col1 FROM tab2 AS cor0
----
20
36
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT DISTINCT + col0 - - col1 + - - col2 * - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + col0 - - col1 + - - col2 * - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 56 - - col1 * - + 2 FROM tab0 AS cor0
----
-106
14
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT - CAST( + - 49 AS SIGNED ) - 21 AS col1 FROM tab0 cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-5522
SELECT - CAST ( + - 49 AS INTEGER ) - 21 AS col1 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - - 52 * 26 AS col1 FROM tab0 AS cor0
----
1352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 - + + 69 + - 29 col2 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL col2 * + ( - + col0 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col0 + col2 + - + ( - - col2 ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + MIN( col2 ) + + + SUM( ALL + col2 ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-5527
SELECT + MIN ( col2 ) + + + SUM ( ALL + col2 ) AS col2 FROM tab2
----
144

query II rowsort
SELECT - 17 + - 94, - 23 + + col0 AS col0 FROM tab0
----
-111
-8
-111
64
-111
74

query I rowsort
SELECT - 19 + - col2 FROM tab0
----
-118
-29
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT - col0 DIV + col2 + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - col0 / + col2 + col2 FROM tab2
----
21
39
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 <= ( - col0 - - - 9 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT - 76 * - col0 AS col1 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT col2 * + col2 * + 72 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
115200
242208
38088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5536
SELECT - COUNT( DISTINCT + + 47 ) DIV MIN( + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT - COUNT ( DISTINCT + + 47 ) / MIN ( + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL + + SUM( - col0 ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5537
SELECT ALL + + SUM ( - col0 ) col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + ( + 71 ) FROM tab2 AS cor0
----
71
71
71

onlyif mysql # DIV for integer division: 
query II rowsort label-5539
SELECT DISTINCT 13, - col1 DIV + + 54 col1 FROM tab0 AS cor0
----
13
-1
13
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5539
SELECT DISTINCT 13, - col1 / + + 54 col1 FROM tab0 AS cor0
----
13
-1
13
0

query II rowsort
SELECT - 55, - ( - - col0 ) + + col0 AS col0 FROM tab0 cor0
----
-55
0
-55
0
-55
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT ALL COUNT( * ) + - 56, + COUNT( * ) AS col0 FROM tab1 WHERE NULL IN ( + col2 )
----
-56
0

skipif mysql # not compatible
query II rowsort label-5541
SELECT ALL COUNT ( * ) + - 56, + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IN ( + col2 )
----
-56
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5542
SELECT ALL - col1 + + - 7 AS col1, col1 + + col1 DIV - col1 AS col1 FROM tab0
----
-28
20
-8
0
-88
80

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL - col1 + + - 7 AS col1, col1 + + col1 / - col1 AS col1 FROM tab0
----
-28
20
-8
0
-88
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 2 * + 16 + + 17 * - - 39 > - - col1 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( - 34 * + - 66 * + col2 + - - 87 ) BETWEEN col2 - col1 AND + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE + 93 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 * + col2, - col1 AS col2 FROM tab1
----
4896
-14
5015
-5
6188
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT - 78 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT - 78 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL + col1 * + CAST( + ( + 43 ) AS SIGNED ) + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 76 BETWEEN 58 AND + 62
----
2239
2956
3375

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + col1 * + CAST ( + ( + 43 ) AS INTEGER ) + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 76 BETWEEN 58 AND + 62
----
2239
2956
3375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT + CAST( + + col0 AS SIGNED ) * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5549
SELECT + CAST ( + + col0 AS INTEGER ) * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT ( + MAX( ALL - 7 ) ) + 60 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
53

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT ( + MAX ( ALL - 7 ) ) + 60 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT col1 + col2 DIV - col1 - - col2 AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT col1 + col2 / - col1 - - col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT + + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
38

query I rowsort
SELECT ALL + + 46 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ( - col0 ) + + col2 - - col0 * + 68 FROM tab2
----
3105
4328
5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 11 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 11 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 58 - col0 col0 FROM tab1 AS cor0
----
-109
-143
-149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5557
SELECT CAST( NULL AS DECIMAL ) + + 77 * + 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT CAST ( NULL AS REAL ) + + 77 * + 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT - col0 DIV col0 + - ( + 49 ) * - col2 AS col0 FROM tab2 cor0
----
1126
1959
2841

skipif mysql # not compatible
query I rowsort label-5558
SELECT - col0 / col0 + - ( + 49 ) * - col2 AS col0 FROM tab2 cor0
----
1126
1959
2841

query II rowsort
SELECT ALL + col0 * - - col1 * + 65 AS col1, col1 FROM tab2 AS cor0
----
152490
51
320320
77
326625
67

query I rowsort
SELECT DISTINCT + + ( col2 ) - + - col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT ALL + + 78 * + ( - col1 ), 2 AS col2 FROM tab1 cor0
----
-1092
2
-3666
2
-390
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - + 46 * - COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5562
SELECT - + 46 * - COUNT ( * ) FROM tab2 AS cor0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT COUNT( * ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + MAX( DISTINCT + - 71 ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-5565
SELECT + MAX ( DISTINCT + - 71 ) AS col0 FROM tab1
----
-71

query III rowsort
SELECT ALL * FROM tab0 WHERE - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT MIN( + + col1 ) * - 81 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5567
SELECT MIN ( + + col1 ) * - 81 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT - 77 DIV + + 54 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5568
SELECT - 77 / + + 54 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT + MIN( DISTINCT + ( - + 21 ) ) AS col1 FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT + MIN ( DISTINCT + ( - + 21 ) ) AS col1 FROM tab2 cor0
----
-21

query II rowsort
SELECT DISTINCT col2 AS col2, - ( - ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL + CAST( + + CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + CAST ( + + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT col2 DIV 75 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT col2 / 75 FROM tab1
----
0
1

query I rowsort
SELECT ALL + + 18 * - + col0 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL + col1 * + 30 + + CAST( 9 AS SIGNED ) FROM tab0 AS cor0
----
2439
39
639

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + col1 * + 30 + + CAST ( 9 AS INTEGER ) FROM tab0 AS cor0
----
2439
39
639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - 95 col2 FROM tab1
----
14
-95
47
-95
5
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT + col1 DIV - - col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5576
SELECT + col1 / - - col0 AS col1 FROM tab0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL col2 / + 79 + col2 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL col2 / + 79 + col2 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5578
SELECT COUNT( * ), + COUNT( * ) DIV + - 23 AS col1 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-5578
SELECT COUNT ( * ), + COUNT ( * ) / + - 23 AS col1 FROM tab2
----
3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT - 10 DIV COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - 10 / COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 4 + - 22 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab2 WHERE - + 18 - col0 + - 91 IS NULL
----

query I rowsort
SELECT ALL + ( col2 ) * - col2 + - + col2 FROM tab1
----
-3540
-4692
-9312

query II rowsort
SELECT DISTINCT + 14 * - col1 + 2 + col1, col2 FROM tab1
----
-180
96
-609
68
-63
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + COUNT( * ) + COUNT( * ) + 38 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5584
SELECT + COUNT ( * ) + COUNT ( * ) + 38 FROM tab2
----
44

skipif postgresql # PostgreSQL re