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 requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col0 FROM tab1 WHERE - ( + col0 ) / + 62 + + + col1 + 39 > col1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + + + 12 col0 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5587
SELECT + col0 * - col2 + col2 + + 29 + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) / + col0 + - + col1 * ( - 38 ) * - 53 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT + col0 * - col2 + col2 + + 29 + + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) / + col0 + - + col1 * ( - 38 ) * - 53 + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT COUNT( * ) + - 77 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT COUNT ( * ) + - 77 FROM tab2 cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL - + col0 + + ( - - CAST( - 37 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-122
-128
-88

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - + col0 + + ( - - CAST ( - 37 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-122
-128
-88

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5591
SELECT ALL - col1, 60 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
-6
-81
-1

skipif mysql # not compatible
query II rowsort label-5591
SELECT ALL - col1, 60 / - col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
-6
-81
-1

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

query I rowsort
SELECT DISTINCT - 73 + - + col0 * 40 AS col0 FROM tab2
----
-1913
-2633
-3073

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

query II rowsort
SELECT + col0 - 99, col2 AS col1 FROM tab1 AS cor0
----
-14
59
-48
96
-8
68

query I rowsort
SELECT - + 87 - - col0 FROM tab1 AS cor0
----
-2
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT DISTINCT col2 * CAST( + - 20 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT col2 * CAST ( + - 20 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL MIN( - - col0 ) FROM tab0 AS cor0 WHERE + 75 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL MIN ( - - col0 ) FROM tab0 AS cor0 WHERE + 75 IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL - - COUNT( * ) * ( - - COUNT( * ) ) * 33 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - - COUNT ( * ) * ( - - COUNT ( * ) ) * 33 FROM tab0 AS cor0
----
297

query I rowsort
SELECT + col1 * + 16 AS col1 FROM tab1
----
224
752
80

query I rowsort
SELECT ALL ( col2 ) * - ( col2 ) * - + 99 FROM tab2
----
158400
333036
52371

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * 29 + - - 83 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - 78 - - 71 * - - ( + 60 ) + + col0 + 16 / + 54 < + + 69 / - col0 * col2
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, 29 * + 28 col0 FROM tab2
----
-23
812
-40
812
-58
812

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - + SUM( - 12 ) col2 FROM tab0 cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5606
SELECT - + SUM ( - 12 ) col2 FROM tab0 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + 78 * + - SUM( 69 ) FROM tab1
----
-16146

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 78 * + - SUM ( 69 ) FROM tab1
----
-16146

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + SUM( DISTINCT - ( 18 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-5608
SELECT + SUM ( DISTINCT - ( 18 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-18

query I rowsort
SELECT + ( 78 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

query I rowsort
SELECT ALL - col2 * 41 FROM tab2 AS cor0
----
-1640
-2378
-943

query I rowsort
SELECT - + col0 * 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5613
SELECT DISTINCT + + COUNT( * ) DIV CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + + COUNT ( * ) / CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT - col0 * - + col1 - - + 29 - - - col2 AS col2, + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1197
81
1846
21
27
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL col2 * + + CAST( 39 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL col2 * + + CAST ( 39 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - SUM( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - SUM ( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL < NULL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - ( - + col2 ) / + col0 FROM tab0 AS cor0
----
0
1
3

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

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

skipif mysql # not compatible
query I rowsort label-5619
SELECT + - COUNT ( * ) + + + 13 + CAST ( NULL AS INTEGER ) + + 2 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + + - col1 * col1 * col1 col0 FROM tab1 AS cor0
----
-103904
-206
-2825

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

query I rowsort
SELECT ALL 70 + + - ( col0 ) AS col2 FROM tab0
----
-17
-27
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - MAX( 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - MAX ( 85 ) FROM tab0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 * 44 col2 FROM tab2 WHERE + col2 IS NOT NULL
----
2267
3006
3428

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5628
SELECT DISTINCT - col1 + - ( 18 ) AS col0, 64 DIV + col2 + + col0 FROM tab2
----
-69
48
-85
76
-95
65

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT - col1 + - ( 18 ) AS col0, 64 / + col2 + + col0 FROM tab2
----
-69
48
-85
76
-95
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL + 17 + SUM( + 60 ) AS col1 FROM tab2
----
197

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 17 + SUM ( + 60 ) AS col1 FROM tab2
----
197

query II rowsort
SELECT ALL 84 + - - col0 AS col1, + col0 FROM tab0
----
171
87
181
97
99
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL - + CAST( NULL AS SIGNED ) + - col2 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-5631
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + + SUM( - col1 ) - + COUNT( * ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-5632
SELECT + + SUM ( - col1 ) - + COUNT ( * ) FROM tab0 AS cor0
----
-106

query I rowsort
SELECT col2 + + ( + 5 ) * + col1 FROM tab0
----
104
115
452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - ( - col0 ) col0, col0 FROM tab2
----
17
75
23
46
24
64

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 col0, ( - 83 ) col2 FROM tab1 AS cor0
----
34
-83
34
-83
34
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 3 * + 6 * ( - col0 ) IN ( + col1, - 71 )
----

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

query I rowsort
SELECT ALL + + 35 * - + 82 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-2870
-2870
-2870

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 30 * + col0 - 95 / - col2 + - col1 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5641
SELECT DISTINCT + col2, + col2 DIV 81 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-5641
SELECT DISTINCT + col2, + col2 / 81 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT - COUNT( * ) + + COUNT( * ) - - - 86 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
-86

skipif mysql # not compatible
query I rowsort label-5642
SELECT - COUNT ( * ) + + COUNT ( * ) - - - 86 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
-86

query I rowsort
SELECT + ( ( + 65 ) ) * + col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT + 28 * - col1 FROM tab1
----
-1316
-140
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT SUM( ( - 23 ) ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-5645
SELECT SUM ( ( - 23 ) ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT 75 * col1 FROM tab2
----
3825
5025
5775

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5648
SELECT DISTINCT + SUM ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
185

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5651
SELECT DISTINCT col2 DIV 12 * - CAST( - + col2 AS SIGNED ) col1 FROM tab0
----
0
141
792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT DISTINCT col2 / 12 * - CAST ( - + col2 AS INTEGER ) col1 FROM tab0
----
0
141
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NOT - col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5653
SELECT 72, - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + + col0 + 65 IS NOT NULL
----
72
NULL
-9

skipif mysql # not compatible
query III rowsort label-5653
SELECT 72, - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + + col0 + 65 IS NOT NULL
----
72
NULL
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT - 61 DIV col2 * - 11 + - 0 + 53 - - 11 + col0 * 68 - - col2 + 39 * + + col0 * + 98 * + col0 + - - ( + + col2 ) - col2 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) + + col0 DIV - 64 * col1 + - + col2 * + 75 IS NOT NULL
----
15659379
21503983
8090589

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 61 / col2 * - 11 + - 0 + 53 - - 11 + col0 * 68 - - col2 + 39 * + + col0 * + 98 * + col0 + - - ( + + col2 ) - col2 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) + + col0 / - 64 * col1 + - + col2 * + 75 IS NOT NULL
----
15659379
21503983
8090589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT + CAST( col0 AS SIGNED ) * 67 + + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE - 67 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5656
SELECT + CAST ( col0 AS INTEGER ) * 67 + + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE - 67 * - col0 IS NULL
----

query I rowsort
SELECT + + 6 AS col2 FROM tab0 AS cor0 WHERE col2 + - col2 * - 8 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT - 42 FROM tab0 AS cor0 WHERE 58 + - CAST( - - col0 AS SIGNED ) * + col0 <= + col2
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 42 FROM tab0 AS cor0 WHERE 58 + - CAST ( - - col0 AS INTEGER ) * + col0 <= + col2
----
-42
-42
-42

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

query I rowsort
SELECT 69 - ( col0 ) + + + col0 + - 15 * - + col2 * - col2 * col2 FROM tab0
----
-14554416
-14931
-1557276

query II rowsort
SELECT DISTINCT 88, 34 * + col2 AS col2 FROM tab2
----
88
1360
88
1972
88
782

query I rowsort
SELECT DISTINCT + col0 + - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + 56 * - + 10 + + 1 * SUM( DISTINCT 55 ) FROM tab2
----
-505

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 56 * - + 10 + + 1 * SUM ( DISTINCT 55 ) FROM tab2
----
-505

query II rowsort
SELECT col0 + - col1, + col1 FROM tab1
----
37
14
44
47
80
5

query I rowsort
SELECT + 87 + + ( - 9 ) AS col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT col2 * + 97 + + col0 AS col0 FROM tab0 AS cor0
----
1057
4574
9700

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + 57 + + - 46 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( * ) + MAX( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) + MAX ( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-5671
SELECT ALL ( + 66 ), + col0 DIV 92 AS col1 FROM tab1 AS cor0
----
66
0
66
0
66
0

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL ( + 66 ), + col0 / 92 AS col1 FROM tab1 AS cor0
----
66
0
66
0
66
0

query I rowsort
SELECT col0 * - 13 * - + col0 FROM tab2 cor0
----
27508
53248
73125

query I rowsort
SELECT 16 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5676
SELECT ALL SUM ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
195

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 15 * + col1 NOT IN ( + col2 * - col2 * 78 + 50, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 67 * + col0 AS col2 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT + - 84 FROM tab2 WHERE NOT - + 70 >= + 66
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col2 ) * + - 41 <> - col2 * - 88 - - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT ALL CAST( - + ( + MIN( ALL col0 ) ) AS SIGNED ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL CAST ( - + ( + MIN ( ALL col0 ) ) AS INTEGER ) FROM tab0 cor0
----
-15

query II rowsort
SELECT col2 AS col2, col0 + + col0 FROM tab2 cor0
----
23
92
40
128
58
150

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ), - col0 - 44 col0 FROM tab0
----
1
-141
21
-131
81
-59

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5689
SELECT ALL - 44 + 43, + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL - 44 + 43, + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
-1
NULL
-1
NULL
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT 55 * - - col1 + col1 + + + CAST( + 30 AS SIGNED ) FROM tab0 AS cor0
----
1206
4566
86

skipif mysql # not compatible
query I rowsort label-5690
SELECT 55 * - - col1 + col1 + + + CAST ( + 30 AS INTEGER ) FROM tab0 AS cor0
----
1206
4566
86

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

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

query I rowsort
SELECT DISTINCT 24 * col0 AS col0 FROM tab0
----
2088
2328
360

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

query I rowsort
SELECT ALL - col2 * - + 78 AS col0 FROM tab2
----
1794
3120
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT + 43 * - CAST( + 80 AS SIGNED ) FROM tab0
----
-3440
-3440
-3440

skipif mysql # not compatible
query I rowsort label-5696
SELECT + 43 * - CAST ( + 80 AS INTEGER ) FROM tab0
----
-3440
-3440
-3440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT MIN( DISTINCT + 51 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5698
SELECT MIN ( DISTINCT + 51 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab0 WHERE NOT + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 WHERE NULL BETWEEN col0 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL BETWEEN col0 AND col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 * + col0 + 56 col0 FROM tab2
----
-1025
-2544
-4352

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

query I rowsort
SELECT DISTINCT + 55 - - - col1 AS col1 FROM tab1 AS cor0
----
41
50
8

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

query I rowsort
SELECT DISTINCT - + col0 * 31 * - col0 AS col1 FROM tab2 AS cor0
----
126976
174375
65596

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 93 < - 79
----

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

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

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

query I rowsort
SELECT - 23 * - col1 AS col2 FROM tab0 cor0
----
1863
23
483

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 9 NOT BETWEEN + - ( + col1 ) AND + - ( + - col2 ) * col0 + 96
----
97
1
99

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

skipif mysql # not compatible
query I rowsort label-5711
SELECT + 28 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 61 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT ( NULL ) <> + ( + col1 ) * + ( - + 26 ) + 16 / + 89
----

query II rowsort
SELECT 36 * - 28 AS col1, + col0 FROM tab1
----
-1008
51
-1008
85
-1008
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - MAX( ALL 26 ) AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-5715
SELECT - MAX ( ALL 26 ) AS col0 FROM tab1
----
-26

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

query I rowsort
SELECT + + 42 + + col2 AS col2 FROM tab2 AS cor0
----
100
65
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL - MAX( 23 ), SUM( ALL 80 ) AS col0 FROM tab2 AS cor0
----
-23
240

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL - MAX ( 23 ), SUM ( ALL 80 ) AS col0 FROM tab2 AS cor0
----
-23
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT - CAST( ( - col2 ) AS SIGNED ) + + col1 * - + ( + 38 ) FROM tab0
----
-3031
-788
61

skipif mysql # not compatible
query I rowsort label-5719
SELECT - CAST ( ( - col2 ) AS INTEGER ) + + col1 * - + ( + 38 ) FROM tab0
----
-3031
-788
61

query I rowsort
SELECT 23 + + - col2 AS col1 FROM tab2
----
-17
-35
0

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

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

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

query I rowsort
SELECT DISTINCT - - 93 * - col2 + + col0 FROM tab2 cor0
----
-2093
-3656
-5319

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

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - ( COUNT ( DISTINCT - col1 ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + + col2 - + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL MIN( DISTINCT + col0 ) * + 11 FROM tab2 AS cor0
----
506

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL MIN ( DISTINCT + col0 ) * + 11 FROM tab2 AS cor0
----
506

query I rowsort
SELECT ALL - + 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-29
-29
-29

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

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

query I rowsort
SELECT 61 + + - 93 - - col0 - 19 * 64 * col0 * - 99 FROM tab0
----
10473463
11677313
1805743

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5731
SELECT ALL col2 * + col1 AS col1, - col1 DIV - - ( - ( col1 ) ) col1 FROM tab0
----
210
1
3807
1
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5731
SELECT ALL col2 * + col1 AS col1, - col1 / - - ( - ( col1 ) ) col1 FROM tab0
----
210
1
3807
1
99
1

query I rowsort
SELECT - col1 + + - 33 FROM tab1
----
-38
-47
-80

query III rowsort
SELECT * FROM tab1 WHERE + - col1 + - col1 IN ( 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT 7 + + CAST( - + 38 AS SIGNED ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT 7 + + CAST ( - + 38 AS INTEGER ) AS col0 FROM tab1
----
-31

query I rowsort
SELECT - + 38 * - col0 + 96 FROM tab2 AS cor0
----
1844
2528
2946

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - 74 * - - COUNT( * ) * - 53 AS col0 FROM tab1
----
11766

skipif mysql # not compatible
query I rowsort label-5736
SELECT - 74 * - - COUNT ( * ) * - 53 AS col0 FROM tab1
----
11766

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT + SUM( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT + SUM ( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT - 15 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT - 2 DIV - 87 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT - 2 / - 87 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT DISTINCT + 24 DIV col1 col2 FROM tab2 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + - COUNT( * ) + 50 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5742
SELECT + - COUNT ( * ) + 50 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL + COUNT( * ) * + + 89 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + COUNT ( * ) * + + 89 FROM tab1
----
267

query I rowsort
SELECT col0 * 24 + + ( col2 ) AS col0 FROM tab1
----
1320
2099
2252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT - COUNT( * ) DIV 42 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT - COUNT ( * ) / 42 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT MAX( - - col0 ) + 55 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT MAX ( - - col0 ) + 55 FROM tab2
----
130

query I rowsort
SELECT ALL - 94 + 94 / + col2 AS col2 FROM tab2 WHERE NOT NULL > + col1 * + - 6 / col0
----

query I rowsort
SELECT + col2 / 42 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT MIN( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5750
SELECT MIN ( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT + 6 AS col1, - 70 * 69 AS col0 FROM tab1 AS cor0
----
6
-4830
6
-4830
6
-4830

query I rowsort
SELECT + col0 * + - col2 + 70 + - 9 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND - + col2 / - 11
----

query I rowsort
SELECT ( + col2 ) + - ( + + 68 ) FROM tab0
----
-21
-58
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL + 99 + COUNT( * ) + - COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + 99 + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT DISTINCT - col2 + - 46 DIV - - ( + 60 ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - col2 + - 46 / - - ( + 60 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5757
SELECT ALL + - 90 - + col1, CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-111
NULL
-171
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5757
SELECT ALL + - 90 - + col1, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-111
NULL
-171
NULL
-91
NULL

query I rowsort
SELECT + + 0 + 38 AS col0 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT DISTINCT + col0 - + 55 DIV + col1 - + col1 FROM tab2 cor0
----
-13
-6
8

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + col0 - + 55 / + col1 - + col1 FROM tab2 cor0
----
-13
-6
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col0 > NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> col2 * - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + 77
----

query I rowsort
SELECT col2 FROM tab1 WHERE + + 31 * - - col0 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL SUM( ALL - 95 ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL SUM ( ALL - 95 ) FROM tab1
----
-285

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 * + col2 * col2 = NULL
----

query I rowsort
SELECT ALL - 10 * - col1 AS col1 FROM tab1 AS cor0
----
140
470
50

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5768
SELECT + MAX ( - - 4 ) col2 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5769
SELECT + ( + MIN( DISTINCT col0 ) ) AS col2, 77 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
51
-25

skipif mysql # not compatible
query II rowsort label-5769
SELECT + ( + MIN ( DISTINCT col0 ) ) AS col2, 77 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
51
-25

query I rowsort
SELECT ALL - + 20 FROM tab0 cor0
----
-20
-20
-20

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

query I rowsort
SELECT ALL col1 + - 88 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-11
-21
-37

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT + AVG ( ALL + col1 ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + AVG ( ALL + col1 ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ( MIN( - ( - col1 ) ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5777
SELECT ( MIN ( - ( - col1 ) ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL - 65 + + 30 AS col0 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT ALL 22 - col1 FROM tab0
----
-59
1
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT ALL col2 AS col1 FROM tab2 WHERE - col2 + - col0 NOT BETWEEN + col0 * + ( CAST( - 87 AS SIGNED ) ) AND - 18 * 12
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL col2 AS col1 FROM tab2 WHERE - col2 + - col0 NOT BETWEEN + col0 * + ( CAST ( - 87 AS INTEGER ) ) AND - 18 * 12
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT COUNT( DISTINCT col2 ) + ( + 73 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT COUNT ( DISTINCT col2 ) + ( + 73 ) FROM tab2
----
76

query III rowsort
SELECT * FROM tab1 WHERE NULL = 81
----

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

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL <> + col1 * - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + COUNT( * ) + COUNT( ALL ( 29 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5787
SELECT + COUNT ( * ) + COUNT ( ALL ( 29 ) ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT col2 + col0 DIV + col2 AS col0 FROM tab0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-5788
SELECT col2 + col0 / + col2 AS col0 FROM tab0
----
18
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 77 )
----

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

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( - col2 ) AND - 80
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( - 81 )
----

query I rowsort
SELECT - 49 + - 49 FROM tab1
----
-98
-98
-98

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

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

query I rowsort
SELECT - col0 FROM tab0 WHERE - 70 >= ( + col2 * - 48 )
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT + MAX( 48 ) + + CAST( + 73 AS SIGNED ) * + 32 FROM tab2
----
2384

skipif mysql # not compatible
query I rowsort label-5796
SELECT + MAX ( 48 ) + + CAST ( + 73 AS INTEGER ) * + 32 FROM tab2
----
2384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5797
SELECT DISTINCT * FROM tab2 WHERE NOT 56 < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5797
SELECT DISTINCT * FROM tab2 WHERE NOT 56 < ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT COUNT( * ) * + 10 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5798
SELECT COUNT ( * ) * + 10 FROM tab1
----
30

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

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 2 + col0 FROM tab0
----
NULL

query I rowsort
SELECT + 14 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col2 + + ( col1 ) NOT IN ( col0 * - 78 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) >= ( col0 * 46 + + ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT DISTINCT 20 FROM tab1 AS cor0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) NOT IN ( + col1 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT 20 FROM tab1 AS cor0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) NOT IN ( + col1 / - col0 )
----

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

query I rowsort
SELECT + ( col2 ) * col1 + col1 * col1 FROM tab1 cor0
----
1540
320
5405

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + MAX( ALL - 63 ) - 33 * 66 AS col1 FROM tab1 WHERE ( + col0 + + col2 ) < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT + MAX ( ALL - 63 ) - 33 * 66 AS col1 FROM tab1 WHERE ( + col0 + + col2 ) < ( NULL )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT DISTINCT + col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col0 < col2 + - col1 * 66
----

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col0 < col2 + - col1 * 66
----

query I rowsort
SELECT DISTINCT - + col0 + 75 FROM tab1 cor0
----
-10
-16
24

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

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

query I rowsort
SELECT - 25 * + col0 - - ( + 39 ) AS col2 FROM tab1 AS cor0
----
-1236
-2086
-2236

query I rowsort
SELECT ALL + 32 * - col1 - + col0 AS col2 FROM tab0 AS cor0
----
-129
-2607
-759

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5815
SELECT - MIN( 24 ) FROM tab1 AS cor0 WHERE + CAST( 65 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT - MIN ( 24 ) FROM tab1 AS cor0 WHERE + CAST ( 65 AS REAL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * col1 - col2 * - col0 FROM tab2 AS cor0
----
2231
5640
8236

query I rowsort
SELECT - - 89 - + col0 * col1 AS col2 FROM tab2 AS cor0
----
-2257
-4839
-4936

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 59 NOT IN ( 3 / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT + col1 + 92 DIV col1 FROM tab1 AS cor0
----
20
23
48

skipif mysql # not compatible
query I rowsort label-5819
SELECT + col1 + 92 / col1 FROM tab1 AS cor0
----
20
23
48

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

query I rowsort
SELECT ( - 67 ) * col1 FROM tab0
----
-1407
-5427
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT + 61 DIV - 15 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5823
SELECT + 61 / - 15 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT ALL + 69 * - col0 AS col0 FROM tab1
----
-3519
-5865
-6279

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 37 NOT BETWEEN 56 AND - 84 * - 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5826
SELECT 48 DIV + col1 FROM tab0 AS cor0 WHERE NOT ( 9 DIV col2 ) IS NULL
----
0
2
48

skipif mysql # not compatible
query I rowsort label-5826
SELECT 48 / + col1 FROM tab0 AS cor0 WHERE NOT ( 9 / col2 ) IS NULL
----
0
2
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT - MIN( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5827
SELECT - MIN ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab0 cor0
----
-1

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 23 > - 52 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + 50 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5833
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 50 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT DISTINCT col0 / - col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - SUM( DISTINCT + - 44 ) * COUNT( * ) AS col1 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-5835
SELECT - SUM ( DISTINCT + - 44 ) * COUNT ( * ) AS col1 FROM tab0
----
132

query I rowsort
SELECT DISTINCT - + col2 * + 95 FROM tab0 AS cor0
----
-4465
-9405
-950

query I rowsort
SELECT DISTINCT 58 * + + col2 AS col0 FROM tab1 AS cor0
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - SUM( ALL + 3 ) * + - 36 FROM tab0 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - SUM ( ALL + 3 ) * + - 36 FROM tab0 AS cor0
----
324

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( col0 * + col1 + col2 ) AND - 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5840
SELECT DISTINCT + COUNT( * ), CAST( NULL AS SIGNED ) - + 91 AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5840
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS INTEGER ) - + 91 AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT - 38 * + + 26 * - col0 - col2 DIV + col0 FROM tab1 AS cor0
----
50387
83980
89908

skipif mysql # not compatible
query I rowsort label-5841
SELECT - 38 * + + 26 * - col0 - col2 / + col0 FROM tab1 AS cor0
----
50387
83980
89908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT + + CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5842
SELECT + + CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 61 + - + 33 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT + 51 + col0 + - + col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL 56 * - col2 AS col1 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
-1288
-2240
-3248

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT 74 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN ( - - 67 + - col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5848
SELECT 74 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN ( - - 67 + - col1 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT DISTINCT + col2 DIV + col1 col0 FROM tab0
----
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5849
SELECT DISTINCT + col2 / + col1 col0 FROM tab0
----
0
99

query I rowsort
SELECT ALL col1 * + col2 + + 27 FROM tab0
----
126
237
3834

query I rowsort
SELECT DISTINCT col2 + col0 * + - col1 AS col1 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT + col1 + - col0 FROM tab1 AS cor0 WHERE + 71 IS NOT NULL
----
-37
-44
-80

query I rowsort
SELECT ALL - 23 * - - col1 + - 54 * + - col0 FROM tab1 AS cor0
----
2432
3833
4475

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT + + 6 * - CAST( - AVG ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5856
SELECT + + 6 * - CAST ( - AVG ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
132

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

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

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 53 * CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 FROM tab2 WHERE - col0 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col2 FROM tab0
----
-174
-194
-30

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

query II rowsort
SELECT + col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + 15 - + 43 AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - - 0 * - - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5865
SELECT * FROM tab0 AS cor0 WHERE NOT - 1 + + col1 >= - CAST( 95 AS SIGNED ) + 43 / - col2
----

skipif mysql # not compatible
query III rowsort label-5865
SELECT * FROM tab0 AS cor0 WHERE NOT - 1 + + col1 >= - CAST ( 95 AS INTEGER ) + 43 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - SUM( ALL + 2 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL AND NOT ( 5 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT - SUM ( ALL + 2 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL AND NOT ( 5 ) IS NOT NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 44 BETWEEN col0 AND + col2 + + col1 + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 * - 61 FROM tab1
----
-5429
-5429
-5429

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 31 <= - - 20 / + col2 - - col1 + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT ALL ( - ( 42 ) ) DIV 42 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL ( - ( 42 ) ) / 42 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 37 * col0 * col1 FROM tab2
----
182336
185925
86802

query I rowsort
SELECT - 68 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT COUNT( 48 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT COUNT ( 48 ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + col0
----

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

query I rowsort
SELECT - ( 56 ) FROM tab0
----
-56
-56
-56

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab1 AS cor0 WHERE NOT + 67 IS NULL
----
3481
4624
9216

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT col0 * + - col1 * - - CAST( - ( + col0 ) AS SIGNED ) AS col0 FROM tab0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-5887
SELECT col0 * + - col1 * - - CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab0
----
158949
18225
9409

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT SUM ( DISTINCT + + col1 ) col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT + ( + + col2 ) / - + CAST( NULL AS SIGNED ) * - col2 * + 36 * + 89 * - col2 + CAST( col1 AS SIGNED ) / + 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT + ( + + col2 ) / - + CAST ( NULL AS INTEGER ) * - col2 * + 36 * + 89 * - col2 + CAST ( col1 AS INTEGER ) / + 88 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL MAX( + col1 ) + - COUNT( ALL + + 3 ) * + - 48 AS col1 FROM tab2
----
221

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL MAX ( + col1 ) + - COUNT ( ALL + + 3 ) * + - 48 AS col1 FROM tab2
----
221

query I rowsort
SELECT + ( - col1 ) + + col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT + 11 FROM tab1 WHERE + col2 IN ( col0, 67, + 54 )
----

query I rowsort
SELECT ALL - col0 + 2 FROM tab1
----
-49
-83
-89

query I rowsort
SELECT DISTINCT - 6 + col1 AS col0 FROM tab1
----
-1
41
8

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

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

skipif mysql # not compatible
query I rowsort label-5896
SELECT - - ( - ( + - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT col2 - + + col0 FROM tab2
----
-17
-23
-24

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

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

query I rowsort
SELECT DISTINCT - + 28 * col0 AS col0 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5900
SELECT DISTINCT 33 + + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * col1 IS NULL
----
38
47
80

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT 33 + + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * col1 IS NULL
----
38
47
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL - SUM( - 45 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - SUM ( - 45 ) FROM tab1
----
135

query I rowsort
SELECT DISTINCT - 85 * - col1 + + + col1 FROM tab2 WHERE col1 >= + + 18
----
4386
5762
6622

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

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + MIN ( col2 ) AS col2 FROM tab0
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT - 53 DIV col2 + + + col2 AS col1 FROM tab0 AS cor0
----
46
5
99

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 53 / col2 + + + col2 AS col1 FROM tab0 AS cor0
----
46
5
99

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

skipif mysql # not compatible
query I rowsort label-5907
SELECT MAX ( DISTINCT - + 59 ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

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

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3

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

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

query I rowsort
SELECT ALL + 72 * - 62 + + col1 FROM tab2 cor0
----
-4387
-4397
-4413

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT ALL + col1 DIV - + col2 + - 47 FROM tab0
----
-47
-48
-49

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + col1 / - + col2 + - 47 FROM tab0
----
-47
-48
-49

query I rowsort
SELECT ALL col2 * + + col1 + col1 + + - col2 AS col0 FROM tab2
----
1201
3117
3895

query I rowsort
SELECT + col0 - 38 FROM tab1 AS cor0
----
13
47
53

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 25 - + col2 NOT IN ( - col0 )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL + 7 - + CAST( NULL AS SIGNED ) * + - 38 * + + MAX( - col0 ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + 7 - + CAST ( NULL AS INTEGER ) * + - 38 * + + MAX ( - col0 ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = - ( 64 ) + - + col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + MIN( DISTINCT + + 23 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT + MIN ( DISTINCT + + 23 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - MIN( + 79 ) * 51 FROM tab1 AS cor0
----
-4029

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - MIN ( + 79 ) * 51 FROM tab1 AS cor0
----
-4029

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 WHERE ( NULL < col0 )
----

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

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

query I rowsort
SELECT 49 AS col2 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT - 98 * - ( + 84 ) FROM tab1
----
8232
8232
8232

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

skipif mysql # not compatible
query I rowsort label-5926
SELECT - MIN ( + 19 ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT - 16 * - col2 AS col2 FROM tab1
----
1088
1536
944

query I rowsort
SELECT + col1 * 34 AS col0 FROM tab2
----
1734
2278
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( ALL + + 58 ) * - ( - 61 ) AS col0 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( ALL + + 58 ) * - ( - 61 ) AS col0 FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - ( - ( + 86 ) ) * COUNT( * ) FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5930
SELECT - ( - ( + 86 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
258

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5931
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col2 AS col1, col1 col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - - 38 * - 84 + - + col0 FROM tab0 AS cor0
----
-3207
-3279
-3289

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT - 25 DIV 62 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - 25 / 62 FROM tab1, tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT + SUM( DISTINCT - + col0 ) * MIN( + 57 ) + + ( COUNT( * ) ) FROM tab0
----
-11340

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + SUM ( DISTINCT - + col0 ) * MIN ( + 57 ) + + ( COUNT ( * ) ) FROM tab0
----
-11340

query I rowsort
SELECT - ( - col1 ) * 40 + + - col2 FROM tab1
----
141
1812
464

query I rowsort
SELECT DISTINCT + 56 / + AVG ( ALL col2 ) * + ( + + 52 ) FROM tab0 AS cor0 WHERE NOT NULL < ( + 67 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5938
SELECT * FROM tab1 AS cor0 WHERE col2 * - col0 NOT IN ( - - CAST( + col2 AS SIGNED ) * - + col2 + col2 + + + CAST( + 81 AS SIGNED ) * + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5938
SELECT * FROM tab1 AS cor0 WHERE col2 * - col0 NOT IN ( - - CAST ( + col2 AS INTEGER ) * - + col2 + col2 + + + CAST ( + 81 AS INTEGER ) * + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + + col2 * + col2 * - + col0 * col2 - col1 AS col0 FROM tab2 AS cor0
----
-14633467
-4096077
-559733

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

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

query I rowsort
SELECT + + col0 - - col1 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL + COUNT( * ) * - 85 - + SUM( ALL col1 ) col0 FROM tab1 AS cor0
----
-321

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5943
SELECT ALL + COUNT ( * ) * - 85 - + SUM ( ALL col1 ) col0 FROM tab1 AS cor0
----
-321

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

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT - COUNT ( * ) / + SUM ( + - col1 ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col0, - 71 FROM tab0
----
15
-71
87
-71
97
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5946
SELECT + CAST( + + AVG ( - + 78 ) AS SIGNED ) + - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5946
SELECT + CAST ( + + AVG ( - + 78 ) AS INTEGER ) + - COUNT ( * ) FROM tab1
----
-81

query II rowsort
SELECT - col0 + - - 83 AS col0, 12 FROM tab2
----
19
12
37
12
8
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT ALL + CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) + - 40 FROM tab0
----
-121

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) + - 40 FROM tab0
----
-121

query I rowsort
SELECT + 69 + - 92 AS col0 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - col0 * - col1 * + 1 - + + 86 + - 50 + col0 FROM tab1 AS cor0
----
374
4232
629

query I rowsort
SELECT + 28 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
28
28
28

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT col0 < + col0 * 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + 3, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + 3, + col1 )
----
0

query I rowsort
SELECT + 73 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT COUNT( col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5956
SELECT COUNT ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL - + COUNT( * ) * + 98 AS col2 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - + COUNT ( * ) * + 98 AS col2 FROM tab1 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT + COUNT( * ), 47 AS col1 FROM tab0
----
3
47

skipif mysql # not compatible
query II rowsort label-5958
SELECT + COUNT ( * ), 47 AS col1 FROM tab0
----
3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 * - + col2 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT - col2 DIV - + 62 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5960
SELECT - col2 / - + 62 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL - 64 * - col2 AS col1 FROM tab2
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT MAX( ALL - - 68 ) * + ( + COUNT( * ) ) + - 78 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-5962
SELECT MAX ( ALL - - 68 ) * + ( + COUNT ( * ) ) + - 78 FROM tab2
----
126

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - col0 > - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT ALL + ( 83 ) DIV + col1 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-5964
SELECT ALL + ( 83 ) / + col1 col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + + 26 + - MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5968
SELECT + + 26 + - MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
41

query I rowsort
SELECT + col1 + + - 6 AS col0 FROM tab1 AS cor0
----
-1
41
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + - ( + - 40 ), col2 + - - col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT - + CAST( 41 AS SIGNED ) * col2 * + - col1 FROM tab1 cor0
----
12095
131036
55104

skipif mysql # not compatible
query I rowsort label-5972
SELECT - + CAST ( 41 AS INTEGER ) * col2 * + - col1 FROM tab1 cor0
----
12095
131036
55104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NULL < - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL < - + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - 89 + + - MIN( ALL - col0 ) * - 22 AS col0 FROM tab1
----
-2091

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - 89 + + - MIN ( ALL - col0 ) * - 22 AS col0 FROM tab1
----
-2091

query I rowsort
SELECT col2 - + - 43 AS col2 FROM tab1
----
102
111
139

query I rowsort
SELECT DISTINCT col2 * + - 93 FROM tab2
----
-2139
-3720
-5394

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab0 cor0
----
-10

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5982
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT ( 74 ) FROM tab1
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5985
SELECT - col0, 37 * CAST( NULL AS DECIMAL ) - col2 * - 97 + 8 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5985
SELECT - col0, 37 * CAST ( NULL AS REAL ) - col2 * - 97 + 8 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT + - 90 AS col2 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - 12 * + 55 FROM tab1 AS cor0
----
-660

onlyif mysql # DIV for integer division: 
query II rowsort label-5988
SELECT + 5 * 73 DIV 26, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
59
14
68
14
96

skipif mysql # not compatible
query II rowsort label-5988
SELECT + 5 * 73 / 26, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
59
14
68
14
96

query I rowsort
SELECT ALL 68 AS col1 FROM tab0 cor0
----
68
68
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL + COUNT( * ) * - - 99 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + COUNT ( * ) * - - 99 FROM tab2
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5993
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 BETWEEN NULL AND 81 * - CAST( NULL AS SIGNED ) / + + col1
----

skipif mysql # not compatible
query III rowsort label-5993
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 BETWEEN NULL AND 81 * - CAST ( NULL AS INTEGER ) / + + col1
----

query I rowsort
SELECT col0 + + 13 AS col1 FROM tab2
----
59
77
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 76 AND NULL
----

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

query II rowsort
SELECT col1, + col1 * + - 59 FROM tab2
----
51
-3009
67
-3953
77
-4543

query I rowsort
SELECT DISTINCT col2 + + 44 * + ( - 56 ) FROM tab0
----
-2365
-2417
-2454

query I rowsort
SELECT + 56 * 22 AS col2 FROM tab0
----
1232
1232
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL + MAX( DISTINCT - 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + MAX ( DISTINCT - 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

query I rowsort
SELECT ALL + col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6002
SELECT DISTINCT COUNT( * ) DIV - 22 + 55 AS col2, COUNT( * ) FROM tab0 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-6002
SELECT DISTINCT COUNT ( * ) / - 22 + 55 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL - + 6 - 77 * - COUNT( * ) + COUNT( * ) * + ( + 74 ) FROM tab2 AS cor0
----
447

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - + 6 - 77 * - COUNT ( * ) + COUNT ( * ) * + ( + 74 ) FROM tab2 AS cor0
----
447

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

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

query I rowsort
SELECT DISTINCT - 45 - - 58 AS col1 FROM tab1 AS cor0
----
13

query II rowsort
SELECT - col2 + - - 61 * 73 * + col1, + col1 AS col1 FROM tab2
----
227080
51
298293
67
342841
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * ( + 57 ) + - - col0 ) >= ( NULL )
----

query I rowsort
SELECT ( - - col1 ) + - - col0 * - 22 AS col2 FROM tab2
----
-1331
-1583
-961

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + MIN ( - - col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 9, - col2 )
----

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE ( NOT - col0 / col2 * + col1 IN ( col0 ) ) OR NOT NULL > col2
----
1
21
81

query I rowsort
SELECT DISTINCT + + col2 * + 11 AS col0 FROM tab1 AS cor0
----
1056
649
748

query II rowsort
SELECT DISTINCT + col1 * - - col1, + col0 + - + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2601
-5
4489
8
5929
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + ( COUNT( * ) ) + + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 89 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT + ( COUNT ( * ) ) + + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 89 <= NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT + COUNT( * ) * - - ( - COUNT( * ) ) + + + 71 * - - COUNT( * ) + MIN( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6017
SELECT + COUNT ( * ) * - - ( - COUNT ( * ) ) + + + 71 * - - COUNT ( * ) + MIN ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL > col0
----
NULL

query I rowsort
SELECT col1 + + col1 + + col1 FROM tab1 AS cor0
----
141
15
42

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

query I rowsort
SELECT DISTINCT 91 * - + ( + - 78 ) * + 68 + - 67 + - + ( + col2 ) AS col0 FROM tab0
----
482498
482550
482587

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6022
SELECT ALL - col1 AS col1, ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6023
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col1 / col1 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6023
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col1 / col1 + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT + 2 + COUNT( * ) * + 66 * + - MAX( + col2 ) FROM tab2
----
-11482

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + 2 + COUNT ( * ) * + 66 * + - MAX ( + col2 ) FROM tab2
----
-11482

query II rowsort
SELECT ALL + 68 + - col0 AS col0, - col2 FROM tab1
----
-17
-59
-23
-68
17
-96

query II rowsort
SELECT 2 * + - 39, + ( - col2 ) * + 6 AS col2 FROM tab0 AS cor0
----
-78
-282
-78
-594
-78
-60

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

query II rowsort
SELECT - - 83, col1 FROM tab0 AS cor0
----
83
1
83
21
83
81

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

query I rowsort
SELECT ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6031
SELECT + COUNT( * ) AS col2, - AVG ( + + 61 ) * COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6031
SELECT + COUNT ( * ) AS col2, - AVG ( + + 61 ) * COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 cor0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL ( + + ( 28 ) ) * + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL ( + + ( 28 ) ) * + COUNT ( * ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + 12 * - - COUNT( * ) FROM tab2, tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 12 * - - COUNT ( * ) FROM tab2, tab2 cor0
----
108

query I rowsort
SELECT - 59 + 99 FROM tab2
----
40
40
40

query II rowsort
SELECT + col0 + + + 59, + col0 + - col2 * - - col1 + + col2 AS col0 FROM tab0
----
146
-113
156
97
74
-3745

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT + MAX( DISTINCT col0 ) - + - 16 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + MAX ( DISTINCT col0 ) - + - 16 FROM tab0 AS cor0
----
113

query I rowsort
SELECT + - 86 + + col2 + - 91 + 92 AS col1 FROM tab1 cor0
----
-17
-26
11

query I rowsort
SELECT DISTINCT - - col0 + - 8 + col1 + - col2 FROM tab1 cor0
----
-39
23
62

query I rowsort
SELECT DISTINCT - col2 - - 47 + col0 - + ( + - col1 ) FROM tab0 AS cor0
----
145
46
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 <> ( col0 ) * - col2 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6041
SELECT ALL + MIN( DISTINCT + 34 ) DIV + 29 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + MIN ( DISTINCT + 34 ) / + 29 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 95 * + col0 AS col1 FROM tab2
----
-4370
-6080
-7125

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - - 27 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT + SUM( ALL + col2 ) DIV 62 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6044
SELECT + SUM ( ALL + col2 ) / 62 FROM tab0
----
2

query I rowsort
SELECT - 5 * col2 AS col1 FROM tab2
----
-115
-200
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT - 23 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT - 23 / - col2 AS col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT - col2 * 12 FROM tab2
----
-276
-480
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT - 64 DIV ( + + col2 ) FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT - 64 / ( + + col2 ) FROM tab0
----
-1
-6
0

query I rowsort
SELECT - 77 * 96 FROM tab2
----
-7392
-7392
-7392

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

query I rowsort
SELECT + + col1 * - 5 AS col0 FROM tab2 AS cor0
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-6053
SELECT ( + COUNT( * ) ) AS col1, + COUNT( * ) * MIN( ALL - col2 ) FROM tab0 cor0
----
3
-297

skipif mysql # not compatible
query II rowsort label-6053
SELECT ( + COUNT ( * ) ) AS col1, + COUNT ( * ) * MIN ( ALL - col2 ) FROM tab0 cor0
----
3
-297

query I rowsort
SELECT + - col2 FROM tab1 cor0 WHERE col0 <= + col1 * - + ( 56 )
----

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

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

query I rowsort
SELECT ALL - col1 + + 74 + + ( - col1 ) FROM tab1
----
-20
46
64

query I rowsort
SELECT DISTINCT + 29 + col0 FROM tab1
----
114
120
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col2 * - 53 )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 12 <= ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1 + - 42, + col2 FROM tab2
----
-109
58
-119
40
-93
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT - 62 + - col1 + col2 + - - 39 DIV + - col0 FROM tab1
----
-41
-8
20

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - 62 + - col1 + col2 + - - 39 / + - col0 FROM tab1
----
-41
-8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL - 17 * - COUNT( * ) + + + 72 + - COUNT( * ) col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT ALL - 17 * - COUNT ( * ) + + + 72 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
120

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

query I rowsort
SELECT ALL + + 63 * + col1 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT - + SUM( ALL col0 ) * - 13 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
2587

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT - + SUM ( ALL col0 ) * - 13 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
2587

query I rowsort
SELECT - 54 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6069
SELECT + MIN( ALL col2 ) * - CAST( NULL AS SIGNED ) * + + 7, - ( 56 ) AS col1 FROM tab1 AS cor0
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-6069
SELECT + MIN ( ALL col2 ) * - CAST ( NULL AS INTEGER ) * + + 7, - ( 56 ) AS col1 FROM tab1 AS cor0
----
NULL
-56

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

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

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

skipif mysql # not compatible
query I rowsort label-6071
SELECT MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - COUNT( DISTINCT - 30 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6072
SELECT - COUNT ( DISTINCT - 30 ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 62 * col1 FROM tab2 AS cor0
----
3162
4154
4774

query I rowsort
SELECT DISTINCT - 35 * + ( - col2 ) AS col0 FROM tab2
----
1400
2030
805

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6076
SELECT DISTINCT - COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( + ( - 32 ) ) * + 0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + ( + 89 ) ) FROM tab0
----
89

query I rowsort
SELECT 36 * - + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
176256
180540
222768

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1139
1173
1848

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col2 NOT BETWEEN + + col0 AND col0 * col1 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT ( - + MIN( + 43 ) ) * - 87 DIV + - COUNT( * ) + - + 93 AS col1 FROM tab2
----
-1340

skipif mysql # not compatible
query I rowsort label-6083
SELECT ( - + MIN ( + 43 ) ) * - 87 / + - COUNT ( * ) + - + 93 AS col1 FROM tab2
----
-1340

query I rowsort
SELECT DISTINCT - col0 * - 39 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT - + col2 + - 77 FROM tab2 AS cor0
----
-100
-117
-135

query I rowsort
SELECT col1 + 84 FROM tab2 AS cor0
----
135
151
161

query II rowsort
SELECT ALL - 37 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-37
10
-37
47
-37
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 94 >= + 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col1 + - col0 col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT ALL - 63 DIV - + 20 + COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6090
SELECT ALL - 63 / - + 20 + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

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

query I rowsort
SELECT DISTINCT + col1 * + - 89 + + 45 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6094
SELECT + 13 / - + CAST( NULL AS SIGNED ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6094
SELECT + 13 / - + CAST ( NULL AS INTEGER ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT + 73 + ( - col2 ) FROM tab0
----
-26
26
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL - col0 DIV - - col1 * + + col2 DIV col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - col0 / - - col1 * + + col2 / col2 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - 30 col2, - col2 + - col0 FROM tab1 AS cor0
----
35
-144
44
-147
77
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6098
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) < 69 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6098
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) < 69 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col2 * 84 + + 19 * + + ( - 94 ), col2 AS col1 FROM tab0 AS cor0
----
-10102
99
-2626
10
-5734
47

query I rowsort
SELECT DISTINCT - col1 * + 9 AS col1 FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT DISTINCT col1 * - 64 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT + + ( - col0 ) * col0 * - col1 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6104
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6104
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - + MAX( ALL + col1 ) AS col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT - + MAX ( ALL + col1 ) AS col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2 * col0 AS col0, col0 AS col1 FROM tab0
----
705
15
870
87
9603
97

query I rowsort
SELECT + col1 * + + col1 * + - 46 FROM tab1
----
-101614
-1150
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - MIN( col2 ) * - 98 FROM tab0
----
980

skipif mysql # not compatible
query I rowsort label-6108
SELECT - MIN ( col2 ) * - 98 FROM tab0
----
980

query I rowsort
SELECT ALL 66 * + - col0 AS col0 FROM tab0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT 2 * MAX( ALL + col0 ) FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-6110
SELECT 2 * MAX ( ALL + col0 ) FROM tab0
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT 94 DIV - 50 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6111
SELECT 94 / - 50 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT - col2 DIV + + ( + - col2 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6112
SELECT - col2 / + + ( + - col2 ) AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + col2 ) + + 48 * + col2 AS col1 FROM tab0
----
2303
4851
490

query II rowsort
SELECT col2 * + 95, col1 AS col2 FROM tab1
----
5605
5
6460
47
9120
14

query I rowsort
SELECT col1 * + 63 FROM tab1
----
2961
315
882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT DISTINCT - 77 DIV - COUNT( * ) + 69 AS col0 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - 77 / - COUNT ( * ) + 69 AS col0 FROM tab0 cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / + col0 + - 17 = NULL
----

query I rowsort
SELECT ALL - - col2 * 69 AS col2 FROM tab2 AS cor0
----
1587
2760
4002

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 * + - col0 NOT BETWEEN - - col2 + + + col0 AND + - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= - - 84 + - col1
----
51
14
96
91
47
68

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

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

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

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

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

query I rowsort
SELECT + col0 + + 1 AS col2 FROM tab0
----
16
88
98

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

query I rowsort
SELECT + 11 * - 61 * + col0 + + col1 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-58356
-65086
-9984

query II rowsort
SELECT DISTINCT col1, 60 FROM tab1
----
14
60
47
60
5
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + 67 + - + col1 * + - 44 col2 FROM tab0
----
1088
307
3693

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 8 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT DISTINCT col2 - + 4 * CAST( col2 AS SIGNED ), + 7 * 4 / + ( + 91 ) AS col2 FROM tab2 WHERE + - 81 + - 52 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT col2 - + 4 * CAST ( col2 AS INTEGER ), + 7 * 4 / + ( + 91 ) AS col2 FROM tab2 WHERE + - 81 + - 52 IS NULL
----

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

query II rowsort
SELECT + 80 / + 86, 87 AS col1 FROM tab1 AS cor0 WHERE NOT 98 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 63 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-2961
-315
-882

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 10 AND - - col1
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - 93 * ( - + SUM( + col0 ) ) AS col2 FROM tab1 AS cor0
----
21111

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 93 * ( - + SUM ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
21111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT - col0 * + - ( - + CAST( NULL AS SIGNED ) ) / 7 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT - col0 * + - ( - + CAST ( NULL AS INTEGER ) ) / 7 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 2 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT + ( - 63 ) AS col1 FROM tab0
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-6142
SELECT DISTINCT + col1 * 69 DIV col2 col2, col1 AS col2 FROM tab2
----
132
77
153
51
79
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6142
SELECT DISTINCT + col1 * 69 / col2 col2, col1 AS col2 FROM tab2
----
132
77
153
51
79
67

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - - 48 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL ( - - ( + + ( COUNT ( * ) ) ) ) FROM tab2
----
3

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

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

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

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

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

query I rowsort
SELECT - - col1 * + + col0 + col2 AS col0 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6149
SELECT + 11 DIV - SUM( DISTINCT + - ( + col1 ) ) + 74 * + - ( 13 ) FROM tab0 AS cor0
----
-962

skipif mysql # not compatible
query I rowsort label-6149
SELECT + 11 / - SUM ( DISTINCT + - ( + col1 ) ) + 74 * + - ( 13 ) FROM tab0 AS cor0
----
-962

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

query I rowsort
SELECT DISTINCT 5 - - 97 FROM tab0 AS cor0
----
102

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

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

query I rowsort
SELECT DISTINCT col2 + 24 * + + 8 AS col0 FROM tab2
----
215
232
250

query I rowsort
SELECT ALL + col0 * 26 AS col0 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT DISTINCT 14 * - - col2 FROM tab2
----
322
560
812

query I rowsort
SELECT DISTINCT col0 + - - 68 * - - ( + - col0 ) AS col0 FROM tab0
----
-1005
-5829
-6499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6157
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - 41, - col1 * - ( - - 20 ) + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6157
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - 41, - col1 * - ( - - 20 ) + ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ALL + col2 * - col0 + + - col2 AS col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT + col1 * - 66 - + col2 * - col0 FROM tab0
----
-4641
-516
9537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT + - col0 * - 12 * + - col0 * + + CAST( - + col0 AS SIGNED ) - col0 FROM tab1 AS cor0
----
1591761
7369415
9042761

skipif mysql # not compatible
query I rowsort label-6160
SELECT + - col0 * - 12 * + - col0 * + + CAST ( - + col0 AS INTEGER ) - col0 FROM tab1 AS cor0
----
1591761
7369415
9042761

query I rowsort
SELECT DISTINCT col2 - + col2 FROM tab2 cor0 WHERE NULL < - 64
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 90 * + col2 / - + col1 * - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 * - - 5 NOT BETWEEN NULL AND 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL - MAX( DISTINCT + 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - MAX ( DISTINCT + 43 ) FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT COUNT( * ) * + MIN( - ( + + col2 ) ) * COUNT( * ) AS col1 FROM tab1 cor0
----
-864

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT COUNT ( * ) * + MIN ( - ( + + col2 ) ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
-864

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

query I rowsort
SELECT - col0 + + 68 FROM tab1 WHERE NOT NULL NOT IN ( + + col2, + 3 * + + col1, - col1, + col0, - ( + - col0 ), + col1, - 7, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT - col2 DIV - - 57 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT - col2 / - - 57 FROM tab0
----
-1
0
0

query I rowsort
SELECT 42 * - - col2 FROM tab2 cor0
----
1680
2436
966

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT - - ( + 96 ) DIV - col2 col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6171
SELECT - - ( + 96 ) / - col2 col2 FROM tab0 AS cor0
----
-2
-9
0

query II rowsort
SELECT - col1 + - + ( - - col1 ) AS col0, col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10
59
-28
96
-94
68

query I rowsort
SELECT ALL col0 * + col1 + - - 22 FROM tab2 AS cor0
----
2368
4950
5047

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL < col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT col1 + + 62 * 35 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( + 57 AS SIGNED ) <= col0
----
2221

skipif mysql # not compatible
query I rowsort label-6176
SELECT col1 + + 62 * 35 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( + 57 AS INTEGER ) <= col0
----
2221

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6177
SELECT DISTINCT 71 AS col2, CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
71
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6178
SELECT ALL - - col2 AS col2, 96 FROM tab2 AS cor0 WHERE ( NOT col1 BETWEEN + CAST( col0 AS SIGNED ) AND + - col0 )
----
23
96
40
96
58
96

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL - - col2 AS col2, 96 FROM tab2 AS cor0 WHERE ( NOT col1 BETWEEN + CAST ( col0 AS INTEGER ) AND + - col0 )
----
23
96
40
96
58
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6179
SELECT CAST( - col2 AS SIGNED ) AS col2, ( - col1 ) AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-6179
SELECT CAST ( - col2 AS INTEGER ) AS col2, ( - col1 ) AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + - 6 + + 33 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + - 6 + + 33 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT - col0 + col0 + - CAST( + 81 AS SIGNED ) * - 36 FROM tab0
----
2916

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT - col0 + col0 + - CAST ( + 81 AS INTEGER ) * - 36 FROM tab0
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - MAX( + - 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-6182
SELECT - MAX ( + - 51 ) FROM tab0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT DISTINCT col0 DIV ( col0 ) * - 73 + - 28 col2 FROM tab2
----
-101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6183
SELECT DISTINCT col0 / ( col0 ) * - 73 + - 28 col2 FROM tab2
----
-101

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

query I rowsort
SELECT DISTINCT + + col1 * - col1 + - col0 + col0 + - 83 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-108
-2292
-279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6186
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) < col0 + + + col2 * 82 * - 34
----

skipif mysql # not compatible
query III rowsort label-6186
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < col0 + + + col2 * 82 * - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + - col0 * - col0 col0 FROM tab0 cor0
----
262
7606
9446

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT 33 + + + 22 DIV + 29 AS col0 FROM tab1 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6189
SELECT 33 + + + 22 / + 29 AS col0 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL 98 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 91 / 36 / - 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL + CAST( NULL AS SIGNED ) - - 24 + MIN( - + 29 ) * + 33 * COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + CAST ( NULL AS INTEGER ) - - 24 + MIN ( - + 29 ) * + 33 * COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + - 86 AS col2 FROM tab1 AS cor0
----
-1204
-4042
-430

query I rowsort
SELECT - - ( 59 ) + - + col0 FROM tab2 AS cor0
----
-16
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL SUM( DISTINCT 45 ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL SUM ( DISTINCT 45 ) AS col2 FROM tab1
----
45

query I rowsort
SELECT DISTINCT 78 * - col2 FROM tab1
----
-4602
-5304
-7488

query I rowsort
SELECT 77 * - col1 + - - col0 FROM tab0
----
-1530
-6222
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT DISTINCT 60 * 28 + 48 + - COUNT( * ) FROM tab2
----
1725

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT 60 * 28 + 48 + - COUNT ( * ) FROM tab2
----
1725

query I rowsort
SELECT DISTINCT col2 * - 20 AS col2 FROM tab2
----
-1160
-460
-800

query II rowsort
SELECT ALL + col0 + + + col0 AS col2, 46 * - col1 + - 34 FROM tab1
----
102
-678
170
-264
182
-2196

query I rowsort
SELECT ALL - col1 * - 86 + - col2 FROM tab1
----
1108
371
3974

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + col1
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 31 < - col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + + + 48 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + + + 48 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 36 * - - col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

query II rowsort
SELECT ALL + - col1 AS col2, - col0 * col2 + + col0 FROM tab2 AS cor0
----
-51
-1012
-67
-4275
-77
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT + - COUNT( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT + - COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT - 27 DIV 21 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - 27 / 21 FROM tab2 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL - 71 * + COUNT( * ) + - 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-641

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - 71 * + COUNT ( * ) + - 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT + COUNT( * ) * + MIN( + 70 ) FROM tab2 AS cor0 WHERE + col2 / - + col0 * - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT + COUNT ( * ) * + MIN ( + 70 ) FROM tab2 AS cor0 WHERE + col2 / - + col0 * - - col0 IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL col1 - - col0 + + col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE + 75 + + col0 IS NOT NULL
----
4961
5105
6326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT CAST( NULL AS SIGNED ) - - 98 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1 * 1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6216
SELECT CAST ( NULL AS INTEGER ) - - 98 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1 * 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL - 63 * + ( COUNT( * ) ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL - 63 * + ( COUNT ( * ) ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6218
SELECT ALL ( - CAST( - col0 AS SIGNED ) ) col2, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6218
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) col2, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

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

query I rowsort
SELECT - 82 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT DISTINCT + + col1 DIV 25 * col2 * + + 43 * - - col1 + + - 50 AS col1 FROM tab1 AS cor0
----
-50
137378

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT + + col1 / 25 * col2 * + + 43 * - - col1 + + - 50 AS col1 FROM tab1 AS cor0
----
-50
137378

query I rowsort
SELECT DISTINCT + - col1 * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6224
SELECT - MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - + ( + COUNT( * ) ) * + 99 * COUNT( * ) + 36 AS col1 FROM tab0 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-6225
SELECT - + ( + COUNT ( * ) ) * + 99 * COUNT ( * ) + 36 AS col1 FROM tab0 AS cor0
----
-855

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT + + col2 DIV - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT + + col2 / - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 - ( col2 ) FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL COUNT ( * ) + CAST ( - 74 AS INTEGER ) FROM tab0
----
-71

query I rowsort
SELECT ALL ( col1 ) + col2 * - 65 FROM tab1
----
-3830
-4373
-6226

query I rowsort
SELECT + 36 * 91 FROM tab2
----
3276
3276
3276

query I rowsort
SELECT - col2 * 66 AS col0 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT - 80 * - 98 FROM tab2
----
7840
7840
7840

query I rowsort
SELECT ALL 25 * + col2 AS col1 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT ALL - col2 + + 51 FROM tab1
----
-17
-45
-8

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

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

query I rowsort
SELECT 87 * 70 FROM tab1
----
6090
6090
6090

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT MIN( DISTINCT - col1 ) - COUNT( * ) * + 15 FROM tab2
----
-122

skipif mysql # not compatible
query I rowsort label-6239
SELECT MIN ( DISTINCT - col1 ) - COUNT ( * ) * + 15 FROM tab2
----
-122

query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab2 WHERE NOT ( + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col1 + 88 < NULL
----

query I rowsort
SELECT col0 - col2 * 1 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT ALL col2 DIV 27 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL col2 / 27 FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6244
SELECT ALL COUNT( * ) DIV - 39 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) / - 39 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6245
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6245
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 - CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 IN ( + 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - ( col2 ) DIV col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6248
SELECT - ( col2 ) / col2 AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - 95 + + 97
----

query I rowsort
SELECT DISTINCT 63 + 58 FROM tab1
----
121

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

query I rowsort
SELECT ALL + ( + 71 ) * + col1 AS col2 FROM tab0 WHERE 51 IS NOT NULL
----
1491
5751
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - 42 + + SUM( 29 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6254
SELECT - 42 + + SUM ( 29 ) AS col0 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT 54 DIV + col2 + - 6 * col1 AS col0 FROM tab0
----
-121
-485
-6

skipif mysql # not compatible
query I rowsort label-6255
SELECT 54 / + col2 + - 6 * col1 AS col0 FROM tab0
----
-121
-485
-6

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

query I rowsort
SELECT ALL 56 FROM tab2 AS cor0 WHERE + 34 > + col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL 42 * CAST( + ( - COUNT( * ) ) / ( 31 ) AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
0

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL 42 * CAST ( + ( - COUNT ( * ) ) / ( 31 ) AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT DISTINCT - - ( - col1 ) DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - - ( - col1 ) / col0 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( + col1 * 81 )
----

query I rowsort
SELECT col2 * ( 48 ) FROM tab2 AS cor0
----
1104
1920
2784

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 89 > - col2
----

query I rowsort
SELECT - col2 * ( + col1 ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 86 )
----

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

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( 4 + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT - COUNT( * ) DIV + 11 FROM tab1 AS cor0 WHERE NOT ( ( - 37 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT - COUNT ( * ) / + 11 FROM tab1 AS cor0 WHERE NOT ( ( - 37 ) ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT 60 DIV 35 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT 60 / 35 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 76 * + col1 AS col2 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE + col0 + 51 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * + + col1 + + col0 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL - 70 * + 38 + COUNT( * ) FROM tab2
----
-2657

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - 70 * + 38 + COUNT ( * ) FROM tab2
----
-2657

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT - ( ( col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT MAX( ( col0 ) ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT MAX ( ( col0 ) ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
75

query I rowsort
SELECT col1 * + + 19 FROM tab1
----
266
893
95

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

skipif mysql # not compatible
query I rowsort label-6279
SELECT + COUNT ( * ) / - - 31 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 + - + 69 FROM tab0
----
1
30
21
-59
81
-22

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

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

query I rowsort
SELECT ALL 72 - + 80 FROM tab1
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT DISTINCT - - CAST( - 23 AS SIGNED ) * - + col0 + 80 AS col2 FROM tab2 AS cor0
----
1138
1552
1805

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - - CAST ( - 23 AS INTEGER ) * - + col0 + 80 AS col2 FROM tab2 AS cor0
----
1138
1552
1805

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT SUM( ALL - 98 ) AS col2 FROM tab0 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT SUM ( ALL - 98 ) AS col2 FROM tab0 cor0
----
-294

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - COUNT( * ) * - 52 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-6289
SELECT - COUNT ( * ) * - 52 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - 17 * + - MIN( ALL + + col2 ) FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 17 * + - MIN ( ALL + + col2 ) FROM tab0
----
170

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT ALL col2 * - col2 + - col1 DIV 38 AS col1 FROM tab1 cor0 WHERE ( ( 59 - + col1 ) IS NOT NULL )
----
-3481
-4625
-9216

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL col2 * - col2 + - col1 / 38 AS col1 FROM tab1 cor0 WHERE ( ( 59 - + col1 ) IS NOT NULL )
----
-3481
-4625
-9216

query I rowsort
SELECT + - 65 AS col2 FROM tab0 AS cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - 39 BETWEEN ( - 14 / + col2 ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6295
SELECT ALL + COUNT ( * ) * 2 / COUNT ( * ) col0 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 45 )
----

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 45 )
----

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

query II rowsort
SELECT col0 AS col1, + 8 * ( + col1 ) FROM tab0
----
15
648
87
168
97
8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col0 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col2 * 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT ALL col0 * - col2 + + ( - - ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT 22 DIV - - 59 * - + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT 22 / - - 59 * - + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT ALL - COUNT( * ) DIV - 68 AS col2 FROM tab2 AS cor0 WHERE NOT 12 IN ( - col2, - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - COUNT ( * ) / - 68 AS col2 FROM tab2 AS cor0 WHERE NOT 12 IN ( - col2, - 68 )
----
0

query I rowsort
SELECT - - 97 + + 84 AS col2 FROM tab2 AS cor0
----
181
181
181

query I rowsort
SELECT col1 + 54 + + col2 AS col2 FROM tab2 AS cor0
----
128
171
179

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

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

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

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

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

query I rowsort
SELECT DISTINCT 34 * - + 33 AS col0 FROM tab0, tab2 cor0
----
-1122

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

query I rowsort
SELECT DISTINCT + col0 * + col2 * - + 88 + - col1 * col1 * col1 AS col2 FROM tab0
----
-593481
-845065
-85821

query I rowsort
SELECT + col0 * ( 2 ) AS col0 FROM tab2
----
128
150
92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6314
SELECT DISTINCT + - col0 - + CAST ( NULL AS INTEGER ) + + - col2 + 12 / + - CAST ( NULL AS INTEGER ) + - - col0 + col2 * col2 col1 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - - col2 * + 33 - - col1 FROM tab0 AS cor0
----
1632
3268
351

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT COUNT( * ) * - 68 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-204

skipif mysql # not compatible
query I rowsort label-6317
SELECT COUNT ( * ) * - 68 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT DISTINCT + 79 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
79
-9

skipif mysql # not compatible
query II rowsort label-6318
SELECT DISTINCT + 79 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
79
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - col0 col2, + ( + + col2 ) - - col2 FROM tab1
----
102
192
170
118
182
136

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT + col0 DIV - 36 - col1 FROM tab2 AS cor0
----
-52
-69
-78

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + col0 / - 36 - col1 FROM tab2 AS cor0
----
-52
-69
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT DISTINCT + MIN( ALL - 87 ) DIV + 70 - + MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + MIN ( ALL - 87 ) / + 70 - + MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT - 33 DIV + - col1 FROM tab1 cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT - 33 / + - col1 FROM tab1 cor0
----
0
2
6

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

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

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

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + MIN ( + 90 ) FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6326
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) * - - CAST( NULL AS SIGNED ) + + col1 + col1 + col2 NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-6326
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) * - - CAST ( NULL AS INTEGER ) + + col1 + col1 + col2 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6328
SELECT - 1 DIV + CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 1 / + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6329
SELECT ALL 73 + - ( 80 ) * - col0 FROM tab0 WHERE NULL >= col1 OR ( + 81 BETWEEN ( - col2 + 72 ) AND + col1 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL 73 + - ( 80 ) * - col0 FROM tab0 WHERE NULL >= col1 OR ( + 81 BETWEEN ( - col2 + 72 ) AND + col1 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + col1 * 70 AS col2 FROM tab1
----
3290
350
980

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT MAX( - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT MAX ( - col1 ) AS col0 FROM tab0
----
-1

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

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

query I rowsort
SELECT 77 * col0 AS col2 FROM tab1
----
3927
6545
7007

onlyif mysql # aggregate syntax: 
query II rowsort label-6334
SELECT 62, - SUM( ALL 3 ) AS col0 FROM tab0
----
62
-9

skipif mysql # not compatible
query II rowsort label-6334
SELECT 62, - SUM ( ALL 3 ) AS col0 FROM tab0
----
62
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT - 84 * 56 + + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4705
-4705
-4705

skipif mysql # not compatible
query I rowsort label-6336
SELECT - 84 * 56 + + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-4705
-4705
-4705

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

skipif mysql # not compatible
query II rowsort label-6337
SELECT DISTINCT + + COUNT ( * ) AS col1, 32 FROM tab1 AS cor0
----
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT ALL - - CAST( - 76 AS SIGNED ) FROM tab0 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - - CAST ( - 76 AS INTEGER ) FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - - col1 * - - col0 + 34 * - + col1 AS col0 FROM tab2 cor0
----
2310
2747
612

query II rowsort
SELECT DISTINCT + col1 + - + 75 AS col2, + 50 FROM tab0
----
-54
50
-74
50
6
50

query I rowsort
SELECT + + 7 + + - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - 25 * + SUM( col0 ) col2 FROM tab1 cor0
----
-5675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6342
SELECT - 25 * + SUM ( col0 ) col2 FROM tab1 cor0
----
-5675

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT - - 64 DIV - + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6344
SELECT - - 64 / - + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-24

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + - COUNT( * ) * - ( + - 13 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + - COUNT ( * ) * - ( + - 13 ) FROM tab1 AS cor0
----
-39

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

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - + 45 * - - COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + MAX( - - col2 ) + + + COUNT( * ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + MAX ( - - col2 ) + + + COUNT ( * ) AS col1 FROM tab0
----
102

query I rowsort
SELECT - 26 + col1 AS col2 FROM tab0 WHERE ( + col0 ) <= + 20
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ( - 14 ) + COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-6353
SELECT ( - 14 ) + COUNT ( * ) AS col2 FROM tab2
----
-11

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

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

query I rowsort
SELECT 58 + 26 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL col0 * - 27 + - 32 FROM tab1
----
-1409
-2327
-2489

query I rowsort
SELECT col2 * - + col1 + + + col0 FROM tab1
----
-1293
-210
-3105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL + 64 + MIN( ALL + + col0 ) FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL + 64 + MIN ( ALL + + col0 ) FROM tab1
----
115

query I rowsort
SELECT ALL 92 + - col1 AS col1 FROM tab0
----
11
71
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6361
SELECT ALL + col0 - + col1 DIV - col1, - 58 col0 FROM tab2
----
47
-58
65
-58
76
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6361
SELECT ALL + col0 - + col1 / - col1, - 58 col0 FROM tab2
----
47
-58
65
-58
76
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT col0 DIV - 65 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT col0 / - 65 AS col1 FROM tab0
----
-1
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6366
SELECT + - MAX ( - 10 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL - col1, col1 * - 16 AS col0 FROM tab2 AS cor0
----
-51
-816
-67
-1072
-77
-1232

query II rowsort
SELECT DISTINCT col2, col1 * col2 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # DIV for integer division: 
query II rowsort label-6369
SELECT - 65 AS col0, + ( 23 ) DIV - + col1 AS col2 FROM tab0 AS cor0
----
-65
-1
-65
-23
-65
0

skipif mysql # not compatible
query II rowsort label-6369
SELECT - 65 AS col0, + ( 23 ) / - + col1 AS col2 FROM tab0 AS cor0
----
-65
-1
-65
-23
-65
0

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

skipif mysql # not compatible
query I rowsort label-6370
SELECT - 55 * + MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-550

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

query II rowsort
SELECT DISTINCT 64 AS col0, + col2 + col2 * + col2 FROM tab2 AS cor0
----
64
1640
64
3422
64
552

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

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

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

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0, tab0 AS cor0
----
-83

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + col1 * + col0
----

query I rowsort
SELECT - 52 + + 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT col0 * - + CAST( NULL AS SIGNED ) + 95 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT col0 * - + CAST ( NULL AS INTEGER ) + 95 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col2 + + col0 - ( + 24 ) AS col0 FROM tab2
----
-1
-7
0

query II rowsort
SELECT - + col2 * - col0 + + - col1, + col0 FROM tab0 AS cor0
----
624
15
849
87
9602
97

query I rowsort
SELECT ALL + ( + - 42 ) AS col0 FROM tab2 AS cor0
----
-42
-42
-42

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

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

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

query I rowsort
SELECT + - col2 * + - ( - col2 ) + - col1 AS col1 FROM tab1 cor0
----
-3486
-4671
-9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * 60 + - 83 + + col0 col0 FROM tab1 AS cor0
----
17702
191768
80608

query I rowsort
SELECT DISTINCT 80 * + - col1 FROM tab0 AS cor0
----
-1680
-6480
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT + - COUNT( * ) + - + MIN( DISTINCT + + 62 ) * - 99 AS col2 FROM tab0 AS cor0
----
6135

skipif mysql # not compatible
query I rowsort label-6388
SELECT + - COUNT ( * ) + - + MIN ( DISTINCT + + 62 ) * - 99 AS col2 FROM tab0 AS cor0
----
6135

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL + SUM( DISTINCT - + 69 ) * COUNT( * ) + - 97 col2 FROM tab2 cor0
----
-304

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6389
SELECT ALL + SUM ( DISTINCT - + 69 ) * COUNT ( * ) + - 97 col2 FROM tab2 cor0
----
-304

query I rowsort
SELECT - 55 + + 85 * - col0 AS col2 FROM tab0 AS cor0
----
-1330
-7450
-8300

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT COUNT( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT + 98 * - col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT COUNT ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT + 98 * - col2 IS NOT NULL )
----
3

query I rowsort
SELECT DISTINCT col1 * - col0 + - ( - 49 ) FROM tab1
----
-376
-4228
-665

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

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT SUM( ALL - 22 ) * - 44 FROM tab1
----
2904

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT SUM ( ALL - 22 ) * - 44 FROM tab1
----
2904

query I rowsort
SELECT DISTINCT - col1 + - 5 AS col1 FROM tab2
----
-56
-72
-82

query I rowsort
SELECT ALL col2 + + ( + col0 ) + + 67 + + 34 AS col2 FROM tab0
----
163
198
297

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

query I rowsort
SELECT DISTINCT + col2 + + 36 + + 95 * + 5 AS col1 FROM tab2
----
534
551
569

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

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 26 OR ( NOT col2 * col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT + col0 DIV col0 - col0 AS col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-6401
SELECT + col0 / col0 - col0 AS col0 FROM tab1
----
-50
-84
-90

query II rowsort
SELECT + col1 * col0 * col2 - 39 AS col0, ( 8 ) FROM tab0 cor0
----
18231
8
57066
8
9564
8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6404
SELECT DISTINCT ( + MAX( col2 ) ) AS col0, COUNT( ALL + + col0 ) DIV + + 11 AS col1 FROM tab1
----
96
0

skipif mysql # not compatible
query II rowsort label-6404
SELECT DISTINCT ( + MAX ( col2 ) ) AS col0, COUNT ( ALL + + col0 ) / + + 11 AS col1 FROM tab1
----
96
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= + + col0
----
51
14
96

query I rowsort
SELECT DISTINCT - ( + 99 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT 91 * 28 FROM tab2
----
2548
2548
2548

query I rowsort
SELECT 95 * - 94 FROM tab0 AS cor0
----
-8930
-8930
-8930

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT ALL + col2 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
26
3
35

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + col2 * col1 / col0 AS col2 FROM tab1 AS cor0
----
26
3
35

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6412
SELECT - - COUNT ( * ) * - - COUNT ( * ) col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * - col1 = NULL
----

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE + - col0 / - - col0 <> NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 56 * - + col1 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT DISTINCT ( + 45 ) DIV - 69 col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6417
SELECT DISTINCT ( + 45 ) / - 69 col0 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT DISTINCT + 64 DIV + col0 AS col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + 64 / + col0 AS col2 FROM tab0
----
0
4

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

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

query I rowsort
SELECT DISTINCT - + 54 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 + + 25 FROM tab1 AS cor0 WHERE col2 NOT IN ( + col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT - + COUNT( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - + COUNT ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6424
SELECT col0 + - + 37 + - col1 DIV + col2 AS col2, + ( - col0 ) FROM tab1 AS cor0
----
14
-51
48
-85
54
-91

skipif mysql # not compatible
query II rowsort label-6424
SELECT col0 + - + 37 + - col1 / + col2 AS col2, + ( - col0 ) FROM tab1 AS cor0
----
14
-51
48
-85
54
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL SUM( - 80 ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL SUM ( - 80 ) AS col2 FROM tab1
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT DISTINCT col0 + col2 + - - 4 DIV 86 * col1 AS col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT col0 + col2 + - - 4 / 86 * col1 AS col1 FROM tab2
----
104
133
69

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6429
SELECT col2 + - col0 + + 57 DIV - CAST( - col1 AS SIGNED ) FROM tab1
----
-15
-22
49

skipif mysql # not compatible
query I rowsort label-6429
SELECT col2 + - col0 + + 57 / - CAST ( - col1 AS INTEGER ) FROM tab1
----
-15
-22
49

query I rowsort
SELECT col1 * - col1 + + col0 AS col0 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT 43 * + col0 + + - col2 AS col2 FROM tab2
----
1955
2712
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT MAX( 62 ) col1 FROM tab0 WHERE NULL IS NULL
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6432
SELECT MAX ( 62 ) col1 FROM tab0 WHERE NULL IS NULL
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-6433
SELECT ALL + col1 + - ( - 84 ) DIV + col2 AS col1, + 59 * - col1 AS col0 FROM tab0
----
1
-59
29
-1239
82
-4779

skipif mysql # not compatible
query II rowsort label-6433
SELECT ALL + col1 + - ( - 84 ) / + col2 AS col1, + 59 * - col1 AS col0 FROM tab0
----
1
-59
29
-1239
82
-4779

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

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

query I rowsort
SELECT DISTINCT 9 + 15 AS col2 FROM tab2 AS cor0
----
24

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

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

query II rowsort
SELECT - - col0, 4 AS col1 FROM tab2 AS cor0
----
46
4
64
4
75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT COUNT( ALL 7 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT COUNT ( ALL 7 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 92 ) IS NULL
----

query I rowsort
SELECT - ( - 7 ) * + - col1 - + + 76 + + + col1 - + - col1 AS col0 FROM tab2
----
-331
-411
-461

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

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

query I rowsort
SELECT ALL - col1 * ( + col0 ) + + + col2 + - - col2 * - col2 FROM tab0 AS cor0
----
-1917
-3377
-9799

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - 68 * + 41 + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-2730

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 68 * + 41 + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-2730

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NOT - - col2 - 42 * - - 10 + - col0 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + SUM( ALL + - 98 ) FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6446
SELECT + SUM ( ALL + - 98 ) FROM tab1 cor0
----
-294

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE - 68 + - + col2 / + 92 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 13 col1 FROM tab0 AS cor0
----
1053
13
273

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

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

skipif mysql # not compatible
query I rowsort label-6450
SELECT - MIN ( DISTINCT - 31 ) FROM tab1 AS cor0
----
31

query II rowsort
SELECT - ( + col2 ) AS col2, col0 * - 73 FROM tab0 AS cor0
----
-10
-6351
-47
-1095
-99
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL col2 DIV + 3 FROM tab2
----
13
19
7

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL col2 / + 3 FROM tab2
----
13
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL - 16 * MAX( + 78 ) AS col2 FROM tab0
----
-1248

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - 16 * MAX ( + 78 ) AS col2 FROM tab0
----
-1248

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT 96 IS NOT NULL
----

query I rowsort
SELECT - col2 * + + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT DISTINCT - ( - CAST( COUNT( * ) AS SIGNED ) ) * + COUNT( * ) * + MIN( - col1 ) AS col1 FROM tab0 cor0
----
-729

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) * + COUNT ( * ) * + MIN ( - col1 ) AS col1 FROM tab0 cor0
----
-729

query I rowsort
SELECT col0 * col1 * col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
201019
2125
9996

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL col2 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT - 19 + ( col2 ) + 20 * 13 FROM tab2
----
264
281
299

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL 90 + - - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL 90 + - - COUNT ( * ) FROM tab1
----
93

query I rowsort
SELECT DISTINCT - col0 + - + ( col2 ) + col1 * - + col2 AS col2 FROM tab0
----
-295
-307
-3869

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

query I rowsort
SELECT + 9 + 19 AS col2 FROM tab2
----
28
28
28

query I rowsort
SELECT + - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT col2 + - + 44 + + 16 * + 39 FROM tab1 AS cor0
----
639
648
676

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

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

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

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

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

query I rowsort
SELECT 0 AS col1 FROM tab0 cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT DISTINCT + + COUNT( * ) AS col0, - 61 + - 33 * - + ( + 46 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-4615

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT + + COUNT ( * ) AS col0, - 61 + - 33 * - + ( + 46 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-4615

query I rowsort
SELECT col0 * + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT - col0 - + + col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + COUNT( * ) - 91 AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6475
SELECT + COUNT ( * ) - 91 AS col0 FROM tab1
----
-88

query II rowsort
SELECT DISTINCT col0 + + col0, col2 FROM tab1
----
102
96
170
59
182
68

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

skipif mysql # not compatible
query I rowsort label-6477
SELECT + ( + 87 ) - + COUNT ( * ) FROM tab2
----
84

query I rowsort
SELECT ALL - col1 * col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-2601
-4489
-5929

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6479
SELECT - SUM ( DISTINCT + col1 ) col1 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1 WHERE NOT - 33 IS NULL
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6481
SELECT + COUNT( * ) * - 59 DIV + ( - 27 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6481
SELECT + COUNT ( * ) * - 59 / + ( - 27 ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6482
SELECT + col0 * + col0 * - - ( - + col2 ) + col0 * - 4 AS col0 FROM tab0 WHERE NOT + CAST( - - col1 AS DECIMAL ) > - col1
----

skipif mysql # not compatible
query I rowsort label-6482
SELECT + col0 * + col0 * - - ( - + col2 ) + col0 * - 4 AS col0 FROM tab0 WHERE NOT + CAST ( - - col1 AS REAL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT - COUNT( DISTINCT - + 25 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6483
SELECT - COUNT ( DISTINCT - + 25 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + 14 * + col1 AS col2 FROM tab0
----
1134
14
294

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6485
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 + - 21 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + CAST ( NULL AS REAL ) * - col1 + - 21 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6486
SELECT DISTINCT - 93 + + COUNT( * ) * 90 DIV - MIN( ALL col2 ) + COUNT( * ) - + - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - 93 + + COUNT ( * ) * 90 / - MIN ( ALL col2 ) + COUNT ( * ) - + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT DISTINCT - 87 * ( - MAX( + - ( + ( CAST( NULL AS SIGNED ) ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - 87 * ( - MAX ( + - ( + ( CAST ( NULL AS INTEGER ) ) ) ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 94 + 33 AND - col0
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT ( - + 20 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 23 NOT BETWEEN 28 AND + 36
----

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL MIN( DISTINCT - - 50 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL MIN ( DISTINCT - - 50 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 - - + col2 * + - col0 AS col2, 98 col0 FROM tab2 AS cor0
----
-1007
98
-2483
98
-4283
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT ALL + + ( + MIN( + 20 ) ) AS col1, - COUNT( * ) * + + MIN( + - col2 ) AS col1 FROM tab1 AS cor0
----
20
288

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL + + ( + MIN ( + 20 ) ) AS col1, - COUNT ( * ) * + + MIN ( + - col2 ) AS col1 FROM tab1 AS cor0
----
20
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + - 55 * COUNT( * ) - - 2 FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-6497
SELECT + - 55 * COUNT ( * ) - - 2 FROM tab0 AS cor0
----
-163

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

skipif mysql # not compatible
query I rowsort label-6498
SELECT + CAST ( 81 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NOT CAST ( - col0 AS INTEGER ) IS NULL )
----
81
81
81

query I rowsort
SELECT DISTINCT col2 - col0 * - col2 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT DISTINCT col1 * + col1 * + - col0 AS col1 FROM tab0 cor0
----
-38367
-97
-98415

query II rowsort
SELECT 98 + - 81 + - + 94 AS col0, col0 AS col0 FROM tab2 cor0
----
-77
46
-77
64
-77
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT COUNT( * ) + + COUNT( * ) + - + 47 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-6504
SELECT COUNT ( * ) + + COUNT ( * ) + - + 47 FROM tab0
----
-41

query I rowsort
SELECT ALL col2 * + col2 + + + 28 + + col1 AS col0 FROM tab0
----
149
2318
9830

onlyif mysql # DIV for integer division: 
query I rowsort label-6506
SELECT ALL col2 DIV 21 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL col2 / 21 AS col2 FROM tab2
----
1
1
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT COUNT( * ) * - - 35 AS col1 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT COUNT ( * ) * - - 35 AS col1 FROM tab1 AS cor0
----
105

query II rowsort
SELECT + 42 AS col1, col1 AS col1 FROM tab2 AS cor0
----
42
51
42
67
42
77

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

query I rowsort
SELECT - + 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ( + 29 ) * col2 + col1 FROM tab0 AS cor0
----
1444
2872
311

query I rowsort
SELECT + 0 * - col0 + - 16 + - col0 AS col1 FROM tab0 AS cor0
----
-103
-113
-31

query I rowsort
SELECT - + 65 + + col0 AS col1 FROM tab2 AS cor0
----
-1
-19
10

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 WHERE - col1 >= NULL
----

query I rowsort
SELECT - col1 * col2 * + col0 + - 74 FROM tab0 AS cor0
----
-18344
-57179
-9677

query I rowsort
SELECT ALL col2 + + col2 * + col1 * 31 * - col0 FROM tab1
----
-2124768
-777266
-9015848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + - 18 col2 FROM tab2
----
33
49
59

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

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

query I rowsort
SELECT - col1 + 68 AS col1 FROM tab2 WHERE col1 * col1 IS NOT NULL
----
-9
1
17

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + 28 IS NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-6522
SELECT + + MIN ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-81

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

query I rowsort
SELECT DISTINCT - 20 + + 87 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT - 49 - - - 49 FROM tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT ALL + CAST( + 21 AS SIGNED ) + 87 FROM tab1 AS cor0
----
108
108
108

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + CAST ( + 21 AS INTEGER ) + 87 FROM tab1 AS cor0
----
108
108
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - + 29 * - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6529
SELECT - + 29 * - COUNT ( * ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 4 - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 4 - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7

query II rowsort
SELECT DISTINCT + col1 * - col0 AS col0, ( - col2 ) * + + col1 + col2 FROM tab2 cor0
----
-2346
-1150
-4928
-3040
-5025
-3828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6532
SELECT ALL - 51 / CAST( NULL AS DECIMAL ) + + + 43 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - 51 / CAST ( NULL AS REAL ) + + + 43 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - 81 - col1 * + + 6 AS col0 FROM tab2 AS cor0
----
-248
-379
-421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT ALL + CAST( NULL AS SIGNED ) * + 59 col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6534
SELECT ALL + CAST ( NULL AS INTEGER ) * + 59 col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 82 * - + 5 FROM tab2
----
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT ALL COUNT( * ) DIV + - MIN( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL COUNT ( * ) / + - MIN ( + col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT DISTINCT + col0 DIV - 53 col2 FROM tab1
----
-1
0

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

query I rowsort
SELECT DISTINCT - col1 + + col0 + + - 62 * - 94 FROM tab0 WHERE NOT col2 < - col0 - + col1 + col1
----
5762
5894
5924

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6540
SELECT * FROM tab1 AS cor0 WHERE NOT 61 + - CAST( - 24 AS SIGNED ) < + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6540
SELECT * FROM tab1 AS cor0 WHERE NOT 61 + - CAST ( - 24 AS INTEGER ) < + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col0, - col0 - - ( col2 ) AS col2 FROM tab0
----
10
-77
47
32
99
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT - 4 AS col2, COUNT( * ) AS col0 FROM tab1
----
-4
3

skipif mysql # not compatible
query II rowsort label-6542
SELECT - 4 AS col2, COUNT ( * ) AS col0 FROM tab1
----
-4
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 93 + - 56 IS NOT NULL
----

query II rowsort
SELECT col2, 53 FROM tab1 cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 * 62 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col2 FROM tab2
----
-44

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 2 + - 37 + + + 28 + + + col0 FROM tab1
----
-150
-42
-54

query I rowsort
SELECT + ( + - 14 ) FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT DISTINCT MAX( ALL + col0 ) + + 60 DIV - ( + + SUM( - + 99 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT MAX ( ALL + col0 ) + + 60 / - ( + + SUM ( - + 99 ) ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + 6 / + - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 * + ( + ( + 76 ) ) BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - COUNT( * ) + + - 29 + + SUM( + col1 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6553
SELECT - COUNT ( * ) + + - 29 + + SUM ( + col1 ) AS col1 FROM tab1
----
34

query I rowsort
SELECT col0 + + col2 + col1 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6555
SELECT ALL CAST( NULL AS SIGNED ) col2, + COUNT( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6555
SELECT ALL CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

query I rowsort
SELECT + 16 + - + col1 FROM tab1 AS cor0
----
-31
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT - + COUNT( * ) - - - 31 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - + COUNT ( * ) - - - 31 FROM tab0 cor0
----
-34

query I rowsort
SELECT ( col1 ) * - + col2 FROM tab0 cor0
----
-210
-3807
-99

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

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

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

query I rowsort
SELECT - col2 - + ( col2 ) FROM tab0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 73 + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 50 * + - col1 * - col2 / ( col1 ) * - - 35 IN ( - + 59 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 71 / - col2 <= + 79 * + col0 * col0 + + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT col0 * - 74 FROM tab0 cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6565
SELECT col0 * - 74 FROM tab0 cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - 23 * - 21 FROM tab1 AS cor0
----
483
483
483

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT - ( + MIN( CAST( - + col1 AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6568
SELECT - ( + MIN ( CAST ( - + col1 AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
47

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

query I rowsort
SELECT ALL + 99 * - - col0 FROM tab2 AS cor0
----
4554
6336
7425

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

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

query I rowsort
SELECT DISTINCT + col2 * + 50 AS col2 FROM tab1
----
2950
3400
4800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col2 ) + - 39
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 97 + col2 * - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-6576
SELECT DISTINCT - SUM ( + + col2 ) + - COUNT ( * ) AS col0, - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-226
-3

query I rowsort
SELECT + col0 + + - col1 * + - 70 AS col2 FROM tab1
----
1031
3381
435

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6579
SELECT AVG ( DISTINCT - - col2 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT AVG ( DISTINCT - - col2 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

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

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

query I rowsort
SELECT col1 + + - col2 * + - col0 + - 13 FROM tab1 AS cor0
----
4897
5007
6222

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

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

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

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

query I rowsort
SELECT DISTINCT 31 + - ( - col0 ) AS col0 FROM tab2
----
106
77
95

query I rowsort
SELECT DISTINCT 32 - + + ( - 34 ) FROM tab2 WHERE - col2 IS NOT NULL
----
66

query II rowsort
SELECT + 24, 93 AS col0 FROM tab1
----
24
93
24
93
24
93

query I rowsort
SELECT DISTINCT - 31 + + col2 FROM tab0
----
-21
16
68

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

query I rowsort
SELECT DISTINCT col1 * - 91 / - col1 AS col2 FROM tab2 WHERE NULL NOT IN ( + col1, col1, 89 + + - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - col0 / - - col1 + ( col1 ) FROM tab2 AS cor0
----
51
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 49 / 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 49 / 81 IS NULL
----
0

query I rowsort
SELECT DISTINCT 86 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6595
SELECT - col1 DIV + col2 AS col0, col1 + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6595
SELECT - col1 / + col2 AS col0, col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
0
NULL
0
NULL
0
NULL

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

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

query I rowsort
SELECT DISTINCT + + 31 AS col1 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + col0 BETWEEN NULL AND - 34 * + col2 + + 99 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( - 72 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - 7 AS col2 FROM tab1 AS cor0
----
-413
-476
-672

query I rowsort
SELECT + col2 + 67 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
114
166
77

query I rowsort
SELECT col2 * 33 AS col0 FROM tab1
----
1947
2244
3168

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 94 < 39 - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 2 * 5 / 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL CAST( + MIN( DISTINCT + + col2 ) AS SIGNED ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL CAST ( + MIN ( DISTINCT + + col2 ) AS INTEGER ) AS col2 FROM tab0
----
10

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 38 + + 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + 39 * - col2 FROM tab1
----
-2216
-2561
-3693

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT ALL - MIN( + 27 ) col2, + COUNT( * ) * 49 FROM tab2
----
-27
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6612
SELECT ALL - MIN ( + 27 ) col2, + COUNT ( * ) * 49 FROM tab2
----
-27
147

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT - - col0 * - - col0 + col0 + + + col0 + - + col2 DIV - col2 FROM tab2 AS cor0
----
2209
4225
5776

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - - col0 * - - col0 + col0 + + + col0 + - + col2 / - col2 FROM tab2 AS cor0
----
2209
4225
5776

query I rowsort
SELECT ALL + + 64 + - + 34 FROM tab1 AS cor0
----
30
30
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0 + - col1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6620
SELECT + CAST( NULL AS DECIMAL ) + - ( 20 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT + CAST ( NULL AS REAL ) + - ( 20 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL 93 + - + ( - 34 ) FROM tab0
----
127
127
127

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 75 BETWEEN NULL AND ( 77 * + - col1 )
----

query II rowsort
SELECT + col1 + - ( - col1 ), + col2 FROM tab2
----
102
23
134
58
154
40

query I rowsort
SELECT ALL - - col1 - col0 + + - 74 * + col0 FROM tab0 AS cor0
----
-1044
-6504
-7274

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

query I rowsort
SELECT ALL + - 39 AS col2 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT DISTINCT - 76 AS col0, 68 * + - SUM( + 35 ) FROM tab1
----
-76
-7140

skipif mysql # not compatible
query II rowsort label-6630
SELECT DISTINCT - 76 AS col0, 68 * + - SUM ( + 35 ) FROM tab1
----
-76
-7140

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

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

query II rowsort
SELECT ALL col0, - col1 AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6635
SELECT ALL + SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL + SUM ( - - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT - MIN( col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - MIN ( col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT ALL + - 77 * - 32 FROM tab1 WHERE NOT NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + - 77 * - 32 FROM tab1 WHERE NOT NULL <= - CAST ( NULL AS INTEGER )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT - 4 DIV 58 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - 4 / 58 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

query I rowsort
SELECT - col0 * - 14 AS col1 FROM tab2
----
1050
644
896

query I rowsort
SELECT - col1 - + ( - col0 ) * - + 29 AS col0 FROM tab1 WHERE col1 + + col1 <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT col1 FROM tab0 WHERE - col2 - + + col2 BETWEEN ( col1 * CAST( NULL AS SIGNED ) / + col1 ) AND - col1 * col0 + - 74
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT col1 FROM tab0 WHERE - col2 - + + col2 BETWEEN ( col1 * CAST ( NULL AS INTEGER ) / + col1 ) AND - col1 * col0 + - 74
----

query I rowsort
SELECT col0 + - 54 AS col0 FROM tab0
----
-39
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT DISTINCT + COUNT( + - 78 ) - + 99 AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + COUNT ( + - 78 ) - + 99 AS col0 FROM tab0 AS cor0
----
-96

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

query I rowsort
SELECT DISTINCT - + 49 + + 63 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT - - col2 * 68 + - + CAST( + 54 AS SIGNED ) FROM tab2 cor0
----
1510
2666
3890

skipif mysql # not compatible
query I rowsort label-6651
SELECT - - col2 * 68 + - + CAST ( + 54 AS INTEGER ) FROM tab2 cor0
----
1510
2666
3890

onlyif mysql # DIV for integer division: 
query II rowsort label-6652
SELECT ALL - col2 - 47 DIV - 17 col1, col1 FROM tab2 AS cor0
----
-21
51
-38
77
-56
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6652
SELECT ALL - col2 - 47 / - 17 col1, col1 FROM tab2 AS cor0
----
-21
51
-38
77
-56
67

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

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

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 51 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT MAX( DISTINCT 84 ) AS col0 FROM tab1 AS cor0
----
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6656
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * CAST( ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6656
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * CAST ( ( + col2 ) AS INTEGER )
----

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

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

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

query II rowsort
SELECT col0 - + col2, col2 FROM tab1
----
-45
96
23
68
26
59

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

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

query I rowsort
SELECT - - 26 * col2 * - - col2 FROM tab2 AS cor0
----
13754
41600
87464

query I rowsort
SELECT ( - 30 ) AS col2 FROM tab2
----
-30
-30
-30

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

query I rowsort
SELECT + - 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT MIN( DISTINCT + 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT MIN ( DISTINCT + 68 ) FROM tab0
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT DISTINCT - CAST( + 37 AS SIGNED ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - CAST ( + 37 AS INTEGER ) FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + 0 * + col2 + col2 FROM tab0 AS cor0
----
10
47
99

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

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

query II rowsort
SELECT DISTINCT - col2, col0 * + + col1 AS col1 FROM tab1 AS cor0 WHERE - 88 IS NOT NULL
----
-59
425
-68
4277
-96
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + 68
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT - 44 * + col1 + col2 * - ( - col0 ) * - col2 DIV + - col2 + - 23 * - col1 FROM tab1
----
4602
4910
5201

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - 44 * + col1 + col2 * - ( - col0 ) * - col2 / + - col2 + - 23 * - col1 FROM tab1
----
4602
4910
5201

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT 75 AS col1, - COUNT( * ) * + 88 AS col0 FROM tab0
----
75
-264

skipif mysql # not compatible
query II rowsort label-6674
SELECT 75 AS col1, - COUNT ( * ) * + 88 AS col0 FROM tab0
----
75
-264

query I rowsort
SELECT ALL - col1 + + 15 AS col1 FROM tab0
----
-6
-66
14

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

skipif mysql # not compatible
query I rowsort label-6676
SELECT + MAX ( ALL - col0 ) AS col0 FROM tab0
----
-15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL MAX( DISTINCT + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL MAX ( DISTINCT + - col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6681
SELECT ALL - CAST( SUM( - 48 ) AS SIGNED ) - COUNT( * ) col0 FROM tab1 cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT ALL - CAST ( SUM ( - 48 ) AS INTEGER ) - COUNT ( * ) col0 FROM tab1 cor0
----
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT - COUNT( * ) - - 39 FROM tab0 cor0
----
36

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - COUNT ( * ) - - 39 FROM tab0 cor0
----
36

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

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

query I rowsort
SELECT ALL col2 * - + 33 FROM tab0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT DISTINCT + col1 * - - col2 * + CAST( + - 15 AS SIGNED ) * col1 AS col1 FROM tab0
----
-1485
-4625505
-66150

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT + col1 * - - col2 * + CAST ( + - 15 AS INTEGER ) * col1 AS col1 FROM tab0
----
-1485
-4625505
-66150

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - 33 IS NULL
----

query I rowsort
SELECT ALL - col0 + ( - col2 ) FROM tab2
----
-104
-133
-69

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

query I rowsort
SELECT ALL - col2 + - 99 - - 19 FROM tab1
----
-139
-148
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-6691
SELECT ALL col2 DIV - + ( - 45 ) AS col1, 48 + 6 AS col2 FROM tab2
----
0
54
0
54
1
54

skipif mysql # not compatible
query II rowsort label-6691
SELECT ALL col2 / - + ( - 45 ) AS col1, 48 + 6 AS col2 FROM tab2
----
0
54
0
54
1
54

query II rowsort
SELECT ( - 55 ), col2 FROM tab0 WHERE ( col2 * - + col0 - - 17 < - col0 + - + col0 + + + 1 )
----
-55
10
-55
47
-55
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col2 ) + 65 AS col2 FROM tab1 WHERE - 36 + col1 / + col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT ( - SUM( DISTINCT 30 ) ) * + MAX( col1 DIV 18 ) + + 76 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT ( - SUM ( DISTINCT 30 ) ) * + MAX ( col1 / 18 ) + + 76 FROM tab1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT + 6 AS col1 FROM tab1 WHERE - col2 - - col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6696
SELECT + 6 AS col1 FROM tab1 WHERE - col2 - - col1 IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 7 * + col0 - + col0 AS col0 FROM tab2
----
-368
-512
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL col1 * - 60 + CAST( 40 AS SIGNED ) FROM tab2 WHERE NOT - col0 + - 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL col1 * - 60 + CAST ( 40 AS INTEGER ) FROM tab2 WHERE NOT - col0 + - 18 IS NOT NULL
----

query I rowsort
SELECT ALL + 12 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6700
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + col2 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-6700
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT 79 * - col1 FROM tab2 WHERE ( NULL ) IN ( ( + 88 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) = col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 * + col0 < ( - col1 - - 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < ( 46 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT MIN( ALL - 80 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT MIN ( ALL - 80 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT MIN( DISTINCT col1 ) col2 FROM tab1 WHERE NOT NULL >= 17
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6706
SELECT MIN ( DISTINCT col1 ) col2 FROM tab1 WHERE NOT NULL >= 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL COUNT( 64 ) * COUNT( * ) - + ( - 72 ) * 86 AS col1 FROM tab2
----
6201

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL COUNT ( 64 ) * COUNT ( * ) - + ( - 72 ) * 86 AS col1 FROM tab2
----
6201

query I rowsort
SELECT 40 + + col2 FROM tab1
----
108
136
99

query I rowsort
SELECT ALL 97 AS col0 FROM tab0 WHERE col1 < ( col1 + col2 )
----
97
97
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT DISTINCT col2 DIV col1 + col2 AS col0 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT col2 / col1 + col2 AS col0 FROM tab1
----
102
69
70

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT 48 NOT IN ( 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 30 + - COUNT( * ) col1 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6713
SELECT + 30 + - COUNT ( * ) col1 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + 99 * COUNT( * ) FROM tab1 cor0
----
297

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 99 * COUNT ( * ) FROM tab1 cor0
----
297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col0 BETWEEN col1 AND ( - 6 ) + - 5
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT - ( 11 ) NOT IN ( - col1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - col1 * - col0 ) col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT col2 * 25 FROM tab2 cor0 WHERE + ( col0 ) IS NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 57 + 1 ) <> ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + 81 AND - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 33 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 BETWEEN ( + 88 * + 6 + + col0 ) AND ( col0 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT ALL col2 DIV col1 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL col2 / col1 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL + col0 * col0 AS col0 FROM tab0 cor0 WHERE NOT ( + CAST( 58 AS SIGNED ) / + col0 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + col0 * col0 AS col0 FROM tab0 cor0 WHERE NOT ( + CAST ( 58 AS INTEGER ) / + col0 ) <= NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + col0 BETWEEN col2 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 54 col2 FROM tab1
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT MIN( - col0 ) FROM tab1 WHERE NOT col1 IN ( col0 )
----
-91

skipif mysql # not compatible
query I rowsort label-6734
SELECT MIN ( - col0 ) FROM tab1 WHERE NOT col1 IN ( col0 )
----
-91

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( col1 + - 13 ) BETWEEN ( NULL ) AND - 10 + col0
----
47

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT 30 IS NOT NULL
----

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

query I rowsort
SELECT 2 * ( - col0 ) FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 31 + 29 = - 50 * ( - 35 * col0 ) - - col2
----
3

skipif mysql # not compatible
query I rowsort label-6739
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 31 + 29 = - 50 * ( - 35 * col0 ) - - col2
----
3

query I rowsort
SELECT col2 + 10 * + 11 FROM tab2 cor0 WHERE NOT ( - col2 + + col0 ) NOT IN ( col2 + - 93 )
----

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT + 75 * - COUNT( * ) * - 16 AS col2 FROM tab2, tab2 cor0
----
10800

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 75 * - COUNT ( * ) * - 16 AS col2 FROM tab2, tab2 cor0
----
10800

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6744
SELECT + 51 * MAX( ALL + - 9 ) DIV + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-6744
SELECT + 51 * MAX ( ALL + - 9 ) / + COUNT ( * ) FROM tab2
----
-153

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

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

query I rowsort
SELECT - + ( - + 99 ) * - col0 FROM tab0 cor0
----
-1485
-8613
-9603

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

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV + col0 FROM tab2 AS cor0 WHERE + 67 * 38 - col1 DIV + CAST( - col2 * + ( 86 * - 58 ) AS SIGNED ) NOT IN ( CAST( - col2 AS DECIMAL ) + col2 )
----
1

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / + col0 FROM tab2 AS cor0 WHERE + 67 * 38 - col1 / + CAST ( - col2 * + ( 86 * - 58 ) AS INTEGER ) NOT IN ( CAST ( - col2 AS REAL ) + col2 )
----
1

query II rowsort
SELECT + col2 AS col1, - col0 * + 69 AS col2 FROM tab1 AS cor0
----
59
-5865
68
-6279
96
-3519

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6752
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN 14 AND - CAST( NULL AS SIGNED ) + + 57 * + col0
----

skipif mysql # not compatible
query III rowsort label-6752
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN 14 AND - CAST ( NULL AS INTEGER ) + + 57 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL - 11 + - - COUNT( * ) + + 16 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - 11 + - - COUNT ( * ) + + 16 FROM tab0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT MAX( ALL col0 ) DIV + 24 + + SUM( - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-6754
SELECT MAX ( ALL col0 ) / + 24 + + SUM ( - col2 ) FROM tab2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL 11 DIV col2 + - + col2 + + col0 * col0 FROM tab2
----
2093
4056
5567

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL 11 / col2 + - + col2 + + col0 * col0 FROM tab2
----
2093
4056
5567

query I rowsort
SELECT - col2 + 21 AS col0 FROM tab2
----
-19
-2
-37

query II rowsort
SELECT DISTINCT - 16 + - col2 AS col2, + col0 AS col1 FROM tab0
----
-115
97
-26
87
-63
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6758
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - - col0 ) = + CAST( NULL AS SIGNED ) * + 7
----

skipif mysql # not compatible
query III rowsort label-6758
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - - col0 ) = + CAST ( NULL AS INTEGER ) * + 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 13 + + 49 AS col1, col0 - - - col0 col2 FROM tab2 AS cor0
----
62
0
62
0
62
0

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

query I rowsort
SELECT - + ( col1 ) * - + col2 * - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

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

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT col1 / + col1 + - - 1 AS col1 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT DISTINCT + MIN( ALL + + 19 ) + + COUNT( * ) * - 58 * 28 col1 FROM tab1
----
-4853

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6763
SELECT DISTINCT + MIN ( ALL + + 19 ) + + COUNT ( * ) * - 58 * 28 col1 FROM tab1
----
-4853

query I rowsort
SELECT DISTINCT - 83 - - - col2 AS col1 FROM tab0 AS cor0
----
-130
-182
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL + col1 DIV - col2 - - + col2 + - col1 FROM tab2 AS cor0
----
-10
-30
-38

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + col1 / - col2 - - + col2 + - col1 FROM tab2 AS cor0
----
-10
-30
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + - COUNT( * ) + - 12 - + 90 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6766
SELECT + - COUNT ( * ) + - 12 - + 90 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
255

query I rowsort
SELECT + 23 * - col2 * + col2 + - 27 AS col2 FROM tab2 cor0
----
-12194
-36827
-77399

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 28 * ( - col1 ) + col1 FROM tab0 AS cor0
----
2349
29
609

query II rowsort
SELECT DISTINCT 22 AS col0, + 1 * col1 + - col1 + col0 FROM tab2 AS cor0
----
22
46
22
64
22
75

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

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

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

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

query I rowsort
SELECT 74 * + 59 FROM tab0
----
4366
4366
4366

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE ( - 97 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6776
SELECT ALL col1, col2 DIV + col2 col0 FROM tab0
----
1
1
21
1
81
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6776
SELECT ALL col1, col2 / + col2 col0 FROM tab0
----
1
1
21
1
81
1

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

query II rowsort
SELECT - col2, 67 + + col0 AS col2 FROM tab2 AS cor0
----
-23
113
-40
131
-58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( + col0 + - 53 * - ( col0 ) + + 44 * + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( + col0 + - 53 * - ( col0 ) + + 44 * + col2 ) IS NOT NULL
----
0

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

query I rowsort
SELECT DISTINCT + 70 * + col1 FROM tab2 AS cor0
----
3570
4690
5390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) BETWEEN 95 / + - ( col2 ) * + - col2 + + 99 AND 29
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - ( + - MAX( col1 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - ( + - MAX ( col1 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT 11 DIV 68 FROM tab2 WHERE col0 NOT BETWEEN - col0 AND col1 DIV col0
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT 11 / 68 FROM tab2 WHERE col0 NOT BETWEEN - col0 AND col1 / col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NULL < col0
----
0

query II rowsort
SELECT - 0, + 47 AS col1 FROM tab1
----
0
47
0
47
0
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT DISTINCT - 4, - SUM( DISTINCT - 21 ) AS col0 FROM tab1
----
-4
21

skipif mysql # not compatible
query II rowsort label-6790
SELECT DISTINCT - 4, - SUM ( DISTINCT - 21 ) AS col0 FROM tab1
----
-4
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 75 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 91 BETWEEN - + col2 + 88 + + 34 * - 0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL + MIN( DISTINCT 70 ) AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + MIN ( DISTINCT 70 ) AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
NULL

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

query I rowsort
SELECT ALL - 50 + + 90 FROM tab1
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT DISTINCT + 17 - 50 * + col2 - + + col2 + 49 DIV + - col2 col0 FROM tab1
----
-2992
-3451
-4879

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6796
SELECT DISTINCT + 17 - 50 * + col2 - + + col2 + 49 / + - col2 col0 FROM tab1
----
-2992
-3451
-4879

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - COUNT( ALL + 72 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + col1 ) NOT IN ( - ( - - col0 ) + + 62 + col0 * - 96 * 50 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - COUNT ( ALL + 72 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + col1 ) NOT IN ( - ( - - col0 ) + + 62 + col0 * - 96 * 50 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + 83 - + 59 * + SUM( + col0 ) FROM tab1 AS cor0
----
-13310

skipif mysql # not compatible
query I rowsort label-6798
SELECT + 83 - + 59 * + SUM ( + col0 ) FROM tab1 AS cor0
----
-13310

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + 54 - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6800
SELECT + 54 - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
57

query I rowsort
SELECT - col2 + - + 18 AS col2 FROM tab2 AS cor0
----
-41
-58
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - COUNT( * ) * - MIN( + 98 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
882

skipif mysql # not compatible
query I rowsort label-6803
SELECT - COUNT ( * ) * - MIN ( + 98 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
882

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

query II rowsort
SELECT ALL ( col1 ) AS col0, col2 + - + col0 + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
14
-20
47
-161
5
-116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - - col0 col1 FROM tab1 AS cor0
----
425
4277
714

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

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT MIN ( + + 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL - 97 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - col2 NOT BETWEEN ( - 31 ) AND ( col0 )
----
87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 + + 51 - + 14 - - 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT COUNT( * ) FROM tab1 WHERE NOT - - 9 BETWEEN + col0 AND + col1
----
3

skipif mysql # not compatible
query I rowsort label-6812
SELECT COUNT ( * ) FROM tab1 WHERE NOT - - 9 BETWEEN + col0 AND + col1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - + col0 col0 FROM tab1
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL + SUM( ALL + 92 ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + SUM ( ALL + 92 ) FROM tab2
----
276

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 < col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ( + SUM( col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6817
SELECT ( + SUM ( col2 ) ) FROM tab0
----
156

query I rowsort
SELECT ALL - ( 74 ) AS col1 FROM tab0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + SUM( + 78 ) AS col2 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-6819
SELECT + SUM ( + 78 ) AS col2 FROM tab1 AS cor0
----
234

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 62 BETWEEN NULL AND + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL 95 * + + COUNT( * ) - + + 5 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 - col1 + - col1 + + 31 ) IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 95 * + + COUNT ( * ) - + + 5 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 - col1 + - col1 + + 31 ) IS NOT NULL
----
-5

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col0 + - ( - + 87 ) >= - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT MIN( col0 ) + + 33 AS col1 FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT MIN ( col0 ) + + 33 AS col1 FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( col1 ) NOT IN ( 60, col1, + 33 + - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE - 30 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 30 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST( + col2 AS DECIMAL ) * col1 * - 97 )
----

skipif mysql # not compatible
query III rowsort label-6831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( + col2 AS REAL ) * col1 * - 97 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - 16 * - - 77 * + col1 FROM tab1 cor0
----
59
-6160
68
-57904
96
-17248

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT DISTINCT - + col1 + - - 52 - 47 - + col1 DIV - 79 AS col0 FROM tab0 AS cor0
----
-16
-75
4

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - + col1 + - - 52 - 47 - + col1 / - 79 AS col0 FROM tab0 AS cor0
----
-16
-75
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6835
SELECT 34 + - + ( + ( - - CAST( NULL AS DECIMAL ) ) ) * + + 96 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT 34 + - + ( + ( - - CAST ( NULL AS REAL ) ) ) * + + 96 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 68 + - col0 + + col1 + 53 * - 71 FROM tab2
----
-3682
-3690
-3703

query I rowsort
SELECT ALL col2 * + + 83 + - 10 + + 2 AS col2 FROM tab1
----
4889
5636
7960

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

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL 83 + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
83

query I rowsort
SELECT DISTINCT - 89 + col2 FROM tab1
----
-21
-30
7

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

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + col1 / - col0 + - + col0 + - + col2 + + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 7 + + 80 FROM tab2
----
87
87
87

query I rowsort
SELECT - 51 * - col1 + - 10 * - + 7 FROM tab1 cor0 WHERE NULL IS NULL
----
2467
325
784

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

query I rowsort
SELECT ALL 38 - col2 - - - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1598
3344
544

query I rowsort
SELECT DISTINCT + col0 * + ( - col2 ) AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + col1 col1 FROM tab0 AS cor0
----
-1053
-13
-273

onlyif mysql # DIV for integer division: 
query II rowsort label-6847
SELECT + col2 DIV col0, + col0 AS col0 FROM tab1 AS cor0
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-6847
SELECT + col2 / col0, + col0 AS col0 FROM tab1 AS cor0
----
0
85
0
91
1
51

query I rowsort
SELECT col2 - 22 FROM tab1
----
37
46
74

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / col1 col1 FROM tab0 AS cor0 WHERE NOT 96 * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT COUNT( * ) * 98 AS col1 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT COUNT ( * ) * 98 AS col1 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT MAX( ALL - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-6854
SELECT MAX ( ALL - 53 ) FROM tab2
----
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT - col2 * + col2 * col0 + + CAST( + 49 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-33086
-8651
-950648

skipif mysql # not compatible
query I rowsort label-6856
SELECT - col2 * + col2 * col0 + + CAST ( + 49 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-33086
-8651
-950648

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

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

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

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

query I rowsort
SELECT + - 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

query I rowsort
SELECT col2 + + 82 AS col2 FROM tab1
----
141
150
178

query I rowsort
SELECT - 65 + - - 34 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + - col1 + 51 AS col1 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT DISTINCT + col1 + - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT DISTINCT - + COUNT( * ) * + - ( + ( + 94 ) ) AS col1 FROM tab0 cor0
----
282

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - + COUNT ( * ) * + - ( + ( + 94 ) ) AS col1 FROM tab0 cor0
----
282

query II rowsort
SELECT DISTINCT - col0, col1 + - - col1 + - col1 FROM tab2 cor0 WHERE NOT + col2 + - col0 NOT BETWEEN - col2 AND NULL
----

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

query I rowsort
SELECT - - col1 * + + 30 FROM tab2 AS cor0
----
1530
2010
2310

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 * + col1 < NULL
----

query I rowsort
SELECT ( - - col1 ) / + - 63 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 10 * + + 70 col2 FROM tab2 AS cor0
----
-16100
-28000
-40600

query I rowsort
SELECT DISTINCT + ( + + col2 ) * - col0 * - - col2 * col1 AS col1 FROM tab1 WHERE NULL IN ( ( - 40 ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT 60 * - COUNT( * ) - - - 67 col1 FROM tab2
----
-247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6875
SELECT 60 * - COUNT ( * ) - - - 67 col1 FROM tab2
----
-247

query I rowsort
SELECT ALL - col0 - - 34 FROM tab0
----
-53
-63
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6877
SELECT * FROM tab1 AS cor0 WHERE + ( - ( col2 ) ) * + 51 - - CAST( 3 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6877
SELECT * FROM tab1 AS cor0 WHERE + ( - ( col2 ) ) * + 51 - - CAST ( 3 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL 10 - COUNT( * ) AS col0 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL 10 - COUNT ( * ) AS col0 FROM tab0 cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT DISTINCT + - 76 * - CAST( - col1 AS SIGNED ) - + col1 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + - 76 * - CAST ( - col1 AS INTEGER ) - + col1 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT DISTINCT + 62 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT CAST( - + CAST( - col2 AS SIGNED ) AS SIGNED ) * - - col0 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6881
SELECT CAST ( - + CAST ( - col2 AS INTEGER ) AS INTEGER ) * - - col0 AS col2 FROM tab1
----
4896
5015
6188

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT 51 DIV - - 30 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT 51 / - - 30 AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query II rowsort label-6887
SELECT DISTINCT - ( - MIN( ALL + 84 ) ), 67 col1 FROM tab2
----
84
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6887
SELECT DISTINCT - ( - MIN ( ALL + 84 ) ), 67 col1 FROM tab2
----
84
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL + MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL 12 * - col1 FROM tab2
----
-612
-804
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT - 0 DIV - + 8 * - 95 * col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 0 / - + 8 * - 95 * col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT DISTINCT - 43, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-43
3

skipif mysql # not compatible
query II rowsort label-6891
SELECT DISTINCT - 43, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-43
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6892
SELECT DISTINCT ( - + COUNT( * ) ), 3 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( CAST( NULL AS SIGNED ), 47, - col0, col0 )
----
0
3

skipif mysql # not compatible
query II rowsort label-6892
SELECT DISTINCT ( - + COUNT ( * ) ), 3 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS INTEGER ), 47, - col0, col0 )
----
0
3

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

query I rowsort
SELECT ALL - 58 * - + 19 + col1 AS col2 FROM tab0
----
1103
1123
1183

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

skipif mysql # not compatible
query I rowsort label-6895
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab0
----
1

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

query I rowsort
SELECT + + ( + - col1 ) - - col1 - + + col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + MAX( DISTINCT 94 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6898
SELECT + MAX ( DISTINCT 94 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
97

query II rowsort
SELECT + + col1 + - 1, 27 AS col2 FROM tab0 AS cor0
----
0
27
20
27
80
27

query II rowsort
SELECT DISTINCT + 7 + - + col2 * - 89 AS col0, - col0 FROM tab1
----
5258
-85
6059
-91
8551
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6901
SELECT - COUNT( * ) DIV + 98 * - - COUNT( * ) + - 21 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6901
SELECT - COUNT ( * ) / + 98 * - - COUNT ( * ) + - 21 FROM tab1
----
-21

query I rowsort
SELECT + 37 + + 67 FROM tab2
----
104
104
104

query I rowsort
SELECT ALL + - col0 * + + 88 AS col2 FROM tab2 cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT + ( + MIN( ALL - col2 ) ) * 75 AS col0 FROM tab2 AS cor0
----
-4350

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT + ( + MIN ( ALL - col2 ) ) * 75 AS col0 FROM tab2 AS cor0
----
-4350

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

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

query I rowsort
SELECT ALL col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1395
3287
380

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

query I rowsort
SELECT DISTINCT + + col1 * + 36 AS col1 FROM tab1 AS cor0
----
1692
180
504

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

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

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

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + CAST ( + - ( - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT - COUNT( * ), 50 AS col0 FROM tab2 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-6912
SELECT - COUNT ( * ), 50 AS col0 FROM tab2 AS cor0
----
-3
50

query I rowsort
SELECT + ( - AVG ( ALL + 25 ) ) FROM tab2 AS cor0 WHERE NOT ( col0 + - 68 * - + 93 * 51 ) NOT IN ( ( - 39 ) / + + 87 + - - 22, + 85, - col2 )
----
NULL

query II rowsort
SELECT + 32 AS col2, 30 AS col2 FROM tab0 AS cor0
----
32
30
32
30
32
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL MIN( DISTINCT + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL MIN ( DISTINCT + col1 ) FROM tab0
----
1

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

query I rowsort
SELECT ALL col1 + - col0 + col1 + col1 AS col1 FROM tab1 WHERE NOT + + ( + + col2 ) + + - col0 * + - ( col1 ) * + 9 + + col1 BETWEEN + 7 AND col0
----
-70
-9
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT + 78 * + COUNT( * ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT + 78 * + COUNT ( * ) FROM tab0
----
234

query I rowsort
SELECT - - col2 * col2 * + col0 FROM tab0 AS cor0
----
33135
8700
950697

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - + ( + SUM( ALL - col1 ) ) * - COUNT( * ) col2 FROM tab0 WHERE NULL >= + col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query II rowsort
SELECT ALL col2 - ( - + col0 ) AS col2, 24 AS col2 FROM tab0 AS cor0
----
196
24
62
24
97
24

query I rowsort
SELECT + + col0 + + ( - 3 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
12
84
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 49 - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 19 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - SUM( DISTINCT - col0 ) * - COUNT( * ) + - 58 AS col2 FROM tab1 AS cor0
----
-739

skipif mysql # not compatible
query I rowsort label-6927
SELECT - SUM ( DISTINCT - col0 ) * - COUNT ( * ) + - 58 AS col2 FROM tab1 AS cor0
----
-739

query I rowsort
SELECT DISTINCT col0 * col2 + - ( 53 ) * + col0 FROM tab2
----
-1380
-832
375

query I rowsort
SELECT DISTINCT col1 * col1 + + + col0 AS col0 FROM tab1
----
110
2300
247

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

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

query I rowsort
SELECT ALL col2 * - 56 AS col2 FROM tab2
----
-1288
-2240
-3248

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

query I rowsort
SELECT + + ( 97 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6934
SELECT - - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT - - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 * - 58 * 25
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + MIN( DISTINCT 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + MIN ( DISTINCT 63 ) FROM tab2
----
63

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

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

query I rowsort
SELECT DISTINCT ( col2 ) + col0 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-6940
SELECT - MAX( ALL - + col0 ) AS col1, 32 AS col0 FROM tab2
----
46
32

skipif mysql # not compatible
query II rowsort label-6940
SELECT - MAX ( ALL - + col0 ) AS col1, 32 AS col0 FROM tab2
----
46
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT + MAX( DISTINCT + ( + 3 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + MAX ( DISTINCT + ( + 3 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL 7 + + - col2 * - col1 * 12 * - + 78 AS col0 FROM tab0
----
-196553
-3563345
-92657

query I rowsort
SELECT DISTINCT + col1 * col2 + + 91 FROM tab0
----
190
301
3898

query I rowsort
SELECT col1 + + 49 FROM tab2
----
100
116
126

onlyif mysql # DIV for integer division: 
query II rowsort label-6945
SELECT + 59 * + col2 * + 4 * + col2 * - - 93 + col0, col0 DIV - - 37 AS col1 FROM tab1
----
101487643
2
202272819
1
76401073
2

skipif mysql # not compatible
query II rowsort label-6945
SELECT + 59 * + col2 * + 4 * + col2 * - - 93 + col0, col0 / - - 37 AS col1 FROM tab1
----
101487643
2
202272819
1
76401073
2

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

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

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

query II rowsort
SELECT + col0 AS col0, col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + + 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query II rowsort label-6950
SELECT + 24 DIV + + 44 * - col2 * 84 DIV + col2, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6950
SELECT + 24 / + + 44 * - col2 * 84 / + col2, col2 FROM tab2
----
0
23
0
40
0
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query II rowsort
SELECT ALL col2, 27 * col0 - - 13 + - col2 * - ( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + 14 + - col0 AS col2 FROM tab0 AS cor0
----
-83
1119
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) - - + 84 / 92 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6956
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) - - + 84 / 92 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * 10 + + col2 FROM tab2 AS cor0
----
-437
-600
-692

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 66 * 27 DIV + col0 col2 FROM tab1 AS cor0
----
19
20
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT DISTINCT + 66 * 27 / + col0 col2 FROM tab1 AS cor0
----
19
20
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT 39 + - COUNT( * ) DIV - + 4 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6959
SELECT 39 + - COUNT ( * ) / - + 4 FROM tab0
----
39

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

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

query II rowsort
SELECT - 63 * - - col0 * + 47 AS col1, + col0 * 83 * col0 FROM tab0
----
-257607
628227
-287217
780947
-44415
18675

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 23 > - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col0 FROM tab1 WHERE NOT - 46 * - col2 / col0 / col2 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 34 + col2 / 12 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 14 * + + col0 AS col2 FROM tab2 AS cor0
----
1050
644
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT ALL - ( + - col0 ) * + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - ( + - col0 ) * + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-2601
-7225
-8281

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

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

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

query I rowsort
SELECT - 84 + + 77 + - 52 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT - - COUNT( DISTINCT - 34 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - - COUNT ( DISTINCT - 34 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6975
SELECT + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - 80 * + col2 + + - col1 + + - 42 AS col1 FROM tab0
----
-3883
-7963
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + ( + - COUNT( * ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6977
SELECT + ( + - COUNT ( * ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 13 / - + COUNT ( * ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT + col0 * + + 66 AS col2 FROM tab0 AS cor0
----
5742
6402
990

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6980
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT + - 21 DIV + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-6981
SELECT + - 21 / + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT DISTINCT 1 + col2 DIV + + 94 + - - 55 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT 1 + col2 / + + 94 + - - 55 FROM tab2
----
56

query I rowsort
SELECT + 41 + - - col1 * - - col2 + + 23 FROM tab0
----
163
274
3871

query I rowsort
SELECT - col2 * + ( - col1 ) FROM tab0 AS cor0
----
210
3807
99

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

query I rowsort
SELECT ALL + + col0 - - col1 - + col1 FROM tab2 AS cor0
----
46
64
75

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

query II rowsort
SELECT + col2 AS col2, 48 AS col2 FROM tab1 AS cor0
----
59
48
68
48
96
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT - + COUNT( * ) col0, MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6989
SELECT - + COUNT ( * ) col0, MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

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

query I rowsort
SELECT col2 * - - col2 * - 91 * - col0 FROM tab1
----
26925535
38291344
42771456

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT - SUM( + ( 48 ) ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-6992
SELECT - SUM ( + ( 48 ) ) FROM tab2
----
-144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6993
SELECT - col0 DIV - CAST( - col2 AS SIGNED ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT - col0 / - CAST ( - col2 AS INTEGER ) FROM tab1
----
-1
-1
0

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

query I rowsort
SELECT + 45 * - + 10 AS col0 FROM tab1
----
-450
-450
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col0, + 92 AS col0 FROM tab0
----
37
92
37
92
37
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT DISTINCT COUNT( * ) AS col1, - 72 * 29 AS col2 FROM tab0
----
3
-2088

skipif mysql # not compatible
query II rowsort label-6997
SELECT DISTINCT COUNT ( * ) AS col1, - 72 * 29 AS col2 FROM tab0
----
3
-2088

query I rowsort
SELECT + 46 + + col2 FROM tab2 AS cor0 WHERE col0 + - + col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6999
SELECT ALL + 87, + 59 + CAST( NULL AS SIGNED ) * ( COUNT( * ) ) * - 49 AS col2 FROM tab1 AS cor0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL + 87, + 59 + CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) * - 49 AS col2 FROM tab1 AS cor0
----
87
NULL

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

query I rowsort
SELECT DISTINCT + - col0 + + 81 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
17
35
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT + ( + col1 ) + - col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT CAST( 50 AS SIGNED ) * col1 + + ( + col0 ) + + 62 + - 93 FROM tab2
----
2565
3394
3883

skipif mysql # not compatible
query I rowsort label-7005
SELECT CAST ( 50 AS INTEGER ) * col1 + + ( + col0 ) + + 62 + - 93 FROM tab2
----
2565
3394
3883

query I rowsort
SELECT + col1 + - + 9 * 15 + + col2 * + col1 FROM tab0
----
-35
3753
96

query I rowsort
SELECT DISTINCT - 50 + 40 + - + 2 FROM tab1
----
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 63 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + COUNT( * ) - + - 87 AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-7010
SELECT + COUNT ( * ) - + - 87 AS col1 FROM tab0
----
90

query I rowsort
SELECT ALL 79 * col0 * col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + + + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab1 cor0 WHERE NOT - col0 = 49
----
59
68
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT DISTINCT - + CAST( + - MAX( ALL + col2 ) AS SIGNED ) * - COUNT( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT DISTINCT - + CAST ( + - MAX ( ALL + col2 ) AS INTEGER ) * - COUNT ( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

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

query I rowsort
SELECT - 25 * - 13 + - col2 * - + col2 FROM tab1 cor0
----
3806
4949
9541

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT ALL - + ( col1 ) DIV + - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - + ( col1 ) / + - col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + + SUM( ALL + col2 ) * 8 FROM tab2 AS cor0
----
968

skipif mysql # not compatible
query I rowsort label-7020
SELECT + + SUM ( ALL + col2 ) * 8 FROM tab2 AS cor0
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7021
SELECT DISTINCT - 22 * + ( - + col0 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
1122
NULL
1870
NULL
2002
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT - 22 * + ( - + col0 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
1122
NULL
1870
NULL
2002
NULL

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

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL 32 / + col1 AS col1 FROM tab0
----
0
1
32

query I rowsort
SELECT 39 * + + col2 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT - col2 * 67 AS col1 FROM tab0
----
-3149
-6633
-670

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

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

query I rowsort
SELECT + 51 * + 60 FROM tab1
----
3060
3060
3060

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 95 + - 12 AS col0 FROM tab0
----
1413
8253
9203

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

query I rowsort
SELECT ALL ( - - 67 ) + + col2 AS col0 FROM tab2
----
107
125
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 87 / + ( - col2 ) + + ( 16 )
----

query I rowsort
SELECT - - 42 + - - col0 AS col1 FROM tab1 AS cor0
----
127
133
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT ( CAST( NULL AS SIGNED ) ), ( - 4 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7035
SELECT ( CAST ( NULL AS INTEGER ) ), ( - 4 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 88 * + 30 AS col1 FROM tab1
----
2640
2640
2640

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7038
SELECT ALL * FROM tab2 WHERE + CAST( + col2 AS SIGNED ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7038
SELECT ALL * FROM tab2 WHERE + CAST ( + col2 AS INTEGER ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 75 + - 84 + - col0 AS col0, col0 * 74 FROM tab2
----
-55
3404
-73
4736
-84
5550

query I rowsort
SELECT + ( - col2 ) - - + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + col0 + + 15 AS col1 FROM tab2 AS cor0
----
61
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + 62 ) + 70 col0 FROM tab2 AS cor0
----
132
132
132

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col0 - col2 = ( - - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT DISTINCT + - 75 * - COUNT( * ) + + + 51 FROM tab2 AS cor0 WHERE NULL BETWEEN 73 / col2 AND + - 41
----
51

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + - 75 * - COUNT ( * ) + + + 51 FROM tab2 AS cor0 WHERE NULL BETWEEN 73 / col2 AND + - 41
----
51

query I rowsort
SELECT + ( 23 ) AS col0 FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + COUNT( * ) * + + 99 * + - ( - + MAX( - col2 ) ) AS col2 FROM tab2
----
-6831

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + COUNT ( * ) * + + 99 * + - ( - + MAX ( - col2 ) ) AS col2 FROM tab2
----
-6831

query II rowsort
SELECT DISTINCT col1, 32 AS col1 FROM tab2
----
51
32
67
32
77
32

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

skipif mysql # not compatible
query I rowsort label-7050
SELECT + CAST ( NULL AS INTEGER ) * + + 72 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 8 ) >= - + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + 29 * col2 FROM tab1 AS cor0
----
1711
1972
2784

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

query I rowsort
SELECT ALL + 29 * col2 FROM tab1 AS cor0
----
1711
1972
2784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col2 * - col1 + - col0, 18 )
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col2 * - col1 + - col0, 18 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT + + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 * + col2 + - col2 IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7061
SELECT + + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 * + col2 + - col2 IS NOT NULL
----
-23
-40
-58

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

query I rowsort
SELECT ALL 85 + col2 + col0 FROM tab0
----
147
182
281

query I rowsort
SELECT - + 68 * - - col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL MIN( - col2 ) - 98 FROM tab0
----
-197

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL MIN ( - col2 ) - 98 FROM tab0
----
-197

query I rowsort
SELECT col1 + - 89 + - 24 FROM tab1
----
-108
-66
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + + col1 col0 FROM tab0 WHERE ( 40 IS NOT NULL )
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 7 * - 32 * - ( col1 ) + 7 > + 45
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT ALL CAST( - 84 AS SIGNED ) + ( - MAX( + 70 ) ) col1 FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT ALL CAST ( - 84 AS INTEGER ) + ( - MAX ( + 70 ) ) col1 FROM tab2 AS cor0
----
-154

query I rowsort
SELECT ALL - - col0 * + col1 - 14 AS col0 FROM tab1 AS cor0
----
411
4263
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * - - ( - 25 ) col1 FROM tab1 cor0
----
775
775
775

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT 99 AS col2, 55 * COUNT( * ) AS col1 FROM tab2
----
99
165

skipif mysql # not compatible
query II rowsort label-7073
SELECT 99 AS col2, 55 * COUNT ( * ) AS col1 FROM tab2
----
99
165

query I rowsort
SELECT - + ( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT + 15 * - 40 * + col0 FROM tab0 AS cor0
----
-52200
-58200
-9000

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

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

query I rowsort
SELECT DISTINCT + 7 * col0 FROM tab2 AS cor0
----
322
448
525

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

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

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

skipif mysql # not compatible
query I rowsort label-7079
SELECT + - MIN ( DISTINCT - 33 ) FROM tab0 AS cor0
----
33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7080
SELECT + col1, CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col1 * - ( + ( + 65 ) ) FROM tab2 AS cor0
----
3315
4355
5005

query I rowsort
SELECT + col1 * - 21 AS col2 FROM tab2
----
-1071
-1407
-1617

query I rowsort
SELECT ALL 78 * - col2 * + - col0 AS col0 FROM tab1
----
381888
391170
482664

query I rowsort
SELECT DISTINCT - col0 * - col0 * - + col0 FROM tab0 WHERE NOT NULL >= - 60
----

query I rowsort
SELECT DISTINCT 63 * 58 AS col0 FROM tab0
----
3654

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

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

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

skipif mysql # not compatible
query I rowsort label-7087
SELECT MIN ( - 31 ) AS col0 FROM tab1 cor0
----
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 NOT IN ( + col1, - col1 - - 15, + col1, - - col2 )
----
51
14
96
85
5
59

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE - - 54 + + 98 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 * - - col2 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT DISTINCT + - col1 + + col2 + - + CAST( - - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7092
SELECT DISTINCT + - col1 + + col2 + - + CAST ( - - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + 90 * + col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT 22 DIV - col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT 22 / - col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL 15 * + COUNT( * ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL 15 * + COUNT ( * ) AS col2 FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT + + 77 AS col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) * 80 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7098
SELECT + + 77 AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) * 80 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL 54 + + COUNT( * ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL 54 + + COUNT ( * ) AS col1 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT MAX( - ( - col1 ) ) - - + 83 FROM tab0
----
164

skipif mysql # not compatible
query I rowsort label-7100
SELECT MAX ( - ( - col1 ) ) - - + 83 FROM tab0
----
164

query I rowsort
SELECT col2 * + + col1 + + + col1 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL + 69 * - col0 - - 67 FROM tab2 cor0 WHERE NOT NULL < + 57
----

query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT MIN( ALL - ( - col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7104
SELECT MIN ( ALL - ( - col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT - + COUNT( * ) DIV - + 71 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT - + COUNT ( * ) / - + 71 AS col0 FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7108
SELECT DISTINCT - col0 AS col0, CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-7108
SELECT DISTINCT - col0 AS col0, CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT 40, col0 AS col2 FROM tab0
----
40
15
40
87
40
97

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

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

query I rowsort
SELECT col1 * - col0 + + ( - 53 ) FROM tab0
----
-1268
-150
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ( - ( + 94 ) ) + SUM( col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7112
SELECT ( - ( + 94 ) ) + SUM ( col1 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL - ( - MIN( DISTINCT - col2 ) ) * - 91 AS col0 FROM tab2 AS cor0
----
5278

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - ( - MIN ( DISTINCT - col2 ) ) * - 91 AS col0 FROM tab2 AS cor0
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7114
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
-9

query I rowsort
SELECT ALL + 72 * col1 AS col2 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT 31 * COUNT( * ) col1 FROM tab0 WHERE NOT col1 > ( 92 )
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7116
SELECT 31 * COUNT ( * ) col1 FROM tab0 WHERE NOT col1 > ( 92 )
----
93

query III rowsort
SELECT * FROM tab0 WHERE - col1 > - 16
----
97
1
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * col0 col0 FROM tab2
----
-3864
-5376
-6300

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

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

query I rowsort
SELECT DISTINCT 22 + + col0 FROM tab0
----
109
119
37

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + SUM( col1 ) * MAX( ALL col2 * col2 ) + 98 FROM tab0 WHERE ( col2 ) IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT + SUM ( col1 ) * MAX ( ALL col2 * col2 ) + 98 FROM tab0 WHERE ( col2 ) IN ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + MAX( DISTINCT - 29 ) * + 51 col1 FROM tab1
----
-1479

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7124
SELECT + MAX ( DISTINCT - 29 ) * + 51 col1 FROM tab1
----
-1479

query I rowsort
SELECT DISTINCT - col2 + 27 FROM tab2 WHERE NULL IS NULL
----
-13
-31
4

query I rowsort
SELECT - col0 * 0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 58 * - col0 AS col2 FROM tab1
----
-2958
-4930
-5278

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

query I rowsort
SELECT ALL ( - 51 ) * 35 AS col2 FROM tab2
----
-1785
-1785
-1785

query I rowsort
SELECT 63 * + col2 AS col1 FROM tab0
----
2961
6237
630

query I rowsort
SELECT 69 * col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT DISTINCT 21 * col2 FROM tab1
----
1239
1428
2016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( 98 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( 98 ) <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - SUM( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 0 + ( - col2 ) FROM tab2
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT col2 DIV 52 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT col2 / 52 AS col2 FROM tab2
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + - MAX( ALL - 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + - MAX ( ALL - 13 ) FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT - COUNT( ALL 41 ) * - SUM( ALL + col0 * + col0 ) FROM tab2 cor0
----
35511

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - COUNT ( ALL 41 ) * - SUM ( ALL + col0 * + col0 ) FROM tab2 cor0
----
35511

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

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

query I rowsort
SELECT ALL + col1 * + ( col2 * + col1 ) AS col0 FROM tab1 AS cor0
----
1475
150212
18816

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 56 + + col2 * col2 IS NULL
----

query I rowsort
SELECT - 53 + 14 AS col0 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT - col2 + + 75 * col1 AS col2 FROM tab0 AS cor0
----
-24
1565
6028

query I rowsort
SELECT 11 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( 60 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 13 + - 27 * 87 IN ( 20 ) OR NOT col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL + COUNT( DISTINCT - 99 ) + 92 * - 83 FROM tab1
----
-7635

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + COUNT ( DISTINCT - 99 ) + 92 * - 83 FROM tab1
----
-7635

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT 71 + - - MIN( - 50 ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT 71 + - - MIN ( - 50 ) AS col1 FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7154
SELECT * FROM tab2 WHERE CAST( - col2 AS SIGNED ) / + 42 + - 68 IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7154
SELECT * FROM tab2 WHERE CAST ( - col2 AS INTEGER ) / + 42 + - 68 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT MIN( ALL - col1 ) FROM tab2 WHERE col0 + 54 / ( 97 ) <= col1 + + col0
----
-77

skipif mysql # not compatible
query I rowsort label-7155
SELECT MIN ( ALL - col1 ) FROM tab2 WHERE col0 + 54 / ( 97 ) <= col1 + + col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT ALL - - CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - - CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - ( 69 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE col1 + 18 NOT BETWEEN - ( col1 ) AND ( 10 )
----
-66

skipif mysql # not compatible
query I rowsort label-7157
SELECT - ( 69 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 + 18 NOT BETWEEN - ( col1 ) AND ( 10 )
----
-66

query I rowsort
SELECT - 18 + + col2 AS col2 FROM tab1
----
41
50
78

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

query I rowsort
SELECT - col0 + 61 + - + col0 FROM tab1
----
-109
-121
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - 80 * - + MIN( - col1 ) AS col0 FROM tab2
----
-6160

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - 80 * - + MIN ( - col1 ) AS col0 FROM tab2
----
-6160

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT CAST( col1 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7164
SELECT - + col2, + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7164
SELECT - + col2, + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( - col1 + 85 * col0 ) IN ( - 21 * + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col1 + 85 * col0 ) IN ( - 21 * + 42 )
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 15 )
----

query I rowsort
SELECT - 18 FROM tab0 AS cor0 WHERE NULL < - 28
----

query I rowsort
SELECT ALL - col2 * + 64 FROM tab2 AS cor0
----
-1472
-2560
-3712

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT + 89 + - MIN( ALL 80 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + 89 + - MIN ( ALL 80 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + - ( 62 ) * + + col1 FROM tab2 AS cor0
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT - 56 * + ( + COUNT( 77 ) ) DIV COUNT( * ) - 42 * - 19 FROM tab2 cor0
----
742

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - 56 * + ( + COUNT ( 77 ) ) / COUNT ( * ) - 42 * - 19 FROM tab2 cor0
----
742

query I rowsort
SELECT ALL col0 * + col0 * - col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

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

query I rowsort
SELECT DISTINCT - - col2 * 34 * - col2 FROM tab1 AS cor0
----
-118354
-157216
-313344

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 + - - col2 + 30 * + col0 IS NOT NULL
----

query I rowsort
SELECT + 80 * + col0 FROM tab0 WHERE NOT ( - + ( + 42 ) * 21 ) IS NULL
----
1200
6960
7760

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 75 ) < col1
----

query I rowsort
SELECT - 77 * - col0 * 30 AS col0 FROM tab0
----
200970
224070
34650

query II rowsort
SELECT DISTINCT - ( col1 ), col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( + ( + 5 ) ) IS NULL )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT + col1 DIV - - 53 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7187
SELECT + col1 / - - 53 AS col0 FROM tab0 cor0
----
0
0
1

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

query I rowsort
SELECT - col2 * + 86 FROM tab1 cor0
----
-5074
-5848
-8256

query I rowsort
SELECT ALL 36 * - col1 AS col0 FROM tab0 AS cor0
----
-2916
-36
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT CAST( NULL AS SIGNED ) / + 91 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT CAST ( NULL AS INTEGER ) / + 91 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT ( NOT ( ( NOT col0 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT ALL - MAX( - col0 ) + COUNT( * ) * - COUNT( * ) DIV + - COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - MAX ( - col0 ) + COUNT ( * ) * - COUNT ( * ) / + - COUNT ( * ) FROM tab2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT DISTINCT MIN( - col2 ) DIV + - MAX( DISTINCT col1 ) col0 FROM tab0
----
1

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

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

query I rowsort
SELECT + col2 * + col0 * + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col0 + - 34 + col0 * - 69 * 67 AS col2 FROM tab1
----
-233257
-385849
-412537

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + ( - + col0 ) + + - col1 * - + 40 * - col0 * 34 AS col1 FROM tab1
----
-578144
-5816879
-971187

query I rowsort
SELECT - 95 + + + col2 AS col1 FROM tab0
----
-48
-85
4

query I rowsort
SELECT DISTINCT + col2 * - - 88 + - col1 AS col0 FROM tab2
----
1973
3443
5037

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

query II rowsort
SELECT + col2, 84 FROM tab0 cor0
----
10
84
47
84
99
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT 25 DIV 26 - - 42 AS col1 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-7206
SELECT 25 / 26 - - 42 AS col1 FROM tab2
----
42
42
42

query I rowsort
SELECT + col1 + + col2 * + col2 FROM tab1 WHERE NULL <= ( - col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - 6 + + ( - ( - 5 ) ) FROM tab0 cor0
----
-1

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

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

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

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

query I rowsort
SELECT - col0 * - 47 AS col1 FROM tab2
----
2162
3008
3525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT - 19 DIV + MIN( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT - 19 / + MIN ( DISTINCT col2 ) FROM tab1
----
0

query I rowsort
SELECT + 67 * - ( 34 ) AS col2 FROM tab2
----
-2278
-2278
-2278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7217
SELECT * FROM tab1 WHERE NOT + 24 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7217
SELECT * FROM tab1 WHERE NOT + 24 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab2 WHERE NOT - + col2 * col0 - col1 IS NULL
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7219
SELECT DISTINCT * FROM tab1 WHERE + - col1 IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7219
SELECT DISTINCT * FROM tab1 WHERE + - col1 IN ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 4 * 91 AS col1 FROM tab2
----
364
364
364

query II rowsort
SELECT ALL col2 * ( - col2 ), col2 + col0 * - - col2 AS col1 FROM tab1
----
-3481
5074
-4624
6256
-9216
4992

query II rowsort
SELECT + ( + col2 ) * + col1 AS col2, col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT - SUM( + 99 ) FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - SUM ( + 99 ) FROM tab1 AS cor0
----
-297

query I rowsort
SELECT DISTINCT 3 + - ( - col2 ) AS col2 FROM tab2 WHERE ( 49 * + col0 ) IS NOT NULL
----
26
43
61

query I rowsort
SELECT - - col2 + 26 AS col2 FROM tab2 AS cor0
----
49
66
84

query II rowsort
SELECT - col0 + - 22 AS col2, col0 FROM tab1 cor0
----
-107
85
-113
91
-73
51

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

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

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

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

query I rowsort
SELECT ALL 66 + + col1 FROM tab1 AS cor0
----
113
71
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col0 + - - col1 col2, + col0 - - col0 FROM tab0
----
1296
30
1848
174
98
194

query I rowsort
SELECT ALL + ( - 8 ) AS col1 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT + col2 + + - 59 FROM tab2
----
-1
-19
-36

query I rowsort
SELECT DISTINCT - col1 * - + ( 20 ) + + 4 * + 29 AS col1 FROM tab1
----
1056
216
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL SUM( col0 ) FROM tab2 AS cor0 WHERE NOT - col2 = - col1 + - col0
----
185

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT - col2 = - col1 + - col0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7237
SELECT ALL * FROM tab2 cor0 WHERE ( - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7237
SELECT ALL * FROM tab2 cor0 WHERE ( - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + - 62 IN ( + + 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT MIN( ALL - 24 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT MIN ( ALL - 24 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) + + col1 FROM tab0
----
-98
11
34

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

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

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

query II rowsort
SELECT 51 AS col1, - 99 FROM tab0 AS cor0
----
51
-99
51
-99
51
-99

query I rowsort
SELECT - ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT + + MIN( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( 69 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT ( NOT 21 / 42 < col1 ) ) )
----

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

query I rowsort
SELECT ALL + ( + + 55 ) FROM tab2 AS cor0
----
55
55
55

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

query I rowsort
SELECT DISTINCT 55 + - col0 AS col1 FROM tab1
----
-30
-36
4

query I rowsort
SELECT 71 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + 64
----
0

query I rowsort
SELECT - col0 * + 95 + col2 FROM tab1 AS cor0
----
-4749
-8016
-8577

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

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 IS NOT NULL )
----
138
65
90

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT ( - col0 + col0 + col0 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * + col0 + - 54 IS NULL
----

query I rowsort
SELECT + 64 + + 65 + - ( - - 85 ) FROM tab2 AS cor0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 * + col1 ) > col0 * col1 + + - ( 49 )
----
87
21
10

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= - col2 + - col1 + - col2 + - col0 / - - ( + ( + + col1 ) ) OR NULL <= 16 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT COUNT( * ) + - 27 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7266
SELECT COUNT ( * ) + - 27 FROM tab1
----
-24

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

query I rowsort
SELECT ALL ( col0 ) * col2 * + col1 - + col0 * + col0 FROM tab2
----
193024
285825
51842

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL - 0 + + - 23 + + COUNT( * ) AS col0 FROM tab1 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - 0 + + - 23 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-20

query I rowsort
SELECT ALL col0 * col0 * + col2 AS col0 FROM tab2
----
163840
326250
48668

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

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 / + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + - MIN( ALL - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7275
SELECT + - MIN ( ALL - col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + + SUM( 37 ) FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7276
SELECT + + SUM ( 37 ) FROM tab2 AS cor0
----
111

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

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

query II rowsort
SELECT - 82 AS col1, - col1 * + col2 FROM tab2
----
-82
-1173
-82
-3080
-82
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + SUM( ALL + + 62 ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-7280
SELECT + SUM ( ALL + + 62 ) FROM tab2
----
186

query I rowsort
SELECT ALL col0 FROM tab1 WHERE - 78 IS NULL
----

query I rowsort
SELECT 22 * col2 FROM tab2
----
1276
506
880

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT DISTINCT col2 DIV - - 5 FROM tab0
----
19
2
9

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT col2 / - - 5 FROM tab0
----
19
2
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7284
SELECT DISTINCT - MAX( - CAST( - col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - MAX ( - CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - + 3 * + 71 * + - 45 FROM tab1 WHERE NOT - col2 - 70 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + MAX( - - 54 ) + COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7288
SELECT + MAX ( - - 54 ) + COUNT ( * ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL COUNT( * ) + 17 AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) + 17 AS col2 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7290
SELECT ALL + - COUNT( - + col1 ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7290
SELECT ALL + - COUNT ( - + col1 ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT 52 * - + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2444
-260
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT - + ( - 28 ) DIV + col2 * col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT - + ( - 28 ) / + col2 * col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col2 ) * col2 * - - 61 AS col1 FROM tab0 AS cor0
----
134749
597861
6100

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT + col2 DIV + - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7294
SELECT + col2 / + - col1 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT ALL + col1 + 56 + col1 AS col1 FROM tab1 AS cor0
----
150
66
84

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7296
SELECT ALL + SUM ( DISTINCT + col0 ) col1 FROM tab2
----
185

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 49 AND + 79
----

query I rowsort
SELECT - 92 + - + col1 FROM tab2 AS cor0
----
-143
-159
-169

query I rowsort
SELECT ALL col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT - COUNT( * ) - - 89 AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - COUNT ( * ) - - 89 AS col1 FROM tab0 AS cor0
----
86

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 74
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < 37 - - ( + 11 ) * + 19
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT DISTINCT ( CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT ( CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 + - + col2 - + col2 NOT IN ( + col2, - 89 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7309
SELECT DISTINCT ( col2 ) DIV + + col0, + 89 * + col2 + + col2 - col0 AS col1 FROM tab1
----
0
5225
0
6029
1
8589

skipif mysql # not compatible
query II rowsort label-7309
SELECT DISTINCT ( col2 ) / + + col0, + 89 * + col2 + + col2 - col0 AS col1 FROM tab1
----
0
5225
0
6029
1
8589

query I rowsort
SELECT col0 * + 47 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT ALL + 52 + + + 80 + + col2 FROM tab1
----
191
200
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - MIN( - - col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - MIN ( - - col1 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <= col0
----
46
51
23
64
77
40

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

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

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

skipif mysql # not compatible
query I rowsort label-7315
SELECT 42 FROM tab0 AS cor0 WHERE NOT col0 > - - CAST ( NULL AS INTEGER ) + + - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - MIN( - - 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7317
SELECT - MIN ( - - 80 ) FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT col2 DIV + 21 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-7318
SELECT col2 / + 21 FROM tab1
----
2
3
4

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

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

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

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

query II rowsort
SELECT ALL - - col1 AS col1, - 64 AS col2 FROM tab2 AS cor0
----
51
-64
67
-64
77
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - ( 33 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 81 + - col1 * + - 93 AS col1 FROM tab2 AS cor0
----
4662
6150
7080

query I rowsort
SELECT - col0 + + 71 FROM tab0
----
-16
-26
56

query I rowsort
SELECT - col2 + + 39 AS col2 FROM tab0
----
-60
-8
29

query I rowsort
SELECT DISTINCT + 52 * - - col2 AS col2 FROM tab0
----
2444
5148
520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL + 69 + + - 58 * + COUNT( * ) + - + MIN( - - col0 ) FROM tab2
----
-151

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + 69 + + - 58 * + COUNT ( * ) + - + MIN ( - - col0 ) FROM tab2
----
-151

query II rowsort
SELECT DISTINCT col2 + + col1 AS col1, col2 AS col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT ALL ( ( + 48 ) ) - - col1 FROM tab0
----
129
49
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) + col0 + - + col1 * col2 AS col2 FROM tab1 cor0
----
-1279
-205
-3058

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) + col0 + - + col1 * col2 AS col2 FROM tab1 cor0
----
-1279
-205
-3058

query II rowsort
SELECT DISTINCT + col0 * + 40 + + + col2 AS col1, col1 FROM tab1 AS cor0
----
2136
14
3459
5
3708
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL + COUNT( * ) * 13 * - 36 FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + COUNT ( * ) * 13 * - 36 FROM tab0 AS cor0
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT( * ) FROM tab1
----
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT ( * ) FROM tab1
----
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT DISTINCT 0 DIV + - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT 0 / + - col2 FROM tab2
----
0

query I rowsort
SELECT ALL + 59 * + 8 AS col2 FROM tab0
----
472
472
472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT + CAST( NULL AS SIGNED ) * - 37 col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT 18 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7339
SELECT 18 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT ALL + - col0 * - + col2 * + + col2 - + col0 + + col2 - + 33 AS col0 FROM tab0 AS cor0
----
33134
8590
950666

query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab2 AS cor0 WHERE ( - 55 ) = NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT DISTINCT ( + col1 ) * + col0 + 27 FROM tab2 AS cor0 WHERE NULL <> col2 - 95 + - + CAST( + 62 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT ( + col1 ) * + col0 + 27 FROM tab2 AS cor0 WHERE NULL <> col2 - 95 + - + CAST ( + 62 AS INTEGER ) * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + - 62 col0 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7345
SELECT + col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7345
SELECT + col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - - SUM( DISTINCT - - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7346
SELECT - - SUM ( DISTINCT - - col1 ) FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL COUNT( CAST( - 59 AS SIGNED ) ) * + - MAX( ALL + + col0 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL COUNT ( CAST ( - 59 AS INTEGER ) ) * + - MAX ( ALL + + col0 ) FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + MIN( + - col0 ) FROM tab0
----
-97

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

query II rowsort
SELECT ALL + 81 AS col0, + 30 FROM tab0, tab2 AS cor0
----
18 values hashing to 17182373768aa6a4b77eac31941879b7

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

query I rowsort
SELECT DISTINCT col0 + - + 56 FROM tab1
----
-5
29
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL + ( + SUM( DISTINCT - - col1 ) ) AS col2 FROM tab2 WHERE NOT col2 NOT IN ( + + col2 * + + col2 / + 72 * - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + ( + SUM ( DISTINCT - - col1 ) ) AS col2 FROM tab2 WHERE NOT col2 NOT IN ( + + col2 * + + col2 / + 72 * - 24 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT - CAST( col2 AS SIGNED ) * + - ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-7353
SELECT - CAST ( col2 AS INTEGER ) * + - ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0 * + col1 * col2 * + col0 * - ( - col1 ) OR NOT + + 19 = - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-4
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL - ( - 56 ) - SUM( 86 ) FROM tab2 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - ( - 56 ) - SUM ( 86 ) FROM tab2 AS cor0
----
-202

query I rowsort
SELECT DISTINCT + - col2 * col0 + + - col1 - - + col0 AS col1 FROM tab2 AS cor0
----
-1063
-2573
-4342

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

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

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

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

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

query I rowsort
SELECT - 77 - ( + col1 ) + + col1 * + 15 * col2 FROM tab1
----
20069
4343
47816

query I rowsort
SELECT - - col1 - + - 32 * - - 26 FROM tab1 WHERE NOT - + col2 > col2
----
837
846
879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL col1 * - - col1 * - CAST( - - col2 AS SIGNED ) FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL col1 * - - col1 * - CAST ( - - col2 AS INTEGER ) FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT col1 AS col2, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7368
SELECT col1, - CAST( NULL AS SIGNED ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7368
SELECT col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT COUNT( * ) col0 FROM tab0 WHERE NOT NULL > + col2 * + 61 * - ( - + col1 ) * - col0 * - - 72 + - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7369
SELECT COUNT ( * ) col0 FROM tab0 WHERE NOT NULL > + col2 * + 61 * - ( - + col1 ) * - col0 * - - 72 + - col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT DISTINCT - CAST( + 87 AS SIGNED ) * col2 + col1 - + + 9 AS col2 FROM tab2 AS cor0
----
-1959
-3412
-4988

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - CAST ( + 87 AS INTEGER ) * col2 + col1 - + + 9 AS col2 FROM tab2 AS cor0
----
-1959
-3412
-4988

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) + - 35 FROM tab2 cor0
----
-104
-139
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7374
SELECT ALL + COUNT( * ) DIV COUNT( * ) + - 46 AS col0, COUNT( * ) + - ( - + COUNT( * ) ) FROM tab1
----
-45
6

skipif mysql # not compatible
query II rowsort label-7374
SELECT ALL + COUNT ( * ) / COUNT ( * ) + - 46 AS col0, COUNT ( * ) + - ( - + COUNT ( * ) ) FROM tab1
----
-45
6

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

query I rowsort
SELECT ALL - col0 * + ( - col2 ) + - + 10 + - col1 AS col2 FROM tab1
----
4872
5000
6131

onlyif mysql # DIV for integer division: 
query I rowsort label-7377
SELECT col2 + col0 - + + col1 DIV + 59 FROM tab0
----
196
61
97

skipif mysql # not compatible
query I rowsort label-7377
SELECT col2 + col0 - + + col1 / + 59 FROM tab0
----
196
61
97

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

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

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

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

query I rowsort
SELECT ALL + 10 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + 58 AS col2 FROM tab1
----
105
63
72

query I rowsort
SELECT - - 51 + + 24 AS col2 FROM tab1 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + + col0 AND + col2
----
85
5
59
91
47
68

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + 17 IS NULL
----

query II rowsort
SELECT col0 + + 42 AS col0, + col1 FROM tab2 AS cor0
----
106
77
117
67
88
51

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

query I rowsort
SELECT DISTINCT + - col0 - + col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) - SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) - SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL COUNT( * ) * + + 6 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL COUNT ( * ) * + + 6 FROM tab2 AS cor0
----
18

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

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

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

query II rowsort
SELECT + col0 AS col0, 83 + - 24 * - col0 * + col1 FROM tab1
----
51
17219
85
10283
91
102731

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT MAX( DISTINCT - - 33 ) col0 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7397
SELECT MAX ( DISTINCT - - 33 ) col0 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + + MIN( ( - + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7398
SELECT + + MIN ( ( - + col1 ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT 74 * - col2 * + col2 FROM tab1
----
-257594
-342176
-681984

query I rowsort
SELECT DISTINCT 47 * + 56 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + 91 / - 17 AND + + 18
----
2632

query II rowsort
SELECT DISTINCT 64, + col0 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
64
-210
64
-7482
64
-9312

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

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

query II rowsort
SELECT ALL + col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT + ( - + MAX( ALL - - 15 ) ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT + ( - + MAX ( ALL - - 15 ) ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + 25 + - col2 + - col1 + - - 74 FROM tab2 cor0
----
-18
-26
25

query I rowsort
SELECT DISTINCT + col1 + + col2 + col2 + 91 * col0 AS col0 FROM tab2
----
4283
5981
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT + COUNT( - col2 ) + + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT + COUNT ( - col2 ) + + 61 FROM tab1
----
64

query I rowsort
SELECT + - 25 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col1 * 87 * + + 75
----

query I rowsort
SELECT DISTINCT ( - 93 ) + - + col2 AS col2 FROM tab2
----
-116
-133
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT DISTINCT AVG ( ALL - col2 ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT AVG ( ALL - col2 ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 74 + + 31 FROM tab1
----
105
105
105

query I rowsort
SELECT DISTINCT + 41 + - - 78 AS col0 FROM tab0
----
119

query I rowsort
SELECT + col0 + + + ( col1 ) + - 51 FROM tab1 cor0
----
14
39
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT 38 DIV - + col2 + - + 89 AS col0 FROM tab2
----
-89
-90

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT 38 / - + col2 + - + 89 AS col0 FROM tab2
----
-89
-90

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

query I rowsort
SELECT ALL 62 + - 35 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT ALL col0 - col2 * + + col0 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col2 + - - col0 < + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + - 34 FROM tab0
----
-2958
-3298
-510

onlyif mysql # DIV for integer division: 
query II rowsort label-7422
SELECT DISTINCT + col1 DIV + col0, col2 FROM tab0
----
0
10
0
99
5
47

skipif mysql # not compatible
query II rowsort label-7422
SELECT DISTINCT + col1 / + col0, col2 FROM tab0
----
0
10
0
99
5
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT col1 DIV + 98 * - - ( + col2 ) * + 36 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT col1 / + 98 * - - ( + col2 ) * + 36 col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7424
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

query I rowsort
SELECT - 86 * - col2 FROM tab0
----
4042
8514
860

query I rowsort
SELECT ALL 18 + + col0 FROM tab2
----
64
82
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL ( + CAST( + - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL ( + CAST ( + - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - 38 * + - col2 AS col2 FROM tab1 AS cor0
----
2242
2584
3648

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

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

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

skipif mysql # not compatible
query I rowsort label-7431
SELECT col1 * - 24 * + CAST ( NULL AS INTEGER ) + col2 * + col0 * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + MIN( + col1 ) col1 FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7432
SELECT + MIN ( + col1 ) col1 FROM tab2 WHERE + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT col2 + - ( 87 ) DIV - col0 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7433
SELECT col2 + - ( 87 ) / - col0 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT + col2 * + 92 + + 94 * - ( 93 ) - + col1 AS col0 FROM tab1
----
-2533
-3319
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7435
SELECT col1 + - col1 - col2 DIV - 32 col1, - 44 DIV col1 + col1 DIV + col2 FROM tab2
----
0
2
1
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7435
SELECT col1 + - col1 - col2 / - 32 col1, - 44 / col1 + col1 / + col2 FROM tab2
----
0
2
1
1
1
1

query I rowsort
SELECT ALL - - 87 FROM tab0 WHERE col2 = - 55 + col0
----

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

skipif mysql # not compatible
query I rowsort label-7437
SELECT COUNT ( - col0 ) + + + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL SUM( ALL - col1 ) + + + 80 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL SUM ( ALL - col1 ) + + + 80 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - col1 - col1 - - col2 + - col2 * - col1 FROM tab2 AS cor0
----
1094
2966
3810

query I rowsort
SELECT DISTINCT + 87 * + 51 FROM tab1 AS cor0
----
4437

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col2 <> - + 33 * 70 + - + col2
----
59
68
96

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

query I rowsort
SELECT ALL - 14 * col0 AS col1 FROM tab2 AS cor0
----
-1050
-644
-896

query I rowsort
SELECT + + ( - 26 ) - + col0 AS col2 FROM tab2 AS cor0
----
-101
-72
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT + col1 - + - 69 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col0 * - 94 FROM tab1
----
-4794
-7990
-8554

query I rowsort
SELECT DISTINCT - - 30 AS col0 FROM tab1 cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE - col1 * + 37 / + 69 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 <= 10
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 IN ( - col1, 70, col2 )
----

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

query I rowsort
SELECT ALL + 3 * - col2 AS col1 FROM tab2 AS cor0
----
-120
-174
-69

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL 95 DIV MIN( - + col0 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL 95 / MIN ( - + col0 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT - ( - ( - 4 ) ) * - col0 - + col0 AS col0 FROM tab1 AS cor0
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT COUNT( * ) * + + 16 AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7456
SELECT COUNT ( * ) * + + 16 AS col0 FROM tab1
----
48

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 col2 FROM tab2 WHERE NOT - - col1 <= + - col0
----
-82

query I rowsort
SELECT ALL + + 73 * - col1 FROM tab0 cor0
----
-1533
-5913
-73

query I rowsort
SELECT ALL - 9 * + - 59 FROM tab0 AS cor0
----
531
531
531

query I rowsort
SELECT DISTINCT - + col0 * 9 AS col2 FROM tab0 WHERE 59 IS NULL
----

query I rowsort
SELECT 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT 37 DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-7463
SELECT 37 / + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT + - 83 + + col1 FROM tab1 AS cor0
----
-36
-69
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT - COUNT( DISTINCT + 71 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - COUNT ( DISTINCT + 71 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col1 + + col0 - + 57 * + col1 FROM tab2 AS cor0
----
-2810
-3677
-4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 col0 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT - COUNT( ALL + 90 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT - COUNT ( ALL + 90 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT ALL + MIN( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7470
SELECT ALL + MIN ( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

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

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

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

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

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

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

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

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

query I rowsort
SELECT 22 AS col0 FROM tab1 AS cor0 WHERE 90 IS NULL
----

query II rowsort
SELECT + col2 AS col2, 11 + + - 29 + - - 14 FROM tab0
----
10
-4
47
-4
99
-4

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

skipif mysql # not compatible
query I rowsort label-7477
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7478
SELECT DISTINCT CAST( - col1 AS DECIMAL ) + col0 * + - col1 FROM tab1 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT CAST ( - col1 AS REAL ) + col0 * + - col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL col0 + + 28 FROM tab1
----
113
119
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7480
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND 65 + - - CAST( NULL AS SIGNED ) * col0 * + - 87
----

skipif mysql # not compatible
query III rowsort label-7480
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND 65 + - - CAST ( NULL AS INTEGER ) * col0 * + - 87
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7481
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * + col2 - + 30 AS col1 FROM tab0
----
180
3777
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL - SUM( + + col1 ) FROM tab2 cor0 WHERE ( NULL ) <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - SUM ( + + col1 ) FROM tab2 cor0 WHERE ( NULL ) <= + col2
----
NULL

query I rowsort
SELECT ALL - 76 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 49 ) AND + + 8
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 36 AND 22
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7487
SELECT col0 DIV 53 col0, 4 * + col1 AS col0 FROM tab2
----
0
204
1
268
1
308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7487
SELECT col0 / 53 col0, 4 * + col1 AS col0 FROM tab2
----
0
204
1
268
1
308

onlyif mysql # aggregate syntax: 
query II rowsort label-7488
SELECT + 70 AS col2, + COUNT( DISTINCT col2 ) FROM tab1 cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-7488
SELECT + 70 AS col2, + COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
70
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 5 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT 61 * - + 57, col0 FROM tab2 cor0
----
-3477
46
-3477
64
-3477
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7492
SELECT + CAST( + 19 AS DECIMAL ) * + 34 + col2 FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7492
SELECT + CAST ( + 19 AS REAL ) * + 34 + col2 FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT 77 * col0 AS col2 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT ( col0 ) * - ( - - 98 ) FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT col2 * + col1 * - col0 AS col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT + col2 DIV - col0 * + + 6 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT + col2 / - col0 * + + 6 FROM tab2
----
0
0
0

query I rowsort
SELECT + - 42 + - col0 FROM tab0 AS cor0
----
-129
-139
-57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT ALL + + COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-7499
SELECT ALL + + COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT 78 AS col2, COUNT( * ) FROM tab1
----
78
3

skipif mysql # not compatible
query II rowsort label-7500
SELECT 78 AS col2, COUNT ( * ) FROM tab1
----
78
3

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

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

query I rowsort
SELECT 10 - col0 FROM tab1 cor0
----
-41
-75
-81

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

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

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

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

query I rowsort
SELECT DISTINCT - ( 63 ) FROM tab0 cor0
----
-63

query I rowsort
SELECT 29 + + - 46 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7508
SELECT + MIN( DISTINCT - col1 ) DIV 83 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT + MIN ( DISTINCT - col1 ) / 83 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + ( + MAX( DISTINCT col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + ( + MAX ( DISTINCT col2 ) ) AS col1 FROM tab0
----
99

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

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

query I rowsort
SELECT - 63 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT ALL - col1 + + col2 DIV + + 16 FROM tab1
----
-2
-43
-8

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - col1 + + col2 / + + 16 FROM tab1
----
-2
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + COUNT( * ) - - MIN( ALL + + col1 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + COUNT ( * ) - - MIN ( ALL + + col1 ) AS col0 FROM tab2
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT + SUM( + + 2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7515
SELECT + SUM ( + + 2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT 57 * - MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
2907

skipif mysql # not compatible
query I rowsort label-7518
SELECT 57 * - MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
2907

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT 73 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT 73 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

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

query II rowsort
SELECT ALL - ( 67 ), col2 FROM tab2
----
-67
23
-67
40
-67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT - COUNT( * ) AS col1, + 39 FROM tab2
----
-3
39

skipif mysql # not compatible
query II rowsort label-7523
SELECT - COUNT ( * ) AS col1, + 39 FROM tab2
----
-3
39

query II rowsort
SELECT DISTINCT 43 AS col1, - col2 * + + col2 FROM tab2
----
43
-1600
43
-3364
43
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7525
SELECT ALL col2 + + CAST( - 53 AS SIGNED ) * 62 col0, - col0 + + + 90 AS col2 FROM tab1
----
-3190
39
-3218
-1
-3227
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7525
SELECT ALL col2 + + CAST ( - 53 AS INTEGER ) * 62 col0, - col0 + + + 90 AS col2 FROM tab1
----
-3190
39
-3218
-1
-3227
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * 61 col1 FROM tab0
----
5368

query I rowsort
SELECT DISTINCT col0 * + + col1 * col1 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 33 * - 92 col0, - 77 - + col1 * - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3036
1096
3036
3003
3036
3809

query I rowsort
SELECT ALL col1 * 51 AS col1 FROM tab0 AS cor0
----
1071
4131
51

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

query II rowsort
SELECT DISTINCT - + 11 AS col0, - col2 + - - col2 * + col1 FROM tab2 AS cor0
----
-11
1150
-11
3040
-11
3828

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT DISTINCT - col2 + - + col0 DIV - col0 AS col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - col2 + - + col0 / - col0 AS col2 FROM tab2
----
-22
-39
-57

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

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

query I rowsort
SELECT DISTINCT - col1 * 99 + + col0 AS col1 FROM tab0 AS cor0
----
-1992
-2
-8004

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7538
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= - col0
----

skipif mysql # not compatible
query III rowsort label-7538
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - COUNT( * ) * COUNT( * ) + SUM( ALL col1 ) AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7539
SELECT - COUNT ( * ) * COUNT ( * ) + SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL + CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL col2, 7 FROM tab1
----
59
7
68
7
96
7

query II rowsort
SELECT DISTINCT 66 * - col1 + + col0, col1 FROM tab0
----
-1299
21
-5331
81
31
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT ALL COUNT( * ) AS col2, - 5 AS col0 FROM tab0
----
3
-5

skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL COUNT ( * ) AS col2, - 5 AS col0 FROM tab0
----
3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col1 + + - col2 / 23 * + 64 * - + col1 * - + col0 + + col2 col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT + col1 AS col1, + col0 AS col0 FROM tab0 WHERE ( 10 NOT IN ( - 70, + col2, 39 * + col2, + 7, + - 61 - col0 + - CAST( - - col1 AS SIGNED ) + - - ( + col0 ) ) )
----
1
97
81
15

skipif mysql # not compatible
query II rowsort label-7545
SELECT + col1 AS col1, + col0 AS col0 FROM tab0 WHERE ( 10 NOT IN ( - 70, + col2, 39 * + col2, + 7, + - 61 - col0 + - CAST ( - - col1 AS INTEGER ) + - - ( + col0 ) ) )
----
1
97
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT + col1 + - CAST( - col1 AS SIGNED ) * col0 + + + 54 AS col0 FROM tab0
----
1350
152
1902

skipif mysql # not compatible
query I rowsort label-7546
SELECT + col1 + - CAST ( - col1 AS INTEGER ) * col0 + + + 54 AS col0 FROM tab0
----
1350
152
1902

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

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

query I rowsort
SELECT ALL - col2 + - - ( col2 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7549
SELECT DISTINCT - col2 col0, + CAST( + col2 AS SIGNED ) * - - col1 + - - col1 - + col2 FROM tab2 AS cor0
----
-23
1201
-40
3117
-58
3895

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7549
SELECT DISTINCT - col2 col0, + CAST ( + col2 AS INTEGER ) * - - col1 + - - col1 - + col2 FROM tab2 AS cor0
----
-23
1201
-40
3117
-58
3895

query I rowsort
SELECT ALL - col0 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 >= + col2
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col1 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 9 col1 FROM tab1
----
-4
38
5

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT BETWEEN ( - 77 ) AND - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT ALL col1 DIV col0 + col1 AS col0 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL col1 / col0 + col1 AS col0 FROM tab2
----
52
67
78

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NULL NOT IN ( + ( col0 ) )
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 61 - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7560
SELECT CAST( NULL AS DECIMAL ) + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7560
SELECT CAST ( NULL AS REAL ) + col1 col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 * - ( col2 * col1 ) ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT COUNT( * ) + - COUNT( col1 + + col0 * - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT COUNT ( * ) + - COUNT ( col1 + + col0 * - col2 ) AS col1 FROM tab0
----
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - 41 / ( - 6 ) IN ( + col1 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT - ( - col1 ) * col0 FROM tab1
----
425
4277
714

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

query I rowsort
SELECT ALL - 94 * 95 AS col1 FROM tab0 AS cor0
----
-8930
-8930
-8930

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - 98 - - col1 FROM tab1
----
-51
-84
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - col0 col2 FROM tab0 AS cor0 WHERE + 86 / + 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT ALL - col1 + 35 DIV + col1 FROM tab0 AS cor0
----
-20
-81
34

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - col1 + 35 / + col1 FROM tab0 AS cor0
----
-20
-81
34

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

query I rowsort
SELECT DISTINCT + - col0 - + col1 * col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT MIN( DISTINCT 19 ) AS col0 FROM tab2 AS cor0 WHERE ( col2 * - col0 ) IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-7576
SELECT MIN ( DISTINCT 19 ) AS col0 FROM tab2 AS cor0 WHERE ( col2 * - col0 ) IS NOT NULL
----
19

query I rowsort
SELECT ALL + col0 * 60 - - col0 FROM tab2 cor0
----
2806
3904
4575

query I rowsort
SELECT DISTINCT + col1 + - 99 FROM tab2 AS cor0 WHERE NOT - col1 - col0 * ( col0 ) BETWEEN 76 AND ( col2 )
----
-22
-32
-48

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE 6 = col1
----

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

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

query I rowsort
SELECT + AVG ( DISTINCT - 66 ) FROM tab2 AS cor0 WHERE NULL < ( col1 - - col1 * - 19 )
----
NULL

query I rowsort
SELECT - col1 + + 56 AS col1 FROM tab1 AS cor0
----
42
51
9

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

skipif mysql # not compatible
query I rowsort label-7583
SELECT + col2 / - CAST ( NULL AS INTEGER ) * + col2 + 54 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col2 + + + col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT 39 * - + 32 AS col1 FROM tab1
----
-1248
-1248
-1248

query I rowsort
SELECT ALL col0 + 36 - col1 * + col2 FROM tab0
----
-3756
-87
34

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

skipif mysql # not compatible
query I rowsort label-7588
SELECT + COUNT ( * ) / - + 26 AS col0 FROM tab0
----
0

query I rowsort
SELECT 88 * 41 AS col2 FROM tab2
----
3608
3608
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT ALL COUNT( DISTINCT + - 76 ) DIV - 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL COUNT ( DISTINCT + - 76 ) / - 92 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7591
SELECT * FROM tab1 WHERE NOT + - 66 * ( CAST( 44 AS SIGNED ) ) = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7591
SELECT * FROM tab1 WHERE NOT + - 66 * ( CAST ( 44 AS INTEGER ) ) = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT COUNT( ( - 91 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7592
SELECT COUNT ( ( - 91 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7594
SELECT * FROM tab2 AS cor0 WHERE NOT ( 34 + + CAST( NULL AS SIGNED ) - 7 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7594
SELECT * FROM tab2 AS cor0 WHERE NOT ( 34 + + CAST ( NULL AS INTEGER ) - 7 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
1173
3080
3886

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

skipif mysql # not compatible
query I rowsort label-7597
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + 98 * + - col0 AS col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT - COUNT( - CAST( + 63 AS SIGNED ) ) * 57 AS col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7602
SELECT - COUNT ( - CAST ( + 63 AS INTEGER ) ) * 57 AS col0 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT ALL col2 + + 17 FROM tab1
----
113
76
85

query I rowsort
SELECT - col0 FROM tab0 WHERE ( + col1 ) IN ( - 31 + col0 * col0 )
----

query I rowsort
SELECT - col1 / ( + ( 68 ) ) AS col2 FROM tab2 WHERE ( - col1 - + 88 ) IS NULL
----

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

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

query I rowsort
SELECT ALL + 93 * 83 + col2 FROM tab1
----
7778
7787
7815

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT MAX( DISTINCT - - ( col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7609
SELECT MAX ( DISTINCT - - ( col0 ) ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL - 7 + COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - 7 + COUNT ( * ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( + col2 * + col0 + - ( 80 ) + col0 * + col1 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + COUNT( * ) FROM tab1 WHERE - col1 - - + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT + COUNT ( * ) FROM tab1 WHERE - col1 - - + col1 IS NOT NULL
----
3

query II rowsort
SELECT + col2, 25 * + col1 FROM tab1
----
59
125
68
1175
96
350

query I rowsort
SELECT DISTINCT + col1 * + 24 - col0 FROM tab1 AS cor0
----
1037
285
35

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

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

query I rowsort
SELECT ALL - 11 + + - col2 FROM tab0 WHERE NOT + 99 + - 39 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( - col0 ) IN ( col1 * col2 )
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7619
SELECT ALL ( + + COUNT( * ) ) AS col1 FROM tab2 WHERE NOT ( + CAST( - + 37 AS DECIMAL ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL ( + + COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT ( + CAST ( - + 37 AS REAL ) ) IS NULL
----
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7622
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7622
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 63 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

query I rowsort
SELECT DISTINCT + col2 * - + 34 * + col0 AS col2 FROM tab1 AS cor0
----
-166464
-170510
-210392

query I rowsort
SELECT DISTINCT + col0 * + + 14 FROM tab1 AS cor0
----
1190
1274
714

query II rowsort
SELECT 12 AS col2, + 15 AS col2 FROM tab2 AS cor0
----
12
15
12
15
12
15

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7629
SELECT ALL - COUNT( * ) + - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) DIV 93 + + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - COUNT ( * ) + - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) / 93 + + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT col2 < ( + col2 * - col0 )
----
1
21
81

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( * ) * - 28 + + COUNT ( * ) / 36 FROM tab1
----
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 65 / + 56 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * - 74, - col2 )
----

query I rowsort
SELECT DISTINCT col2 + + 44 FROM tab0
----
143
54
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT - 84 * + + col1 * col2 + + 43 + - col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT - 84 * + + col1 * col2 + + 43 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * - - 22 + col1 + - 20 col2 FROM tab2
----
1043
1059
1069

query I rowsort
SELECT ALL - col1 + + col2 * - col0 * + + col1 AS col0 FROM tab0
----
-18291
-57186
-9604

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7641
SELECT ALL COUNT( * ) + - COUNT( * ) col1 FROM tab2 WHERE - - col1 >= + CAST( NULL AS DECIMAL ) + - - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7641
SELECT ALL COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 WHERE - - col1 >= + CAST ( NULL AS REAL ) + - - col2
----
0

query I rowsort
SELECT DISTINCT 5 + + col0 AS col0 FROM tab0
----
102
20
92

query II rowsort
SELECT DISTINCT + 81 AS col0, - col1 + + - col0 FROM tab2
----
81
-141
81
-142
81
-97

query I rowsort
SELECT ALL - 6 + - col2 AS col1 FROM tab2
----
-29
-46
-64

query I rowsort
SELECT DISTINCT + ( - 25 ) AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7646
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - + CAST( NULL AS SIGNED ) <> ( col2 / - 36 )
----

skipif mysql # not compatible
query III rowsort label-7646
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - + CAST ( NULL AS INTEGER ) <> ( col2 / - 36 )
----

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

query I rowsort
SELECT - col0 * + col2 FROM tab1 AS cor0 WHERE col1 NOT IN ( col1 / 32 - + 61 * ( - ( + - 67 ) ) )
----
-4896
-5015
-6188

query II rowsort
SELECT ALL + col1 AS col0, 99 - 53 FROM tab2 AS cor0
----
51
46
67
46
77
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT col2 DIV + col0 FROM tab0 WHERE ( + col0 + + col0 + + 58 DIV 52 + - - col0 * + - 23 DIV - col2 - - 51 ) NOT IN ( col1 * 53 )
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7650
SELECT col2 / + col0 FROM tab0 WHERE ( + col0 + + col0 + + 58 / 52 + - - col0 * + - 23 / - col2 - - 51 ) NOT IN ( col1 * 53 )
----
0
1
3

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

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

query I rowsort
SELECT ALL - 20 + - col0 FROM tab1
----
-105
-111
-71

query I rowsort
SELECT DISTINCT + ( + col2 ) + + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - MAX( ALL + - col0 ) + - - COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7654
SELECT - MAX ( ALL + - col0 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL + ( - 42 ) - - ( - col1 ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - - col2 / + 55 )
----

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + ( - 42 ) - - ( - col1 ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - - col2 / + 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7656
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= + - col0 - + col2
----

skipif mysql # not compatible
query III rowsort label-7656
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= + - col0 - + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - 90 * - col1 * - - col0 + - 13 * - col2 * col1 * + + 33 * - col2
----

query I rowsort
SELECT - - 1 AS col0 FROM tab1 AS cor0
----
1
1
1

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND + - ( + ( 97 ) ) / - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - COUNT( * ) * + 42 FROM tab1 WHERE NOT - col2 < ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - COUNT ( * ) * + 42 FROM tab1 WHERE NOT - col2 < ( + col1 )
----
0

query I rowsort
SELECT 98 * - col2 AS col2 FROM tab0
----
-4606
-9702
-980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 76 col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT MIN( + ( col1 ) ) * - + 93 AS col2 FROM tab1
----
-465

skipif mysql # not compatible
query I rowsort label-7665
SELECT MIN ( + ( col1 ) ) * - + 93 AS col2 FROM tab1
----
-465

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT 11 * + - CAST( col1 AS SIGNED ) - col2 + - col0 NOT BETWEEN + - col1 + 94 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT 11 * + - CAST ( col1 AS INTEGER ) - col2 + - col0 NOT BETWEEN + - col1 + 94 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 6 NOT BETWEEN + col0 + - col2 AND 27 + + - col1 AND - 44 - + - ( - col1 ) IS NOT NULL
----
85
5
59
91
47
68

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

query II rowsort
SELECT ALL col0 AS col2, col1 - - col2 AS col0 FROM tab2
----
46
74
64
117
75
125

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL SUM( DISTINCT 72 ) AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL SUM ( DISTINCT 72 ) AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT + - 4 * + col0 FROM tab1 cor0
----
-204
-340
-364

query I rowsort
SELECT DISTINCT - 85 * + 15 FROM tab2 AS cor0
----
-1275

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

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

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

query II rowsort
SELECT DISTINCT - 33 AS col0, col1 + - col2 FROM tab2
----
-33
28
-33
37
-33
9

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 > + + 37
----

query I rowsort
SELECT ALL + 27 * - col1 * col0 * + col1 * + col0 * - col2 + + col1 FROM tab0
----
1873329606
25150258
901240851

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT + - 4 DIV - - ( - + col0 ) + + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + - 4 / - - ( - + col0 ) + + col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 + - col2 - + col2 * ( - + col1 ) - col1 - ( - 42 ) BETWEEN ( - + col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7685
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - - col1 * + col1 / - ( + CAST( NULL AS SIGNED ) ) AND col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7685
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - - col1 * + col1 / - ( + CAST ( NULL AS INTEGER ) ) AND col1
----
97
1
99

query I rowsort
SELECT ALL - col0 + + 27 FROM tab1 AS cor0
----
-24
-58
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT DISTINCT 62 DIV + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT 62 / + col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT 30 * 7 FROM tab0
----
210
210
210

query I rowsort
SELECT ALL - 33 + 85 + + col1 AS col0 FROM tab1
----
57
66
99

query I rowsort
SELECT DISTINCT col0 + + + col0 + col2 * + - col1 FROM tab1
----
-1242
-125
-3014

query I rowsort
SELECT DISTINCT - 51 * 23 - + + col0 FROM tab0
----
-1188
-1260
-1270

query I rowsort
SELECT col0 - col0 * - - ( col0 ) FROM tab0
----
-210
-7482
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT ALL - col0 DIV - 60 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - col0 / - 60 FROM tab2
----
0
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 81 col0 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT + col1 + + col0 + + col0 DIV 48 AS col0 FROM tab0
----
100
109
96

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + col1 + + col0 + + col0 / 48 AS col0 FROM tab0
----
100
109
96

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

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

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT - col0 DIV - - 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT - col0 / - - 85 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT MIN( ALL + - 30 ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7700
SELECT MIN ( ALL + - 30 ) AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 41 + + col2 + - + 0 / 36, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + ( - MAX( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + ( - MAX ( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT DISTINCT - col2 AS col0, col0 DIV - 65 AS col2 FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
0

skipif mysql # not compatible
query II rowsort label-7703
SELECT DISTINCT - col2 AS col0, col0 / - 65 AS col2 FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 46 ) col0, - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
-15
46
-87
46
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7707
SELECT ALL + col0, - col1 + + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
-66
87
66
97
96

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL + col0, - col1 + + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
-66
87
66
97
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + MAX( ( - 90 ) ) col1 FROM tab2
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7709
SELECT ALL + MAX ( ( - 90 ) ) col1 FROM tab2
----
-90

query I rowsort
SELECT + col0 * 35 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL - ( 51 ) FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 6 * + col2 FROM tab0
----
-282
-594
-60

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

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

query I rowsort
SELECT - col1 * + 64 AS col0 FROM tab2
----
-3264
-4288
-4928

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT col2 * - 17 * - col2 AS col2 FROM tab2
----
27200
57188
8993

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT col1 DIV + - 43 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT col1 / + - 43 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT DISTINCT + COUNT( * ) * + - MIN( DISTINCT col0 ) AS col0, - COUNT( * ) col2 FROM tab2 AS cor0
----
-138
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7719
SELECT DISTINCT + COUNT ( * ) * + - MIN ( DISTINCT col0 ) AS col0, - COUNT ( * ) col2 FROM tab2 AS cor0
----
-138
-3

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1 cor0
----
44

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7722
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - 62 * col0 * - col1 FROM tab1 AS cor0
----
NULL
26350
NULL
265174
NULL
44268

skipif mysql # not compatible
query II rowsort label-7722
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 62 * col0 * - col1 FROM tab1 AS cor0
----
NULL
26350
NULL
265174
NULL
44268

query I rowsort
SELECT DISTINCT + col1 * - + col2 + + + col2 * + + 34 AS col1 FROM tab2 AS cor0
----
-1720
-1914
-391

query I rowsort
SELECT ALL + - 31 AS col2 FROM tab0 cor0
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 83 * - col1 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT + 45 + MAX( ALL - ( + - col1 ) ) AS col1 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-7727
SELECT + 45 + MAX ( ALL - ( + - col1 ) ) AS col1 FROM tab2
----
122

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT - 12 + - CAST( + - col2 AS SIGNED ) AS col1 FROM tab2
----
11
28
46

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 12 + - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2
----
11
28
46

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT MAX( ALL - 22 ) - + COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT MAX ( ALL - 22 ) - + COUNT ( * ) FROM tab2
----
-25

query I rowsort
SELECT ALL - 4 + + + 32 FROM tab2
----
28
28
28

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - 35
----

query I rowsort
SELECT ALL - 23 + + col0 * - 68 FROM tab1 cor0
----
-3491
-5803
-6211

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL - ( + COUNT( * ) ) + + + COUNT( - + col2 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - ( + COUNT ( * ) ) + + + COUNT ( - + col2 ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ( - col2 ) - col0 AS col0 FROM tab2 cor0
----
-104
-133
-69

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 11 ) IS NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 > - - col2 * col1 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT DISTINCT - COUNT( * ) AS col2, 98 AS col0 FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-7742
SELECT DISTINCT - COUNT ( * ) AS col2, 98 AS col0 FROM tab1
----
-3
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT COUNT( * ) AS col1, - 89 FROM tab0
----
3
-89

skipif mysql # not compatible
query II rowsort label-7743
SELECT COUNT ( * ) AS col1, - 89 FROM tab0
----
3
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT - col0 * + 31 + + + 86 + - 91 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1586
-2640
-2826

query I rowsort
SELECT ALL + + 31 FROM tab1 WHERE NOT ( 15 < + - 7 )
----
31
31
31

query I rowsort
SELECT DISTINCT - 73 FROM tab0, tab0 AS cor0
----
-73

query I rowsort
SELECT 70 * + ( ( col2 ) ) FROM tab2 WHERE NOT ( 92 ) IS NULL
----
1610
2800
4060

query I rowsort
SELECT + col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT col2 DIV + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT col2 / + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT 28, + col2 AS col2 FROM tab2 WHERE + 88 IS NOT NULL
----
28
23
28
40
28
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7753
SELECT 48 / CAST( NULL AS SIGNED ) AS col0, - ( + + col2 ) + - + col2 col1 FROM tab2 cor0
----
NULL
-116
NULL
-46
NULL
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7753
SELECT 48 / CAST ( NULL AS INTEGER ) AS col0, - ( + + col2 ) + - + col2 col1 FROM tab2 cor0
----
NULL
-116
NULL
-46
NULL
-80

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

query I rowsort
SELECT 99 * + 78 AS col0 FROM tab0 cor0
----
7722
7722
7722

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + 63 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT + 27 * + col0 AS col0 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT + ( - + col1 ) - - col2 FROM tab0
----
-11
-34
98

query II rowsort
SELECT ALL col0 * + col2 + - col2 AS col0, + 11 AS col1 FROM tab1
----
4800
11
4956
11
6120
11

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

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

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

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

query I rowsort
SELECT - col1 + - - col2 + - ( 61 ) AS col1 FROM tab1 AS cor0
----
-40
-7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT - 62 * + 17 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1051

skipif mysql # not compatible
query I rowsort label-7764
SELECT - 62 * + 17 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1051

query I rowsort
SELECT DISTINCT - col2 * + - 51 * + + col1 - + 63 * + col2 AS col2 FROM tab2 AS cor0
----
154560
194532
58374

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7766
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 * + - CAST( col0 AS DECIMAL ) * - - col1 + - + ( + 74 )
----

skipif mysql # not compatible
query III rowsort label-7766
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 * + - CAST ( col0 AS REAL ) * - - col1 + - + ( + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT COUNT( * ) * + + 77 col0 FROM tab1
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT COUNT ( * ) * + + 77 col0 FROM tab1
----
231

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT + SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + SUM ( - + col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - 31 * - + col0 col1 FROM tab2 AS cor0
----
-134850
-32798
-79360

query I rowsort
SELECT ALL + col1 * + 61 FROM tab1 AS cor0
----
2867
305
854

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * - + col1 * + - col2 + - ( 44 ) + - col2 / ( + 83 ) - + - col2 IS NULL
----

query I rowsort
SELECT + + ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT DISTINCT CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - 25 - + 33 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-7778
SELECT ALL col1 DIV - col1 AS col2, col1 AS col1 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL col1 / - col1 AS col2, col1 AS col1 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT - - 43 FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT col1 DIV - ( col1 ) + - col1 * - 26 FROM tab0
----
2105
25
545

skipif mysql # not compatible
query I rowsort label-7781
SELECT col1 / - ( col1 ) + - col1 * - 26 FROM tab0
----
2105
25
545

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + COUNT( * ) + - - SUM( + 53 ) + + + 29 + MIN( + - col1 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-7782
SELECT + COUNT ( * ) + - - SUM ( + 53 ) + + + 29 + MIN ( + - col1 ) FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL ( - 49 ) * - - COUNT( * ) * - COUNT( col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL ( - 49 ) * - - COUNT ( * ) * - COUNT ( col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col2 + - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) + - 55 col2 FROM tab1 AS cor0
----
13
4
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - + 80 * col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - + 80 * col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 40 AS col1 FROM tab2 cor0
----
40
40
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + col1 <> + + 81 * + col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - COUNT( ALL 7 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7789
SELECT - COUNT ( ALL 7 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL + 31 + - - 79 AS col1 FROM tab1
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + 38 + COUNT( * ) * - 30 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + 38 + COUNT ( * ) * - 30 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT + SUM( ALL + 29 ) AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT + SUM ( ALL + 29 ) AS col0 FROM tab1 AS cor0
----
87

query I rowsort
SELECT - col0 * + - 72 * ( + + col1 ) * + + ( - col0 ) + - + col1 FROM tab0 AS cor0
----
-11444349
-1312281
-677449

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - COUNT( + 1 ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT - COUNT ( + 1 ) + COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab1, tab0 AS cor0
----
18

query I rowsort
SELECT ALL - 21 + - col0 + - col2 - - col1 + + - 63 FROM tab0
----
-160
-279
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT CAST( - 75 AS SIGNED ) + - ( + col2 ) FROM tab2
----
-115
-133
-98

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT CAST ( - 75 AS INTEGER ) + - ( + col2 ) FROM tab2
----
-115
-133
-98

query I rowsort
SELECT - col1 * - 56 AS col2 FROM tab0
----
1176
4536
56

query I rowsort
SELECT DISTINCT 71 + + + col1 * - 5 FROM tab1
----
-164
1
46

query II rowsort
SELECT DISTINCT 19 + - col0 AS col0, 91 * - col1 FROM tab2
----
-27
-4641
-45
-7007
-56
-6097

query I rowsort
SELECT DISTINCT + AVG ( ALL col1 ) * - - 19 FROM tab0 WHERE ( col0 * - col0 + - + 11 IN ( + col1, + 64, - ( - col1 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + 0 + - + 73 + SUM( + - 47 ) FROM tab0 AS cor0 WHERE NOT NULL >= + col1 / col1 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 0 + - + 73 + SUM ( + - 47 ) FROM tab0 AS cor0 WHERE NOT NULL >= + col1 / col1 * - 85
----
NULL

query I rowsort
SELECT DISTINCT - - ( + 94 ) FROM tab0 AS cor0
----
94

query II rowsort
SELECT ALL + 95 * - - ( + col0 ) - + 42 - + col2 AS col2, 52 FROM tab0 AS cor0
----
1336
52
8213
52
9074
52

query II rowsort
SELECT + + col2 * - col1, col0 + - col0 AS col2 FROM tab0 AS cor0
----
-210
0
-3807
0
-99
0

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT ALL + col0 DIV + - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + col0 / + - col1 AS col1 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 90 col2 FROM tab1
----
-4590
-7650
-8190

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT ALL 91 * 99 DIV + - 34 AS col0 FROM tab1 AS cor0
----
-264
-264
-264

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL 91 * 99 / + - 34 AS col0 FROM tab1 AS cor0
----
-264
-264
-264

query II rowsort
SELECT ALL - col1 * + - col2 * - - col2, col2 AS col0 FROM tab2 AS cor0
----
123200
40
225388
58
26979
23

query I rowsort
SELECT - 7 FROM tab1 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) + + col2 + 91 + + col1 FROM tab2
----
216
283
285

query I rowsort
SELECT ALL 10 + col1 + + col0 FROM tab1
----
100
148
75

query I rowsort
SELECT ALL - col2 * col0 + col2 FROM tab1 WHERE NULL IS NULL
----
-4800
-4956
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL 19 DIV + + 48 + + 98 FROM tab1 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 19 / + + 48 + + 98 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + SUM( DISTINCT + 69 ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7818
SELECT + SUM ( DISTINCT + 69 ) AS col2 FROM tab0 AS cor0
----
69

query II rowsort
SELECT DISTINCT - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT + - 22 + - col0 * col0 AS col2 FROM tab0 cor0
----
-247
-7591
-9431

query I rowsort
SELECT DISTINCT + 65 + + col2 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - COUNT( * ) - + COUNT( ALL col2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - COUNT ( * ) - + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + 53 + col1 + + 91 col1 FROM tab0 AS cor0 WHERE + col1 * + 24 * - col1 / col0 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - col0 + - col1 AS col0 FROM tab1
----
14
-65
47
-138
5
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7825
SELECT * FROM tab1 WHERE NOT - 29 * 44 * - col1 >= + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-7825
SELECT * FROM tab1 WHERE NOT - 29 * 44 * - col1 >= + CAST ( NULL AS INTEGER ) * col0
----

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query II rowsort
SELECT - col1, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT 99 DIV - - MIN( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7828
SELECT 99 / - - MIN ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 7 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL + + ( - col1 ) DIV - + ( col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + + ( - col1 ) / - + ( col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT + - MIN( + 94 ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + - MIN ( + 94 ) AS col1 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL + - MAX( DISTINCT - - 97 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + - MAX ( DISTINCT - - 97 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 70 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - col1 AS col1, + col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT - 87 * col1 AS col0 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT ALL + col2 * + 12 * - + 68 FROM tab0
----
-38352
-80784
-8160

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT ALL + ( 84 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + ( 84 ) / + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + + col0 NOT IN ( - + ( + col2 ) * - ( ( + col2 ) ) - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + + col0 NOT IN ( - + ( + col2 ) * - ( ( + col2 ) ) - - col2 )
----
0

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 50 * + - 21 / - 21 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 50 * + - 21 / - 21 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab0, tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 WHERE + 1 * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL - 65 + - COUNT( * ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - 65 + - COUNT ( * ) AS col0 FROM tab2
----
-68

query I rowsort
SELECT ALL - 60 * - col0 FROM tab1
----
3060
5100
5460

query II rowsort
SELECT - ( 10 ) + - 30, 22 * + col1 AS col0 FROM tab2
----
-40
1122
-40
1474
-40
1694

query I rowsort
SELECT DISTINCT col2 + 67 + col2 FROM tab1
----
185
203
259

query I rowsort
SELECT DISTINCT - 27 * - 88 FROM tab0
----
2376

query I rowsort
SELECT - 21 + - col2 AS col1 FROM tab2
----
-44
-61
-79

query I rowsort
SELECT 90 + + 78 AS col0 FROM tab1
----
168
168
168

query I rowsort
SELECT DISTINCT - 73 * + - col0 FROM tab0 cor0
----
1095
6351
7081

query I rowsort
SELECT - ( - col2 ) + - col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT DISTINCT - 44 DIV - + 63 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7853
SELECT DISTINCT - 44 / - + 63 col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT ALL 26 DIV + col2 AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL 26 / + col2 AS col0 FROM tab2 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT + 63 DIV + + 89 - + + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 63 / + + 89 - + + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7856
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, col1 col0 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-7856
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT 75 * + 66 - - + col0 AS col2 FROM tab1
----
5001
5035
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + MAX( + col0 ) + + COUNT( * ) + 37 AS col2 FROM tab0
----
137

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + MAX ( + col0 ) + + COUNT ( * ) + 37 AS col2 FROM tab0
----
137

query I rowsort
SELECT ALL 87 * + 82 * + col1 * + + col2 + + - 13 FROM tab2
----
21972707
27722711
8368169

query I rowsort
SELECT 92 / - col1 - - + col2 * - 42 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, 97 + - col2 + + col0 FROM tab1 AS cor0
----
14
52
47
120
5
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT CAST( NULL AS SIGNED ) * 8 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT - 91 DIV col2 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7863
SELECT - 91 / col2 AS col1 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - ( - 29 ) AS col0 FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col0 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT MIN( ALL - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7866
SELECT MIN ( ALL - - col0 ) AS col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - 47 * - col0 AS col1, ( - col0 ) FROM tab1 AS cor0
----
2397
-51
3995
-85
4277
-91

query II rowsort
SELECT + col2 * + - col1 + + col2 * - + 71 + - col2 AS col1, - 67 * col1 FROM tab0 AS cor0
----
-7191
-5427
-7227
-67
-930
-1407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT CAST( - col1 AS SIGNED ) col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7870
SELECT DISTINCT CAST ( - col1 AS INTEGER ) col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + col1 + - 5 AS col0 FROM tab0
----
-4
16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + 39 + + + COUNT( * ) * - 54 AS col0 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 39 + + + COUNT ( * ) * - 54 AS col0 FROM tab1 AS cor0
----
-123

query II rowsort
SELECT - 36, - col1 AS col0 FROM tab1 AS cor0
----
-36
-14
-36
-47
-36
-5

query I rowsort
SELECT - col0 + + col0 + + - 45 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT + + CAST( NULL AS SIGNED ) * + - AVG ( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT + + CAST ( NULL AS INTEGER ) * + - AVG ( col2 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - + col0 AS col2, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - SUM( ALL - ( col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7877
SELECT - SUM ( ALL - ( col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 99 * - col2 + + 97 AS col2 FROM tab1
----
-5744
-6635
-9407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT - MAX( ALL + 34 ) + - CAST( - - 0 AS SIGNED ) AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - MAX ( ALL + 34 ) + - CAST ( - - 0 AS INTEGER ) AS col0 FROM tab0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 54 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + 21 * - COUNT( * ) - - 68 AS col1 FROM tab2 WHERE + col1 <> NULL
----
68

skipif mysql # not compatible
query I rowsort label-7881
SELECT + 21 * - COUNT ( * ) - - 68 AS col1 FROM tab2 WHERE + col1 <> NULL
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - 69 - - 76 * 90 * - - 3 * - + COUNT( * ) AS col2 FROM tab0
----
-61629

skipif mysql # not compatible
query I rowsort label-7882
SELECT - 69 - - 76 * 90 * - - 3 * - + COUNT ( * ) AS col2 FROM tab0
----
-61629

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7883
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7883
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT - ( + ( + col2 ) ) * col1 + - 78 AS col1 FROM tab2 AS cor0
----
-1251
-3158
-3964

query I rowsort
SELECT col0 * + + 77 + - col0 FROM tab2 cor0
----
3496
4864
5700

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE + 65 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - - 71 AS col1 FROM tab0
----
14910
270297
7029

query I rowsort
SELECT DISTINCT col1 + + col2 + ( - + col0 ) * - col1 FROM tab0
----
1343
1858
197

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + + col1 < + + CAST( - 93 AS DECIMAL ) + - + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + + col1 < + + CAST ( - 93 AS REAL ) + - + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( 27 ) AS col2 FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab1 cor0
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col2, 29 FROM tab2 AS cor0
----
-51
29
-67
29
-77
29

query I rowsort
SELECT - 23 * + col2 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT - - MAX( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - - MAX ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT ( + COUNT( ALL col0 ) ) * - + 77 col0 FROM tab1
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7896
SELECT DISTINCT ( + COUNT ( ALL col0 ) ) * - + 77 col0 FROM tab1
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT ALL + col2 DIV - + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + col2 / - + col1 FROM tab0
----
-99
0
0

query II rowsort
SELECT ALL 79, col2 AS col1 FROM tab0
----
79
10
79
47
79
99

query I rowsort
SELECT ALL - col0 + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - + 9 ) FROM tab0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - COUNT( + col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT DISTINCT - COUNT ( + col1 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT - COUNT( * ) AS col0, - ( + + COUNT( * ) ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7902
SELECT - COUNT ( * ) AS col0, - ( + + COUNT ( * ) ) FROM tab2
----
-3
-3

query II rowsort
SELECT ALL + col1, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * col1, + col1 col1 FROM tab1
----
1344
14
295
5
3196
47

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL IN ( 84, col1 - 77 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + 81 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + 81 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - MIN( - - 19 ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - MIN ( - - 19 ) FROM tab2 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT 45 DIV + col0 + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7909
SELECT 45 / + col0 + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + + 88 AS col2 FROM tab2 cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT + MAX( DISTINCT + 89 ) + + 86 col1 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7911
SELECT DISTINCT + MAX ( DISTINCT + 89 ) + + 86 col1 FROM tab1 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7912
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT ALL ( - col0 ) + - 48 - + CAST( NULL AS SIGNED ) + - + col0 * 62 / - - 74 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL ( - col0 ) + - 48 - + CAST ( NULL AS INTEGER ) + - + col0 * 62 / - - 74 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col2 / - col1 + - 12 >= + col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col2 / - col1 + - 12 >= + col2 / col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL - MIN( col1 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - MIN ( col1 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 11
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 4 NOT BETWEEN NULL AND + col1
----
97
1
99

query I rowsort
SELECT - col0 + - + 33 + + - col2 * + + col0 FROM tab1
----
-4980
-5133
-6312

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - SUM( - + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7918
SELECT - SUM ( - + col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col2 * + + 24 FROM tab1 AS cor0
----
1416
1632
2304

query I rowsort
SELECT col1 - 21 FROM tab0
----
-20
0
60

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + col0 BETWEEN - + 20 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <> - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL AVG ( + col0 ) * - - MAX( ALL - 47 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL AVG ( + col0 ) * - - MAX ( ALL - 47 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + 52 * + col1 FROM tab2
----
2652
3484
4004

query I rowsort
SELECT + 19 * - + ( - - 67 ) FROM tab0
----
-1273
-1273
-1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7928
SELECT 10 - - + CAST( - MIN( ALL col2 ) AS DECIMAL ) * 29 * COUNT( * ) FROM tab1 WHERE NOT - 81 - - + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT 10 - - + CAST ( - MIN ( ALL col2 ) AS REAL ) * 29 * COUNT ( * ) FROM tab1 WHERE NOT - 81 - - + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - - col2 + + col1 NOT IN ( + - col1 * + ( - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - SUM( DISTINCT + 56 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-7930
SELECT - SUM ( DISTINCT + 56 ) AS col0 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + ( + + col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7934
SELECT DISTINCT + - 58 * + col1 + col1 * CAST( NULL AS DECIMAL ) + col2 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7934
SELECT DISTINCT + - 58 * + col1 + col1 * CAST ( NULL AS REAL ) + col2 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL ( 24 ) * MIN( 84 ) * - COUNT( * ) + - 78 FROM tab1
----
-6126

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL ( 24 ) * MIN ( 84 ) * - COUNT ( * ) + - 78 FROM tab1
----
-6126

query I rowsort
SELECT DISTINCT 59 + - col2 AS col1 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + - SUM( - + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + - SUM ( - + col0 ) FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7939
SELECT CAST( NULL AS DECIMAL ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7939
SELECT CAST ( NULL AS REAL ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT + - col1 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7940
SELECT + - col1 / - - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT DISTINCT - - MAX( col1 ) FROM tab1 AS cor0 WHERE NOT NULL = - CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - - MAX ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL = - CAST ( NULL AS INTEGER ) * 3
----
NULL

query II rowsort
SELECT col2, - col2 AS col2 FROM tab0 cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 92 IS NULL
----

query II rowsort
SELECT DISTINCT col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + 15 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
15
15
15

query II rowsort
SELECT - ( + - col1 ) AS col1, - 38 - - + col0 AS col2 FROM tab2
----
51
8
67
37
77
26

query I rowsort
SELECT DISTINCT - col1 + + 15 AS col0 FROM tab1
----
-32
1
10

query I rowsort
SELECT col1 FROM tab1 WHERE + 13 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 44 * - col1 / + 59 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + col1 * col0 AS col0 FROM tab2
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL COUNT( - col1 ) + - + 31 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL COUNT ( - col1 ) + - + 31 FROM tab1
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 68 IS NULL
----

query I rowsort
SELECT - 53 + - - col2 + + 83 AS col0 FROM tab1 cor0
----
126
89
98

query I rowsort
SELECT - 20 + + 60 + - 77 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL col2 - - + 86 AS col1 FROM tab2 AS cor0
----
109
126
144

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT + col0 DIV col1 * + - col2 * - 75 - + - 47 + col0 - + + col0 * + col0 FROM tab1 AS cor0
----
-3043
19097
68132

skipif mysql # not compatible
query I rowsort label-7956
SELECT + col0 / col1 * + - col2 * - 75 - + - 47 + col0 - + + col0 * + col0 FROM tab1 AS cor0
----
-3043
19097
68132

query I rowsort
SELECT ALL + + col0 - + + ( ( - + 71 ) ) FROM tab2 AS cor0
----
117
135
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT + col0 FROM tab0 AS cor0 WHERE - 96 NOT BETWEEN + col2 AND CAST( + col1 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7958
SELECT + col0 FROM tab0 AS cor0 WHERE - 96 NOT BETWEEN + col2 AND CAST ( + col1 AS INTEGER )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7959
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7959
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - MIN( DISTINCT 51 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - MIN ( DISTINCT 51 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + col2 * - 5 * + 17 + - col0 AS col0 FROM tab1 AS cor0
----
-5100
-5871
-8211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT - COUNT( * ) DIV + 28 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT - COUNT ( * ) / + 28 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT + 30 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
30
3

skipif mysql # not compatible
query II rowsort label-7964
SELECT + 30 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
30
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT DISTINCT 75 DIV - COUNT( * ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT 75 / - COUNT ( * ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + 74 * + col2 AS col2 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT - COUNT( * ), - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7967
SELECT - COUNT ( * ), - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + 81 + col2 * ( - col2 ) + + 50 - col2 AS col1 FROM tab2
----
-1432
-3224
-370

query I rowsort
SELECT col2 + - col2 + + col1 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT 64 AS col0 FROM tab0 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL - ( - ( COUNT( - col1 ) ) ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - ( - ( COUNT ( - col1 ) ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 29 + - + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 29 + - + COUNT ( * ) FROM tab1
----
26

query II rowsort
SELECT ALL + 37 AS col1, col0 AS col1 FROM tab1
----
37
51
37
85
37
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7975
SELECT - col0 AS col0, - 6 DIV col2 col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7975
SELECT - col0 AS col0, - 6 / col2 col0 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT + - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL MIN( + - col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL MIN ( + - col0 ) AS col1 FROM tab1 cor0
----
-91

query I rowsort
SELECT - + 11 + col0 AS col0 FROM tab0 AS cor0
----
4
76
86

query I rowsort
SELECT + col1 + - + 48 FROM tab0
----
-27
-47
33

query I rowsort
SELECT 34 * + 34 + + + 81 FROM tab0
----
1237
1237
1237

query I rowsort
SELECT ALL 74 * col1 * - + 96 + 65 FROM tab2
----
-362239
-475903
-546943

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT - col2 DIV - ( + - 69 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7983
SELECT - col2 / - ( + - 69 ) AS col1 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7984
SELECT ALL + col2 + 40 * + col2 AS col1, CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE - col0 IS NOT NULL
----
2419
NULL
2788
NULL
3936
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7984
SELECT ALL + col2 + 40 * + col2 AS col1, CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE - col0 IS NOT NULL
----
2419
NULL
2788
NULL
3936
NULL

query I rowsort
SELECT 64 * + + 27 AS col2 FROM tab0
----
1728
1728
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - COUNT( DISTINCT col0 ) + - - 18 AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - COUNT ( DISTINCT col0 ) + - - 18 AS col2 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL - COUNT( - col1 ) - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - COUNT ( - col1 ) - - COUNT ( * ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 / + col1 * + col2 + - col0 - - 47 col2 FROM tab0 WHERE NULL < NULL
----

query II rowsort
SELECT 20 AS col1, col1 FROM tab1
----
20
14
20
47
20
5

query III rowsort
SELECT * FROM tab0 WHERE - + col0 > col1 * + col1
----

query II rowsort
SELECT + 98 AS col1, ( 5 ) FROM tab2
----
98
5
98
5
98
5

query II rowsort
SELECT col2, 67 - - + col1 AS col2 FROM tab0
----
10
88
47
148
99
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7993
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7993
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE 64 - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE 64 - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - + 48 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT 29 * + - COUNT( + - col1 ) * - + 98 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
8526

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT 29 * + - COUNT ( + - col1 ) * - + 98 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
8526

query II rowsort
SELECT DISTINCT 75 AS col0, col0 FROM tab1
----
75
51
75
85
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + ( MAX( 61 ) ) * 67 AS col1 FROM tab0
----
4087

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + ( MAX ( 61 ) ) * 67 AS col1 FROM tab0
----
4087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT DISTINCT + CAST( 64 AS SIGNED ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + CAST ( 64 AS INTEGER ) FROM tab1
----
64

query I rowsort
SELECT DISTINCT col0 * - 73 FROM tab0 WHERE NOT ( NOT NULL <= + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - ( + col1 ) * 55 + - + col0 col1 FROM tab1 AS cor0
----
23290
235144
39219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> col0
----

skipif mysql # not compatible
query III rowsort label-8007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT ( - col1 ) DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT ( - col1 ) / - col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT - col2 DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT - col2 / + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + - col1 AS col1 FROM tab2 cor0 WHERE NOT 49 NOT BETWEEN + - 88 AND - - 60
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT COUNT( * ) + 42 + + 48 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8011
SELECT COUNT ( * ) + 42 + + 48 FROM tab2 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT + ( COUNT( * ) ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8013
SELECT + ( COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( COUNT( * ) * + COUNT( * ) ) - 23 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) * + COUNT ( * ) ) - 23 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT - CAST( NULL AS SIGNED ) * - CAST( + 63 / - col2 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( + 63 / - col2 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 2 - 66 * col0 FROM tab0
----
-5740
-6400
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - 82 * - COUNT( col1 ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 82 * - COUNT ( col1 ) AS col2 FROM tab0
----
246

query I rowsort
SELECT ALL + 83 * - 8 FROM tab1
----
-664
-664
-664

query I rowsort
SELECT DISTINCT + 47 + 80 AS col1 FROM tab1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + MAX( 96 ) * - COUNT( * ) AS col0 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + MAX ( 96 ) * - COUNT ( * ) AS col0 FROM tab0
----
-288

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 32 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - 24 AS col1 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT DISTINCT 62 DIV + ( - 45 DIV + COUNT( * ) ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT 62 / + ( - 45 / + COUNT ( * ) ) AS col0 FROM tab2
----
-4

query I rowsort
SELECT col0 + + col2 FROM tab0 WHERE NOT 89 + col1 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT - MIN( 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - MIN ( 96 ) FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT ALL - col1 DIV - 42 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - col1 / - 42 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col0 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - MAX( + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8030
SELECT - MAX ( + col0 ) AS col2 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE 55 * ( - col0 ) IN ( 22 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + 31 + MAX( ALL col0 ) FROM tab1
----
122

skipif mysql # not compatible
query I rowsort label-8032
SELECT + 31 + MAX ( ALL col0 ) FROM tab1
----
122

query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab2 WHERE NOT 39 IS NULL
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - 32 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT - 32 / - col0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * + col0 col0 FROM tab1
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT ( col1 ) DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8036
SELECT ( col1 ) / - col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT 10 DIV MIN( - 37 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8038
SELECT 10 / MIN ( - 37 ) FROM tab0
----
0

query I rowsort
SELECT ALL - col2 * col1 + - ( 86 ) FROM tab2
----
-1259
-3166
-3972

query I rowsort
SELECT col1 * 14 AS col2 FROM tab1
----
196
658
70

query I rowsort
SELECT ALL col1 + 12 AS col1 FROM tab2
----
63
79
89

query I rowsort
SELECT ALL - col0 * 22 FROM tab1
----
-1122
-1870
-2002

query III rowsort
SELECT ALL * FROM tab0 WHERE - 35 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT + MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8044
SELECT + MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 > - 14
----

query I rowsort
SELECT 49 AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT CAST( NULL AS SIGNED ) * 74 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT CAST ( NULL AS INTEGER ) * 74 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT DISTINCT - + COUNT( ( + CAST( + col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - + COUNT ( ( + CAST ( + col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT + col2 DIV + 82 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8049
SELECT + col2 / + 82 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL - - 22 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - - 22 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
25

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * 92 BETWEEN 4 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT ALL CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col2 + col2 * col1 ) AND ( + CAST( NULL AS SIGNED ) - col2 )
----

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col2 + col2 * col1 ) AND ( + CAST ( NULL AS INTEGER ) - col2 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * 39 AS col0 FROM tab0
----
1833
3861
390

query III rowsort
SELECT * FROM tab2 WHERE ( + 93 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT 36 * + + MIN( 65 ) FROM tab0
----
2340

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT 36 * + + MIN ( 65 ) FROM tab0
----
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT - col0 + col2 - - 84 * CAST( col2 AS SIGNED ) FROM tab2
----
1909
3336
4855

skipif mysql # not compatible
query I rowsort label-8056
SELECT - col0 + col2 - - 84 * CAST ( col2 AS INTEGER ) FROM tab2
----
1909
3336
4855

query I rowsort
SELECT col1 + + col1 * ( col2 ) AS col2 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL + 51 * COUNT( * ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + 51 * COUNT ( * ) AS col2 FROM tab2
----
153

query I rowsort
SELECT ALL col2 + + col2 * col2 AS col0 FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT + SUM( - 7 ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT + SUM ( - 7 ) AS col2 FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 - col1 * - col2 > 39 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - 28 * + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-252

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 28 * + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-252

query I rowsort
SELECT DISTINCT 98 FROM tab2 WHERE col2 * 38 >= NULL
----

query I rowsort
SELECT + 11 * col0 + - 92 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col1 ) < NULL
----

query I rowsort
SELECT 94 FROM tab2, tab2 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL + 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL - - 52 / - + col0 - + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8070
SELECT ALL - - 52 / - + col0 - + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + - col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL - 15 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - 15 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - + 7 * col2 FROM tab2 AS cor0 WHERE 59 < NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL > 46 - - - col1
----

query I rowsort
SELECT ALL + + 38 - 3 * + col2 * + col0 + col2 FROM tab0 AS cor0
----
-2030
-2562
-28672

query I rowsort
SELECT ALL col1 * - 61 FROM tab2 AS cor0
----
-3111
-4087
-4697

query I rowsort
SELECT - 94 * - 87 FROM tab2
----
8178
8178
8178

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT col2 DIV col2 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT col2 / col2 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 81 * - col2 * col1 AS col1 FROM tab1
----
-108864
-23895
-258876

query I rowsort
SELECT + col1 * + 89 FROM tab2
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT COUNT( * ) FROM tab0 WHERE NOT - + col2 * - col0 + - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT COUNT ( * ) FROM tab0 WHERE NOT - + col2 * - col0 + - col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT MIN( DISTINCT - col0 ) FROM tab1 WHERE NOT ( - 56 ) IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8083
SELECT MIN ( DISTINCT - col0 ) FROM tab1 WHERE NOT ( - 56 ) IS NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT - 89 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 89 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT DISTINCT + COUNT( DISTINCT + col0 ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col1 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT ALL - MAX( DISTINCT + col2 ) DIV MAX( ALL - col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - MAX ( DISTINCT + col2 ) / MAX ( ALL - col0 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + - col0 FROM tab0 AS cor0 WHERE ( col1 / - col1 ) IS NOT NULL
----
-720
-957
-9700

query I rowsort
SELECT ALL + 52 * ( 3 ) FROM tab2 cor0
----
156
156
156

query III rowsort
SELECT * FROM tab2 WHERE NOT + 67 + - col0 * 51 + + col1 NOT BETWEEN col1 * + col2 AND + col1 + col0
----

query II rowsort
SELECT DISTINCT 21, - 53 AS col1 FROM tab0
----
21
-53

query I rowsort
SELECT col0 + 11 FROM tab0 WHERE NOT - col1 / - ( - col1 ) + + 63 * + col1 IS NULL
----
108
26
98

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + col0 / + col0 - col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT col0 * + + 31 + - col0 + 84 FROM tab2 AS cor0
----
1464
2004
2334

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + COUNT( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + COUNT ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT CAST( + col1 AS SIGNED ) * - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT CAST ( + col1 AS INTEGER ) * - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 / + + col0 * + + 53 ) AND col0 / 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT DISTINCT 95 DIV - col2 + col0 + - col0 col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8099
SELECT DISTINCT 95 / - col2 + col0 + - col0 col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT 2 + - col1 FROM tab1 AS cor0
----
-12
-3
-45

query I rowsort
SELECT DISTINCT ( - 14 ) AS col0 FROM tab1 cor0
----
-14

query I rowsort
SELECT - 29 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT MAX( ALL - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8103
SELECT MAX ( ALL - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT col1 * + - col2 - + + 72 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT 99 - + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-8105
SELECT 99 - + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL ( - 54 ) + - - COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL ( - 54 ) + - - COUNT ( * ) FROM tab0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) col1 FROM tab0
----
1
21
81

query II rowsort
SELECT col2, + 55 FROM tab0
----
10
55
47
55
99
55

query I rowsort
SELECT DISTINCT + col2 + + - 94 AS col2 FROM tab2
----
-36
-54
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT + col2 * 96 DIV 82 + + col1 + col0 FROM tab1
----
159
177
217

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + col2 * 96 / 82 + + col1 + col0 FROM tab1
----
159
177
217

query I rowsort
SELECT - 41 * col1 + - col2 * - + col2 FROM tab0 AS cor0
----
-1112
-761
9760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8112
SELECT + CAST( - ( ( - + col2 ) ) AS SIGNED ) + 94 DIV + col0 FROM tab0 AS cor0
----
11
53
99

skipif mysql # not compatible
query I rowsort label-8112
SELECT + CAST ( - ( ( - + col2 ) ) AS INTEGER ) + 94 / + col0 FROM tab0 AS cor0
----
11
53
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 17 NOT IN ( + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + 33 * - col0 AS col0 FROM tab1
----
-1587
-2746
-2935

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8115
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( + - col2 AS SIGNED ) NOT BETWEEN NULL AND ( - col0 ) * 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8115
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( + - col2 AS INTEGER ) NOT BETWEEN NULL AND ( - col0 ) * 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8116
SELECT ALL + ( - COUNT( * ) ) * 65 * + COUNT( * ) + + CAST( NULL AS DECIMAL ) - + - 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + ( - COUNT ( * ) ) * 65 * + COUNT ( * ) + + CAST ( NULL AS REAL ) - + - 87 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - - 56 * + ( + + col0 ) * 53 * + ( col1 ) FROM tab0 AS cor0
----
287897
3606201
5422557

query I rowsort
SELECT + - ( + ( - col1 ) ) - + + 98 FROM tab2 AS cor0
----
-21
-31
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT ALL + 29 - col2 - + col1 DIV + col2 FROM tab2 AS cor0
----
-12
-30
4

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + 29 - col2 - + col1 / + col2 FROM tab2 AS cor0
----
-12
-30
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 33 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - - col1
----

query II rowsort
SELECT ALL - col2 * - - col1 AS col2, + col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-210
-11
-3807
-34
-99
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8123
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 48 * + col1 + + CAST( + - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8123
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 48 * + col1 + + CAST ( + - col1 AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 53 AS col0 FROM tab0 cor0
----
-53
-53
-53

query I rowsort
SELECT - col1 + col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8127
SELECT - ( + - CAST( - + col2 AS SIGNED ) ) DIV col2 * - - col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8127
SELECT - ( + - CAST ( - + col2 AS INTEGER ) ) / col2 * - - col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - - 5 AS col2 FROM tab2 WHERE NOT - 84 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8129
SELECT + col0 * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT + col0 * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 66 ) * - 74 FROM tab0
----
4884
4884
4884

query I rowsort
SELECT - ( + 49 ) AS col2 FROM tab0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 91 col0 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT - 76 * - col0 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT ALL - 83 * + col2 FROM tab1
----
-4897
-5644
-7968

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 < + col1 * - col1
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT ALL - 75 DIV + - MAX( 38 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL - 75 / + - MAX ( 38 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT col1 DIV col1 + col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8137
SELECT col1 / col1 + col1 FROM tab2 cor0
----
52
68
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - - col0 + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL MIN( ALL col0 ) col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT ALL MIN ( ALL col0 ) col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT COUNT( * ), 63 col1 FROM tab1, tab2 AS cor0
----
9
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8140
SELECT COUNT ( * ), 63 col1 FROM tab1, tab2 AS cor0
----
9
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 4 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT + CAST( + COUNT( + 72 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8143
SELECT + CAST ( + COUNT ( + 72 ) AS INTEGER ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col2 * + - 26 * - - col2 * 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8146
SELECT - col1 DIV - 46 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8146
SELECT - col1 / - 46 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT + - ( - col1 ) * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT + - ( - col1 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT 15 DIV - + SUM( col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT 15 / - + SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, + col2 )
----

query I rowsort
SELECT DISTINCT + 30 * col0 * + col0 FROM tab2 cor0
----
122880
168750
63480

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT ALL + 1 DIV ( + 18 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL + 1 / ( + 18 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE col0 >= ( + CAST( col1 AS SIGNED ) * - 33 * col1 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8152
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE col0 >= ( + CAST ( col1 AS INTEGER ) * - 33 * col1 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 8 + + 29 col2 FROM tab2 AS cor0
----
-21
-3
14

query I rowsort
SELECT col1 * 77 + - 14 AS col0 FROM tab2
----
3913
5145
5915

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - ( - + ( + 51 ) ) IS NOT NULL AND NOT + 76 + - col2 >= ( - - col1 ) + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + + 24 * - ( 61 ) * - - 68 AS col1 FROM tab1
----
-99461
-99467
-99501

query I rowsort
SELECT 99 + 61 FROM tab2
----
160
160
160

query I rowsort
SELECT ALL + 24 + - - col0 AS col2 FROM tab0
----
111
121
39

query I rowsort
SELECT DISTINCT col0 + 65 FROM tab0
----
152
162
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + 63 + COUNT( * ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 63 + COUNT ( * ) AS col2 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-8162
SELECT DISTINCT 11 DIV 13 + col1 AS col2, - 82 AS col0 FROM tab2
----
51
-82
67
-82
77
-82

skipif mysql # not compatible
query II rowsort label-8162
SELECT DISTINCT 11 / 13 + col1 AS col2, - 82 AS col0 FROM tab2
----
51
-82
67
-82
77
-82

query III rowsort
SELECT * FROM tab2 WHERE - col0 + col2 + col1 - + col1 * + - 93 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT MAX( + - 37 ) FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8164
SELECT MAX ( + - 37 ) FROM tab0 cor0
----
-37

query II rowsort
SELECT + 73 AS col1, col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE - - 42 + + col0 + col1 / + - ( ( - - col0 ) ) * + - 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - 96 + + COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 96 + + COUNT ( * ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT SUM( - 43 ) + + 37 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-8168
SELECT SUM ( - 43 ) + + 37 FROM tab1
----
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) <= ( NULL )
----

query I rowsort
SELECT ALL 68 * - + col1 * + col1 + 31 FROM tab1 cor0
----
-13297
-150181
-1669

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT + + ( ( COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + + ( ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 13 * + + col0 * - + col0 * - - col2 IN ( + 0 + ( 67 ), 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 col2, col2 FROM tab2 AS cor0
----
86
23
86
40
86
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT - - COUNT( ALL - + col2 ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - - COUNT ( ALL - + col2 ) * - COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT col0 * 52 FROM tab2
----
2392
3328
3900

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT DISTINCT + 30 DIV + 86 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + 30 / + 86 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab0
----
13
13
13

onlyif mysql # DIV for integer division: 
query II rowsort label-8179
SELECT - col0 DIV - col1, col0 + col1 AS col1 FROM tab2
----
0
141
0
97
1
142

skipif mysql # not compatible
query II rowsort label-8179
SELECT - col0 / - col1, col0 + col1 AS col1 FROM tab2
----
0
141
0
97
1
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT COUNT( * ) * - - 43 col1 FROM tab0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT COUNT ( * ) * - - 43 col1 FROM tab0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab1
----
60
60
60

query I rowsort
SELECT ALL col1 * + + 37 AS col2 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + 75 / + ( + 57 ) * + MAX( col1 ) FROM tab0 WHERE col1 NOT BETWEEN - + ( - col2 ) * ( + ( - 86 ) ) - - 9 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + 75 / + ( + 57 ) * + MAX ( col1 ) FROM tab0 WHERE col1 NOT BETWEEN - + ( - col2 ) * ( + ( - 86 ) ) - - 9 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + MAX( ALL + ( + col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8184
SELECT + MAX ( ALL + ( + col0 ) ) AS col1 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col2 / + 24 - - col0 > ( - col2 )
----

query I rowsort
SELECT 84 - + - 37 AS col1 FROM tab0 AS cor0 WHERE NULL <> + col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT - col0 + + CAST( - - ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-8187
SELECT - col0 + + CAST ( - - ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT + - COUNT( * ) * + 94 AS col2 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + - COUNT ( * ) * + 94 AS col2 FROM tab0 AS cor0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ( 61 ) DIV - 78 - - 37 FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-8189
SELECT ( 61 ) / - 78 - - 37 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 45 * - + 71 + COUNT( * ) - + ( + ( - MAX( ALL 96 ) ) ) FROM tab2 AS cor0
----
-3096

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 45 * - + 71 + COUNT ( * ) - + ( + ( - MAX ( ALL 96 ) ) ) FROM tab2 AS cor0
----
-3096

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT + 50 DIV col0 * - + col1 AS col2 FROM tab2 AS cor0
----
-51
0
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT + 50 / col0 * - + col1 AS col2 FROM tab2 AS cor0
----
-51
0
0

query I rowsort
SELECT + 53 * - col0 AS col0 FROM tab0 AS cor0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query II rowsort label-8193
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8193
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT + col1, ( - - col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8195
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col1 + + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8195
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col1 + + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT ( + 15 ) AS col1 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8197
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - MIN( ALL + + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - MIN ( ALL + + col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT col1 + - 43 * 12 FROM tab2
----
-439
-449
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL 92 + + - CAST( NULL AS SIGNED ) - - 13 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL 92 + + - CAST ( NULL AS INTEGER ) - - 13 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 29 + + col0 FROM tab0
----
29

query I rowsort
SELECT ALL - 90 - col1 AS col2 FROM tab0
----
-111
-171
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND + + 11 / - col0 * - 25 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - col1 IS NULL AND NOT - 77 - - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + 62 col0 FROM tab1
----
3534
3534
3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 + + col0 AS col2 FROM tab0 AS cor0
----
-15
96
-87
108
-97
98

query I rowsort
SELECT DISTINCT - 20 * + - col0 FROM tab1 AS cor0
----
1020
1700
1820

query I rowsort
SELECT DISTINCT ( - - ( - 85 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * 40 + + - 39 FROM tab1 AS cor0
----
161
1841
521

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT - + COUNT( - + 93 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT - + COUNT ( - + 93 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - 70 <= - col2 + + col1 + + col0
----

query II rowsort
SELECT DISTINCT 18 AS col2, 53 * col0 + - 60 + - + col0 * - - col2 FROM tab1
----
18
-1425
18
-2253
18
-570

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT ALL - COUNT( * ) AS col1, + 35 FROM tab0
----
-3
35

skipif mysql # not compatible
query II rowsort label-8214
SELECT ALL - COUNT ( * ) AS col1, + 35 FROM tab0
----
-3
35

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> col2 - + - col1
----

query I rowsort
SELECT ALL - col0 * + col0 * + ( + col0 ) FROM tab0 AS cor0
----
-3375
-658503
-912673

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + COUNT( * ) + + SUM( ALL 34 ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + COUNT ( * ) + + SUM ( ALL 34 ) AS col0 FROM tab0
----
105

query I rowsort
SELECT ALL 84 * - col2 AS col1 FROM tab0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT ALL - + 62 DIV - COUNT( * ) AS col2 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - + 62 / - COUNT ( * ) AS col2 FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL - - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT - + 8 DIV - col0 + + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8222
SELECT - + 8 / - col0 + + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 56 + col0 FROM tab1
----
-5
29
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT DISTINCT - 57 AS col2, COUNT( * ) AS col2 FROM tab1
----
-57
3

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT - 57 AS col2, COUNT ( * ) AS col2 FROM tab1
----
-57
3

query I rowsort
SELECT ALL - 62 + - col2 FROM tab0
----
-109
-161
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT 55 DIV 94 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT 55 / 94 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + COUNT( * ) * - + 20 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-8227
SELECT + COUNT ( * ) * - + 20 FROM tab0
----
-60

query I rowsort
SELECT - 89 * - col1 FROM tab0
----
1869
7209
89

query II rowsort
SELECT col2 AS col2, 84 AS col2 FROM tab1
----
59
84
68
84
96
84

query I rowsort
SELECT DISTINCT - col2 + - - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 AS col2 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
135
165
88

query I rowsort
SELECT ALL + col0 * 22 AS col2 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL col2 * 64 + - col0 + + + 6 * + ( - col2 ) + + col1 AS col0 FROM tab1
----
3342
3900
5531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( + col0 ) * col1 - + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( + col0 ) * col1 - + col0 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - ( 33 ) NOT BETWEEN - - ( + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - MAX( ALL + 93 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - MAX ( ALL + 93 ) FROM tab1 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL - COUNT( ALL - 11 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - COUNT ( ALL - 11 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT MAX( + 71 ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT MAX ( + 71 ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT - 67 * + - 12 AS col0 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8241
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8241
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS REAL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 98 col0 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT MIN( ALL + col1 ) * SUM( DISTINCT col1 ) AS col0 FROM tab2
----
9945

skipif mysql # not compatible
query I rowsort label-8243
SELECT MIN ( ALL + col1 ) * SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
9945

query I rowsort
SELECT + - 40 FROM tab1 WHERE NOT 30 IS NOT NULL
----

query I rowsort
SELECT + - 70 AS col1 FROM tab0 cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 + - 44 col1 FROM tab0
----
12

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL = 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 27 * COUNT( * ) * + ( - 89 ) FROM tab2 AS cor0
----
-7209

skipif mysql # not compatible
query I rowsort label-8249
SELECT 27 * COUNT ( * ) * + ( - 89 ) FROM tab2 AS cor0
----
-7209

query I rowsort
SELECT ALL 7 AS col2 FROM tab2 cor0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 89 / + 23 IS NOT NULL
----

query I rowsort
SELECT + 90 * 86 AS col0 FROM tab2 cor0
----
7740
7740
7740

query I rowsort
SELECT DISTINCT + col2 * + col2 + + 49 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT + SUM( - ( col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + SUM ( - ( col0 ) ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT - col1 - - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - col1 - - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 * - 16 AS col1 FROM tab2
----
-1101
-1267
-787

query I rowsort
SELECT col2 + - - col2 + - 47 * + col0 AS col2 FROM tab2
----
-2116
-2928
-3409

query I rowsort
SELECT ALL col1 * - col1 * + - col0 - + + col2 FROM tab2
----
119623
336617
379416

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT ALL 62 DIV - col2 - - - 94 AS col0 FROM tab1
----
-94
-94
-95

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 62 / - col2 - - - 94 AS col0 FROM tab1
----
-94
-94
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - 89 col2 FROM tab1 cor0
----
148
157
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT - - CAST( 10 AS SIGNED ) AS col0, 25 * + 22 FROM tab2 cor0
----
10
550
10
550
10
550

skipif mysql # not compatible
query II rowsort label-8261
SELECT - - CAST ( 10 AS INTEGER ) AS col0, 25 * + 22 FROM tab2 cor0
----
10
550
10
550
10
550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - - col2, col1 + - col0 col2 FROM tab2 AS cor0
----
1058
5
2560
13
4350
-8

query I rowsort
SELECT ALL + col1 * - col0 * + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-25070
-290789
-68530

onlyif mysql # aggregate syntax: 
query II rowsort label-8264
SELECT ALL - 16 AS col0, COUNT( * ) AS col1 FROM tab0
----
-16
3

skipif mysql # not compatible
query II rowsort label-8264
SELECT ALL - 16 AS col0, COUNT ( * ) AS col1 FROM tab0
----
-16
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 93 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8266
SELECT CAST( - + col0 AS SIGNED ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT CAST ( - + col0 AS INTEGER ) / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT - - MIN( + 53 ) * + - 52 col2 FROM tab0 AS cor0
----
-2756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8268
SELECT DISTINCT - - MIN ( + 53 ) * + - 52 col2 FROM tab0 AS cor0
----
-2756

query I rowsort
SELECT DISTINCT - col2 * - 21 AS col0 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT ALL - - 9 DIV - 20 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - - 9 / - 20 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8271
SELECT - CAST( col2 AS SIGNED ), col0 FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

skipif mysql # not compatible
query II rowsort label-8271
SELECT - CAST ( col2 AS INTEGER ), col0 FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT DISTINCT - - CAST( - MIN( + - 13 ) AS SIGNED ) * - 48 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col2 * 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - - CAST ( - MIN ( + - 13 ) AS INTEGER ) * - 48 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col2 * 36 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 92 + + col0 + - + 83 + + + col0 * 6 IS NOT NULL
----

query I rowsort
SELECT + col1 + + + 32 * + - 71 AS col0 FROM tab1 WHERE NOT col2 + - col2 * 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT + col1 + - CAST( + + col2 AS SIGNED ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8275
SELECT + col1 + - CAST ( + + col2 AS INTEGER ) FROM tab1
----
-21
-54
-82

query II rowsort
SELECT col1 + 24 AS col0, 85 + col0 FROM tab1
----
29
170
38
136
71
176

query I rowsort
SELECT ALL col0 * 86 + + col0 FROM tab2
----
4002
5568
6525

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 52 + + 73 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8279
SELECT DISTINCT + col0 - + + CAST( - 92 AS DECIMAL ) - + 69 AS col1 FROM tab2 WHERE ( 36 * + 11 * 32 BETWEEN + - col1 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + col0 - + + CAST ( - 92 AS REAL ) - + 69 AS col1 FROM tab2 WHERE ( 36 * + 11 * 32 BETWEEN + - col1 AND NULL )
----

query I rowsort
SELECT col1 + + 55 * - col0 AS col1 FROM tab2
----
-2479
-3443
-4058

query I rowsort
SELECT ALL + ( - - col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - ( - MIN( ALL + col1 ) ) + COUNT( * ) * 31 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8282
SELECT - ( - MIN ( ALL + col1 ) ) + COUNT ( * ) * 31 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT ( + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT DISTINCT ( + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * - 23 FROM tab0
----
1081
2277
230

query I rowsort
SELECT + 7 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col0 - - col2 * - - col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT 94 + - 16 - col0 + + col0 * + 57 AS col1 FROM tab2
----
2654
3662
4278

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 >= + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 32 + col2 AS col1 FROM tab1 AS cor0
----
100
128
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + ( + - col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + col2 + - col2 * - - col2 * - col1 * 17 FROM tab1 AS cor0
----
2193600
296003
3694712

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT COUNT( * ) * + - SUM( - col0 ) col2 FROM tab1
----
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8293
SELECT DISTINCT COUNT ( * ) * + - SUM ( - col0 ) col2 FROM tab1
----
681

query I rowsort
SELECT col2 * - + 93 AS col0 FROM tab2
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query II rowsort label-8295
SELECT DISTINCT + SUM( ALL - - 56 ) + + MAX( DISTINCT + + col0 ), COUNT( + col0 ) AS col1 FROM tab2
----
243
3

skipif mysql # not compatible
query II rowsort label-8295
SELECT DISTINCT + SUM ( ALL - - 56 ) + + MAX ( DISTINCT + + col0 ), COUNT ( + col0 ) AS col1 FROM tab2
----
243
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT CAST( NULL AS SIGNED ) * - col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - ( + col2 ) * + col2 * + col2 + - + 2 * + + 74 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT DISTINCT col0 DIV 62 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT col0 / 62 / - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT COUNT( * ) + - - 58 FROM tab0 WHERE - 53 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( * ) + - - 58 FROM tab0 WHERE - 53 IS NOT NULL
----
61

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - COUNT( DISTINCT + col2 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8301
SELECT - COUNT ( DISTINCT + col2 ) col2 FROM tab1
----
-3

query I rowsort
SELECT + + 49 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - + COUNT( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8303
SELECT - + COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= + 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT DISTINCT 9 * + col2 + - col1 + CAST( + + 64 AS SIGNED ) col2 FROM tab0 AS cor0
----
133
406
954

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8305
SELECT DISTINCT 9 * + col2 + - col1 + CAST ( + + 64 AS INTEGER ) col2 FROM tab0 AS cor0
----
133
406
954

query III rowsort
SELECT * FROM tab0 WHERE NOT - 64 + ( - 21 ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT + 54 * + + ( + COUNT( * ) ) AS col1 FROM tab2 WHERE ( ( NULL ) IN ( + col1 - 30, col1 * 95, + col1 + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + 54 * + + ( + COUNT ( * ) ) AS col1 FROM tab2 WHERE ( ( NULL ) IN ( + col1 - 30, col1 * 95, + col1 + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8308
SELECT - - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ( - 52 ) * 4 FROM tab2
----
-208
-208
-208

query I rowsort
SELECT ALL + ( + + 73 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT 85 * - col0 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 FROM tab1 cor0
----
-25075
-290836
-68544

query II rowsort
SELECT DISTINCT + ( col1 ) AS col2, + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT ALL + col1 + CAST( + 73 AS SIGNED ) AS col0, - col0 AS col2 FROM tab2
----
124
-46
140
-75
150
-64

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL + col1 + CAST ( + 73 AS INTEGER ) AS col0, - col0 AS col2 FROM tab2
----
124
-46
140
-75
150
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col0 FROM tab1 WHERE 95 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8318
SELECT + 26 AS col1, + col2 * - col1 * ( + - 37 ) * 75 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-8318
SELECT + 26 AS col1, + col2 * - col1 * ( + - 37 ) * 75 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
26
NULL
26
NULL
26
NULL

query I rowsort
SELECT ALL col2 + - col2 + + - 58 AS col2 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab0 WHERE + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT + 51 * + 41 FROM tab2
----
2091

query II rowsort
SELECT ALL col1, 25 AS col1 FROM tab1 AS cor0
----
14
25
47
25
5
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT + ( col1 ) + + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT + ( col1 ) + + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT ALL + - col0, col0 / + + CAST( NULL AS SIGNED ) * + - col1 + + col1 + - col1 - - col0 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL + - col0, col0 / + + CAST ( NULL AS INTEGER ) * + - col1 + + col1 + - col1 - - col0 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL ( + + col1 ) + + col2 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + + col1 col0, - 28 FROM tab0 AS cor0
----
100
-28
128
-28
31
-28

query I rowsort
SELECT + - 16 - + 2 FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT + 97 * + 98 - - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9507

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 97 * + 98 - - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9507

query I rowsort
SELECT DISTINCT + col0 * - - 45 + + col2 + - ( - 65 ) FROM tab2 AS cor0
----
2158
2985
3498

query I rowsort
SELECT - 87 - col2 FROM tab1
----
-146
-155
-183

query I rowsort
SELECT ALL - 20 FROM tab0, tab0 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 63 * - col1 FROM tab1 cor0
----
-2961
-315
-882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT MAX( ALL - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT DISTINCT col1, + col1 * - + 83 + - + 84 + - col1 * + + col2 AS col1 FROM tab2
----
51
-5490
67
-9531
77
-9555

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + 49 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-8339
SELECT + 49 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT ALL + CAST( AVG ( + ( + col2 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + CAST ( AVG ( + ( + col2 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT ALL + col0 DIV 68 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + col0 / 68 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT + - ( - ( + - CAST( ( col1 ) AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8342
SELECT + - ( - ( + - CAST ( ( col1 ) AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT - + ( col1 ) DIV + - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT - + ( col1 ) / + - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( - - 27 ) * - col1 + - col0 col1 FROM tab0 AS cor0
----
-70
11820
177132

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab2 cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT COUNT( * ) * 39 + COUNT( * ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT COUNT ( * ) * 39 + COUNT ( * ) FROM tab0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT + col0 AS col0 FROM tab1 WHERE - CAST( col2 AS SIGNED ) / - col1 >= - col0 * - + col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-8347
SELECT + col0 AS col0 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) / - col1 >= - col0 * - + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT 82 + + - col2 + CAST( NULL AS SIGNED ), - col1 * + col2 * - - col2 * col1 col2 FROM tab2
----
NULL
-1375929
NULL
-15100996
NULL
-9486400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8348
SELECT 82 + + - col2 + CAST ( NULL AS INTEGER ), - col1 * + col2 * - - col2 * col1 col2 FROM tab2
----
NULL
-1375929
NULL
-15100996
NULL
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - COUNT( * ) + - - SUM( col2 ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - COUNT ( * ) + - - SUM ( col2 ) AS col2 FROM tab0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT 89 + + col1 + + col0 DIV - 22 FROM tab1
----
101
132
91

skipif mysql # not compatible
query I rowsort label-8350
SELECT 89 + + col1 + + col0 / - 22 FROM tab1
----
101
132
91

query I rowsort
SELECT ALL 64 + - + col0 FROM tab2
----
-11
0
18

query I rowsort
SELECT - + 98 / 30 + - - 65 AS col0 FROM tab2 WHERE 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT + COUNT( * ) * - + SUM( DISTINCT col1 ) + + - COUNT( * ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT + COUNT ( * ) * - + SUM ( DISTINCT col1 ) + + - COUNT ( * ) FROM tab1
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT + 34 DIV - col0 + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8354
SELECT + 34 / - col0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT COUNT( * ) + + + COUNT( + - 37 ) AS col2 FROM tab0, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT COUNT ( * ) + + + COUNT ( + - 37 ) AS col2 FROM tab0, tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 - + col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-196
-297
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + - COUNT( * ) * + + 95 + - ( - 72 ) AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8360
SELECT + - COUNT ( * ) * + + 95 + - ( - 72 ) AS col2 FROM tab0 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT DISTINCT COUNT( * ), 75 col2 FROM tab0 cor0
----
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8361
SELECT DISTINCT COUNT ( * ), 75 col2 FROM tab0 cor0
----
3
75

query I rowsort
SELECT + 36 * 66 FROM tab2
----
2376
2376
2376

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8363
SELECT ALL + col0 + + 44 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
131
141
59

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL + col0 + + 44 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
131
141
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT CAST( AVG ( + - 23 ) AS SIGNED ) AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-8364
SELECT CAST ( AVG ( + - 23 ) AS INTEGER ) AS col2 FROM tab0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT 29 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT 29 / - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + COUNT( * ) * 43 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + COUNT ( * ) * 43 FROM tab2
----
129

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col1 * - - col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - SUM( - ( - 80 ) ) FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-8368
SELECT - SUM ( - ( - 80 ) ) FROM tab0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 63 >= NULL
----

query I rowsort
SELECT + 58 AS col1 FROM tab2 WHERE NOT 0 NOT IN ( + 1, 92 * + + col0 + 10 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT ALL - 58 * - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - 58 * - col0 / - col0 AS col1 FROM tab2 AS cor0
----
-58
-58
-58

query II rowsort
SELECT DISTINCT col2 + + col2, - 46 * col2 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
118
-2714
136
-3128
192
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT col0 DIV col0 + + col2 AS col0 FROM tab2 cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8375
SELECT col0 / col0 + + col2 AS col0 FROM tab2 cor0
----
24
41
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8376
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8376
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT + ( col1 ) DIV 99 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT + ( col1 ) / 99 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - ( + 6 ) AS col0 FROM tab1 AS cor0
----
-59
-6
-68
-6
-96
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT + col0 DIV + col1 - - col0 + - 4 AS col0 FROM tab2 AS cor0
----
42
60
72

skipif mysql # not compatible
query I rowsort label-8380
SELECT + col0 / + col1 - - col0 + - 4 AS col0 FROM tab2 AS cor0
----
42
60
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8381
SELECT + col2, CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8381
SELECT + col2, CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8382
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) + + MIN( col0 ) DIV + - 50 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) + + MIN ( col0 ) / + - 50 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE - col2 < 35 * 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL col2 + + - col0 / CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL col2 + + - col0 / CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + col2 + - - col0 FROM tab0
----
184
293
77

query I rowsort
SELECT + 7 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT 17 AS col2, + 33 * - col0 + + col1 AS col0, - col0 FROM tab1
----
9 values hashing to b20193d6f48c11e4842dda6002e976f8

query I rowsort
SELECT ALL - 96 + col1 - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 59 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT - 66 * + CAST( NULL AS SIGNED ) * MIN( - + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - 66 * + CAST ( NULL AS INTEGER ) * MIN ( - + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 1 * + - 86 AS col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT + + 24 + - col1 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
-23
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT + MIN( ALL - + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + MIN ( ALL - + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT + - CAST( + 41 AS SIGNED ) FROM tab1 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-8395
SELECT + - CAST ( + 41 AS INTEGER ) FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + 44 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT ( + 11 ) FROM tab2 WHERE NOT - 16 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8397
SELECT ( + 11 ) FROM tab2 WHERE NOT - 16 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT - 14 DIV COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 14 / COUNT ( * ) FROM tab0
----
-4

query I rowsort
SELECT - col2 * 82 FROM tab0
----
-3854
-8118
-820

query I rowsort
SELECT - col2 * 13 AS col1 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT - ( + + 83 ) AS col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - 76 + + + 21 FROM tab1, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + - 41 * - COUNT( * ) FROM tab0 cor0
----
123

skipif mysql # not compatible
query I rowsort label-8405
SELECT + - 41 * - COUNT ( * ) FROM tab0 cor0
----
123

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE 49 >= - 27
----
-23
-40
-58

query I rowsort
SELECT 41 + - col1 + + - 44 - + col0 FROM tab1
----
-141
-68
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8408
SELECT * FROM tab1 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8408
SELECT * FROM tab1 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + ( - 0 ) NOT BETWEEN NULL AND - col2 * - col2
----

query I rowsort
SELECT + col2 + + - 13 AS col1 FROM tab0
----
-3
34
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT DISTINCT + col1 DIV col2 * + col2 FROM tab2 WHERE NOT - + col1 <= ( + ( - 85 ) * col1 )
----
40
46
58

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + col1 / col2 * + col2 FROM tab2 WHERE NOT - + col1 <= ( + ( - 85 ) * col1 )
----
40
46
58

query I rowsort
SELECT ALL + col1 - + - col0 * + - col1 AS col2 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - col1 * col0 - - + ( - - col0 ) AS col2 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT + ( - + col0 ) - - - 43 AS col1 FROM tab2 AS cor0
----
-107
-118
-89

query I rowsort
SELECT DISTINCT + col2 - + col2 * col2 AS col1 FROM tab1 AS cor0
----
-3422
-4556
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT - CAST( col2 AS SIGNED ) * - col2 FROM tab1 cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8416
SELECT - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT ALL 28 - + col0 AS col2 FROM tab1 AS cor0
----
-23
-57
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - 77 * col1 col1 FROM tab0 AS cor0
----
1627
176
6284

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT ALL col1 DIV + col0 * col1 * + col1 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8420
SELECT ALL col1 / + col0 * col1 * + col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col0 ) - - 38 AS col0 FROM tab0
----
125
135
53

query I rowsort
SELECT ALL + col1 * 61 AS col2 FROM tab0
----
1281
4941
61

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 48 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT + CAST( + 21 AS SIGNED ) AS col1 FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-8425
SELECT + CAST ( + 21 AS INTEGER ) AS col1 FROM tab2
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 17 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL - + MIN( ( - 19 ) ) AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - + MIN ( ( - 19 ) ) AS col1 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT 60 * COUNT( * ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT 60 * COUNT ( * ) FROM tab1 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT ALL + - 18 DIV + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + - 18 / + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 38 * + - 99 AS col2 FROM tab0 AS cor0
----
-3762
-3762
-3762

query I rowsort
SELECT ( 58 ) FROM tab1 cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT + 4 AS col0 FROM tab1 WHERE - col2 + - ( - + CAST( col0 AS SIGNED ) ) + + - 53 * 49 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + 4 AS col0 FROM tab1 WHERE - col2 + - ( - + CAST ( col0 AS INTEGER ) ) + + - 53 * 49 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8434
SELECT ALL * FROM tab2 WHERE NOT + 53 + CAST( + - col2 AS SIGNED ) NOT IN ( + 96 * + - col1, 96 * + 95 )
----

skipif mysql # not compatible
query III rowsort label-8434
SELECT ALL * FROM tab2 WHERE NOT + 53 + CAST ( + - col2 AS INTEGER ) NOT IN ( + 96 * + - col1, 96 * + 95 )
----

query I rowsort
SELECT - ( - col2 ) * - col2 * + col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT 50 AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col0 * - + col2 + + 98 AS col2 FROM tab1 AS cor0
----
-4798
-4917
-6090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + ( col0 ) - col2 col1 FROM tab1 AS cor0
----
14
-45
47
23
5
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT DISTINCT COUNT( * ) col2, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8439
SELECT DISTINCT COUNT ( * ) col2, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8441
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - - COUNT( * ) * COUNT( * ) + - - COUNT( * ) + + 8 AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8442
SELECT - - COUNT ( * ) * COUNT ( * ) + - - COUNT ( * ) + + 8 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT + - 16 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
1552
19440
29232

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT 57 AS col0, - col2 * + col1 - + col0 FROM tab0 AS cor0
----
57
-196
57
-297
57
-3822

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8447
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - CAST( + col0 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8447
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - CAST ( + col0 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT + COUNT( * ) DIV - 34 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT + COUNT ( * ) / - 34 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 - 87 FROM tab0
----
-102
-174
-184

query I rowsort
SELECT DISTINCT + 87 + + 69 AS col0 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - MIN( ALL + col0 ) FROM tab0 WHERE + + ( - 47 ) IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8451
SELECT - MIN ( ALL + col0 ) FROM tab0 WHERE + + ( - 47 ) IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT 14 + + ( COUNT( * ) ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT 14 + + ( COUNT ( * ) ) FROM tab2
----
17

query I rowsort
SELECT ALL + col0 + 3 * - col2 FROM tab1
----
-113
-237
-92

query I rowsort
SELECT col0 * - 1 * + col2 + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

query III rowsort
SELECT * FROM tab2 WHERE - + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT + + 42 DIV - 57 + 17 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-8456
SELECT + + 42 / - 57 + 17 FROM tab1 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + - col2 col1, - col2 FROM tab2 cor0
----
-1600
-40
-3364
-58
-529
-23

query I rowsort
SELECT DISTINCT - - 20 FROM tab2 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + COUNT( ALL - - 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8459
SELECT + COUNT ( ALL - - 78 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT - 49 DIV COUNT( * ) * - 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 49 / COUNT ( * ) * - 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
405

query I rowsort
SELECT + ( + 73 ) FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT - - ( col0 ) * - col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT ( + - col1 ) * + - 26 FROM tab1 AS cor0
----
1222
130
364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8464
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * 0 = + + col2
----

skipif mysql # not compatible
query III rowsort label-8464
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * 0 = + + col2
----

query I rowsort
SELECT ALL - - 40 * + + col2 AS col2 FROM tab2 AS cor0
----
1600
2320
920

query II rowsort
SELECT + 2 AS col1, col2 FROM tab0 cor0
----
2
10
2
47
2
99

query I rowsort
SELECT DISTINCT + 68 * - 13 FROM tab1 AS cor0
----
-884

query I rowsort
SELECT + + col1 * + + ( + - 65 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN + 46 AND - col2
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL col2 + - col2 * - - 95 FROM tab2
----
-2162
-3760
-5452

query I rowsort
SELECT DISTINCT + col1 * 13 AS col0 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT COUNT( * ), 4 AS col1 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-8472
SELECT COUNT ( * ), 4 AS col1 FROM tab2 AS cor0
----
3
4

query II rowsort
SELECT DISTINCT col1, col1 AS col0 FROM tab1 cor0
----
14
14
47
47
5
5

query II rowsort
SELECT ALL - col2 AS col1, 8 FROM tab1 AS cor0
----
-59
8
-68
8
-96
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - ( - COUNT( * ) ) + - 21 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - ( - COUNT ( * ) ) + - 21 FROM tab2 cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT DISTINCT - col1 DIV + 93 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - col1 / + 93 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * 49 + + col2 AS col0 FROM tab0
----
-4253
-4654
-688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT DISTINCT - 82 + - COUNT( * ) + - 85 DIV COUNT( * ) AS col0 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - 82 + - COUNT ( * ) + - 85 / COUNT ( * ) AS col0 FROM tab1
----
-113

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col1 >= - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT - 71 + - MIN( DISTINCT + col0 ) + COUNT( ALL - 90 ) - - CAST( + 64 AS SIGNED ) col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8480
SELECT - 71 + - MIN ( DISTINCT + col0 ) + COUNT ( ALL - 90 ) - - CAST ( + 64 AS INTEGER ) col2 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT col2 - - col2 * + + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT col2 - - col2 * + + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - - col2 ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 73 + - col0 AS col0 FROM tab0 cor0
----
-160
-170
-88

query I rowsort
SELECT 13 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 33 + - + col2 * - col1 FROM tab2 AS cor0
----
1140
3047
3853

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT + 59 * + + COUNT( * ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT + 59 * + + COUNT ( * ) AS col2 FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + MAX( DISTINCT - col0 ) AS col2 FROM tab1 WHERE col0 + - col2 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + MAX ( DISTINCT - col0 ) AS col2 FROM tab1 WHERE col0 + - col2 IS NOT NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8488
SELECT ALL col0, - 34 + 3 + 69 + - + CAST( NULL AS SIGNED ) * col1 - - 47 * - col1 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL col0, - 34 + 3 + 69 + - + CAST ( NULL AS INTEGER ) * col1 - - 47 * - col1 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT SUM( - ( - col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8490
SELECT SUM ( - ( - col0 ) ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL + 3 - ( + col0 ) AS col2 FROM tab1
----
-48
-82
-88

query I rowsort
SELECT - + ( 71 ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab0 WHERE NOT + col2 NOT IN ( + col1 * - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab0 WHERE NOT + col2 NOT IN ( + col1 * - 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT - MIN( ( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - MIN ( ( col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT ALL 85 + col0 * - 95 FROM tab2 WHERE NOT ( - 65 / 1 ) IS NULL
----
-4285
-5995
-7040

query I rowsort
SELECT - col1 + + col2 FROM tab2 WHERE ( ( col1 ) ) IS NOT NULL
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - ( + ( COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8498
SELECT - ( + ( COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( 51 * col2 - col1 * 71 ) = - col2
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT DISTINCT 40 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( - col0 * + 70 ) NOT BETWEEN NULL AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT 40 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( - col0 * + 70 ) NOT BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT ALL 29 * + col2 FROM tab1 WHERE NULL IS NULL
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 86 - ( ( - 93 ) ) * + COUNT( + 99 ) FROM tab1 WHERE col0 * col2 + col0 < + col1 * - ( col0 )
----
86

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 86 - ( ( - 93 ) ) * + COUNT ( + 99 ) FROM tab1 WHERE col0 * col2 + col0 < + col1 * - ( col0 )
----
86

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col2 >= + col2 * col0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT 23 <> ( + col2 * - 77 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 18 ) NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + ( 43 ) * + 65 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - MAX( - 12 ) + 65 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - MAX ( - 12 ) + 65 FROM tab2
----
77

query I rowsort
SELECT ALL - 13 + - col2 AS col1 FROM tab1
----
-109
-72
-81

query I rowsort
SELECT col1 FROM tab1 WHERE + col0 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - 35 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT + 29 + - col0 DIV col2 AS col1 FROM tab2
----
27
28

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + 29 + - col0 / col2 AS col1 FROM tab2
----
27
28

query I rowsort
SELECT ( 4 ) AS col1 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + SUM ( - col2 ) FROM tab1
----
-223

query I rowsort
SELECT - 89 + col1 * - col0 FROM tab0 AS cor0
----
-1304
-186
-1916

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT + 7 DIV + col2 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8517
SELECT + 7 / + col2 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 8 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col0 ) ) NOT IN ( - col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT - 65 DIV col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - 65 / col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col2 - 84 AS col2 FROM tab1 AS cor0
----
-143
-152
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT MIN( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8524
SELECT MIN ( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE 65 IS NULL
----

query I rowsort
SELECT ALL + col0 - 29 FROM tab0 AS cor0
----
-14
58
68

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> 72 * ( col2 * + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT + COUNT( * ) * 85 - + COUNT( * ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8528
SELECT + COUNT ( * ) * 85 - + COUNT ( * ) FROM tab1 AS cor0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT ALL col0 DIV 30 + col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL col0 / 30 + col0 / + col2 AS col0 FROM tab1 AS cor0
----
1
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT col0 DIV + 39 - ( col1 ) FROM tab2 cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-8530
SELECT col0 / + 39 - ( col1 ) FROM tab2 cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL - + MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - + MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 - col0 AS col0 FROM tab1 AS cor0
----
-46
-80
-86

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL NOT IN ( col2 / - col2 )
----

query I rowsort
SELECT ALL + ( + col2 ) + - col0 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col0 / + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + 87 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) = ( + col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( col0 + - CAST( 93 AS SIGNED ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( col0 + - CAST ( 93 AS INTEGER ) ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT + + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8540
SELECT + + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT DISTINCT - SUM( DISTINCT + col0 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - SUM ( DISTINCT + col0 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN col0 + + col2 AND col0
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + + 88 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8545
SELECT ALL + + CAST( NULL AS DECIMAL ) + 10 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8545
SELECT ALL + + CAST ( NULL AS REAL ) + 10 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( + - col0 ) * - - ( - col0 ) - + col1 AS col2 FROM tab0
----
144
7548
9408

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT 31 DIV - 74 AS col2 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT 31 / - 74 AS col2 FROM tab0, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - 31 * - SUM( col0 ) FROM tab0 cor0
----
6169

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 31 * - SUM ( col0 ) FROM tab0 cor0
----
6169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT + - CAST( NULL AS SIGNED ), - col0 * col0 AS col0 FROM tab1 cor0
----
NULL
-2601
NULL
-7225
NULL
-8281

skipif mysql # not compatible
query II rowsort label-8549
SELECT + - CAST ( NULL AS INTEGER ), - col0 * col0 AS col0 FROM tab1 cor0
----
NULL
-2601
NULL
-7225
NULL
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT col2 DIV 27 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8550
SELECT col2 / 27 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + + SUM( - - 28 ) * - 21 col2 FROM tab1 AS cor0
----
-1764

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8551
SELECT + + SUM ( - - 28 ) * - 21 col2 FROM tab1 AS cor0
----
-1764

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT + 39 AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-8552
SELECT + 39 AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 60 col2 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL MIN( ALL + 53 ) col2 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8554
SELECT ALL MIN ( ALL + 53 ) col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT - col0 DIV - + col2 + + 52 AS col2 FROM tab2
----
53
53
54

skipif mysql # not compatible
query I rowsort label-8556
SELECT - col0 / - + col2 + + 52 AS col2 FROM tab2
----
53
53
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8557
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8557
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 + - - 89 )
----

query I rowsort
SELECT ( - + col1 ) + - col0 * + col0 + col0 AS col0 FROM tab0
----
-291
-7503
-9313

query III rowsort
SELECT * FROM tab2 WHERE 29 NOT BETWEEN NULL AND + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 41 + - col2 + - 35 + 18 FROM tab2
----
-16
-34
1

query I rowsort
SELECT + 33 + + col1 + - + col2 * 49 FROM tab2
----
-1043
-1850
-2742

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + + 7 col2 FROM tab0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + SUM( DISTINCT + 66 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8565
SELECT + SUM ( DISTINCT + 66 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT col0 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 41 * 41 AS col0 FROM tab1
----
-1681

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - 99 - - MAX( + + ( + 76 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8569
SELECT - 99 - - MAX ( + + ( + 76 ) ) AS col1 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + 1 * + - col2 DIV - - 68 + + col0 FROM tab1
----
50
85
90

skipif mysql # not compatible
query I rowsort label-8570
SELECT + 1 * + - col2 / - - 68 + + col0 FROM tab1
----
50
85
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT - MIN( + col2 ) + + 62 col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8571
SELECT - MIN ( + col2 ) + + 62 col2 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL SUM( - col0 ) + + COUNT( + col2 ) * + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL SUM ( - col0 ) + + COUNT ( + col2 ) * + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-226

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL < + col1 AND NOT + 62 + + 93 IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE col0 + + col1 + + + col1 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL - - 85 DIV + 74 - - col0 AS col2 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - - 85 / + 74 - - col0 AS col2 FROM tab2 cor0
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN - 85 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 - - - 59 AS col0 FROM tab0 AS cor0
----
-140
-60
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT DISTINCT + 64 * MIN( + + col1 ) * 28 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
274176

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT + 64 * MIN ( + + col1 ) * 28 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
274176

query I rowsort
SELECT col0 * + + 1 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * ( - ( - + 1 ) ) + - col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col0 ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8584
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 95 - + CAST( 29 AS SIGNED ) * - 33 / - 8 AND col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-8584
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 95 - + CAST ( 29 AS INTEGER ) * - 33 / - 8 AND col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL + COUNT( ALL + - col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8585
SELECT ALL + COUNT ( ALL + - col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + 39 col2 FROM tab1 AS cor0
----
-14
39
-47
39
-5
39

query I rowsort
SELECT col2 * + col1 * + col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8588
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) = col0
----

skipif mysql # not compatible
query III rowsort label-8588
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) = col0
----

query I rowsort
SELECT + col2 * - + 89 * + col1 * col2 AS col0 FROM tab1
----
-11483136
-1549045
-19342192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <= + col0
----

query I rowsort
SELECT 40 FROM tab2 cor0 WHERE NOT ( NOT - col0 + + col0 IS NULL )
----

query II rowsort
SELECT - 8, col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 57 * + - CAST( NULL AS SIGNED ) * - ( - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8593
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 57 * + - CAST ( NULL AS INTEGER ) * - ( - + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 * col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 51 )
----

query I rowsort
SELECT ALL + + 90 AS col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + + col2 + col2 * col0 + + col0 - + + col2 + + + 62 + + ( - 4 ) + + col0 * 18 AS col2 FROM tab1 AS cor0
----
5923
6688
7975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8598
SELECT * FROM tab1 WHERE 15 * ( 51 ) + col2 + col1 IN ( CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8598
SELECT * FROM tab1 WHERE 15 * ( 51 ) + col2 + col1 IN ( CAST ( + col1 AS INTEGER ) )
----

query II rowsort
SELECT col2 AS col2, - col2 * + - col0 AS col2 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL - + ( + + MIN( ALL 69 ) ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - + ( + + MIN ( ALL 69 ) ) AS col0 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT - col1 DIV col1 * col2 + col1 AS col2 FROM tab0 cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-8601
SELECT - col1 / col1 * col2 + col1 AS col2 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT - 48 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL 10 - + + COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL 10 - + + COUNT ( * ) AS col1 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - ( - + CAST( NULL AS SIGNED ) ) - - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8605
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - ( - + CAST ( NULL AS INTEGER ) ) - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT MAX( - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8606
SELECT MAX ( - + col2 ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 ) / col2 / col1 IN ( 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 95 + - + 84 col2 FROM tab0 AS cor0
----
-1509
-8349
-9299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT DISTINCT - col0 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - col0 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - + 36 - - + col0 FROM tab2 AS cor0
----
10
28
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT + col2 * CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8611
SELECT + col2 * CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT + + ( - COUNT( * ) ) * - 16 AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT + + ( - COUNT ( * ) ) * - 16 AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL col0 * - col2 * - col0 * - col1 FROM tab0 AS cor0
----
-1589490
-856575
-931491

query I rowsort
SELECT col2 * + ( + + col0 ) - + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT col0 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) + - - col2 IN ( + - col2 )
----

skipif mysql # not compatible
query I rowsort label-8616
SELECT col0 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) + - - col2 IN ( + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 93 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col1, - 66 AS col2 FROM tab2
----
94
-66
94
-66
94
-66

query II rowsort
SELECT ALL 5, col0 FROM tab1
----
5
51
5
85
5
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 49 BETWEEN + col1 AND ( col2 / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 84, - 81 AS col0 FROM tab0
----
-84
-81
-84
-81
-84
-81

query II rowsort
SELECT DISTINCT + 99 AS col1, 84 AS col0 FROM tab2
----
99
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8623
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT + COUNT( * ) AS col0, 47 FROM tab1
----
3
47

skipif mysql # not compatible
query II rowsort label-8624
SELECT + COUNT ( * ) AS col0, 47 FROM tab1
----
3
47

query I rowsort
SELECT - ( + - ( + 21 ) ) AS col0 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL + SUM( ALL - 77 ) AS col2 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + SUM ( ALL - 77 ) AS col2 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query II rowsort
SELECT DISTINCT - col2, + ( - 45 ) AS col1 FROM tab1
----
-59
-45
-68
-45
-96
-45

query III rowsort
SELECT * FROM tab0 WHERE NOT - 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT 19 * - + CAST( col1 AS SIGNED ) FROM tab0
----
-1539
-19
-399

skipif mysql # not compatible
query I rowsort label-8630
SELECT 19 * - + CAST ( col1 AS INTEGER ) FROM tab0
----
-1539
-19
-399

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 14 * - 35 AND + col0 / + col1 / + ( + + col0 ) / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT DISTINCT - ( - col2 ) * CAST( - 31 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1240
-1798
-713

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - ( - col2 ) * CAST ( - 31 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT + + 32 DIV - + col2 + col1 AS col2 FROM tab2 AS cor0
----
50
67
77

skipif mysql # not compatible
query I rowsort label-8633
SELECT + + 32 / - + col2 + col1 AS col2 FROM tab2 AS cor0
----
50
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL 71 * + 38 * MAX( + 1 ) FROM tab1 AS cor0
----
2698

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL 71 * + 38 * MAX ( + 1 ) FROM tab1 AS cor0
----
2698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL col0 * col2 + - ( - - col0 ) + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2456
4217
989

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL col0 * col2 + - ( - - col0 ) + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2456
4217
989

query I rowsort
SELECT DISTINCT - + col2 * + + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + col2 * 76 * col0 FROM tab1 AS cor0
----
372096
381140
470288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT 95 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT 95 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + + col0 AND + col2 AND ( + ( - 97 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT + ( 71 ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT + ( 71 ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 79 + + col1 AS col1 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT ALL + col0 + col2 + + CAST( - - col0 AS SIGNED ) FROM tab1
----
198
229
250

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + col0 + col2 + + CAST ( - - col0 AS INTEGER ) FROM tab1
----
198
229
250

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1, col1 + + + col1 )
----

query I rowsort
SELECT col2 + - + col2 + 88 * + col0 FROM tab0 WHERE + - 10 IS NOT NULL
----
1320
7656
8536

query I rowsort
SELECT - 61 * + 65 FROM tab2, tab0 AS cor0
----
9 values hashing to 3df963112eccb0f648cf64b22cbcdcbb

query I rowsort
SELECT 25 AS col1 FROM tab0 WHERE + - col1 IS NOT NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL + 14 + - COUNT( * ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + 14 + - COUNT ( * ) AS col2 FROM tab2
----
11

query II rowsort
SELECT DISTINCT - col2 - - 73, - 77 AS col1 FROM tab1
----
-23
-77
14
-77
5
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - MIN( ALL - 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-8649
SELECT - MIN ( ALL - 67 ) FROM tab1
----
67

query I rowsort
SELECT DISTINCT + 20 + + - col2 + + + col1 FROM tab1
----
-1
-34
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 91 AND + col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT CAST( NULL AS SIGNED ) * col0 / col2 * - ( col2 ) + + 46 - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT CAST ( NULL AS INTEGER ) * col0 / col2 * - ( col2 ) + + 46 - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT CAST( NULL AS SIGNED ) * - - 75 - + ( - + AVG ( ALL - + 30 ) ) * + COUNT( + 60 ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8653
SELECT CAST ( NULL AS INTEGER ) * - - 75 - + ( - + AVG ( ALL - + 30 ) ) * + COUNT ( + 60 ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + COUNT( DISTINCT - - 85 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + COUNT ( DISTINCT - - 85 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col2 AS col0 FROM tab2 AS cor0 WHERE - ( + col2 ) = col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8656
SELECT + MIN( - CAST( + 67 AS SIGNED ) ) AS col2, 42 FROM tab0 AS cor0
----
-67
42

skipif mysql # not compatible
query II rowsort label-8656
SELECT + MIN ( - CAST ( + 67 AS INTEGER ) ) AS col2, 42 FROM tab0 AS cor0
----
-67
42

query II rowsort
SELECT DISTINCT - 88 AS col1, - 18 + + col0 FROM tab2 cor0
----
-88
28
-88
46
-88
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT 29 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT 29 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + + 56 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + + 56 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * + col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab1 WHERE NOT - 44 * + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT + COUNT( ALL col0 ) * - COUNT( * ) + - CAST( + - 25 AS SIGNED ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8662
SELECT + COUNT ( ALL col0 ) * - COUNT ( * ) + - CAST ( + - 25 AS INTEGER ) FROM tab2
----
16

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT col0 * col0 * - 23 AS col0 FROM tab1
----
-166175
-190463
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT SUM( 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8665
SELECT SUM ( 8 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT - CAST( NULL AS SIGNED ) + + col2 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT - CAST ( NULL AS INTEGER ) + + col2 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab0 WHERE NOT + col0 * + 87 + + col2 + + 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT ALL 11 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 11 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 87 / + col2 AS col0, + 80 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + col2 FROM tab2 cor0 WHERE NULL > 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - col2 * col0 < NULL
----

query II rowsort
SELECT - col1 * + - ( - 55 ), col0 FROM tab1 AS cor0
----
-2585
91
-275
85
-770
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT SUM( + + 16 ) DIV - - COUNT( * ) AS col2 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-8674
SELECT SUM ( + + 16 ) / - - COUNT ( * ) AS col2 FROM tab1 cor0
----
16

query I rowsort
SELECT + + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col2 - - - col2 NOT IN ( + col2 / + + col0, 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab1
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL + ( COUNT( * ) ) + - + 78 + + - 66 * + COUNT( * ) AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL + ( COUNT ( * ) ) + - + 78 + + - 66 * + COUNT ( * ) AS col1 FROM tab2
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL - CAST( - + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - CAST ( - + col0 AS INTEGER ) FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT + 48 - col1, - col0 * - col1 AS col2 FROM tab0
----
-33
1215
27
1827
47
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT COUNT( ALL - - col2 ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT COUNT ( ALL - - col2 ) + - + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NOT NULL AND ( NULL ) IN ( + 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT DISTINCT 92 * + 76 * + + CAST( col0 AS SIGNED ) * - ( - + col0 ) + + + col0 * - - col0 FROM tab0
----
1573425
52930017
65797137

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT 92 * + 76 * + + CAST ( col0 AS INTEGER ) * - ( - + col0 ) + + + col0 * - - col0 FROM tab0
----
1573425
52930017
65797137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT + - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT + - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT + - CAST( NULL AS SIGNED ) + + MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT + - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT - + 42 + - COUNT( * ) - - 27 DIV - COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8686
SELECT - + 42 + - COUNT ( * ) - - 27 / - COUNT ( * ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT 67 * - ( - 67 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bfe2f997c82e81700f8519bf0e6f3294

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT + col0 DIV - ( - col2 ) - - - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-8688
SELECT + col0 / - ( - col2 ) - - - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 + + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 27 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8691
SELECT ALL + - ( - col2 ) col1, col1 - CAST( ( - 60 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
111
40
137
58
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8691
SELECT ALL + - ( - col2 ) col1, col1 - CAST ( ( - 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
111
40
137
58
127

query I rowsort
SELECT 52 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT DISTINCT + - MAX( DISTINCT + col2 ) col2, COUNT( * ) FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8693
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) col2, COUNT ( * ) FROM tab0 AS cor0
----
-99
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 6 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE ( + - col1 * col1 * col0 / + + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE ( + - col1 * col1 * col0 / + + col0 ) < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 + + col2 AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( - 45 < - 19 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 90 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT - col2 * - + col0 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT + col2 AS col0 FROM tab1 WHERE NOT + 44 * col0 * + CAST( NULL AS SIGNED ) > ( + ( + 52 ) ) - col1 * + 57 * + 60
----

skipif mysql # not compatible
query I rowsort label-8701
SELECT + col2 AS col0 FROM tab1 WHERE NOT + 44 * col0 * + CAST ( NULL AS INTEGER ) > ( + ( + 52 ) ) - col1 * + 57 * + 60
----

query I rowsort
SELECT DISTINCT - + col1 * - 89 AS col2 FROM tab1 AS cor0
----
1246
4183
445

query I rowsort
SELECT + 82 * + + col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 * col1 <> - 13 * col0
----

query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + 42 * + col0 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - 46 AS col0 FROM tab2
----
-113
-123
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL MIN( ALL 16 ) / - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL MIN ( ALL 16 ) / - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * col2 + + col2 AS col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - - 21 + + 99 AS col2 FROM tab2 AS cor0
----
120

query I rowsort
SELECT ALL 60 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( col1 ) + - 59 + - col1 AS col1 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + 38 + + 57 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT ( + col1 ) DIV + col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT ( + col1 ) / + col2 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + COUNT( * ) + - 99 AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-8716
SELECT + COUNT ( * ) + - 99 AS col0 FROM tab2
----
-96

query I rowsort
SELECT - + col2 FROM tab1 WHERE + col1 < + col0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT - MIN( ALL - col2 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT - MIN ( ALL - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - COUNT( * ) + + ( MAX( 72 ) ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - COUNT ( * ) + + ( MAX ( 72 ) ) FROM tab2
----
69

query I rowsort
SELECT ALL 26 + - + 98 AS col2 FROM tab1
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col0 / CAST( NULL AS SIGNED ) + + 36 + + col2 * - 75 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col0 / CAST ( NULL AS INTEGER ) + + 36 + + col2 * - 75 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 53 - - 81 + + - 49 + 15 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL - + SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - + SUM ( col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + + MIN( ALL + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8724
SELECT + + MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT + 61 DIV + ( - col0 ) FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 61 / + ( - col0 ) FROM tab0
----
-4
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8726
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 37 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( 85 - + - ( - col1 ), col2 * - col1 + + + col0, col0 )
----

skipif mysql # not compatible
query II rowsort label-8726
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 37 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( 85 - + - ( - col1 ), col2 * - col1 + + + col0, col0 )
----

query I rowsort
SELECT 48 * - - 13 FROM tab2
----
624
624
624

onlyif mysql # aggregate syntax: 
query II rowsort label-8728
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8728
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL + - col1 AS col1, 99 FROM tab1 AS cor0
----
-14
99
-47
99
-5
99

query I rowsort
SELECT DISTINCT - + ( - 92 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL <= col1
----

query II rowsort
SELECT DISTINCT - col2 AS col1, 61 FROM tab0 AS cor0
----
-10
61
-47
61
-99
61

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + ( + - 29 )
----

query I rowsort
SELECT 37 * + 10 * 88 FROM tab1
----
32560
32560
32560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL col2 / CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT + 56 / 57 IN ( + 77, + col0, - col2, - ( - - 94 ), 33 - - col1 * + - col2 + ( + + col1 ) + col2 + + col0 + col2 * - CAST( - - col1 AS SIGNED ) * + - col1 * - ( 20 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8737
SELECT ALL col2 / CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT + 56 / 57 IN ( + 77, + col0, - col2, - ( - - 94 ), 33 - - col1 * + - col2 + ( + + col1 ) + col2 + + col0 + col2 * - CAST ( - - col1 AS INTEGER ) * + - col1 * - ( 20 ) )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - COUNT( * ) * + + 38 * + COUNT( * ) FROM tab0
----
-342

skipif mysql # not compatible
query I rowsort label-8738
SELECT - COUNT ( * ) * + + 38 * + COUNT ( * ) FROM tab0
----
-342

query I rowsort
SELECT + 66 * 13 * ( 26 ) AS col1 FROM tab1
----
22308
22308
22308

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8740
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT - + col1 + + col2 + 20 FROM tab2 AS cor0
----
-17
-8
11

query I rowsort
SELECT + col2 + - 84 * - - 4 FROM tab1 AS cor0
----
-240
-268
-277

query I rowsort
SELECT DISTINCT 3 + + col0 FROM tab0
----
100
18
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT MIN( ALL - col1 ) + 3 + - ( + + 64 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT MIN ( ALL - col1 ) + 3 + - ( + + 64 ) FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL COUNT( * ) * + 1 + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL COUNT ( * ) * + 1 + + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL + COUNT( * ) AS col2, 13 AS col0 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL + COUNT ( * ) AS col2, 13 AS col0 FROM tab1 AS cor0
----
3
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 42 ) col1 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col0, + col0 - + + col1 FROM tab0 AS cor0
----
37
-66
37
66
37
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 43 col2 FROM tab2 AS cor0
----
1720
2494
989

query I rowsort
SELECT + col2 - - 73 AS col1 FROM tab2 AS cor0
----
113
131
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT col2 + + col0 + + - col0 - + 17 + - 38 + + col0 * + + col0 AS col1 FROM tab2
----
2084
4081
5628

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT ALL - - ( + col0 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - - ( + col0 ) / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - ( - col1 ) * - - col2 AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT col2 BETWEEN NULL AND + + 6 / + col2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT SUM( + - 65 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT SUM ( + - 65 ) FROM tab1
----
-195

query I rowsort
SELECT ALL - + col1 - + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + COUNT( * ) + - SUM( DISTINCT + col2 ) DIV COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-49

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + COUNT ( * ) + - SUM ( DISTINCT + col2 ) / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 / - ( 5 ) - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8762
SELECT - col0 DIV ( - col2 ) * + 2 + 32 AS col1, - 16 AS col0 FROM tab2 AS cor0
----
34
-16
34
-16
36
-16

skipif mysql # not compatible
query II rowsort label-8762
SELECT - col0 / ( - col2 ) * + 2 + 32 AS col1, - 16 AS col0 FROM tab2 AS cor0
----
34
-16
34
-16
36
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + COUNT( 8 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( 8 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab0 AS cor0
----
7

query I rowsort
SELECT + - 67 AS col2 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE + 72 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + COUNT( * ) + 49 AS col1 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) + 49 AS col1 FROM tab0
----
52

query II rowsort
SELECT ALL + 75 + - col2 + + ( - col0 ), 64 AS col0 FROM tab2
----
-29
64
-58
64
6
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + col1 col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 1 + - MIN( + col0 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 1 + - MIN ( + col0 ) FROM tab0
----
-14

query I rowsort
SELECT 47 + - + ( + col2 ) FROM tab1
----
-12
-21
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT - col1 DIV + - col1 + + col0 AS col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-8772
SELECT - col1 / + - col1 + + col0 AS col1 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT + COUNT( ALL + 9 ) + + COUNT( * ) - - MIN( DISTINCT 66 ) col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8773
SELECT DISTINCT + COUNT ( ALL + 9 ) + + COUNT ( * ) - - MIN ( DISTINCT 66 ) col0 FROM tab1
----
72

query II rowsort
SELECT ALL - col1 AS col2, col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-1
96
-21
66
-81
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 31 ) col0 FROM tab1 cor0
----
31

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - col0 + + 26 + - col1 FROM tab2
----
-2371
-4979
-5066

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT DISTINCT + 99 - COUNT( ALL col0 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT + 99 - COUNT ( ALL col0 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8780
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( + + col0 ) * + + 39 + col2 * + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - - 71 * + COUNT( * ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-8783
SELECT - - 71 * + COUNT ( * ) FROM tab0 AS cor0
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT DISTINCT ( col2 ) DIV - - ( 79 ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT ( col2 ) / - - ( 79 ) FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT 5 DIV + 13 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT 5 / + 13 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT - 99 DIV + 15 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 99 / + 15 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( - - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( - - col2 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1, 70 AS col2 FROM tab1
----
-14
70
-47
70
-5
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 81 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT COUNT( ALL + + 48 ) AS col1 FROM tab2 WHERE NOT 48 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( ALL + + 48 ) AS col1 FROM tab2 WHERE NOT 48 IS NULL
----
3

query I rowsort
SELECT - 7 AS col1 FROM tab2 AS cor0 WHERE NOT 25 > + col1 - - col2 + - + 77
----
-7
-7

query I rowsort
SELECT ALL + col2 * col1 * + + col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < - col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT + 56 * + 41 - - COUNT( * ) AS col1 FROM tab2 cor0
----
2299

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + 56 * + 41 - - COUNT ( * ) AS col1 FROM tab2 cor0
----
2299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT + MIN( + + col2 ) AS col0, 76 AS col2 FROM tab0 AS cor0
----
10
76

skipif mysql # not compatible
query II rowsort label-8796
SELECT + MIN ( + + col2 ) AS col0, 76 AS col2 FROM tab0 AS cor0
----
10
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8797
SELECT ALL COUNT( * ), + 30 col0 FROM tab2
----
3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8797
SELECT ALL COUNT ( * ), + 30 col0 FROM tab2
----
3
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL col1 + + col0 * - ( + + col1 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL col1 + + col0 * - ( + + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - ( ( - + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT MIN( - col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8800
SELECT MIN ( - col0 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT - 14 + + MAX( - col2 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT - 14 + + MAX ( - col2 ) FROM tab1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT col2 + + + 32 DIV - 36 + - col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8802
SELECT col2 + + + 32 / - 36 + - col1 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col1 FROM tab1
----
4
4
4

query I rowsort
SELECT - ( + 3 ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query II rowsort
SELECT + col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - col0 - + + 83 AS col0 FROM tab1 AS cor0
----
-134
-168
-174

query I rowsort
SELECT ALL - col2 * - - col1 - - ( + 1 ) AS col1 FROM tab0 AS cor0
----
-209
-3806
-98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 + + + col1 <> NULL
----

query II rowsort
SELECT DISTINCT 22 * + + col2, + 75 - + 72 AS col0 FROM tab2 AS cor0
----
1276
3
506
3
880
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8810
SELECT CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + 16 * - 8 - CAST( + - 69 AS SIGNED ) + + + 41 FROM tab0 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 16 * - 8 - CAST ( + - 69 AS INTEGER ) + + + 41 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8813
SELECT ALL - SUM( - - col1 ) DIV - + COUNT( col1 ), - COUNT( ALL - + col2 ) AS col1 FROM tab2 cor0
----
65
-3

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL - SUM ( - - col1 ) / - + COUNT ( col1 ), - COUNT ( ALL - + col2 ) AS col1 FROM tab2 cor0
----
65
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT + SUM( - - col1 ) DIV - - 14 FROM tab1 WHERE NOT 6 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-8814
SELECT + SUM ( - - col1 ) / - - 14 FROM tab1 WHERE NOT 6 IS NULL
----
4

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT + 26 * col0 - col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + col0 * + col0 AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT 12, - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
12
-46
12
-64
12
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT DISTINCT - COUNT( * ) DIV 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - COUNT ( * ) / 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab1
----
61

query I rowsort
SELECT ALL - + 94 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + ( - col0 ) * + + col0 col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT ALL - col0 * + 84 FROM tab1
----
-4284
-7140
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8824
SELECT - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - col0 * - + 6 AS col0 FROM tab1 cor0 WHERE NOT col1 * - + 90 * 10 = col1
----
306
510
546

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL 18 DIV - + 32 * - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 18 / - + 32 * - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8827
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-513
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-513
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= + + 59
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL MAX( ALL col2 ) + + + SUM( ALL 41 ) + - CAST( NULL AS SIGNED ) / - SUM( ALL - 17 ) + + 17 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL MAX ( ALL col2 ) + + + SUM ( ALL 41 ) + - CAST ( NULL AS INTEGER ) / - SUM ( ALL - 17 ) + + 17 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( * ) / + 77 * MAX( DISTINCT 11 ) + + MIN( DISTINCT col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / + 77 * MAX ( DISTINCT 11 ) + + MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL + CAST( NULL AS SIGNED ) - + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + CAST ( NULL AS INTEGER ) - + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 60 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - 3 - 17 + - col1 / - ( col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT DISTINCT - col1 DIV - col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - col1 / - col1 FROM tab0 cor0
----
1

query I rowsort
SELECT 34 - 41 * 85 * + + 16 AS col1 FROM tab2
----
-55726
-55726
-55726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT 83 + - CAST( NULL AS SIGNED ) * + CAST( + col1 AS SIGNED ) + 1 + + 60 / + 6 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT 83 + - CAST ( NULL AS INTEGER ) * + CAST ( + col1 AS INTEGER ) + 1 + + 60 / + 6 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + 44 - + 79 * COUNT( * ) + - COUNT( * ) col1 FROM tab0 cor0
----
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8840
SELECT DISTINCT + 44 - + 79 * COUNT ( * ) + - COUNT ( * ) col1 FROM tab0 cor0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT + + 99 + - + ( - 59 ) - + MAX( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 + - 81 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT + + 99 + - + ( - 59 ) - + MAX ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 + - 81 AND + col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + 20 IS NOT NULL
----

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT ( - + ( col0 ) ) / col0 - + 34 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 71 ) AS col1 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT - SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8845
SELECT - SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 79 * + + COUNT( * ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-8846
SELECT 79 * + + COUNT ( * ) FROM tab2
----
237

query I rowsort
SELECT 97 * 98 AS col1 FROM tab0
----
9506
9506
9506

query I rowsort
SELECT - ( - 22 ) FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8849
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) < col1
----

skipif mysql # not compatible
query III rowsort label-8849
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) < col1
----

query II rowsort
SELECT 90 AS col2, + 24 FROM tab0
----
90
24
90
24
90
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8851
SELECT ALL - MAX( ALL - - CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8851
SELECT ALL - MAX ( ALL - - CAST ( NULL AS REAL ) ) col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8852
SELECT ALL * FROM tab2 WHERE NOT - col1 * + col2 + - + col2 + + + col0 * col1 NOT BETWEEN - col2 + - ( - col1 ) + + col2 * + col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8852
SELECT ALL * FROM tab2 WHERE NOT - col1 * + col2 + - + col2 + + + col0 * col1 NOT BETWEEN - col2 + - ( - col1 ) + + col2 * + col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab1 cor0
----
60

query I rowsort
SELECT + + ( + col0 ) AS col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - + 42 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-42

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 30 * + 81 AS col2 FROM tab2 AS cor0
----
-2430

onlyif mysql # DIV for integer division: 
query II rowsort label-8858
SELECT ALL col1 DIV - col1 AS col2, col1 * + 53 + 16 AS col1 FROM tab2 AS cor0
----
-1
2719
-1
3567
-1
4097

skipif mysql # not compatible
query II rowsort label-8858
SELECT ALL col1 / - col1 AS col2, col1 * + 53 + 16 AS col1 FROM tab2 AS cor0
----
-1
2719
-1
3567
-1
4097

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT + 14 DIV + 59 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT + 14 / + 59 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - + 97 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8860
SELECT - + 97 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - MIN( ALL col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8861
SELECT - MIN ( ALL col2 ) AS col2 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT + col2 + + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - col0 * + 75 + + col2 * - col1 FROM tab1
----
-10021
-5169
-6670

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - COUNT( * ) + + 58 col0 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT ALL - COUNT ( * ) + + 58 col0 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - MAX( DISTINCT - - 9 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8865
SELECT - MAX ( DISTINCT - - 9 ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT - MAX( DISTINCT + col1 ) - + CAST( - MIN( ALL - col0 ) AS SIGNED ) FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-8866
SELECT - MAX ( DISTINCT + col1 ) - + CAST ( - MIN ( ALL - col0 ) AS INTEGER ) FROM tab0
----
-178

query I rowsort
SELECT ALL - col1 + col2 * + + col2 AS col2 FROM tab2
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL 98 + + COUNT( * ) FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL 98 + + COUNT ( * ) FROM tab2
----
101

query I rowsort
SELECT + 37 + - - 26 AS col1 FROM tab2
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * - + col2 + + 11 * - + col2 col1 FROM tab0
----
-10197
-1030
-4841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT ALL - + CAST( NULL AS SIGNED ) * - COUNT( * ) * - COUNT( * ) + MAX( col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) + MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT col2 DIV + col0 + + + col2 * - + col0 + - col1 FROM tab1 AS cor0
----
-4909
-5020
-6235

skipif mysql # not compatible
query I rowsort label-8872
SELECT col2 / + col0 + + + col2 * - + col0 + - col1 FROM tab1 AS cor0
----
-4909
-5020
-6235

query I rowsort
SELECT ALL 84 * + col0 AS col1 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT 50 + - 29 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - MIN( - ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT - MIN ( - ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 74 ) AS col1 FROM tab2 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-8877
SELECT ALL ( + + col1 ), 82 DIV + + 35 FROM tab1 AS cor0
----
14
2
47
2
5
2

skipif mysql # not compatible
query II rowsort label-8877
SELECT ALL ( + + col1 ), 82 / + + 35 FROM tab1 AS cor0
----
14
2
47
2
5
2

query I rowsort
SELECT DISTINCT + 88 * + col2 * - col2 FROM tab0 WHERE NOT - + col2 IS NULL
----
-194392
-862488
-8800

query II rowsort
SELECT ALL col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8880
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL + col1 * + col1 + col1 + 2 + 54 FROM tab1 AS cor0
----
2312
266
86

query II rowsort
SELECT - - col2 + - col0 AS col2, - 89 - + - col2 AS col0 FROM tab1 AS cor0
----
-23
-21
-26
-30
45
7

query I rowsort
SELECT 49 * - col0 + + 48 FROM tab0 AS cor0
----
-4215
-4705
-687

query II rowsort
SELECT ALL + - col0 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - col2 + - - 76 AS col0 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8886
SELECT * FROM tab2 AS cor0 WHERE col1 + - 22 < + CAST( - 56 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8886
SELECT * FROM tab2 AS cor0 WHERE col1 + - 22 < + CAST ( - 56 AS REAL )
----

query I rowsort
SELECT ALL + ( 45 ) FROM tab1 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 + col2 NOT BETWEEN NULL AND + col0 + ( + 14 ) * - col2
----
3

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 + col2 NOT BETWEEN NULL AND + col0 + ( + 14 ) * - col2
----
3

query II rowsort
SELECT ALL + - 60 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-60
14
-60
47
-60
5

query I rowsort
SELECT - col0 + - - 47 FROM tab1 AS cor0
----
-38
-4
-44

query I rowsort
SELECT + col1 + - + 50 AS col1 FROM tab2
----
1
17
27

query II rowsort
SELECT DISTINCT - 11 + col0, + col0 FROM tab2
----
35
46
53
64
64
75

query I rowsort
SELECT ALL - col1 * 35 - - - col0 + - col1 * + col1 FROM tab2
----
-4432
-6909
-8688

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL 54 - - COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL 54 - - COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) - - 10 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) - - 10 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( - 22 ) FROM tab2 AS cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 30 * col0 col0, col0 AS col0 FROM tab0 AS cor0
----
-2610
87
-2910
97
-450
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT - - col0 * + col0 + - 70 + + + col0 DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2047
4027
5556

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT - - col0 * + col0 + - 70 + + + col0 / CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2047
4027
5556

query I rowsort
SELECT ALL 25 * - col0 - - col2 FROM tab0 AS cor0
----
-2165
-2326
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + 19 - - SUM( ALL col2 ) FROM tab2 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 19 - - SUM ( ALL col2 ) FROM tab2 AS cor0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT DISTINCT + COUNT( * ) AS col1, + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
55

skipif mysql # not compatible
query II rowsort label-8901
SELECT DISTINCT + COUNT ( * ) AS col1, + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 41 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT 41 / + + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT 69 DIV - 36 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT 69 / - 36 AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8904
SELECT ( - COUNT( * ) ) DIV - COUNT( + CAST( 8 AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8904
SELECT ( - COUNT ( * ) ) / - COUNT ( + CAST ( 8 AS INTEGER ) ) FROM tab2
----
1

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 77 + - col0 <= NULL )
----

query I rowsort
SELECT ALL 78 * col1 FROM tab1 AS cor0
----
1092
3666
390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 94 * - 19 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - 71 - 53 + - ( - 54 ) * col2 AS col1 FROM tab1 cor0
----
-2842
-2902
1510

query II rowsort
SELECT + 57, col1 FROM tab1 AS cor0
----
57
14
57
47
57
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - COUNT( ALL - 4 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( ALL - 4 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 69 ) <> 29
----

query I rowsort
SELECT DISTINCT - + 68 FROM tab0 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + COUNT( * ) * + + COUNT( col2 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8914
SELECT + COUNT ( * ) * + + COUNT ( col2 ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8915
SELECT 10 AS col2, col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - + - col0 IS NOT NULL
----
10
51
10
85
10
91

skipif mysql # not compatible
query II rowsort label-8915
SELECT 10 AS col2, col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - + - col0 IS NOT NULL
----
10
51
10
85
10
91

query I rowsort
SELECT DISTINCT - ( + + 22 ) AS col1 FROM tab2 WHERE NOT col0 * - - 82 IS NULL
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8917
SELECT ( col1 ), - 0 * - CAST( - - col2 AS SIGNED ) DIV + ( - + 25 ) * + col0 + col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-8917
SELECT ( col1 ), - 0 * - CAST ( - - col2 AS INTEGER ) / + ( - + 25 ) * + col0 + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8918
SELECT DISTINCT + col0 DIV - 41 AS col2, + 28 * + col0 FROM tab2
----
-1
1288
-1
1792
-1
2100

skipif mysql # not compatible
query II rowsort label-8918
SELECT DISTINCT + col0 / - 41 AS col2, + 28 * + col0 FROM tab2
----
-1
1288
-1
1792
-1
2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col2 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL + 68 FROM tab1 WHERE NOT col1 <> col0
----

query I rowsort
SELECT - col2 - + - col0 + + col1 FROM tab0 AS cor0 WHERE NOT - col1 * 71 = NULL
----

query II rowsort
SELECT ALL + col0 * ( - ( + col1 ) ), 64 AS col1 FROM tab1 AS cor0
----
-425
64
-4277
64
-714
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT - col2 DIV col2 + col0 AS col2 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - col2 / col2 + col0 AS col2 FROM tab1 AS cor0
----
50
84
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8925
SELECT + 86 + + COUNT( + - col1 ) DIV - COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-8925
SELECT + 86 + + COUNT ( + - col1 ) / - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
85
3

query II rowsort
SELECT ALL - col2 AS col1, 16 * - col0 FROM tab1 AS cor0
----
-59
-1360
-68
-1456
-96
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - COUNT( - 21 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8927
SELECT - COUNT ( - 21 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT + - 58 DIV - + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8928
SELECT + - 58 / - + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT + 55 * 1 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT CAST( ( + + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8930
SELECT CAST ( ( + + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT - col1 DIV + + 61 - + - ( col2 ) AS col2 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-8931
SELECT - col1 / + + 61 - + - ( col2 ) AS col2 FROM tab0 AS cor0
----
10
46
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT ALL - MIN( ALL - 35 ) * - + 52 AS col0, + 53 AS col1 FROM tab1 AS cor0
----
-1820
53

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL - MIN ( ALL - 35 ) * - + 52 AS col0, + 53 AS col1 FROM tab1 AS cor0
----
-1820
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - + 59 * - MAX( ALL col0 ) FROM tab1 AS cor0 WHERE NULL >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - + 59 * - MAX ( ALL col0 ) FROM tab1 AS cor0 WHERE NULL >= + col2
----
NULL

query I rowsort
SELECT + 38 - + col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT col1 + - - 71 AS col1 FROM tab2
----
122
138
148

query I rowsort
SELECT col2 FROM tab2 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT 4 AS col0, col1 AS col1 FROM tab1 AS cor0
----
4
14
4
47
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 68 col1, - col2 FROM tab0 AS cor0
----
-68
-10
-68
-47
-68
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT COUNT( + 35 ) * 33 AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT COUNT ( + 35 ) * 33 AS col0 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT COUNT( DISTINCT + 95 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( DISTINCT + 95 ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT + CAST( CAST( + ( + - 22 ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-8942
SELECT + CAST ( CAST ( + ( + - 22 ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + SUM( 69 ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8943
SELECT + SUM ( 69 ) FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT + - col2 DIV + - col2 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT + - col2 / + - col2 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - 49 * + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - 49 * + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + - - col2 + 7 * col2 * col2 < - ( + + ( - - 91 ) ) * 25
----
-45
23
26

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * + - ( + - col0 ) <= - col0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 38, + 59 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8949
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8950
SELECT + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 27 * 2 FROM tab1 cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col2 + - - col0 + + col0 * + - col2 AS col2 FROM tab1
----
-4749
-4871
-6029

query II rowsort
SELECT ALL 56 AS col1, 85 FROM tab1
----
56
85
56
85
56
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT + COUNT( * ) * - 70 col2 FROM tab1
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT + COUNT ( * ) * - 70 col2 FROM tab1
----
-210

query I rowsort
SELECT ALL ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND col1 + - col0
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( + ( + 96 ) ) <= - col1 + col2
----
-1

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT NULL IN ( + 20 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - MIN( + 78 ) * 98 FROM tab2
----
-7644

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - MIN ( + 78 ) * 98 FROM tab2
----
-7644

query I rowsort
SELECT - ( + col1 ) * + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col0 * + 24 AS col1 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT DISTINCT 2 + 98 DIV - 26 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT 2 + 98 / - 26 AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col1 - 26 AS col2 FROM tab1
----
-12
-21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT COUNT( * ) * - ( COUNT( * ) ) AS col2 FROM tab2 WHERE ( col2 - 35 ) BETWEEN ( col1 ) AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT COUNT ( * ) * - ( COUNT ( * ) ) AS col2 FROM tab2 WHERE ( col2 - 35 ) BETWEEN ( col1 ) AND ( + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT ALL MIN( DISTINCT 94 ) AS col1 FROM tab0 WHERE + ( CAST( NULL AS SIGNED ) ) <> 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL MIN ( DISTINCT 94 ) AS col1 FROM tab0 WHERE + ( CAST ( NULL AS INTEGER ) ) <> 93
----
NULL

query I rowsort
SELECT col2 * - 72 AS col0 FROM tab1
----
-4248
-4896
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT COUNT( ALL 16 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8968
SELECT DISTINCT COUNT ( ALL 16 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8969
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND ( + col0 )
----

query I rowsort
SELECT ( col2 ) * - col1 AS col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT ALL CAST( NULL AS SIGNED ) + + AVG ( ALL col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL CAST ( NULL AS INTEGER ) + + AVG ( ALL col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 * - col1 + + ( col0 ) AS col0 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT - MIN( 35 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-8978
SELECT - MIN ( 35 ) FROM tab0
----
-35

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( 87 + col1 / 84 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 33 BETWEEN ( NULL ) AND col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT MAX( ALL ( + col1 ) ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT MAX ( ALL ( + col1 ) ) col2 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT + ( 89 ) DIV 5 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-8983
SELECT + ( 89 ) / 5 FROM tab0
----
17
17
17

query I rowsort
SELECT - col1 FROM tab1 WHERE 7 BETWEEN 96 AND + col1 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT - col0 DIV 3 FROM tab1
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-8985
SELECT - col0 / 3 FROM tab1
----
-17
-28
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT + col0 DIV ( + ( - ( + 8 ) ) ) FROM tab2
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-8986
SELECT + col0 / ( + ( - ( + 8 ) ) ) FROM tab2
----
-5
-8
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT CAST( + 3 AS SIGNED ) * ( + col2 * + col2 ) FROM tab0
----
29403
300
6627

skipif mysql # not compatible
query I rowsort label-8988
SELECT CAST ( + 3 AS INTEGER ) * ( + col2 * + col2 ) FROM tab0
----
29403
300
6627

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + SUM( col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + SUM ( col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT DISTINCT 78 * - 69 AS col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT - col0 * ( 22 DIV + ( 77 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - col0 * ( 22 / + ( 77 ) ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) * + col2 + col1 >= col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 IN ( - col1 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL + MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 * + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - ( - COUNT( ALL 58 ) ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - ( - COUNT ( ALL 58 ) ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - 83 + col0 AS col0 FROM tab0
----
-68
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT ( - AVG ( DISTINCT 21 ) ) + - SUM( DISTINCT + col1 ) * - AVG ( DISTINCT 25 + col0 ) col0 FROM tab0 WHERE NULL IN ( + col1 - + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9000
SELECT DISTINCT ( - AVG ( DISTINCT 21 ) ) + - SUM ( DISTINCT + col1 ) * - AVG ( DISTINCT 25 + col0 ) col0 FROM tab0 WHERE NULL IN ( + col1 - + col0 )
----
NULL

query I rowsort
SELECT DISTINCT 6 * - col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT DISTINCT - col0 * 4 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9003
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( + col0 / CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9003
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( + col0 / CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT + MIN( - 46 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + MIN ( - 46 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-46

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 * 2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE 15 + - 50 > - ( col1 )
----
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) <> - col2 * 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 74 * - col0 * 24 + - col1 * col1 + col0 FROM tab0 AS cor0
----
154158
172368
20094

query I rowsort
SELECT ALL + 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL - MAX( DISTINCT 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-54

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - MAX ( DISTINCT 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-54

query I rowsort
SELECT DISTINCT col2 - 81 AS col1 FROM tab1
----
-13
-22
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 77 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( - col1 ) + + col1 * - 70 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + - SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + - SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9016
SELECT col0 - + col1 + - 65 + 34 * - ( - CAST( NULL AS DECIMAL ) / - col0 + + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT col0 - + col1 + - 65 + 34 * - ( - CAST ( NULL AS REAL ) / - col0 + + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 54 / - 64 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - - 7 FROM tab0 AS cor0
----
106
17
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT + CAST( NULL AS SIGNED ) * - + col0 * - + col0 - col0 - col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT + CAST ( NULL AS INTEGER ) * - + col0 * - + col0 - col0 - col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( 15 ) AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT - 0 - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL COUNT( ALL - 38 ) - + 64 col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT ALL COUNT ( ALL - 38 ) - + 64 col0 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT CAST( + ( + 77 ) AS SIGNED ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT CAST ( + ( + 77 ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 4 + - + col1 AS col2 FROM tab2
----
-113
-121
-70

query II rowsort
SELECT ALL + ( 3 ) AS col0, - col1 * 76 FROM tab0
----
3
-1596
3
-6156
3
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab2 WHERE ( NULL ) = ( NULL ) AND NOT col0 BETWEEN col2 * + col2 + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE ( NULL ) = ( NULL ) AND NOT col0 BETWEEN col2 * + col2 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( * ) FROM tab0 WHERE NOT - col2 + col2 - + 67 NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col2 + col2 - + 67 NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - - col2 * + 44 / col0 NOT BETWEEN 53 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - - col2 * + 44 / col0 NOT BETWEEN 53 AND col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( + 31 )
----

query I rowsort
SELECT - col0 * - 76 AS col2 FROM tab0 WHERE NOT ( + 23 ) > ( - 50 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 95 )
----

query I rowsort
SELECT col0 * 36 AS col0 FROM tab1 AS cor0
----
1836
3060
3276

query I rowsort
SELECT 71 FROM tab2 AS cor0 WHERE NOT ( NOT - + 78 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( + col1 / + col2 ) )
----

query I rowsort
SELECT + 2 * - + ( col1 ) - col2 FROM tab2 AS cor0
----
-125
-192
-194

query II rowsort
SELECT DISTINCT + + ( - col0 ) * + 24, + col1 AS col2 FROM tab0 AS cor0
----
-2088
21
-2328
1
-360
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9039
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * - + 12 AS col1, CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-36
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9039
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * - + 12 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-36
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 59 ) * + - col0 + - col2 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT + COUNT( * ) * - 90 * - 54 DIV COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
4860

skipif mysql # not compatible
query I rowsort label-9041
SELECT + COUNT ( * ) * - 90 * - 54 / COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL + col2 * - CAST( + + 60 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
-1329
-2323
-3413

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + col2 * - CAST ( + + 60 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
-1329
-2323
-3413

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9043
SELECT AVG ( DISTINCT + CAST( col0 AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL AND NOT - CAST( + 1 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT AVG ( DISTINCT + CAST ( col0 AS REAL ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL AND NOT - CAST ( + 1 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT + MAX( - col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + MAX ( - col0 ) AS col0 FROM tab0 cor0
----
-15

query I rowsort
SELECT DISTINCT - 73 + + - col0 AS col2 FROM tab1
----
-124
-158
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL CAST( col1 AS SIGNED ) + + col2 + col1 AS col0 FROM tab1
----
124
162
69

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL CAST ( col1 AS INTEGER ) + + col2 + col1 AS col0 FROM tab1
----
124
162
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT ALL + 34 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + 34 / col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT COUNT( * ) + + ( COUNT( * ) ) DIV 14 FROM tab2 WHERE + 43 NOT BETWEEN NULL AND ( + + col0 ) * + col2 * - 38 + + 20 + col2
----
3

skipif mysql # not compatible
query I rowsort label-9048
SELECT COUNT ( * ) + + ( COUNT ( * ) ) / 14 FROM tab2 WHERE + 43 NOT BETWEEN NULL AND ( + + col0 ) * + col2 * - 38 + + 20 + col2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9049
SELECT DISTINCT 3 + + 98 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT 3 + + 98 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT + 56 + col0 AS col1, col0 * + - col2 AS col2, + col0 * - 2 FROM tab2
----
9 values hashing to ed95f10274d41c40f4ecb7510533ed75

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - COUNT( * ) * - - 87 AS col0 FROM tab0 WHERE NULL IN ( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT - COUNT ( * ) * - - 87 AS col0 FROM tab0 WHERE NULL IN ( 26 )
----
0

query I rowsort
SELECT 48 * + ( + - col0 ) AS col2 FROM tab1
----
-2448
-4080
-4368

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 82 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 62 + col2 AS col1 FROM tab0 AS cor0
----
-15
-52
37

query I rowsort
SELECT col2 * 50 FROM tab0 AS cor0 WHERE + 25 = NULL
----

query I rowsort
SELECT DISTINCT - + 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query I rowsort
SELECT DISTINCT col2 + + ( + - col1 ) - - col1 FROM tab1
----
59
68
96

query II rowsort
SELECT + col2 AS col2, col1 * col2 AS col1 FROM tab2 WHERE col1 IN ( + col1 )
----
23
1173
40
3080
58
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - SUM( ALL + col0 ) + 35 FROM tab0
----
-164

skipif mysql # not compatible
query I rowsort label-9059
SELECT - SUM ( ALL + col0 ) + 35 FROM tab0
----
-164

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( - - 21 )
----
87
21
10

query I rowsort
SELECT - col0 * - 98 FROM tab0 AS cor0 WHERE NULL BETWEEN - 79 AND NULL
----

query II rowsort
SELECT 35 + + - col2, col1 FROM tab0 AS cor0
----
-12
81
-64
1
25
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT ALL + COUNT( ALL - 31 ) DIV COUNT( * ) + + 3 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + COUNT ( ALL - 31 ) / COUNT ( * ) + + 3 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT + + MIN( 82 ) - - ( - 3 ) + + 41 FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT + + MIN ( 82 ) - - ( - 3 ) + + 41 FROM tab1 cor0
----
120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col2 AND - 32 - + 18 * + col1
----

query II rowsort
SELECT 75 AS col0, col0 FROM tab1
----
75
51
75
85
75
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT DISTINCT CAST( + + 99 AS SIGNED ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT CAST ( + + 99 AS INTEGER ) FROM tab1
----
99

query I rowsort
SELECT DISTINCT + col1 * 76 + + - col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 + - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 98 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 76 * col0 * + col0 AS col2 FROM tab1
----
197676
549100
629356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col1 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + MAX( + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9074
SELECT + MAX ( + - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - col2 * + - 45 FROM tab2
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT + SUM( ALL + 45 ) * - 15 AS col1, - 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6075
-58

skipif mysql # not compatible
query II rowsort label-9076
SELECT + SUM ( ALL + 45 ) * - 15 AS col1, - 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6075
-58

query I rowsort
SELECT DISTINCT 58 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - - ( - SUM( + col0 ) ) * 42 AS col0 FROM tab0 cor0
----
-8358

skipif mysql # not compatible
query I rowsort label-9078
SELECT - - ( - SUM ( + col0 ) ) * 42 AS col0 FROM tab0 cor0
----
-8358

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + MIN( - 40 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + MIN ( - 40 ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT + 33 + - 38 FROM tab1 AS cor0 WHERE NOT ( ( - - col0 ) + col1 ) IS NOT NULL
----

query I rowsort
SELECT 98 * - col2 * - 50 FROM tab0 AS cor0
----
230300
485100
49000

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT - COUNT( + + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - COUNT ( + + col0 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col1 * + 86 AS col0 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT COUNT( DISTINCT 60 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9085
SELECT COUNT ( DISTINCT 60 ) col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT COUNT( - 34 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT COUNT ( - 34 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-34

query I rowsort
SELECT + + col2 * + + col1 + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
197
318
3903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9089
SELECT + 6 + - - CAST( - COUNT( * ) AS SIGNED ), - COUNT( * ) DIV - - 71 AS col1 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9089
SELECT + 6 + - - CAST ( - COUNT ( * ) AS INTEGER ), - COUNT ( * ) / - - 71 AS col1 FROM tab0 AS cor0
----
3
0

query I rowsort
SELECT ALL + col2 + + 80 * + col0 + + col0 AS col2 FROM tab1
----
4227
6944
7439

onlyif mysql # DIV for integer division: 
query II rowsort label-9091
SELECT - + 44 col2, 30 + - 82 DIV - - col2 FROM tab1 AS cor0
----
-44
29
-44
29
-44
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9091
SELECT - + 44 col2, 30 + - 82 / - - col2 FROM tab1 AS cor0
----
-44
29
-44
29
-44
30

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - col2 - - + col1 NOT BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT DISTINCT - 90 DIV + + 29 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - 90 / + + 29 AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, - 86 + + - 33 col2 FROM tab2 cor0
----
-23
-119
-40
-119
-58
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT DISTINCT - 5 DIV - 69 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - 5 / - 69 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT 93 * COUNT( DISTINCT + 66 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT 93 * COUNT ( DISTINCT + 66 ) AS col0 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - ( - - SUM( + col1 ) ) * - 9 * 18 AS col2 FROM tab2 AS cor0
----
31590

skipif mysql # not compatible
query I rowsort label-9099
SELECT - ( - - SUM ( + col1 ) ) * - 9 * 18 AS col2 FROM tab2 AS cor0
----
31590

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL OR ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT + + 36 AS col2 FROM tab0 cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT + COUNT( * ) * + - 10 * - COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT + COUNT ( * ) * + - 10 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, 22 AS col1 FROM tab0
----
15
22
87
22
97
22

query I rowsort
SELECT - + col0 * + 41 * + 96 FROM tab1 AS cor0
----
-200736
-334560
-358176

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT 40 DIV + col1 + col1 * + 22 FROM tab2 AS cor0
----
1122
1474
1694

skipif mysql # not compatible
query I rowsort label-9107
SELECT 40 / + col1 + col1 * + 22 FROM tab2 AS cor0
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL - + ( - SUM( DISTINCT + 44 ) ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - + ( - SUM ( DISTINCT + 44 ) ) FROM tab0 AS cor0
----
44

query I rowsort
SELECT - 57 + + col0 AS col0 FROM tab1 WHERE + + 37 * - col0 - ( - - col1 ) + - col2 IS NOT NULL
----
-6
28
34

query I rowsort
SELECT + ( - col2 ) + + - 57 AS col2 FROM tab1
----
-116
-125
-153

query I rowsort
SELECT DISTINCT 58 * - ( - col1 ) + col2 FROM tab2
----
2981
3944
4506

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 - - - col1 <> 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 + - + 73 col2 FROM tab1
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT + 96 * - MAX( col0 ) AS col2 FROM tab2 AS cor0
----
-7200

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT + 96 * - MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
-7200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 13 <= ( - ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - + col0 * - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9116
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - + col0 * - - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( * ) + + COUNT( * ) * - + 85 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( * ) + + COUNT ( * ) * - + 85 FROM tab0
----
-252

query I rowsort
SELECT ( + col1 ) + - col2 AS col1 FROM tab1
----
-21
-54
-82

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 41 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + + COUNT( * ) * + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT ALL + + col0 * - ( - 55 ) * col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + + col0 * - ( - 55 ) * col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT - CAST( + 31 AS SIGNED ) * SUM( DISTINCT 73 ) FROM tab0 AS cor0
----
-2263

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - CAST ( + 31 AS INTEGER ) * SUM ( DISTINCT 73 ) FROM tab0 AS cor0
----
-2263

query I rowsort
SELECT DISTINCT + 23 * col1 FROM tab2 AS cor0
----
1173
1541
1771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT MIN( - ( - - col1 ) ) DIV + 17 + + 59 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT MIN ( - ( - - col1 ) ) / + 17 + + 59 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL + - MIN( - + col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL + - MIN ( - + col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * - - col1 FROM tab0 AS cor0
----
-1449
-5589
-69

query II rowsort
SELECT col1 AS col2, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT col0 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT col0 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL - 44 * 85 DIV - - col1 AS col1 FROM tab0
----
-178
-3740
-46

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - 44 * 85 / - - col1 AS col1 FROM tab0
----
-178
-3740
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT - COUNT( ALL + CAST( 84 AS SIGNED ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9131
SELECT - COUNT ( ALL + CAST ( 84 AS INTEGER ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 * + ( + 64 ) AS col1 FROM tab0
----
5568
6208
960

query I rowsort
SELECT 11 * - 48 FROM tab1
----
-528
-528
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT ( + 25 ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT ( + 25 ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + 89 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + col2 - - - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 WHERE NOT ( 90 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - col2 / 74 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 33 * ( + - col1 ) FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 + 74 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + 22 DIV 33 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 22 / 33 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col1 * - col2, 65 AS col0 FROM tab2 cor0
----
-1173
65
-3080
65
-3886
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT + - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9143
SELECT + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + + COUNT( * ) * - MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9144
SELECT + + COUNT ( * ) * - MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE + - 22 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT MIN( DISTINCT 12 ) - + 58, SUM( DISTINCT - col1 ) col1 FROM tab2
----
-46
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9146
SELECT MIN ( DISTINCT 12 ) - + 58, SUM ( DISTINCT - col1 ) col1 FROM tab2
----
-46
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + MAX( + 24 ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + MAX ( + 24 ) AS col1 FROM tab2
----
24

query I rowsort
SELECT ALL ( col2 ) + - - col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT col0 * 26 - + - col2 FROM tab2
----
1219
1704
2008

query I rowsort
SELECT col0 - - + col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9151
SELECT ALL 60 + - - 48 * + col0 AS col1, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
2508
NULL
4140
NULL
4428
NULL

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL 60 + - - 48 * + col0 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
2508
NULL
4140
NULL
4428
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT 94 - + + COUNT( * ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9152
SELECT DISTINCT 94 - + + COUNT ( * ) col2 FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 91 + + col0
----

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - + 12 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col0, col2 )
----

query I rowsort
SELECT + ( - ( + + 24 ) ) FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - 74 * col2 AS col1 FROM tab2 AS cor0
----
-1702
-2960
-4292

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( + - 34 ) IS NULL )
----

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) * 39 FROM tab1 AS cor0
----
-2301
-2652
-3744

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > 12
----

query I rowsort
SELECT + ( + + col0 ) - + 71 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1050
-6090
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col1 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL - + COUNT( DISTINCT 24 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - + COUNT ( DISTINCT 24 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 59 + + col0 + - 33 * - col2 * + col2 - - - col0 + col0 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + + col1 + - 80 AS col1 FROM tab0 WHERE ( NULL ) >= col1 + - col1 + - col1
----

query I rowsort
SELECT ALL - col1 * 11 * col2 * + - col1 FROM tab2
----
2608760
2863982
658053

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT COUNT( * ) FROM tab2 WHERE NOT - - col0 + ( + col1 ) + col2 <= ( - 10 )
----
3

skipif mysql # not compatible
query I rowsort label-9168
SELECT COUNT ( * ) FROM tab2 WHERE NOT - - col0 + ( + col1 ) + col2 <= ( - 10 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + + 84 col1 FROM tab0 AS cor0
----
-3948
-8316
-840

query I rowsort
SELECT 38 * - col2 AS col1 FROM tab1 AS cor0
----
-2242
-2584
-3648

query I rowsort
SELECT DISTINCT + 30 * + - col1 AS col2 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT ALL 33 DIV + 78 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL 33 / + 78 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT DISTINCT - - 3 + - 47 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 10, + col1, + - 81 )
----

query I rowsort
SELECT ALL + 99 + - col1 * + 12 FROM tab1
----
-465
-69
39

query I rowsort
SELECT DISTINCT - - col2 + - - 6 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - + SUM( ALL - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - + SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL col0 + + + 21 AS col2 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT col0 * + - ( col2 ) FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL ( + col0 ) + col0 + col1 * + 24 + col0 AS col2, col0 * col1 AS col1 FROM tab2 WHERE - - 5 + + - col0 IS NOT NULL
----
1362
2346
1833
5025
2040
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT - 94 - - 24 * + + COUNT( * ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT - 94 - - 24 * + + COUNT ( * ) FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL + 37 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + 37 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NOT - - col2 * - - col2 * + + 39 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NOT - - col2 * - - col2 * + + 39 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9186
SELECT + 80 * col0 + CAST( + col2 AS DECIMAL ) AS col2 FROM tab2 WHERE NOT NULL <= + 11
----

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 80 * col0 + CAST ( + col2 AS REAL ) AS col2 FROM tab2 WHERE NOT NULL <= + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL + ( col0 ) - - col1 - + col0 * + + col0 AS col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN + - 23 - - 1 * + - col2 * 27 AND + col1 / + CAST( + + col1 AS SIGNED )
----
-9311

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + ( col0 ) - - col1 - + col0 * + + col0 AS col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN + - 23 - - 1 * + - col2 * 27 AND + col1 / + CAST ( + + col1 AS INTEGER )
----
-9311

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > + col1
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT - SUM( ALL 25 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - SUM ( ALL 25 ) FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9191
SELECT - MAX( col2 ) FROM tab0 AS cor0 WHERE NOT CAST( col1 AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT - MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT CAST ( col1 AS REAL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 82 * + col2 * + col0 AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT ALL + ( + MAX( DISTINCT CAST( - 54 AS SIGNED ) ) ) col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9193
SELECT ALL + ( + MAX ( DISTINCT CAST ( - 54 AS INTEGER ) ) ) col1 FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT 53 - - + col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE + 61 NOT BETWEEN - 89 AND + - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT DISTINCT 53 - - + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE + 61 NOT BETWEEN - 89 AND + - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - 90 * COUNT( * ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-9195
SELECT - 90 * COUNT ( * ) AS col1 FROM tab2
----
-270

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col1 FROM tab0 WHERE + - col2 > + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - MAX( DISTINCT - + 39 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9197
SELECT - MAX ( DISTINCT - + 39 ) AS col1 FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col1 * - 45 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - - 55 AS col1 FROM tab2 cor0
----
2530
3520
4125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - col1 + col1 col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 1 IS NULL
----

query I rowsort
SELECT DISTINCT 67 + + col0 * - - col2 FROM tab0 AS cor0
----
772
937
9670

query I rowsort
SELECT + 85 + col1 * - col0 * + 17 / - col0 * - + col2 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT - ( + - 13 ) * - - 90 AS col1, col2 FROM tab0 AS cor0
----
1170
10
1170
47
1170
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 87 * + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - SUM( DISTINCT - - col1 ) * - + 23 FROM tab0 cor0
----
2369

skipif mysql # not compatible
query I rowsort label-9207
SELECT - SUM ( DISTINCT - - col1 ) * - + 23 FROM tab0 cor0
----
2369

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT + MAX( - + col0 ) FROM tab0 AS cor0 WHERE NOT NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT + MAX ( - + col0 ) FROM tab0 AS cor0 WHERE NOT NULL <= col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT - col2 + col1 FROM tab1 cor0 WHERE ( + col0 IN ( CAST( NULL AS SIGNED ), + col0 ) )
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9209
SELECT - col2 + col1 FROM tab1 cor0 WHERE ( + col0 IN ( CAST ( NULL AS INTEGER ), + col0 ) )
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT 21 - + COUNT( * ) + - - 94 DIV - COUNT( * ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9210
SELECT 21 - + COUNT ( * ) + - - 94 / - COUNT ( * ) FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL col0 / - ( 37 ) AS col1 FROM tab2 cor0 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT + 52 * ( - col0 ) - - col0 - 19 AS col2 FROM tab2
----
-2365
-3283
-3844

query I rowsort
SELECT DISTINCT 82 + + 77 + + + 18 - + col2 FROM tab1
----
109
118
81

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT + 19 + - col0 AS col0 FROM tab2
----
-27
-45
-56

query I rowsort
SELECT - 38 FROM tab1 WHERE NULL IS NULL
----
-38
-38
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 26 )
----

query II rowsort
SELECT DISTINCT + + ( col2 ) AS col0, + col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT + COUNT( * ) + - COUNT( * ) DIV 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9219
SELECT + COUNT ( * ) + - COUNT ( * ) / 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 96 >= + 27
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT COUNT( * ) * 68 * + + 65 FROM tab0
----
13260

skipif mysql # not compatible
query I rowsort label-9221
SELECT COUNT ( * ) * 68 * + + 65 FROM tab0
----
13260

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - ( - + 46 ) * 39 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
5382

skipif mysql # not compatible
query I rowsort label-9222
SELECT - ( - + 46 ) * 39 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5382

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + - SUM( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9224
SELECT + - SUM ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 97 * + col0 BETWEEN NULL AND - 86
----

query I rowsort
SELECT DISTINCT + + col1 + - col0 - + ( + col0 ) * 54 * + + 48 FROM tab0 AS cor0
----
-225570
-251520
-38814

query I rowsort
SELECT ALL + col2 + - 64 + + 6 AS col2 FROM tab0
----
-11
-48
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9228
SELECT * FROM tab2 WHERE NOT ( + 38 ) BETWEEN ( - + CAST( - - 65 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9228
SELECT * FROM tab2 WHERE NOT ( + 38 ) BETWEEN ( - + CAST ( - - 65 AS INTEGER ) ) AND ( NULL )
----

query I rowsort
SELECT ALL 24 AS col0 FROM tab2 WHERE NULL > - 43
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col0, col0 + 23 )
----

query I rowsort
SELECT ALL 19 + + + col0 * - col2 * + 49 FROM tab2
----
-125421
-213131
-51823

query I rowsort
SELECT 31 + - col0 * - 11 * + - 24 AS col1 FROM tab2
----
-12113
-16865
-19769

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT + 40 AS col1, - COUNT( * ) * - + 75 AS col1 FROM tab2
----
40
225

skipif mysql # not compatible
query II rowsort label-9233
SELECT + 40 AS col1, - COUNT ( * ) * - + 75 AS col1 FROM tab2
----
40
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9234
SELECT COUNT( * ) DIV CAST( COUNT( * ) AS SIGNED ), COUNT( * ) AS col0 FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-9234
SELECT COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab2
----
1
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col0 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL + - COUNT( * ) + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 + 72 FROM tab1 cor0
----
131
140
168

query II rowsort
SELECT ALL - + col0 - - 34 AS col0, - 13 FROM tab1 cor0
----
-17
-13
-51
-13
-57
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 72 AND NULL
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT + 43 DIV col2 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 43 / col2 AS col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + COUNT( DISTINCT + ( + - 78 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9242
SELECT + COUNT ( DISTINCT + ( + - 78 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT COUNT( * ) * - SUM( ALL + col1 ) col0 FROM tab2
----
-585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9243
SELECT COUNT ( * ) * - SUM ( ALL + col1 ) col0 FROM tab2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - MAX( DISTINCT + + 37 ) AS col0 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-9244
SELECT - MAX ( DISTINCT + + 37 ) AS col0 FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + ( - COUNT( DISTINCT + col2 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9245
SELECT + ( - COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - ( 98 ) * - 26 FROM tab1 AS cor0
----
2548

query I rowsort
SELECT ALL 81 * + + col2 FROM tab2 AS cor0
----
1863
3240
4698

query II rowsort
SELECT col1 AS col2, 41 AS col2 FROM tab0
----
1
41
21
41
81
41

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53 col0, col1 col1 FROM tab0
----
53
1
53
21
53
81

query I rowsort
SELECT ALL col2 * + 34 AS col2 FROM tab2
----
1360
1972
782

query II rowsort
SELECT DISTINCT - col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT col2 * - 90 + + col2 AS col0 FROM tab2 AS cor0
----
-2047
-3560
-5162

query I rowsort
SELECT DISTINCT - 89 + - 62 * + col1 * 42 FROM tab2 AS cor0
----
-132893
-174557
-200597

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + 79 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9257
SELECT + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9258
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT ALL + col0 + + + col2 AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - COUNT( + col1 ) + - 74 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - COUNT ( + col1 ) + - 74 FROM tab0
----
-77

query I rowsort
SELECT - + 30 + - col2 FROM tab2 AS cor0
----
-53
-70
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT - 24 - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - 24 - COUNT ( * ) FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9264
SELECT ALL - col2 * - col1 + - CAST( NULL AS DECIMAL ) * + 13 AS col1, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9264
SELECT ALL - col2 * - col1 + - CAST ( NULL AS REAL ) * + 13 AS col1, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT - col1 * - + col0 - + 33 AS col2 FROM tab1 AS cor0
----
392
4244
681

query I rowsort
SELECT + col1 - + - 64 FROM tab0 AS cor0
----
145
65
85

query I rowsort
SELECT ALL - - col0 - 91 AS col2 FROM tab0 AS cor0
----
-4
-76
6

query I rowsort
SELECT DISTINCT + 16 - + - 87 AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - + COUNT( * ) - - ( - + COUNT( + col1 ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9269
SELECT - + COUNT ( * ) - - ( - + COUNT ( + col1 ) ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT + MIN( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT + MIN ( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT - 87 * + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT - 87 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT ALL 22 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT DISTINCT - 80 DIV + - col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - 80 / + - col0 FROM tab0 AS cor0
----
0
5

query I rowsort
SELECT - col0 + - 12 * + col2 * - 95 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL CAST( NULL AS SIGNED ) / 89 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL CAST ( NULL AS INTEGER ) / 89 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + SUM( 72 ) FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9277
SELECT + SUM ( 72 ) FROM tab1 AS cor0
----
216

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 2 <= ( 1 / + + col2 )
----

query I rowsort
SELECT + col0 + + + 49 FROM tab0 AS cor0
----
136
146
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9280
SELECT DISTINCT - CAST( COUNT( ALL - - col2 ) AS SIGNED ) DIV - 62 + - SUM( ALL ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - CAST ( COUNT ( ALL - - col2 ) AS INTEGER ) / - 62 + - SUM ( ALL ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL - col0 * col1 * col0 + - 14 * col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-108560
46
-316288
64
-377925
75

query I rowsort
SELECT ALL + 37 + col0 FROM tab1 cor0
----
122
128
88

query I rowsort
SELECT + col0 + + - col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 0 + + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col0 / + ( + + 47 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT 93 * + COUNT( * ) + 68 - 50 DIV + COUNT( + col2 ) AS col1 FROM tab1
----
331

skipif mysql # not compatible
query I rowsort label-9286
SELECT 93 * + COUNT ( * ) + 68 - 50 / + COUNT ( + col2 ) AS col1 FROM tab1
----
331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL + col1 + + CAST( - - 43 AS SIGNED ) AS col0 FROM tab1
----
48
57
90

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL + col1 + + CAST ( - - 43 AS INTEGER ) AS col0 FROM tab1
----
48
57
90

query I rowsort
SELECT col1 * 54 * + col2 FROM tab0
----
11340
205578
5346

query I rowsort
SELECT 5 * 64 * + + 36 AS col1 FROM tab0
----
11520
11520
11520

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT COUNT( * ) * - 49 AS col0 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-9290
SELECT COUNT ( * ) * - 49 AS col0 FROM tab1
----
-147

query III rowsort
SELECT * FROM tab2 WHERE - col2 / - 78 = ( - 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT DISTINCT 27 DIV + ( + - 84 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT 27 / + ( + - 84 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9293
SELECT ALL + - 26 DIV + - 16 + - col0 + + ( col1 ) + + - col1 * - col2 AS col0, CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
1308
14
216
5
3153
47

skipif mysql # not compatible
query II rowsort label-9293
SELECT ALL + - 26 / + - 16 + - col0 + + ( col1 ) + + - col1 * - col2 AS col0, CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
1308
14
216
5
3153
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT + MAX( 60 ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + MAX ( 60 ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT ( COUNT( * ) ) - - 72 DIV - 47 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9295
SELECT ( COUNT ( * ) ) - - 72 / - 47 FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT ALL col2 DIV - ( col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL col2 / - ( col2 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 59 + - col2 * + 13 + + 64 - - col1 + + col2 FROM tab0
----
-1064
-360
24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) + + 3 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = 34
----

query I rowsort
SELECT ALL + col1 * + col2 + + + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT 82 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 82 / + col1 * - - 69 IS NULL
----
133
149
159

query I rowsort
SELECT + - col0 * - ( - 77 ) FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # DIV for integer division: 
query II rowsort label-9303
SELECT + + col1 * + + col0 AS col0, 39 DIV + col1 + col1 AS col0 FROM tab1 AS cor0
----
425
12
4277
47
714
16

skipif mysql # not compatible
query II rowsort label-9303
SELECT + + col1 * + + col0 AS col0, 39 / + col1 + col1 AS col0 FROM tab1 AS cor0
----
425
12
4277
47
714
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT ALL + 22, - COUNT( * ) AS col0 FROM tab1
----
22
-3

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL + 22, - COUNT ( * ) AS col0 FROM tab1
----
22
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL ( - + MAX( DISTINCT - - 42 ) ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL ( - + MAX ( DISTINCT - - 42 ) ) FROM tab2
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 4 col1 FROM tab0
----
-1
4
-21
4
-81
4

query II rowsort
SELECT col2, - 7 AS col2 FROM tab0
----
10
-7
47
-7
99
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT + MAX( ALL col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + MAX ( ALL col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT ALL - 12, - COUNT( * ) AS col0 FROM tab1
----
-12
-3

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL - 12, - COUNT ( * ) AS col0 FROM tab1
----
-12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 99 ) col0 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT 72 DIV 65 * - + col2 + col0 AS col1 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-9312
SELECT 72 / 65 * - + col2 + col0 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT + CAST( NULL AS SIGNED ) * 48 * + 80 + - col2 + + - 32 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT + CAST ( NULL AS INTEGER ) * 48 * + 80 + - col2 + + - 32 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 * + - col2 AS col1 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9315
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9315
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab2
----
NULL
3

query I rowsort
SELECT - 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32, col2 col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT ALL - 39 * - col2 AS col2 FROM tab1 AS cor0
----
2301
2652
3744

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 > + col1 + + col0 * - col1
----
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9322
SELECT ALL + col2 + - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL + col2 + - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL - COUNT( DISTINCT - - 27 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL - COUNT ( DISTINCT - - 27 ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT + ( col0 ) + - + 43 DIV - col1 AS col0 FROM tab0
----
140
15
89

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT + ( col0 ) + - + 43 / - col1 AS col0 FROM tab0
----
140
15
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT - COUNT( * ) + - COUNT( - col1 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - col1 ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= - + 56
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + COUNT( * ) + - 39 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9327
SELECT + COUNT ( * ) + - 39 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT 60 * + col2 + - + col0 + - + CAST( NULL AS SIGNED ) * col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT 60 * + col2 + - + col0 + - + CAST ( NULL AS INTEGER ) * col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT + + COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT + + COUNT ( col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT - col0 DIV 96 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9331
SELECT - col0 / 96 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT ( - - ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE CAST( NULL AS SIGNED ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT ( - - ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE CAST ( NULL AS INTEGER ) <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL - COUNT( - - col1 ) col0 FROM tab0 WHERE col2 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT ALL - COUNT ( - - col1 ) col0 FROM tab0 WHERE col2 > NULL
----
0

query I rowsort
SELECT + ( - 44 ) - + col2 FROM tab2
----
-102
-67
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( + 75 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( + 75 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - - 56, - col2 AS col0 FROM tab0 AS cor0
----
56
-10
56
-47
56
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9338
SELECT + - MIN( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT + - MIN ( ALL - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL - COUNT( * ) * - AVG ( + - col1 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL - COUNT ( * ) * - AVG ( + - col1 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - + col0 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 col0 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 89 * + 27 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT + AVG ( DISTINCT + CAST( col0 AS SIGNED ) ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9342
SELECT + AVG ( DISTINCT + CAST ( col0 AS INTEGER ) ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - - 67 AS col0, 21 - + col0 FROM tab1 AS cor0
----
67
-30
67
-64
67
-70

query II rowsort
SELECT DISTINCT - - col2 AS col0, + 20 AS col0 FROM tab0 WHERE NOT ( NOT 33 IS NULL )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NOT ( NOT 64 IS NULL ) )
----
14
47
5

query I rowsort
SELECT - 14 * 77 FROM tab0
----
-1078
-1078
-1078

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT - - col0 DIV + col1 + - col2 FROM tab0 AS cor0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-9347
SELECT - - col0 / + col1 + - col2 FROM tab0 AS cor0
----
-2
-47
-6

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9349
SELECT - COUNT( + col0 ) * - COUNT( * ) + + COUNT( * ) DIV + - CAST( - - 48 AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9349
SELECT - COUNT ( + col0 ) * - COUNT ( * ) + + COUNT ( * ) / + - CAST ( - - 48 AS INTEGER ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9350
SELECT - - col2 DIV col0 AS col2, - 96 AS col0 FROM tab1 AS cor0
----
0
-96
0
-96
1
-96

skipif mysql # not compatible
query II rowsort label-9350
SELECT - - col2 / col0 AS col2, - 96 AS col0 FROM tab1 AS cor0
----
0
-96
0
-96
1
-96

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( - + col0 * + + col2 + 21 + + 24 + - 60 + - 18 + ( - 67 ) + + col2 * - - col1 + - - col1, 50 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + col2 col0 FROM tab0
----
198
20
94

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col2, + 94 FROM tab0 AS cor0
----
15
94
87
94
97
94

query I rowsort
SELECT ALL 40 + - col1 AS col1 FROM tab2 cor0
----
-11
-27
-37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL 34 + - + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL 34 + - + COUNT ( * ) FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + MAX( + ( col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9363
SELECT + MAX ( + ( col2 ) ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL OR ( NOT ( NOT - - col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT - 18 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT - 18 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col2 + - + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col2 + - + col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + - COUNT( * ) + + 47 AS col2 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9367
SELECT + - COUNT ( * ) + + 47 AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT - - 70 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - + col2 / - col2 AS col0 FROM tab1 WHERE NOT + - col1 <= NULL
----

query II rowsort
SELECT DISTINCT - col2, col2 * + + col0 AS col1 FROM tab1
----
-59
5015
-68
6188
-96
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT DISTINCT - + CAST( + ( - 13 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - + CAST ( + ( - 13 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
13

query I rowsort
SELECT - 45 * + col1 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - COUNT( * ) * ( - - 9 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - COUNT ( * ) * ( - - 9 ) AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + + AVG ( + col2 ) FROM tab0 WHERE NOT - 2 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT DISTINCT - col1 DIV col0 * 26 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - col1 / col0 * 26 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9378
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 24 AS col0 FROM tab0
----
2088
2328
360

query II rowsort
SELECT DISTINCT - 45 AS col2, col1 FROM tab2
----
-45
51
-45
67
-45
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9381
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col1 col0 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-9381
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT ALL 87 AS col2, - ( + MAX( DISTINCT ( - col2 ) ) ) FROM tab1
----
87
59

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL 87 AS col2, - ( + MAX ( DISTINCT ( - col2 ) ) ) FROM tab1
----
87
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 / col0 >= + 87 * - ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9384
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 + - 44 AS col2 FROM tab0 AS cor0
----
NULL
-125
NULL
-45
NULL
-65

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 + - 44 AS col2 FROM tab0 AS cor0
----
NULL
-125
NULL
-45
NULL
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9385
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 81 * + - COUNT( * ) + - 77 FROM tab2 AS cor0
----
NULL
-320

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 81 * + - COUNT ( * ) + - 77 FROM tab2 AS cor0
----
NULL
-320

query I rowsort
SELECT ALL - ( 83 ) FROM tab2 AS cor0
----
-83
-83
-83

query II rowsort
SELECT ALL col1, col0 + - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
1
196
21
297
81
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9389
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9389
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT DISTINCT + 62 + - ( col0 ) + + col0 DIV + 87 - col0 AS col1 FROM tab1
----
-108
-119
-40

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + 62 + - ( col0 ) + + col0 / + 87 - col0 AS col1 FROM tab1
----
-108
-119
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + + COUNT( * ) - 96 * - + 89 AS col2 FROM tab1 AS cor0
----
8547

skipif mysql # not compatible
query I rowsort label-9393
SELECT + + COUNT ( * ) - 96 * - + 89 AS col2 FROM tab1 AS cor0
----
8547

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col2 + 43 FROM tab0
----
241
263
3897

query I rowsort
SELECT 33 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query II rowsort
SELECT col1, col0 * - 78 + 12 AS col2 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ( - 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT col2 AS col0, + 83 FROM tab0 AS cor0
----
10
83
47
83
99
83

query I rowsort
SELECT + - col0 * - 95 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT ALL - COUNT( * ) DIV - - 46 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT ALL - COUNT ( * ) / - - 46 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + col2 AS col0 FROM tab2 WHERE col2 - col0 IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - 40 - + col0 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT + ( MIN( 34 ) ) * + COUNT( * ) FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT + ( MIN ( 34 ) ) * + COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + + 49 col1 FROM tab1
----
132
132
132

query III rowsort
SELECT ALL * FROM tab1 WHERE + 2 NOT BETWEEN + 79 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT COUNT( * ) + 78 AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT COUNT ( * ) + 78 AS col1 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + col1 AND 41
----

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + col1 AND 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT MIN( 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9410
SELECT MIN ( 86 ) FROM tab2
----
86

query I rowsort
SELECT col1 - + ( + col2 + ( - col2 ) ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT 73 * col1 IN ( + col0 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - col1 AS col2 FROM tab2 WHERE NOT - col0 IN ( 27 + col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9413
SELECT - col1 AS col2 FROM tab2 WHERE NOT - col0 IN ( 27 + col0 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 73 FROM tab0 WHERE NOT ( NULL ) <= ( 47 ) * col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL <= ( - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT + MIN( + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + MIN ( + col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT col2 FROM tab0 WHERE col2 NOT BETWEEN col1 / col1 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT MIN( DISTINCT - col0 ) - COUNT( * ) col1 FROM tab1
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9418
SELECT DISTINCT MIN ( DISTINCT - col0 ) - COUNT ( * ) col1 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT SUM( col0 ) * 4 FROM tab1 WHERE - 84 IS NOT NULL
----
908

skipif mysql # not compatible
query I rowsort label-9419
SELECT SUM ( col0 ) * 4 FROM tab1 WHERE - 84 IS NOT NULL
----
908

query I rowsort
SELECT col0 * 96 AS col2 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT DISTINCT - 14 + - col2 AS col0 FROM tab0
----
-113
-24
-61

query I rowsort
SELECT ALL col0 + 66 AS col1 FROM tab0
----
153
163
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT COUNT( DISTINCT col2 ) * SUM( DISTINCT - col2 ) + - COUNT( * ) FROM tab0
----
-471

skipif mysql # not compatible
query I rowsort label-9423
SELECT COUNT ( DISTINCT col2 ) * SUM ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0
----
-471

query I rowsort
SELECT DISTINCT col0 * + 82 AS col1 FROM tab2
----
3772
5248
6150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 * + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9426
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9426
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - ( + 22 ) AS col0 FROM tab1 AS cor0
----
-1298
-1496
-2112

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 46 IS NULL
----

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 96 - + col0 FROM tab0
----
-1
81
9

query I rowsort
SELECT - 33 + 98 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + + COUNT( * ) + 33 col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT + + COUNT ( * ) + 33 col0 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col2 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 + 58 * col2 NOT BETWEEN + 42 AND NULL
----

query I rowsort
SELECT 54 FROM tab2 AS cor0 WHERE + 81 NOT IN ( col0 )
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9437
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( CAST( - col0 AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9437
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( CAST ( - col0 AS INTEGER ) + + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - ( - col2 ) + col2 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL - 74 * + COUNT( * ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - 74 * + COUNT ( * ) FROM tab1
----
-222

query I rowsort
SELECT ALL 26 + + 61 FROM tab1 WHERE NOT NULL < ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + 87 FROM tab0
----
134
186
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT - col1 DIV + col1 - 96 * - col1 FROM tab0
----
2015
7775
95

skipif mysql # not compatible
query I rowsort label-9443
SELECT - col1 / + col1 - 96 * - col1 FROM tab0
----
2015
7775
95

query I rowsort
SELECT + col0 FROM tab2 WHERE + col1 <> ( ( col2 ) )
----
46
64
75

query I rowsort
SELECT + col1 - + 39 + 70 AS col0 FROM tab1
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT MAX( + 55 ) - + MIN( ALL + col2 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9446
SELECT MAX ( + 55 ) - + MIN ( ALL + col2 ) AS col0 FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE 15 + 68 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 49 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT SUM( ALL + ( - 54 ) ) col2 FROM tab1
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9449
SELECT DISTINCT SUM ( ALL + ( - 54 ) ) col2 FROM tab1
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT + + MIN( DISTINCT + ( - 20 ) ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9451
SELECT + + MIN ( DISTINCT + ( - 20 ) ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT - col0 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - + 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - MIN( DISTINCT - - col1 ) * + 77 FROM tab2
----
-3927

skipif mysql # not compatible
query I rowsort label-9457
SELECT - MIN ( DISTINCT - - col1 ) * + 77 FROM tab2
----
-3927

query I rowsort
SELECT - 86 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT + + col1 * - + 50 * + - 33 FROM tab2 AS cor0
----
110550
127050
84150

query I rowsort
SELECT ALL - ( - - 92 ) * - + col2 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) >= 27
----
-3

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) >= 27
----
-3

query I rowsort
SELECT DISTINCT col0 * + ( - - col1 ) * + ( + col0 + + col2 ) FROM tab0 AS cor0
----
177219
19012
75330

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9463
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + - ( CAST( - col1 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9463
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + - ( CAST ( - col1 AS REAL ) ) )
----

query I rowsort
SELECT ALL 67 * col2 + - + col2 AS col1 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT ALL - col1 + + 43 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-21
-67
-72

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE + 72 BETWEEN - + col2 / 7 AND 55
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL - MAX( DISTINCT - col1 ) + COUNT( ALL - col2 ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - MAX ( DISTINCT - col1 ) + COUNT ( ALL - col2 ) AS col2 FROM tab2
----
54

query I rowsort
SELECT DISTINCT + 58 + ( - + 91 ) * col0 FROM tab2
----
-4128
-5766
-6767

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL MIN( + - 62 ) * 68 AS col0 FROM tab0
----
-4216

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL MIN ( + - 62 ) * 68 AS col0 FROM tab0
----
-4216

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col2 <> col1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) + - 40 * 18 FROM tab1
----
-720

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) + - 40 * 18 FROM tab1
----
-720

query I rowsort
SELECT ALL + col2 * 63 FROM tab2 cor0
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9475
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col1, - ( col0 ) + - col1 col2 FROM tab1 cor0
----
NULL
-138
NULL
-65
NULL
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9475
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col1, - ( col0 ) + - col1 col2 FROM tab1 cor0
----
NULL
-138
NULL
-65
NULL
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9476
SELECT 45 col2, COUNT( * ) DIV + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9476
SELECT 45 col2, COUNT ( * ) / + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

query I rowsort
SELECT DISTINCT + 62 + + col2 AS col2 FROM tab1
----
121
130
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 89 col0 FROM tab1
----
14
89
47
89
5
89

query I rowsort
SELECT DISTINCT - 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT COUNT( * ) + - MAX( ALL - col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT COUNT ( * ) + - MAX ( ALL - col1 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + MIN( DISTINCT col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9481
SELECT + MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL + 68 + - col1 FROM tab0
----
-13
47
67

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND + 77 / + + col0 + + col1 * col0
----

query I rowsort
SELECT DISTINCT col0 * - + col2 - + col0 + 21 * 26 * 31 AS col2 FROM tab0 AS cor0
----
15969
16206
7226

query I rowsort
SELECT ALL + + col2 * col1 - - 37 FROM tab2 AS cor0
----
1210
3117
3923

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + - 59 * + - 99 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
5838

skipif mysql # not compatible
query I rowsort label-9486
SELECT + - 59 * + - 99 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5838

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + ( + 47 ) - - COUNT( * ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( + 47 ) - - COUNT ( * ) FROM tab0 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 + - 19 AS col2 FROM tab1 AS cor0
----
14
-70
47
-110
5
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - MAX( ALL - 38 ) FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - MAX ( ALL - 38 ) FROM tab0 cor0
----
38

query I rowsort
SELECT - col2 * + - col2 + - col2 AS col1 FROM tab0
----
2162
90
9702

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( - 39 ) > - 23
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL NOT BETWEEN NULL AND col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 ) BETWEEN NULL AND + col0 * col0 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + 11 AS col2 FROM tab0 AS cor0
----
10
11
47
11
99
11

query II rowsort
SELECT 71, + col0 AS col1 FROM tab0 cor0
----
71
15
71
87
71
97

query II rowsort
SELECT col2 AS col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - 39
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 >= 39 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT - 62 DIV + 82 * 61 * + MAX( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT - 62 / + 82 * 61 * + MAX ( + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL MIN( ALL + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL MIN ( ALL + - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * + - col1 IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 23 + col2 ) IS NOT NULL
----

query I rowsort
SELECT - - col0 + - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 46
----

query I rowsort
SELECT DISTINCT ( - - 59 ) FROM tab2
----
59

query I rowsort
SELECT DISTINCT + 25 + col0 FROM tab1
----
110
116
76

query I rowsort
SELECT col1 + + 57 AS col2 FROM tab2
----
108
124
134

query I rowsort
SELECT 47 + col1 FROM tab0
----
128
48
68

query I rowsort
SELECT ALL 27 + 1 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT - 24 * + col2 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + MAX( - col0 ) * ( COUNT( * ) ) * MIN( 12 ) FROM tab0
----
-540

skipif mysql # not compatible
query I rowsort label-9514
SELECT + MAX ( - col0 ) * ( COUNT ( * ) ) * MIN ( 12 ) FROM tab0
----
-540

query I rowsort
SELECT ALL + 30 * - 69 AS col1 FROM tab1
----
-2070
-2070
-2070

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 27 AS col0 FROM tab0 AS cor0 WHERE 82 IS NOT NULL
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9518
SELECT DISTINCT col0 AS col1, + col0 + ( - CAST( NULL AS DECIMAL ) ) - ( - ( ( - - CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9518
SELECT DISTINCT col0 AS col1, + col0 + ( - CAST ( NULL AS REAL ) ) - ( - ( ( - - CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT SUM( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1, tab1 cor0
----
NULL

query I rowsort
SELECT + 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 51 + + + 95 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 6 NOT BETWEEN ( NULL ) AND + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - 66 + CAST( - col0 AS SIGNED ) * + - 17 AS col1 FROM tab0
----
1413
1583
189

skipif mysql # not compatible
query I rowsort label-9523
SELECT - 66 + CAST ( - col0 AS INTEGER ) * + - 17 AS col1 FROM tab0
----
1413
1583
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + col1 col2 FROM tab1 AS cor0
----
-23
-56
-65

query I rowsort
SELECT ALL + + 27 - ( + col2 ) + col2 + - + col0 FROM tab1 AS cor0
----
-24
-58
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - COUNT( * ) - 37 AS col1 FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - COUNT ( * ) - 37 AS col1 FROM tab0 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + + MAX( - - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9527
SELECT + + MAX ( - - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col2 * + col1 + + col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL + ( - col1 ) * + col1 AS col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT + col0 DIV - 48 col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT + col0 / - 48 col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT - 88 / + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT - 88 / + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col1 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT + + COUNT( + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + + COUNT ( + col0 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT - 35 AS col2 FROM tab0 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NOT NULL
----
-35

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - 35 AS col2 FROM tab0 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT - - MIN( ALL + col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT DISTINCT - - MIN ( ALL + col1 ) col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9536
SELECT MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9537
SELECT ALL - col1, col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-9537
SELECT ALL - col1, col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + 29 IS NULL
----
-10
-47
-99

query I rowsort
SELECT col1 * + 4 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col1 / - col2, + 20 / - ( 36 ) )
----

query II rowsort
SELECT - 90, + col1 FROM tab1 AS cor0
----
-90
14
-90
47
-90
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9542
SELECT DISTINCT - + col0 AS col0, - CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9542
SELECT DISTINCT - + col0 AS col0, - CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT ALL + col1 AS col1, + col2 * col0 * 86 FROM tab2 AS cor0
----
51
90988
67
374100
77
220160

query I rowsort
SELECT ALL + - col2 + + ( - - 93 ) FROM tab1 AS cor0
----
-3
25
34

query II rowsort
SELECT + col2 * + ( - col0 ) + + col1 + - col0 * + 34 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-6616
51
-7900
85
-9235
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - - 95
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT + - 87 DIV col0 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT + - 87 / col0 FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT - 74, + col2 * - col1 * 47 * 13 - 0 AS col2 FROM tab2 AS cor0
----
-74
-1881880
-74
-2374346
-74
-716703

query I rowsort
SELECT + ( + ( + col2 ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col1 + col0 + + col2 * - col2 FROM tab2
----
-1459
-3222
-432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9552
SELECT * FROM tab1 WHERE - ( + 31 ) * + CAST( NULL AS SIGNED ) + - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9552
SELECT * FROM tab1 WHERE - ( + 31 ) * + CAST ( NULL AS INTEGER ) + - + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( col1 + - col2, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + - col0 + - 10 AS col1 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT ALL 99 * + - col2 + - 56 FROM tab2
----
-2333
-4016
-5798

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL 7 + - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL 7 + - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9557
SELECT ALL - 77 + - col1 * 58 / 41 AS col2 FROM tab1 AS cor0 WHERE CAST( + ( - col2 ) AS DECIMAL ) + col2 - - col2 IN ( col0 + col2 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - 77 + - col1 * 58 / 41 AS col2 FROM tab1 AS cor0 WHERE CAST ( + ( - col2 ) AS REAL ) + col2 - - col2 IN ( col0 + col2 * - col1 )
----

query I rowsort
SELECT + ( + 41 ) / - ( col0 ) * + + 27 * + + col1 * + 79 FROM tab0 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - ( COUNT( * ) ) * + 54 AS col2 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9559
SELECT - ( COUNT ( * ) ) * + 54 AS col2 FROM tab2 AS cor0
----
-162

query I rowsort
SELECT DISTINCT - - col2 + - ( + - col1 ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT SUM( - 53 ) AS col2 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-9561
SELECT SUM ( - 53 ) AS col2 FROM tab0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9562
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 52 FROM tab1 WHERE NOT NULL >= - col2 AND + 96 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT - + col2, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL - 22 * - col2 + col2 * col2 AS col1 FROM tab1 AS cor0
----
11328
4779
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - ( + MIN( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9566
SELECT - ( + MIN ( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT + + 58 AS col1, + col2 FROM tab1 cor0
----
58
59
58
68
58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - - COUNT( ALL - - col2 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9568
SELECT - - COUNT ( ALL - - col2 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND 30 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + - COUNT( DISTINCT + ( 91 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9570
SELECT + - COUNT ( DISTINCT + ( 91 ) ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT DISTINCT + SUM( - - col0 ) * + COUNT( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT + SUM ( - - col0 ) * + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT DISTINCT col1 DIV - 9 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT col1 / - 9 FROM tab1
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT DISTINCT 97 DIV col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT 97 / col2 FROM tab0
----
0
2
9

query I rowsort
SELECT + 16 * + + 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ( - col2 ) * + + col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col0 FROM tab0 AS cor0
----
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - - MIN( - + 59 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - - MIN ( - + 59 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - col2 * - col0 + + ( + col1 ) AS col2 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT + 88 DIV + + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 88 / + + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col1 * ( col0 ) + + col2 + + col1 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1025
-1699
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + 19 + + COUNT( * ) + SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 19 + + COUNT ( * ) + SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT col0 - - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + + 5 AS col0 FROM tab1 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT col2 * 69 + + 3 * - col0 FROM tab1 WHERE + + 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT col2 + - 33 * - col2 * CAST( + - col1 AS SIGNED ) FROM tab1
----
-105400
-44256
-9676

skipif mysql # not compatible
query I rowsort label-9587
SELECT col2 + - 33 * - col2 * CAST ( + - col1 AS INTEGER ) FROM tab1
----
-105400
-44256
-9676

query I rowsort
SELECT DISTINCT - + col1 * + col0 - - col2 + - - col2 FROM tab0 WHERE NULL IS NULL
----
-1121
-1807
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT - 49 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - 49 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT - ( - col2 ) DIV - col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9590
SELECT - ( - col2 ) / - col2 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT col0 * + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT col0 * + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - MIN( ALL ( + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT - MIN ( ALL ( + col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT ALL + 3 + - col0 AS col1, col2 AS col2 FROM tab1
----
-48
96
-82
59
-88
68

query I rowsort
SELECT ALL 33 + - col0 * - + 60 AS col2 FROM tab1
----
3093
5133
5493

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT + COUNT( * ) * - - MAX( ALL + 90 ) - + - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT + COUNT ( * ) * - - MAX ( ALL + 90 ) - + - COUNT ( * ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + MAX( - + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9596
SELECT + MAX ( - + col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT ( NULL ) = col1 * + + col0 * - 10
----

query I rowsort
SELECT ALL - + 88 * 69 - - col1 * col0 AS col2 FROM tab0 AS cor0
----
-4245
-4857
-5975

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9599
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS DECIMAL ) * - col2 * - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-9599
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS REAL ) * - col2 * - col2 > NULL
----

query I rowsort
SELECT + 52 + + + 97 + - - col1 * - col2 FROM tab2 AS cor0
----
-1024
-2931
-3737

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MIN( col1 ) * COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9601
SELECT - MIN ( col1 ) * COUNT ( * ) FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9602
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 34 + - col2 * - - 66 + + + CAST( + ( + col1 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9602
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 34 + - col2 * - - 66 + + + CAST ( + ( + col1 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 4 * - 90 FROM tab0 cor0
----
-360

query I rowsort
SELECT ALL ( - - col2 ) * - col1 + - - 96 AS col0 FROM tab2 AS cor0
----
-1077
-2984
-3790

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT DISTINCT - 65 DIV + 41 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - 65 / + 41 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT - - MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - - MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + col1 * - + 11 * + col2 AS col0 FROM tab1 AS cor0
----
14784
3245
35156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col2 col1 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - SUM( + + col0 ) * + - 41 * - 44 AS col1 FROM tab1
----
-409508

skipif mysql # not compatible
query I rowsort label-9609
SELECT - SUM ( + + col0 ) * + - 41 * - 44 AS col1 FROM tab1
----
-409508

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - + 29 * - col1 * - col0
----

query I rowsort
SELECT 40 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 88 + + ( + col0 ) NOT IN ( 20 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT + + col0 * + + col2 > col2 ) )
----

query I rowsort
SELECT - 7 * + col2 AS col2 FROM tab2
----
-161
-280
-406

query II rowsort
SELECT - 25 * - ( - - col1 ), col1 FROM tab1
----
1175
47
125
5
350
14

query I rowsort
SELECT ALL + - AVG ( + 34 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col2 * 88 AS col1 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT DISTINCT + + 30 * + + col0 FROM tab1 AS cor0
----
1530
2550
2730

query I rowsort
SELECT ALL col2 * - - 46 FROM tab0 cor0
----
2162
4554
460

query I rowsort
SELECT col1 + + ( - + col0 ) * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
1155
2701
4492

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9621
SELECT DISTINCT + 24 + - col2, + col2 * + - ( - col2 ) + CAST( NULL AS SIGNED ) + col0 * + + 65 + 18 col1 FROM tab0
----
-23
NULL
-75
NULL
14
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9621
SELECT DISTINCT + 24 + - col2, + col2 * + - ( - col2 ) + CAST ( NULL AS INTEGER ) + col0 * + + 65 + 18 col1 FROM tab0
----
-23
NULL
-75
NULL
14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL - col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 46 + - 22 AS col1 FROM tab1
----
24
24
24

query I rowsort
SELECT + col1 * + col0 + - + ( + col2 ) * col2 FROM tab0
----
-9704
-994
1727

query I rowsort
SELECT DISTINCT - 97 + col2 FROM tab2
----
-39
-57
-74

query I rowsort
SELECT + 56 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND col2
----

query I rowsort
SELECT DISTINCT + + col1 + - col0 * + - 17 AS col0 FROM tab0 cor0
----
1500
1650
336

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT ALL + col0 DIV + + col1 + - 49 FROM tab1 AS cor0
----
-32
-46
-48

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + col0 / + + col1 + - 49 FROM tab1 AS cor0
----
-32
-46
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9631
SELECT - + 72 * + 95, + CAST( NULL AS DECIMAL ) - + col2 + CAST( NULL AS DECIMAL ) * 36 AS col1 FROM tab2 AS cor0
----
-6840
NULL
-6840
NULL
-6840
NULL

skipif mysql # not compatible
query II rowsort label-9631
SELECT - + 72 * + 95, + CAST ( NULL AS REAL ) - + col2 + CAST ( NULL AS REAL ) * 36 AS col1 FROM tab2 AS cor0
----
-6840
NULL
-6840
NULL
-6840
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT + col1 - - ( + col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT CAST( NULL AS SIGNED ) * - + col1 - - col1 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT CAST ( NULL AS INTEGER ) * - + col1 - - col1 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + + - col2 col1 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT + 31 + - col0 + + - col2 AS col2 FROM tab0
----
-165
-31
-66

query I rowsort
SELECT + 28 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 59 * - col2 BETWEEN ( NULL ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT col1 * + - CAST( NULL AS SIGNED ) * + col2 + - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT col1 * + - CAST ( NULL AS INTEGER ) * + col2 + - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 + - col0 AS col1 FROM tab1
----
-33
-39
1

query I rowsort
SELECT ALL + - 93 - - col2 + col2 FROM tab0 cor0
----
-73
1
105

query I rowsort
SELECT ALL + 68 + col2 + col2 + - - col1 + - col2 FROM tab2 cor0 WHERE NOT 66 <= ( NULL )
----

query I rowsort
SELECT 75 * col0 FROM tab2 AS cor0
----
3450
4800
5625

query II rowsort
SELECT DISTINCT + col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT - col0 AS col1, - 93 AS col2 FROM tab1 AS cor0
----
-51
-93
-85
-93
-91
-93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = col0
----

query I rowsort
SELECT ( + + 84 ) AS col1 FROM tab1 cor0
----
84
84
84

query II rowsort
SELECT ALL + 16 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
16
-14
16
-47
16
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL SUM( ALL + ( 3 ) ) * - 51 FROM tab0 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL SUM ( ALL + ( 3 ) ) * - 51 FROM tab0 AS cor0
----
-459

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col2 col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + 78 + + col1 * - - col1 + + col2 <= + col0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT col1 * - - CAST( - col0 AS SIGNED ) * - - ( - col1 ) col2 FROM tab2
----
119646
336675
379456

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9655
SELECT col1 * - - CAST ( - col0 AS INTEGER ) * - - ( - col1 ) col2 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT COUNT( * ) * - - ( - SUM( 63 ) ) FROM tab0
----
-567

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) * - - ( - SUM ( 63 ) ) FROM tab0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL + MAX( + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + MAX ( + col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT - col2 * 32 AS col2 FROM tab2
----
-1280
-1856
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT col2 DIV col2 + - - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT col2 / col2 + - - col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT + col1 DIV - - col1 col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9660
SELECT DISTINCT + col1 / - - col1 col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT col2 AS col0, col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL - col0 * - col2 + - 77 * - col0 AS col2 FROM tab0
----
17072
1860
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT + col1 + + - col0 + - col2 + col2 + - - ( 48 ) DIV - + 30 FROM tab2
----
-9
12
4

skipif mysql # not compatible
query I rowsort label-9664
SELECT + col1 + + - col0 + - col2 + col2 + - - ( 48 ) / - + 30 FROM tab2
----
-9
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - COUNT( * ) + 81 AS col2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9665
SELECT - COUNT ( * ) + 81 AS col2 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9666
SELECT - - col2 + - ( + 92 ) AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-34
NULL
-52
NULL
-69
NULL

skipif mysql # not compatible
query II rowsort label-9666
SELECT - - col2 + - ( + 92 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-34
NULL
-52
NULL
-69
NULL

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE 84 + + + col2 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT ALL 76 DIV - + col2 AS col1 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL 76 / - + col2 AS col1 FROM tab0 cor0
----
-1
-7
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 77
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + 42 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT 70 DIV - + MAX( ALL + col0 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9671
SELECT 70 / - + MAX ( ALL + col0 ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL - COUNT( DISTINCT - col1 ) + - 97 * - + 83 FROM tab1
----
8048

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL - COUNT ( DISTINCT - col1 ) + - 97 * - + 83 FROM tab1
----
8048

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9673
SELECT col0 DIV + 41 AS col2, col2 * + - CAST( + + col0 AS SIGNED ) FROM tab0
----
0
-705
2
-870
2
-9603

skipif mysql # not compatible
query II rowsort label-9673
SELECT col0 / + 41 AS col2, col2 * + - CAST ( + + col0 AS INTEGER ) FROM tab0
----
0
-705
2
-870
2
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL 8 + MIN( ALL - + 32 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL 8 + MIN ( ALL - + 32 ) FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + COUNT( * ) - - COUNT( * ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9675
SELECT + COUNT ( * ) - - COUNT ( * ) col2 FROM tab2
----
6

query I rowsort
SELECT col1 - - col1 + + + col1 + col1 * 35 AS col2 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT col0 - - - col1 + - col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + + 19 - - 62 FROM tab2 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT 18 * - 9 FROM tab0 AS cor0
----
-162
-162
-162

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + 5 + col2 + col1 * - + col0 <= NULL
----

query II rowsort
SELECT DISTINCT col1, 3 FROM tab0
----
1
3
21
3
81
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - COUNT( * ) * - + 72 AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - COUNT ( * ) * - + 72 AS col1 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 84 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 84 < NULL
----
0

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL > 85
----

query I rowsort
SELECT - col1 * - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1, col2 + - + col0 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9690
SELECT MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + + col2 * + col0 + col1 + + - 11 - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-4317
1528
1600

query I rowsort
SELECT + + col0 AS col0 FROM tab1 cor0 WHERE NOT - col0 / + col1 IS NULL
----
51
85
91

query I rowsort
SELECT + + ( col1 ) * + col1 FROM tab1 AS cor0 WHERE NOT col2 <= - 3 * + 34
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL + ( MIN( ALL 97 ) ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + ( MIN ( ALL 97 ) ) AS col2 FROM tab2 AS cor0
----
97

query I rowsort
SELECT ALL + col1 * - col2 + - col0 FROM tab1
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 col2 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57 col1, - ( + col0 ) col2 FROM tab2
----
-57
-46
-57
-64
-57
-75

query I rowsort
SELECT ALL + col0 * - 97 AS col0 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL CAST( NULL AS SIGNED ) * ( col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / - 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT 80 + - COUNT( ALL - - col2 ) * 57 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-9705
SELECT 80 + - COUNT ( ALL - - col2 ) * 57 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT + - col0 * + CAST( - - col0 AS SIGNED ) - + 84 AS col2 FROM tab1 AS cor0
----
-2685
-7309
-8365

skipif mysql # not compatible
query I rowsort label-9706
SELECT + - col0 * + CAST ( - - col0 AS INTEGER ) - + 84 AS col2 FROM tab1 AS cor0
----
-2685
-7309
-8365

query II rowsort
SELECT - - 78 + - + col2 AS col2, 78 FROM tab1 AS cor0
----
-18
78
10
78
19
78

query I rowsort
SELECT 83 + - col1 AS col2 FROM tab0
----
2
62
82

query I rowsort
SELECT 1 + - col2 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT + 21 * - - col0 + - col1 * 65 FROM tab1
----
-1144
1460
161

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT col0 DIV col2 - + - col1 FROM tab2 WHERE - col2 NOT IN ( + col0, - col2 * - col1 - col1 * - 68 )
----
53
68
78

skipif mysql # not compatible
query I rowsort label-9711
SELECT col0 / col2 - + - col1 FROM tab2 WHERE - col2 NOT IN ( + col0, - col2 * - col1 - col1 * - 68 )
----
53
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + MAX( ALL + + col1 ) FROM tab2 WHERE NOT NULL BETWEEN - + 75 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT + MAX ( ALL + + col1 ) FROM tab2 WHERE NOT NULL BETWEEN - + 75 AND NULL
----
NULL

query II rowsort
SELECT - col2 AS col2, 14 FROM tab1
----
-59
14
-68
14
-96
14

query I rowsort
SELECT DISTINCT + 1 * + - 56 FROM tab1
----
-56

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab0 WHERE NOT + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL SUM( + - 12 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL SUM ( + - 12 ) FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + - ( col0 ) * ( + 57 ) AS col0 FROM tab2 AS cor0 WHERE 66 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT - col0 DIV + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9719
SELECT - col0 / + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 73 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL + + MAX( - ( - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + + MAX ( - ( - col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT col2 + CAST( NULL AS SIGNED ) + col0 + - + 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT col2 + CAST ( NULL AS INTEGER ) + col0 + - + 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT - + SUM( ALL + 46 ) FROM tab0 AS cor0 WHERE 97 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - + SUM ( ALL + 46 ) FROM tab0 AS cor0 WHERE 97 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 45 )
----

query II rowsort
SELECT - col0 + - col0, col0 + + 66 AS col0 FROM tab1 WHERE NOT - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * + 15 > + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + 62 * + - COUNT( * ) AS col0 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 62 * + - COUNT ( * ) AS col0 FROM tab0
----
-186

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> + col0
----

query I rowsort
SELECT + col1 + - col1 * + col0 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9732
SELECT + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + + + 78 + col1 FROM tab0 AS cor0
----
120
240
80

query I rowsort
SELECT - col2 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + - col2 - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 * + 81 AS col2 FROM tab1 cor0
----
-4779
-5508
-7776

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( ( - col0 ) / - + ( + col0 ) * - col1, - 35 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT + ( - 32 ) DIV + COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9738
SELECT + ( - 32 ) / + COUNT ( * ) FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT DISTINCT + col1 DIV - - 9 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT + col1 / - - 9 FROM tab1
----
0
1
5

query II rowsort
SELECT + col0 * - 47, col2 * + ( - col0 ) AS col1 FROM tab1
----
-2397
-4896
-3995
-5015
-4277
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9741
SELECT ALL * FROM tab2 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) NOT IN ( - col0, + ( + + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9741
SELECT ALL * FROM tab2 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - col0, + ( + + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + col0 ) = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE 89 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE 89 IS NOT NULL
----
3

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= 67
----

query I rowsort
SELECT + 22 / - 62 / + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + COUNT( * ) * + 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-9746
SELECT + COUNT ( * ) * + 77 FROM tab0
----
231

query II rowsort
SELECT DISTINCT - 13 AS col1, + col0 FROM tab2 AS cor0
----
-13
46
-13
64
-13
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + ( MIN( DISTINCT + + 80 ) ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-9748
SELECT + ( MIN ( DISTINCT + + 80 ) ) FROM tab0 cor0
----
80

query I rowsort
SELECT DISTINCT - 37 * - 45 - + 1 AS col2 FROM tab0 AS cor0
----
1664

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + - col1 ) * 84 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT + + SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col2 + - col2 + - - 43 * + 34 FROM tab1 AS cor0
----
1270
1326
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT CAST( + 44 AS SIGNED ) col0 FROM tab1 AS cor0
----
44
44
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9754
SELECT CAST ( + 44 AS INTEGER ) col0 FROM tab1 AS cor0
----
44
44
44

query II rowsort
SELECT ALL col2 + - col0, col0 FROM tab0
----
-77
87
2
97
32
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT + 44 - SUM( col1 ) * 64 FROM tab1 WHERE NOT ( - col1 ) * - 63 + - 47 + + 3 - - - 96 + - - col0 + - col0 + col1 = + col1 - 7 AND NOT - 19 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT + 44 - SUM ( col1 ) * 64 FROM tab1 WHERE NOT ( - col1 ) * - 63 + - 47 + + 3 - - - 96 + - - col0 + - col0 + col1 = + col1 - 7 AND NOT - 19 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT DISTINCT ( - - 91 ) AS col0, COUNT( * ) * ( - 25 ) AS col0 FROM tab1
----
91
-75

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT ( - - 91 ) AS col0, COUNT ( * ) * ( - 25 ) AS col0 FROM tab1
----
91
-75

query I rowsort
SELECT col0 + - 7 - col2 AS col1 FROM tab1 AS cor0
----
-52
16
19

query II rowsort
SELECT ALL - - 98 * + col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
4606
15
9702
97
980
87

query II rowsort
SELECT ALL ( 88 ) * 99, 78 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 4ee473668a0badf9ff332e26ed054918

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT + col1 - + + col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 53 - - col1 FROM tab1 AS cor0
----
100
58
67

query II rowsort
SELECT col1 * - col2 - + col1 AS col0, 90 FROM tab1 AS cor0
----
-1358
90
-300
90
-3243
90

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9766
SELECT COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 27 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-27
15
-27
87
-27
97

query I rowsort
SELECT ALL col1 * + 31 AS col1 FROM tab0 cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + MAX( ALL col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9770
SELECT + MAX ( ALL col0 ) AS col1 FROM tab1
----
91

query II rowsort
SELECT ALL + col2 AS col2, 8 FROM tab1
----
59
8
68
8
96
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - ( + 73 ) AS col2 FROM tab0
----
1
-73
21
-73
81
-73

query I rowsort
SELECT DISTINCT + col1 * + 50 * col0 AS col0 FROM tab2
----
117300
246400
251250

query I rowsort
SELECT col2 * ( + col0 ) * - + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT 27 * COUNT( * ) + 19 AS col2 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9777
SELECT 27 * COUNT ( * ) + 19 AS col2 FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + ( - - 82 ) + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-9778
SELECT + ( - - 82 ) + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - + ( - + col0 ) + col0 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - + ( - + col0 ) + col0 <> + col0
----
0

query I rowsort
SELECT DISTINCT + col2 + 24 AS col0 FROM tab2
----
47
64
82

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9783
SELECT + 75 + - - COUNT( * ) * COUNT( * ) AS col1, CAST( - 82 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
84
-82

skipif mysql # not compatible
query II rowsort label-9783
SELECT + 75 + - - COUNT ( * ) * COUNT ( * ) AS col1, CAST ( - 82 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
84
-82

query II rowsort
SELECT ALL - col2 * + - 97 AS col1, + 72 AS col2 FROM tab2 AS cor0
----
2231
72
3880
72
5626
72

query I rowsort
SELECT - + col0 + - col0 + col1 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + 60 + - COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 60 + - COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
57

query I rowsort
SELECT + 65 + 47 + 3 - col1 * - - col2 + + - 46 * - col0 FROM tab2 cor0
----
-21
-321
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT + MIN( ALL + 21 ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + MIN ( ALL + 21 ) AS col1 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL + + 50 FROM tab1 WHERE NULL NOT BETWEEN 6 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT col0 DIV ( - + 54 ) col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9790
SELECT col0 / ( - + 54 ) col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - 4 * + col0 AS col0 FROM tab1
----
-204
-340
-364

query I rowsort
SELECT - 70 * + + col2 FROM tab2
----
-1610
-2800
-4060

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9793
SELECT + 24 AS col2, col0 * + col0 * + col0 AS col1, + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to a2c7a5fae246d46bc0e76733d3ee75e5

skipif mysql # not compatible
query III rowsort label-9793
SELECT + 24 AS col2, col0 * + col0 * + col0 AS col1, + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to a2c7a5fae246d46bc0e76733d3ee75e5

query I rowsort
SELECT - col0 * - ( - col2 ) AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL + + col1 * col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 + - 59 * + + 29 * + - col0 FROM tab2
----
109528
128342
78729

query I rowsort
SELECT col0 + + 76 FROM tab1
----
127
161
167

query I rowsort
SELECT ALL - 98 + + 67 + + + col0 FROM tab2
----
15
33
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - - 1 BETWEEN + ( - - col0 ) + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + 50 = 82 + + - ( - ( 62 ) ) + 93 + - col0 / - 39
----

query I rowsort
SELECT ALL ( + - col2 ) * - + col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 col2 FROM tab1 cor0
----
71

query I rowsort
SELECT + - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9806
SELECT 11 * CAST( + col2 AS SIGNED ) AS col0, 12 FROM tab2
----
253
12
440
12
638
12

skipif mysql # not compatible
query II rowsort label-9806
SELECT 11 * CAST ( + col2 AS INTEGER ) AS col0, 12 FROM tab2
----
253
12
440
12
638
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + MIN( DISTINCT - 85 ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9807
SELECT + MIN ( DISTINCT - 85 ) FROM tab1
----
-85

query I rowsort
SELECT col2 * + 36 AS col1 FROM tab1
----
2124
2448
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT + COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9809
SELECT + COUNT ( - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL + 23 * + + 64 + - - COUNT( * ) col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
1472

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9810
SELECT ALL + 23 * + + 64 + - - COUNT ( * ) col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL + AVG ( DISTINCT + col2 ) / - + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 WHERE NOT ( 41 ) NOT BETWEEN NULL AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + AVG ( DISTINCT + col2 ) / - + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( 41 ) NOT BETWEEN NULL AND - col1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9813
SELECT + - 18 FROM tab0 AS cor0 WHERE NOT 12 + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-9813
SELECT + - 18 FROM tab0 AS cor0 WHERE NOT 12 + - CAST ( NULL AS REAL ) IS NOT NULL
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT + col0 + col2 DIV + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9814
SELECT + col0 + col2 / + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
2

query I rowsort
SELECT ALL + - col2 + col1 FROM tab1 AS cor0 WHERE ( col0 - + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT + COUNT( * ) DIV MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9817
SELECT + COUNT ( * ) / MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * + col1 * - 13 col0 FROM tab2 AS cor0
----
-25194
-33098
-38038

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - MAX( ALL + - col2 ) * - SUM( ALL + 19 ) - - - 4 FROM tab2
----
-1315

skipif mysql # not compatible
query I rowsort label-9819
SELECT - MAX ( ALL + - col2 ) * - SUM ( ALL + 19 ) - - - 4 FROM tab2
----
-1315

query I rowsort
SELECT col2 * - col1 + + + col2 FROM tab0
----
-200
-3760
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - 30 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 45 + - col1 AS col0 FROM tab1
----
-24
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + COUNT( * ) FROM tab2 WHERE - 60 - 12 > col2
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT + COUNT ( * ) FROM tab2 WHERE - 60 - 12 > col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9825
SELECT + MIN( DISTINCT - col2 ) DIV SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9825
SELECT + MIN ( DISTINCT - col2 ) / SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + col0 col1 FROM tab1 AS cor0
----
1395
3287
380

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / 25 + + - 62 + + col1 * 67 >= + col1
----

query II rowsort
SELECT DISTINCT col2 * - col1 * - - 39, 40 AS col2 FROM tab2
----
-120120
40
-151554
40
-45747
40

query I rowsort
SELECT DISTINCT + col2 * col2 * col0 * - 72 FROM tab1 WHERE NULL IS NULL
----
-21303720
-30296448
-33841152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 80 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - SUM( 11 ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9831
SELECT - SUM ( 11 ) FROM tab0 cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9832
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-9832
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL COUNT( + 71 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL COUNT ( + 71 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + col0, - 13 AS col2 FROM tab2 AS cor0
----
46
-13
64
-13
75
-13

query II rowsort
SELECT + col2 AS col1, + 98 FROM tab2 AS cor0
----
23
98
40
98
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT col0 DIV - 95 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT col0 / - 95 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT COUNT( * ) * - - 74 AS col0 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-9838
SELECT COUNT ( * ) * - - 74 AS col0 FROM tab2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT + ( + COUNT( * ) ) DIV MIN( + 41 ) * COUNT( * ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9839
SELECT + ( + COUNT ( * ) ) / MIN ( + 41 ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE NOT - col0 + - + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + - MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9841
SELECT + - MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + - MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9842
SELECT + - MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - col1 + + 48 + + col2 + - col2 * + col1 * col0 AS col2 FROM tab1 AS cor0
----
-24973
-290767
-68414

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT SUM( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT SUM ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT ALL CAST( - COUNT( DISTINCT - - 12 ) AS SIGNED ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL CAST ( - COUNT ( DISTINCT - - 12 ) AS INTEGER ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - MIN( 34 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-9846
SELECT - MIN ( 34 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 AND 25
----

query I rowsort
SELECT ALL + 4 * - col0 FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT col1 DIV col0 + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9850
SELECT col1 / col0 + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + 26 * + - col1 * - col0 + + + 65 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9852
SELECT - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT + + col1 * - - col0 + 15 + + + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
355
4201
678

skipif mysql # not compatible
query I rowsort label-9853
SELECT + + col1 * - - col0 + 15 + + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
355
4201
678

query I rowsort
SELECT DISTINCT + col0 * col1 + + 26 * 22 + 65 + col2 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 30 AS col0 FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9856
SELECT - 71 AS col0, + ( MAX( 24 ) ) FROM tab2 AS cor0 WHERE col0 + + - col1 + 99 * 18 + + col1 > + - 67
----
-71
24

skipif mysql # not compatible
query II rowsort label-9856
SELECT - 71 AS col0, + ( MAX ( 24 ) ) FROM tab2 AS cor0 WHERE col0 + + - col1 + 99 * 18 + + col1 > + - 67
----
-71
24

query II rowsort
SELECT ALL + col0, 77 + 85 * + col2 + 46 FROM tab2
----
46
2078
64
3523
75
5053

query I rowsort
SELECT DISTINCT + col0 - + - ( + + col2 ) AS col0 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT + 31 DIV + 81 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT + 31 / + 81 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 11 * - - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL 73 * + MAX( - + 63 ) AS col0 FROM tab1 cor0
----
-4599

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL 73 * + MAX ( - + 63 ) AS col0 FROM tab1 cor0
----
-4599

query I rowsort
SELECT DISTINCT + col1 - + + col1 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 77 * + - col1 * - 75 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + + col1 - - - col0 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL - + SUM( - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - + SUM ( - col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - + col2 * - - col1 + + 18 FROM tab1 cor0
----
-1326
-277
-3178

query II rowsort
SELECT DISTINCT col0, - 77 AS col0 FROM tab1
----
51
-77
85
-77
91
-77

query I rowsort
SELECT ALL + 99 + + col1 AS col1 FROM tab2
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL COUNT( * ) * + + 49 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL COUNT ( * ) * + + 49 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL SUM( + col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL SUM ( + col1 ) AS col1 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL - MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT ALL - 57 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-57
-3

skipif mysql # not compatible
query II rowsort label-9873
SELECT ALL - 57 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-57
-3

query II rowsort
SELECT ALL + 59 AS col2, 21 * + col1 * - + 9 * col2 FROM tab0 cor0
----
59
-18711
59
-39690
59
-719523

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9875
SELECT DISTINCT - col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9875
SELECT DISTINCT - col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 + + col0 col1 FROM tab2 AS cor0
----
-22
-4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 42 col0 FROM tab0
----
-1974
-4158
-420

query III rowsort
SELECT * FROM tab1 WHERE 66 IN ( 75 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT + COUNT( * ) * + 26 col0 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9879
SELECT DISTINCT + COUNT ( * ) * + 26 col0 FROM tab0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT 36 * + ( + col0 ) - + 99 DIV col1 FROM tab0
----
3128
3393
539

skipif mysql # not compatible
query I rowsort label-9880
SELECT 36 * + ( + col0 ) - + 99 / col1 FROM tab0
----
3128
3393
539

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9881
SELECT - AVG ( - 97 ) - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT - AVG ( - 97 ) - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT col1 / - col1 = ( + col2 - ( ( + col2 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT col1 / - col1 = ( + col2 - ( ( + col2 ) ) )
----
3

query I rowsort
SELECT DISTINCT - col2 * + 37 + - col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < ( 77 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 21 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 / + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 9 ) AS col0 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 22 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL COUNT( col1 ) * + COUNT( * ) - 66 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL COUNT ( col1 ) * + COUNT ( * ) - 66 FROM tab1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT + col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT + col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT + 28 DIV SUM( ( col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 28 / SUM ( ( col1 ) ) FROM tab1
----
0

query I rowsort
SELECT ALL + col1 * col2 + 79 AS col0 FROM tab2
----
1252
3159
3965

query I rowsort
SELECT col0 * - 94 AS col1 FROM tab0
----
-1410
-8178
-9118

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9896
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab0 WHERE ( + col0 ) NOT BETWEEN - col1 * - col2 + - 98 * ( + col2 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9896
SELECT CAST ( NULL AS REAL ) col2 FROM tab0 WHERE ( + col0 ) NOT BETWEEN - col1 * - col2 + - 98 * ( + col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT ALL col2 DIV 68 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL col2 / 68 FROM tab2
----
0
0
0

query I rowsort
SELECT - 69 + - col2 AS col2 FROM tab0 WHERE NOT + 42 <> - 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT DISTINCT - col0 * col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - col0 * col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 94 + col0 AS col1 FROM tab0
----
-7
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - SUM( ALL col2 ) - - COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - SUM ( ALL col2 ) - - COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
-220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 34 ) NOT IN ( col0 - + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + COUNT( * ) FROM tab0 AS cor0 JOIN tab0 ON ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT + COUNT ( * ) FROM tab0 AS cor0 JOIN tab0 ON ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT col0 * - CAST( 55 * col1 AS SIGNED ) FROM tab0 cor0
----
-100485
-5335
-66825

skipif mysql # not compatible
query I rowsort label-9905
SELECT col0 * - CAST ( 55 * col1 AS INTEGER ) FROM tab0 cor0
----
-100485
-5335
-66825

query I rowsort
SELECT ALL + 86 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT DISTINCT - 53 AS col2 FROM tab0 AS cor0 WHERE + CAST( - col0 AS SIGNED ) - 61 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT - 53 AS col2 FROM tab0 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) - 61 IS NULL
----

query I rowsort
SELECT + ( 97 ) AS col2 FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 BETWEEN + 94 / - col2 AND col1
----

query I rowsort
SELECT 56 * - col2 FROM tab1 AS cor0
----
-3304
-3808
-5376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT SUM( col2 ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT SUM ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0 WHERE ( + col2 ) <= ( + col2 )
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col0 ) / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT - CAST( + 33 AS SIGNED ) * 56 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
-1848
-1848
-1848

skipif mysql # not compatible
query I rowsort label-9914
SELECT - CAST ( + 33 AS INTEGER ) * 56 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
-1848
-1848
-1848

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + MAX( DISTINCT col0 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT + MAX ( DISTINCT col0 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL + COUNT( * ) + 37 + + 41 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + COUNT ( * ) + 37 + + 41 FROM tab0
----
81

query I rowsort
SELECT DISTINCT col2 + - + col2 + 52 * - col0 * + ( + col1 + col1 ) FROM tab2
----
-243984
-512512
-522600

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9920
SELECT * FROM tab2 AS cor0 WHERE ( col1 + col0 * + 89 ) NOT BETWEEN ( - col2 ) AND CAST( col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9920
SELECT * FROM tab2 AS cor0 WHERE ( col1 + col0 * + 89 ) NOT BETWEEN ( - col2 ) AND CAST ( col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT - col0 * + + CAST( - 45 AS SIGNED ) FROM tab0 AS cor0
----
3915
4365
675

skipif mysql # not compatible
query I rowsort label-9921
SELECT - col0 * + + CAST ( - 45 AS INTEGER ) FROM tab0 AS cor0
----
3915
4365
675

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > ( + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL - + ( - COUNT( * ) ) * 62 AS col0 FROM tab1 cor0
----
186

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - + ( - COUNT ( * ) ) * 62 AS col0 FROM tab1 cor0
----
186

query I rowsort
SELECT DISTINCT - col1 + + 88 FROM tab2
----
11
21
37

query I rowsort
SELECT ALL 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 60 + + col1 AS col1 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9928
SELECT ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + MAX( ALL + col2 ) + - COUNT( * ) col0 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT + MAX ( ALL + col2 ) + - COUNT ( * ) col0 FROM tab2
----
55

query I rowsort
SELECT col2 * + col1 * + col1 + + 87 + col1 * - col2 FROM tab0 AS cor0
----
304647
4287
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 10 = col0
----

query I rowsort
SELECT ALL - col2 - 12 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = ( col1 + - col0 )
----

query I rowsort
SELECT + col0 - + col2 FROM tab1 AS cor0 WHERE ( col0 / col0 ) NOT BETWEEN NULL AND - col2
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 3 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + ( 42 ) * col2 FROM tab1 AS cor0 WHERE NOT col1 <> + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 99 * - + col1 AS col1 FROM tab1
----
1386
4653
495

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9941
SELECT 63 * + + CAST( NULL AS DECIMAL ), col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9941
SELECT 63 * + + CAST ( NULL AS REAL ), col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + col1 * col0 + - - 56 AS col1 FROM tab2
----
2402
4984
5081

query I rowsort
SELECT 11 * - - col2 - 59 * + 65 - col2 AS col2 FROM tab0
----
-2845
-3365
-3735

query I rowsort
SELECT + 76 * - col2 - - + col0 - 77 * 98 FROM tab1
----
-11945
-12623
-14791

query I rowsort
SELECT 4 - - col1 + + col0 + + ( + col2 ) * - col2 AS col1 FROM tab2
----
-1455
-3218
-428

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT col2 DIV 1 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9946
SELECT col2 / 1 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + 51 * COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 51 * COUNT ( * ) FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 WHERE NOT - 36 BETWEEN col0 AND ( + ( + col0 ) * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 36 BETWEEN col0 AND ( + ( + col0 ) * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + MAX( ALL - - 94 ) col2 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9949
SELECT + MAX ( ALL - - 94 ) col2 FROM tab0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT - col0 DIV - col0 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT - col0 / - col0 AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT col1 * 89 AS col0 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT ( - col1 ) * col0 DIV - 34 FROM tab0
----
2
35
53

skipif mysql # not compatible
query I rowsort label-9952
SELECT ( - col1 ) * col0 / - 34 FROM tab0
----
2
35
53

query I rowsort
SELECT col2 * + 82 FROM tab1
----
4838
5576
7872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT ALL SUM( DISTINCT col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL SUM ( DISTINCT col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( ( - col2 ) ) - - 7 AS col0 FROM tab0 WHERE ( ( 8 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col2 * ( col0 ) + - col0 AND + col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col2 * ( col0 ) + - col0 AND + col0 + col0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / + col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - col0 * + ( - - col2 ) - 92 AS col0 FROM tab2 AS cor0
----
2468
4258
966

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE + 79 IN ( 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT col1 FROM tab2 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) IN ( - 18 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9960
SELECT col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) IN ( - 18 )
----
51
67
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 64 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + 38 FROM tab0 AS cor0
----
-49
-59
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT - 45 AS col0, + COUNT( * ) FROM tab2
----
-45
3

skipif mysql # not compatible
query II rowsort label-9963
SELECT - 45 AS col0, + COUNT ( * ) FROM tab2
----
-45
3

query I rowsort
SELECT DISTINCT - + 47 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - MIN( + + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9965
SELECT - MIN ( + + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL + MAX( + 36 ) * 2 AS col2 FROM tab0 WHERE NOT - - 92 * + col1 * - col2 BETWEEN NULL AND ( - + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + MAX ( + 36 ) * 2 AS col2 FROM tab0 WHERE NOT - - 92 * + col1 * - col2 BETWEEN NULL AND ( - + col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * + 84 >= - - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9968
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 * - CAST( NULL AS DECIMAL ) + col0 * + + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9968
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 * - CAST ( NULL AS REAL ) + col0 * + + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + ( col0 ) NOT IN ( - 66 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9970
SELECT + CAST( NULL AS DECIMAL ) + - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT + CAST ( NULL AS REAL ) + - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 + - col0 FROM tab1 AS cor0
----
-4
2
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col1 >= ( - col2 )
----

query I rowsort
SELECT + - 23 AS col1 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT DISTINCT CAST( 1 AS SIGNED ) + - MAX( ALL - 16 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT CAST ( 1 AS INTEGER ) + - MAX ( ALL - 16 ) FROM tab0
----
17

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL + 8 - + - col2 * + 6 * - + col2 FROM tab0 AS cor0
----
-13246
-58798
-592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT - + MAX( DISTINCT 35 ) AS col1 FROM tab2 AS cor0 WHERE 25 BETWEEN col0 + + + CAST( + 54 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT - + MAX ( DISTINCT 35 ) AS col1 FROM tab2 AS cor0 WHERE 25 BETWEEN col0 + + + CAST ( + 54 AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 0, + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9980
SELECT - - col1 + + - CAST( NULL AS SIGNED ) AS col1, - 11 FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

skipif mysql # not compatible
query II rowsort label-9980
SELECT - - col1 + + - CAST ( NULL AS INTEGER ) AS col1, - 11 FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) + - col0 * col2 col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + COUNT( * ) + + 68 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9982
SELECT + COUNT ( * ) + + 68 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL + col2 DIV - col1 - col2 FROM tab0 AS cor0
----
-10
-198
-47

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + col2 / - col1 - col2 FROM tab0 AS cor0
----
-10
-198
-47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * - 81 - - 47 - - 11 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + 71 AS col2 FROM tab1 AS cor0
----
4189
4828
6816

query II rowsort
SELECT ALL col0 AS col2, + ( + + col0 ) FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 * + col1 AS col2 FROM tab1
----
4298
479
796

query I rowsort
SELECT + 74 * - - 18 * + col0 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1409256
3409920
5794200

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT - col0 + - 39 * + col0 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT + MAX( 21 ) * - 4 + + - MIN( - + ( + + 74 ) ) + + 13 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT + MAX ( 21 ) * - 4 + + - MIN ( - + ( + + 74 ) ) + + 13 AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL 0 + + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL 0 + + COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 40 + + col0 FROM tab1
----
125
131
91

query I rowsort
SELECT ALL + 82 * col2 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT DISTINCT - 49 * - - col1 FROM tab1
----
-2303
-245
-686

