sqllogictest
Artifact Content
Not logged in

Artifact d4f4732dbf41fe5e6905631762d19761fde3fcaf:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT ALL + 23 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + 23 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + + 20 + - 16 col2
----
4

query I rowsort
SELECT + 34 - + 5
----
29

query I rowsort
SELECT + ( + ( - ( + + 46 ) ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - COUNT( * ) + 99 col1
----
98

skipif mysql # not compatible
query I rowsort label-4
SELECT - COUNT ( * ) + 99 col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 39 + - 72 AS col2
----
-33

query I rowsort
SELECT 77 * 93
----
7161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8
SELECT 70 AS col1, - CAST( NULL AS SIGNED )
----
70
NULL

skipif mysql # not compatible
query II rowsort label-8
SELECT 70 AS col1, - CAST ( NULL AS INTEGER )
----
70
NULL

query I rowsort
SELECT ALL - - 54 AS col2
----
54

query I rowsort
SELECT DISTINCT - + ( - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL 81 - + + COUNT( * ) + 24 * + + 73
----
1832

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL 81 - + + COUNT ( * ) + 24 * + + 73
----
1832

query II rowsort
SELECT - 56 AS col2, 75 AS col1
----
-56
75

query I rowsort
SELECT ALL ( - 31 ) col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-14
SELECT ALL CAST( NULL AS SIGNED ), ( + 56 ) AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-14
SELECT ALL CAST ( NULL AS INTEGER ), ( + 56 ) AS col2
----
NULL
56

query I rowsort
SELECT ALL - 67 col1
----
-67

query I rowsort
SELECT - - 64 * + 23 AS col0
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL + - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + - ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - MAX( ALL + - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-18
SELECT - MAX ( ALL + - 37 )
----
37

query I rowsort
SELECT + ( - + 32 ) col0
----
-32

query II rowsort
SELECT + 81, + 89 AS col0
----
81
89

query II rowsort
SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0
----
-3047
50

query I rowsort
SELECT DISTINCT + 81 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT CAST( 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT CAST ( 15 AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL - COUNT( - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL - COUNT ( - 77 ) AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT 90 DIV 90
----
1

skipif mysql # not compatible
query I rowsort label-26
SELECT 90 / 90
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT COUNT( * ) DIV 22 + + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-27
SELECT COUNT ( * ) / 22 + + - 9
----
-9

query I rowsort
SELECT + ( - ( - 64 ) ) AS col1
----
64

query II rowsort
SELECT ALL + 5 AS col1, + 72 AS col1
----
5
72

query I rowsort
SELECT 89 col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT 25 AS col1, - COUNT( ALL 71 )
----
25
-1

skipif mysql # not compatible
query II rowsort label-31
SELECT 25 AS col1, - COUNT ( ALL 71 )
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL MIN( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL MIN ( DISTINCT + 11 )
----
11

query I rowsort
SELECT - - ( + + 96 ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT ALL + - AVG ( + - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL + - AVG ( + - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT + 40 DIV + - 22 - 81 + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-35
SELECT + 40 / + - 22 - 81 + COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT - 68 * - 56
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - 81 + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-37
SELECT - 81 + COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL 57 * + ( - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL 57 * + ( - COUNT ( * ) )
----
-57

query I rowsort
SELECT DISTINCT 4 * 78 AS col2
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL + COUNT ( * ) * + 27
----
27

query I rowsort
SELECT DISTINCT - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL COUNT( * ) + 57 col0
----
58

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL COUNT ( * ) + 57 col0
----
58

query I rowsort
SELECT ALL 87 + + 45
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-44
SELECT 32 + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 96 * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-45
SELECT 96 * - COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT - 59 * - 87 AS col0
----
5133

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT COALESCE ( - ( + - ( - - 59 ) ), COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-47
SELECT COALESCE ( - ( + - ( - - 59 ) ), COUNT ( * ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL + SUM( - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + SUM ( - - 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL CASE 56 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 26 END
----
26

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL CASE 56 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 26 END
----
26

query I rowsort
SELECT - - 19 - - - 52
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-51
SELECT ALL + COUNT( * ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + COUNT ( * ) / + 81
----
0

query I rowsort
SELECT ALL 78 + + 37 AS col0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-53
SELECT CAST ( + 77 AS INTEGER ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-54
SELECT CAST( NULL AS SIGNED ) AS col1, 8 col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-54
SELECT CAST ( NULL AS INTEGER ) AS col1, 8 col0
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT + 34 DIV + 87 - - 94
----
94

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 34 / + 87 - - 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT + COUNT( * ) + - + 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-56
SELECT + COUNT ( * ) + - + 41 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT 73 * + COUNT( * ) + - 51 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-57
SELECT 73 * + COUNT ( * ) + - 51 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - MAX( - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-58
SELECT - MAX ( - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT + 35 DIV - NULLIF ( COUNT( * ), 71 )
----
-35

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + 35 / - NULLIF ( COUNT ( * ), 71 )
----
-35

query I rowsort
SELECT - - 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL SUM( - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL SUM ( - 33 ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-62
SELECT DISTINCT 55 col2, 24 DIV 60 AS col2
----
55
0

skipif mysql # not compatible
query II rowsort label-62
SELECT DISTINCT 55 col2, 24 / 60 AS col2
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + + MIN( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-63
SELECT + + MIN ( DISTINCT 96 )
----
96

query I rowsort
SELECT DISTINCT ( - + 73 )
----
-73

query I rowsort
SELECT DISTINCT 29 * ( + 44 )
----
1276

query I rowsort
SELECT DISTINCT 39 col1
----
39

query I rowsort
SELECT ALL 56 col1
----
56

query I rowsort
SELECT DISTINCT 61 * - + 67 AS col1
----
-4087

query I rowsort
SELECT ALL + 66 col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT COUNT( + 9 ) * - - CAST( - + 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT COUNT ( + 9 ) * - - CAST ( - + 2 AS INTEGER ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT COUNT( * ) * - - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT COUNT ( * ) * - - 67 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT 14 DIV - 3
----
-4

skipif mysql # not compatible
query I rowsort label-72
SELECT 14 / - 3
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL - - CAST( + 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - - CAST ( + 41 AS INTEGER ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT COUNT( * ) * + 24
----
24

skipif mysql # not compatible
query I rowsort label-74
SELECT COUNT ( * ) * + 24
----
24

query I rowsort
SELECT DISTINCT - - 62 col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-76
SELECT 60 DIV + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-76
SELECT 60 / + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL + - 52 * + 3 + - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + - 52 * + 3 + - COUNT ( * )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL - ( - COUNT( * ) ) * - - ( - ( - 77 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - ( - COUNT ( * ) ) * - - ( - ( - 77 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-79
SELECT ALL 97 AS col0, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-79
SELECT ALL 97 AS col0, COUNT ( * )
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-80
SELECT 45 * - COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT 84 * COUNT( * ) * + 49
----
4116

skipif mysql # not compatible
query I rowsort label-81
SELECT 84 * COUNT ( * ) * + 49
----
4116

query I rowsort
SELECT + ( - - 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT + NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + + 97
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - MIN( ALL - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - MIN ( ALL - 70 )
----
70

query I rowsort
SELECT - 67 + + - 8 + 40 * 40
----
1525

query I rowsort
SELECT DISTINCT NULLIF ( + 69, + 9 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + - COUNT( DISTINCT - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-88
SELECT + - COUNT ( DISTINCT - 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL + SUM( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL + SUM ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT + 69 * - 62 * COUNT( * )
----
-4278

skipif mysql # not compatible
query I rowsort label-90
SELECT + 69 * - 62 * COUNT ( * )
----
-4278

query I rowsort
SELECT DISTINCT + 1 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-92
SELECT + COUNT( * ) DIV 19 DIV + 23 AS col1, COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-92
SELECT + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL - ( + ( - COUNT( * ) ) ) + ( - + 76 )
----
-75

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - ( + ( - COUNT ( * ) ) ) + ( - + 76 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-94
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-95
SELECT ALL + + NULLIF ( + COUNT( * ), - ( + + 75 ) ) + + 16 DIV + + 96
----
1

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL + + NULLIF ( + COUNT ( * ), - ( + + 75 ) ) + + 16 / + + 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 55 - + + COUNT( * ) * - COUNT( * ) + 44
----
100

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 55 - + + COUNT ( * ) * - COUNT ( * ) + 44
----
100

query I rowsort
SELECT ALL - ( + - 35 ) AS col1
----
35

query I rowsort
SELECT 68 * + + 31 AS col2
----
2108

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT 26 AS col1, + COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-99
SELECT 26 AS col1, + COUNT ( * )
----
26
1

query I rowsort
SELECT DISTINCT - ( - 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT MAX( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT MAX ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT 27 * - - MAX( ALL + 89 ) AS col1
----
2403

skipif mysql # not compatible
query I rowsort label-102
SELECT 27 * - - MAX ( ALL + 89 ) AS col1
----
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + 20 + + 27 * + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 20 + + 27 * + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT 55 AS col0, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-104
SELECT 55 AS col0, COUNT ( * )
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT - + 69 + - MIN( 98 ) AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-105
SELECT - + 69 + - MIN ( 98 ) AS col2
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT - + CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT - - COUNT( * ) AS col0, 32
----
1
32

skipif mysql # not compatible
query II rowsort label-107
SELECT - - COUNT ( * ) AS col0, 32
----
1
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT CAST( - 38 AS SIGNED ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-108
SELECT CAST ( - 38 AS INTEGER ) col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT + CAST( NULL AS SIGNED ) * - 20 * - ( ( + ( + 47 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT + CAST ( NULL AS INTEGER ) * - 20 * - ( ( + ( + 47 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT CAST( + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-110
SELECT CAST ( + 42 AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL + - 19 - - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL + - 19 - - COUNT ( * )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-112
SELECT + - 12 AS col0, MIN( ALL - CAST( NULL AS SIGNED ) )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-112
SELECT + - 12 AS col0, MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
-12
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL + 42 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 42 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 34 * - 36
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL - CAST( NULL AS SIGNED ) * + - 37 + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 37 + + 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL MIN ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-117
SELECT + 16 * + COUNT ( * )
----
16

query I rowsort
SELECT DISTINCT - 47 + 51 col1
----
4

query I rowsort
SELECT DISTINCT 25 * + 92
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - MAX( DISTINCT + + ( - 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-120
SELECT - MAX ( DISTINCT + + ( - 34 ) )
----
34

query I rowsort
SELECT ( 18 ) AS col1
----
18

query I rowsort
SELECT + NULLIF ( 6, - 34 ) * ( 97 )
----
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT CAST( + CAST( MIN( 34 ) AS SIGNED ) AS SIGNED ) AS col1
----
34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-124
SELECT COUNT( * ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT COUNT ( * ) / 89 AS col0
----
0

query I rowsort
SELECT ALL + + 93 + - 12 AS col2
----
81

query I rowsort
SELECT ALL 57 + - 72 * 4 col0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - MAX( DISTINCT 89 ) + - 8
----
-97

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - MAX ( DISTINCT 89 ) + - 8
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT COUNT ( * ) * - 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) + 0 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 0 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL - - 90 AS col1
----
90

query I rowsort
SELECT ALL - 86 + - 9 * + 6
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL - + MAX( DISTINCT 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - + MAX ( DISTINCT 32 )
----
-32

query I rowsort
SELECT 67 + - 10 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL SUM( ALL + - 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL SUM ( ALL + - 64 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL SUM( + - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL SUM ( + - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - - MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-136
SELECT - - MIN ( 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-137
SELECT + CAST( + - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-137
SELECT + CAST ( + - 29 AS INTEGER )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT ALL + 36 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + 36 / - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-139
SELECT ALL - CAST( + CAST( - - SUM( ALL 47 ) AS SIGNED ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - CAST ( + CAST ( - - SUM ( ALL 47 ) AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT + + 61 - - ( - - COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT + + 61 - - ( - - COUNT ( * ) ) AS col2
----
62

query I rowsort
SELECT ALL + 85 * + ( + 3 ) AS col1
----
255

query I rowsort
SELECT 2 + + + 87 + ( 21 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT COUNT( * ) * 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-143
SELECT COUNT ( * ) * 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT DISTINCT COALESCE ( + MAX( ALL + 27 ), + COUNT( * ), - 9 * COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT COALESCE ( + MAX ( ALL + 27 ), + COUNT ( * ), - 9 * COUNT ( * ) )
----
27

query I rowsort
SELECT - ( - + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - 75 - + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-146
SELECT - 75 - + COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT - 2 + + - 85 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT COALESCE ( + COUNT( * ), + 18, + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-148
SELECT COALESCE ( + COUNT ( * ), + 18, + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-149
SELECT ALL + SUM( ALL - 33 ), - ( - 12 ) + MIN( 77 ) AS col1
----
-33
89

skipif mysql # not compatible
query II rowsort label-149
SELECT ALL + SUM ( ALL - 33 ), - ( - 12 ) + MIN ( 77 ) AS col1
----
-33
89

query I rowsort
SELECT - + 73 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-151
SELECT CAST ( 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT + ( + COALESCE ( + 95, + ( - ( + ( - MIN( - 72 ) ) ) ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-152
SELECT + ( + COALESCE ( + 95, + ( - ( + ( - MIN ( - 72 ) ) ) ) ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + SUM( - - 98 ) * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-153
SELECT + SUM ( - - 98 ) * - COUNT ( * )
----
-98

query II rowsort
SELECT - 97, + 39 AS col0
----
-97
39

query I rowsort
SELECT ALL - + 81 + + 21 AS col1
----
-60

query I rowsort
SELECT ALL 53 + - - 11 * + + 70
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT 53 * + ( COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-157
SELECT 53 * + ( COUNT ( * ) ) AS col1
----
53

query I rowsort
SELECT 71 + 57
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - - COUNT( + ( 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - - COUNT ( + ( 82 ) ) AS col1
----
1

query I rowsort
SELECT + ( - - 21 ) AS col1
----
21

query I rowsort
SELECT DISTINCT 93 col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT DISTINCT + 74 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + 74 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 * - ( - 43 )
----
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + + 29 + - MIN( - ( + 16 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-164
SELECT + + 29 + - MIN ( - ( + 16 ) ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT ALL 50 AS col1, - MAX( - + 48 ) AS col0
----
50
48

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL 50 AS col1, - MAX ( - + 48 ) AS col0
----
50
48

query I rowsort
SELECT - 25 * - 23 col1
----
575

query I rowsort
SELECT + 73 + - - ( - 27 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL MAX( - - ( + 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL MAX ( - - ( + 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT 77 * + ( - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-169
SELECT 77 * + ( - COUNT ( * ) )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-170
SELECT 3 DIV + 40, - 66 AS col0
----
0
-66

skipif mysql # not compatible
query II rowsort label-170
SELECT 3 / + 40, - 66 AS col0
----
0
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL - - 9 * + 38 * COUNT( * ) AS col2
----
342

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL - - 9 * + 38 * COUNT ( * ) AS col2
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL + + COUNT( * ) * + + ( - ( + 89 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + + COUNT ( * ) * + + ( - ( + 89 ) ) AS col2
----
-89

query I rowsort
SELECT ALL - + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT 89 + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-174
SELECT 89 + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + MAX( 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-175
SELECT + MAX ( 88 ) AS col2
----
88

query I rowsort
SELECT ALL - 11 col2
----
-11

query I rowsort
SELECT + ( 50 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT MIN( DISTINCT + + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-178
SELECT MIN ( DISTINCT + + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT MAX( ALL + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT MAX ( ALL + 4 ) AS col0
----
4

query I rowsort
SELECT ALL ( - 20 ) AS col0
----
-20

query I rowsort
SELECT - - ( - 67 ) - 12
----
-79

query I rowsort
SELECT - + 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - + COUNT( * ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-183
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL 73 + - 95 DIV + 62
----
72

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL 73 + - 95 / + 62
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT SUM( DISTINCT + - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-185
SELECT SUM ( DISTINCT + - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL - NULLIF ( COUNT( * ), + + 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - NULLIF ( COUNT ( * ), + + 88 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-187
SELECT DISTINCT - ( + 61 ) + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - ( + 61 ) + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT + MAX( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + MAX ( DISTINCT + 20 ) AS col2
----
20

query I rowsort
SELECT DISTINCT - ( 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL + MAX( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + MAX ( 66 )
----
66

query I rowsort
SELECT ALL - 75 * - + 28
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL + SUM( 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + SUM ( 69 ) AS col1
----
69

query I rowsort
SELECT - 77 + + 15 * 88 AS col1
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT ALL + - COALESCE ( + 25, - + COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL + - COALESCE ( + 25, - + COUNT ( * ) ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-195
SELECT + MAX ( ALL - 38 )
----
-38

query I rowsort
SELECT - ( + + 49 )
----
-49

query I rowsort
SELECT ALL 91 + - 48 AS col1
----
43

query I rowsort
SELECT DISTINCT 33 * + 19
----
627

query I rowsort
SELECT ALL + ( - 38 ) * + - 17
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT 84 * + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-200
SELECT 84 * + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + 83 * - + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + 83 * - + COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - ( - ( + + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - ( - ( + + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL - MIN( COALESCE ( + 14, - 29 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - MIN ( COALESCE ( + 14, - 29 ) ) AS col0
----
-14

query I rowsort
SELECT 0 * - 4 AS col1
----
0

query I rowsort
SELECT 15 + 55 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - MAX( DISTINCT - + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-206
SELECT - MAX ( DISTINCT - + 69 ) AS col2
----
69

query I rowsort
SELECT DISTINCT + ( + + 29 ) AS col1
----
29

query I rowsort
SELECT + ( - 20 ) + - + 84 * + + 16 AS col1
----
-1364

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - 37 + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-209
SELECT - 37 + + COUNT ( * )
----
-36

query I rowsort
SELECT - 13 + + + 78 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 77 + + - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-211
SELECT - 77 + + - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT ( - 46 )
----
-46

query I rowsort
SELECT DISTINCT + + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT SUM( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-214
SELECT SUM ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - COUNT( DISTINCT 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-215
SELECT - COUNT ( DISTINCT 86 )
----
-1

query I rowsort
SELECT DISTINCT 61 * + 7 * + 87
----
37149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-217
SELECT - CAST( + - 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-217
SELECT - CAST ( + - 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL COUNT( + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL COUNT ( + 36 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT + 71 DIV - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-219
SELECT + 71 / - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-220
SELECT DISTINCT COUNT( + - 42 ) DIV + + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT COUNT ( + - 42 ) / + + 49 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-221
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - CAST ( NULL AS REAL ) * + + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-222
SELECT 9 DIV - - SUM( 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-222
SELECT 9 / - - SUM ( 29 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT SUM( + 92 ) * + - 72
----
-6624

skipif mysql # not compatible
query I rowsort label-223
SELECT SUM ( + 92 ) * + - 72
----
-6624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-224
SELECT 64 + CAST( NULL AS SIGNED ), + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-224
SELECT 64 + CAST ( NULL AS INTEGER ), + 10 AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - ( + NULLIF ( + COUNT( * ), - 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - ( + NULLIF ( + COUNT ( * ), - 91 ) )
----
-1

query I rowsort
SELECT + - 22 * - 47
----
1034

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

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

query I rowsort
SELECT DISTINCT + ( + 66 )
----
66

query I rowsort
SELECT - - ( + + 87 )
----
87

query II rowsort
SELECT ALL 32 AS col2, + 6
----
32
6

query I rowsort
SELECT + ( 89 ) AS col2
----
89

query I rowsort
SELECT - 72 * + 92 AS col2
----
-6624

query I rowsort
SELECT DISTINCT + + 77 AS col2
----
77

query I rowsort
SELECT ALL - ( - 45 )
----
45

query II rowsort
SELECT 60 AS col1, - 92
----
60
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT 53 + + CAST( NULL AS SIGNED ) * + ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT 53 + + CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT - - COUNT( 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT - - COUNT ( 87 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-239
SELECT + COUNT ( * ) * - 76
----
-76

query I rowsort
SELECT - ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT ALL 32 DIV + 47 + - 32 * - - COUNT( * ) DIV 86 + + + ( - 49 ) * - 79
----
3871

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 32 / + 47 + - 32 * - - COUNT ( * ) / 86 + + + ( - 49 ) * - 79
----
3871

query I rowsort
SELECT ALL + 79 * 64 AS col0
----
5056

query I rowsort
SELECT - 22 - 22
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT NULLIF ( NULLIF ( + 79, + COUNT( * ) ), + 33 )
----
79

skipif mysql # not compatible
query I rowsort label-244
SELECT NULLIF ( NULLIF ( + 79, + COUNT ( * ) ), + 33 )
----
79

query I rowsort
SELECT - - 65 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - - MIN( - 16 ) - - - 35 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-246
SELECT - - MIN ( - 16 ) - - - 35 AS col0
----
-51

query I rowsort
SELECT ALL - - 87 * - 40
----
-3480

query I rowsort
SELECT ALL 82 + + + 1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT 65 + - + COUNT( * ) + 45 * - 84 AS col2
----
-3716

skipif mysql # not compatible
query I rowsort label-249
SELECT 65 + - + COUNT ( * ) + 45 * - 84 AS col2
----
-3716

query I rowsort
SELECT 72 + ( - 45 ) AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT 69 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT 69 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT + COUNT( * ), + 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-252
SELECT + COUNT ( * ), + 52 AS col2
----
1
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT ALL - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL - - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - ( 62 ), - 28 col1
----
-62
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT - + SUM( 78 ) * - 88
----
6864

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT - + SUM ( 78 ) * - 88
----
6864

query I rowsort
SELECT ALL - + ( - 51 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT 4 DIV + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-257
SELECT 4 / + 10 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT + COUNT( * ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-258
SELECT + COUNT ( * ) + + 9
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT ALL COUNT( * ), CAST( + + 72 AS SIGNED ) AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL COUNT ( * ), CAST ( + + 72 AS INTEGER ) AS col2
----
1
72

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT ALL + 20 DIV 3
----
6

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 20 / 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL MAX( ALL 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL MAX ( ALL 15 ) AS col0
----
15

query I rowsort
SELECT - 42 + - 27
----
-69

query I rowsort
SELECT ALL + 30 * - 34 col0
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT CAST( NULL AS SIGNED ), - COUNT( DISTINCT - 22 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-264
SELECT CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT - 22 ) AS col2
----
NULL
-1

query I rowsort
SELECT ALL + + 92 AS col1
----
92

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

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

query I rowsort
SELECT ALL + 98 + + 31 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT + - COUNT( * ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-268
SELECT + - COUNT ( * ) + - 40
----
-41

query I rowsort
SELECT ALL - - 33 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT CAST( + + 7 AS SIGNED ) * 12 + SUM( DISTINCT - + 69 ) + - + 4 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-270
SELECT CAST ( + + 7 AS INTEGER ) * 12 + SUM ( DISTINCT - + 69 ) + - + 4 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 31 * + 56
----
1736

query I rowsort
SELECT DISTINCT - - 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL - + MAX( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - + MAX ( DISTINCT 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-275
SELECT CAST( NULL AS SIGNED ) AS col0, + 88 col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-275
SELECT CAST ( NULL AS INTEGER ) AS col0, + 88 col1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - COUNT( * ) + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-276
SELECT - COUNT ( * ) + - 42
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL - CAST( - ( - ( - 52 ) ) AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - CAST ( - ( - ( - 52 ) ) AS INTEGER ) AS col0
----
52

query I rowsort
SELECT DISTINCT - 16 + + 19 + - - 1 col1
----
4

query II rowsort
SELECT - 53, + ( 45 ) col0
----
-53
45

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + + 90 * + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-280
SELECT + + 90 * + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + - MAX( DISTINCT - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + - MAX ( DISTINCT - 53 )
----
53

query I rowsort
SELECT DISTINCT ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL - 10 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - 10 + COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT + 29 * + 52
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL + COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + COUNT ( * ) * 64
----
64

query I rowsort
SELECT DISTINCT - 45 col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-287
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + 22 * + 71
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT COUNT( * ) + + ( 1 )
----
2

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT COUNT ( * ) + + ( 1 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT DISTINCT ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT DISTINCT SUM( - ( 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT SUM ( - ( 7 ) )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT ALL - SUM( ALL + 28 ) * - + 52 + - 8 DIV 13 * - 85 - + ( - 67 )
----
1523

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - SUM ( ALL + 28 ) * - + 52 + - 8 / 13 * - 85 - + ( - 67 )
----
1523

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT + ( + COUNT( * ) ) * + 85 * + 51
----
4335

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + ( + COUNT ( * ) ) * + 85 * + 51
----
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL + MAX( - - 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + MAX ( - - 92 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-295
SELECT ALL + CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL + CAST ( - 7 AS INTEGER )
----
-7

query I rowsort
SELECT DISTINCT + ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT + MAX( ALL 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-297
SELECT + MAX ( ALL 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL ( + SUM( + 59 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL ( + SUM ( + 59 ) ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + SUM( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-299
SELECT + SUM ( + 75 )
----
75

query II rowsort
SELECT ALL 69 AS col0, + 48
----
69
48

query I rowsort
SELECT DISTINCT + + 1 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT ALL CAST( COUNT( ALL - - 13 ) AS SIGNED ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL CAST ( COUNT ( ALL - - 13 ) AS INTEGER ) + - 63
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - 24 * + - COUNT( * ) * ( + 92 )
----
2208

skipif mysql # not compatible
query I rowsort label-303
SELECT - 24 * + - COUNT ( * ) * ( + 92 )
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + + COUNT( 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-304
SELECT + + COUNT ( 98 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + 22 * + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + 22 * + COUNT ( * ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT 22 DIV + 55 * + - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT 22 / + 55 * + - 35 AS col2
----
0

query I rowsort
SELECT DISTINCT + 4 * - 36 AS col2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT 37 DIV + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-310
SELECT 37 / + + COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT ALL - CAST( - ( CAST( 52 AS SIGNED ) ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - CAST ( - ( CAST ( 52 AS INTEGER ) ) AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT + MIN( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-312
SELECT + MIN ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL - + COUNT( 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - + COUNT ( 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + 84 * + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-314
SELECT + 84 * + + COUNT ( * )
----
84

query I rowsort
SELECT DISTINCT + 73 * - - 45
----
3285

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL COUNT( * ) * - MIN( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL COUNT ( * ) * - MIN ( - 79 )
----
79

query I rowsort
SELECT - ( + 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT - CAST( - + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-318
SELECT - CAST ( - + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 32 - + 53 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT + 88 DIV + - 83 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-320
SELECT + 88 / + - 83 AS col0
----
-1

query I rowsort
SELECT ALL - + ( - ( 82 ) ) AS col2
----
82

query II rowsort
SELECT 85 AS col0, + 8 AS col0
----
85
8

query I rowsort
SELECT ALL 83 - + + 16
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT 76 DIV - - 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-324
SELECT 76 / - - 66 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT COUNT( ALL - + 66 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-325
SELECT COUNT ( ALL - + 66 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ( 40 ) - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-326
SELECT ( 40 ) - - COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT CAST( NULL AS SIGNED ) + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT CAST ( NULL AS INTEGER ) + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 37 + + - 54
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT 85 - + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-329
SELECT 85 - + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 92 * + 39 AS col2
----
3588

query I rowsort
SELECT 75 + - + ( + 84 ) AS col1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT DISTINCT 42 AS col0, COUNT( * ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-333
SELECT DISTINCT 42 AS col0, COUNT ( * ) AS col0
----
42
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-334
SELECT ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( + + 74 ) col0
----
74

query I rowsort
SELECT ALL + ( + + 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT - 46 * - COUNT( * ) + - COALESCE ( + - 94, - ( 20 ) ) + CAST( + - MAX( 16 ) AS SIGNED )
----
124

skipif mysql # not compatible
query I rowsort label-337
SELECT - 46 * - COUNT ( * ) + - COALESCE ( + - 94, - ( 20 ) ) + CAST ( + - MAX ( 16 ) AS INTEGER )
----
124

query I rowsort
SELECT + 13 + + 65 + 6
----
84

query I rowsort
SELECT DISTINCT - 28 + - 34 * 95 * - 96 AS col1
----
310052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) + 19 * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + 19 * + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT COUNT( * ) + + 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-341
SELECT COUNT ( * ) + + 42 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT 42 + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-342
SELECT 42 + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - MIN( 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-343
SELECT - MIN ( 43 )
----
-43

query I rowsort
SELECT DISTINCT 86 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT + 96 + NULLIF ( COUNT( * ), ( - 11 ) ) * - 0 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT + 96 + NULLIF ( COUNT ( * ), ( - 11 ) ) * - 0 AS col2
----
96

query I rowsort
SELECT ALL - ( 68 ) AS col2
----
-68

query I rowsort
SELECT - 65 * + 67 col2
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL + + 72 * + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + + 72 * + COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ALL + MIN( ALL ( + ( 21 ) ) ) * + 18
----
378

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL + MIN ( ALL ( + ( 21 ) ) ) * + 18
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + SUM( ALL + 21 ) + 85
----
106

skipif mysql # not compatible
query I rowsort label-350
SELECT + SUM ( ALL + 21 ) + 85
----
106

query I rowsort
SELECT + ( 18 ) AS col2
----
18

query I rowsort
SELECT ALL + + 20 * 91 * + 71
----
129220

query I rowsort
SELECT DISTINCT + 48 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT - - SUM( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-354
SELECT - - SUM ( 79 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT ALL + CASE WHEN NOT + CAST( + 96 AS SIGNED ) <> ( NULL ) THEN + 60 END / - CAST( + 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + CASE WHEN NOT + CAST ( + 96 AS INTEGER ) <> ( NULL ) THEN + 60 END / - CAST ( + 93 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT + CAST( NULL AS SIGNED ) + + + 48 * COUNT( * ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT + CAST ( NULL AS INTEGER ) + + + 48 * COUNT ( * ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT COUNT( * ) AS col2, - 19 AS col2
----
1
-19

skipif mysql # not compatible
query II rowsort label-357
SELECT COUNT ( * ) AS col2, - 19 AS col2
----
1
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT ALL + COUNT( * ) + + - ( - - CAST( - CAST( + 80 AS SIGNED ) AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + COUNT ( * ) + + - ( - - CAST ( - CAST ( + 80 AS INTEGER ) AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + 90 - + - COUNT( * ) - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-359
SELECT + 90 - + - COUNT ( * ) - COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL - + COUNT( * ) + - - 97
----
96

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - + COUNT ( * ) + - - 97
----
96

query I rowsort
SELECT ALL - 47 * 21 AS col2
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT 91 + COUNT( + 11 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-362
SELECT 91 + COUNT ( + 11 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 36 - + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-363
SELECT 36 - + COUNT ( * ) AS col2
----
35

query I rowsort
SELECT ALL 55 + - - 86 AS col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 22 + + 21 / + + CAST( - 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 22 + + 21 / + + CAST ( - 44 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT + SUM( DISTINCT + + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT + SUM ( DISTINCT + + 49 )
----
49

query I rowsort
SELECT ALL + - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - + SUM( ALL ( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-368
SELECT - + SUM ( ALL ( - 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL + COUNT( * ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL + COUNT ( * ) + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - MAX( - 9 ) * 41
----
369

skipif mysql # not compatible
query I rowsort label-370
SELECT - MAX ( - 9 ) * 41
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL COUNT( * ) + 92 - 90
----
3

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL COUNT ( * ) + 92 - 90
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT DISTINCT CAST( + CAST( + + 30 AS SIGNED ) AS SIGNED ) + - 53 * - + 81 AS col0
----
4323

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT CAST ( + CAST ( + + 30 AS INTEGER ) AS INTEGER ) + - 53 * - + 81 AS col0
----
4323

query I rowsort
SELECT ALL - + 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT COUNT( * ) - - + 73 * 43 * + NULLIF ( - 64, - COUNT( * ) ) AS col2
----
-200895

skipif mysql # not compatible
query I rowsort label-374
SELECT COUNT ( * ) - - + 73 * 43 * + NULLIF ( - 64, - COUNT ( * ) ) AS col2
----
-200895

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - COUNT( * ) + + MAX( - + 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - COUNT ( * ) + + MAX ( - + 44 )
----
-45

query I rowsort
SELECT DISTINCT - ( + - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-377
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 39
----
NULL

query II rowsort
SELECT 46 AS col0, + 4 AS col2
----
46
4

query I rowsort
SELECT ALL - - ( + 71 ) * + + 97
----
6887

query I rowsort
SELECT NULLIF ( - 27, - 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT - - SUM( ALL 76 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-381
SELECT - - SUM ( ALL 76 ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL + NULLIF ( - + 89, - - COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + NULLIF ( - + 89, - - COUNT ( * ) )
----
-89

query I rowsort
SELECT DISTINCT + 18 col2
----
18

query I rowsort
SELECT DISTINCT + ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - - SUM( - ( + + 55 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-385
SELECT - - SUM ( - ( + + 55 ) ) AS col0
----
-55

query I rowsort
SELECT ALL + 97 + 10
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-387
SELECT + CAST( COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-387
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col1
----
1

query I rowsort
SELECT + 22 * + 77 AS col1
----
1694

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT ALL COUNT( * ) col0, - 16
----
1
-16

skipif mysql # not compatible
query II rowsort label-389
SELECT ALL COUNT ( * ) col0, - 16
----
1
-16

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

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + ( + ( + - COUNT ( * ) ) ) / + 22 AS col2
----
0

query II rowsort
SELECT 86, - 95 AS col2
----
86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL + MIN( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + MIN ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT ALL 64 + + + 53
----
117

query I rowsort
SELECT - - 75 col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ( - CAST( CAST( - + 76 AS SIGNED ) AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-396
SELECT ( - CAST ( CAST ( - + 76 AS INTEGER ) AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - COUNT( + 18 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-397
SELECT - COUNT ( + 18 ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL - COUNT( * ) * ( + - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - COUNT ( * ) * ( + - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 39 + + 25 AS col0
----
64

query I rowsort
SELECT 54 - - 1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - COUNT( * ) * - - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-402
SELECT - COUNT ( * ) * - - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT - 60 AS col1, COUNT( 18 ) col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-403
SELECT - 60 AS col1, COUNT ( 18 ) col0
----
-60
1

query I rowsort
SELECT DISTINCT - 6 + - 46
----
-52

query I rowsort
SELECT - 86 + - - 30 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 58 * + + ( + 36 )
----
2088

query I rowsort
SELECT ALL + + ( - ( - 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL - 36 - - MIN( DISTINCT COALESCE ( 12, - 22 ) ) + + 93 * - 5 AS col1
----
-489

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - 36 - - MIN ( DISTINCT COALESCE ( 12, - 22 ) ) + + 93 * - 5 AS col1
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL + + MIN( DISTINCT + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + + MIN ( DISTINCT + 45 )
----
45

query I rowsort
SELECT ALL + + 53 col2
----
53

query I rowsort
SELECT DISTINCT + 30 * + - 90
----
-2700

query I rowsort
SELECT ALL + 64 * - 18 AS col0
----
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT ALL - 29 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - 29 / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT + ( + COUNT( * ) ) * - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + ( + COUNT ( * ) ) * - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT - ( + MAX( DISTINCT 81 ) ) * 75 + + 52
----
-6023

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - ( + MAX ( DISTINCT 81 ) ) * 75 + + 52
----
-6023

query I rowsort
SELECT DISTINCT - 25 * 7
----
-175

query I rowsort
SELECT - - 18 * - 7 - 54 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - COUNT( * ) + - - 59 + - 52 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - COUNT ( * ) + - - 59 + - 52 AS col1
----
6

query I rowsort
SELECT ALL + - 65 + - 63 AS col2
----
-128

query I rowsort
SELECT ALL + 92 + + 17
----
109

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

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL - CAST ( + + 20 AS INTEGER )
----
-20

query I rowsort
SELECT + NULLIF ( - 46, 31 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT + AVG ( CAST( NULL AS SIGNED ) ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) * - 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL 6 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL 6 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + ( - - MIN( ALL 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-426
SELECT + ( - - MIN ( ALL 85 ) )
----
85

query I rowsort
SELECT ALL 70 * + 76
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT + - 8 * - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + - 8 * - COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT COUNT( * ) AS col1, COUNT( * ) * - 41 AS col0
----
1
-41

skipif mysql # not compatible
query II rowsort label-429
SELECT COUNT ( * ) AS col1, COUNT ( * ) * - 41 AS col0
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL - 60 - + - COUNT( - 81 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - 60 - + - COUNT ( - 81 ) AS col2
----
-59

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

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

query I rowsort
SELECT - - 94 col1
----
94

query I rowsort
SELECT - 87 - 70 AS col1
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - MAX( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-434
SELECT - MAX ( 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT + - CAST( 96 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-435
SELECT + - CAST ( 96 AS INTEGER ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT + - MIN( ALL + + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + - MIN ( ALL + + 63 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT + - COUNT( * ) DIV + - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT + - COUNT ( * ) / + - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - ( + COUNT( * ) ) - + 73 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-438
SELECT - ( + COUNT ( * ) ) - + 73 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT + COUNT( * ) - + 63
----
-62

skipif mysql # not compatible
query I rowsort label-439
SELECT + COUNT ( * ) - + 63
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT SUM( ALL - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT SUM ( ALL - 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT 19 col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT + COUNT( * ) DIV ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( * ) / ( - 98 )
----
0

query I rowsort
SELECT DISTINCT - + 91 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT MIN( DISTINCT + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-444
SELECT MIN ( DISTINCT + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT COUNT( * ) + + 32 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT COUNT ( * ) + + 32 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 20 col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + COUNT( ALL + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-448
SELECT + COUNT ( ALL + 52 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT CAST( NULL AS SIGNED ) * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT CAST ( NULL AS INTEGER ) * + + 35
----
NULL

query I rowsort
SELECT + 43 * 74 + - 83 AS col0
----
3099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT 27 * + CAST( 11 AS SIGNED )
----
297

skipif mysql # not compatible
query I rowsort label-451
SELECT 27 * + CAST ( 11 AS INTEGER )
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - COUNT( * ) * - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-452
SELECT - COUNT ( * ) * - 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL + - 40 * + + 50 + COUNT( * ) col1
----
-1999

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + - 40 * + + 50 + COUNT ( * ) col1
----
-1999

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - - 19 + - + MIN( + 65 )
----
-46

skipif mysql # not compatible
query I rowsort label-454
SELECT - - 19 + - + MIN ( + 65 )
----
-46

query I rowsort
SELECT ALL + 58 * - 1 * - 73 + - 92 AS col2
----
4142

query I rowsort
SELECT NULLIF ( + + 88, 80 ) col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT COUNT( * ), + 42 * + + 98 AS col0
----
1
4116

skipif mysql # not compatible
query II rowsort label-457
SELECT COUNT ( * ), + 42 * + + 98 AS col0
----
1
4116

query I rowsort
SELECT + 12 + + 42
----
54

query I rowsort
SELECT DISTINCT - 44 col1
----
-44

query I rowsort
SELECT + + 28 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL + MIN( + CAST( + 2 AS SIGNED ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + MIN ( + CAST ( + 2 AS INTEGER ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + - SUM( ALL - - ( + - 31 ) ) * - ( - 36 ) col0
----
1116

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + - SUM ( ALL - - ( + - 31 ) ) * - ( - 36 ) col0
----
1116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-463
SELECT 87 * NULLIF ( + CAST( NULL AS DECIMAL ), - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT 87 * NULLIF ( + CAST ( NULL AS REAL ), - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT - 30 AS col1, - SUM( DISTINCT - 86 ) AS col0
----
-30
86

skipif mysql # not compatible
query II rowsort label-464
SELECT - 30 AS col1, - SUM ( DISTINCT - 86 ) AS col0
----
-30
86

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT DISTINCT - COUNT( * ) - + - 83
----
82

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - COUNT ( * ) - + - 83
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT 80 - MAX( DISTINCT + 26 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT 80 - MAX ( DISTINCT + 26 ) AS col2
----
54

query I rowsort
SELECT + 21 * 17
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL + SUM( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + SUM ( DISTINCT + 12 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT + 48 DIV + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-469
SELECT + 48 / + COUNT ( * ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT + 77 DIV + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT + 77 / + 97 col2
----
0

query I rowsort
SELECT DISTINCT + 96 col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT ALL - + 13 DIV + 57 * 61
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL - + 13 / + 57 * 61
----
0

query I rowsort
SELECT - - 84 * + 71 AS col2
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - MAX( - + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-474
SELECT - MAX ( - + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT + - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-475
SELECT + - COUNT ( * ) + - 61
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-476
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + + + 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + + 66 AS col1
----
67

query I rowsort
SELECT ( - + 39 ) AS col1
----
-39

query I rowsort
SELECT ALL + 82 col1
----
82

query I rowsort
SELECT 65 * - 0
----
0

query I rowsort
SELECT 71 + - 56 * + - 81 col1
----
4607

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT - COUNT( ALL - - 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - COUNT ( ALL - - 84 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - ( MIN( + - 70 ) ) + + 47 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-483
SELECT - ( MIN ( + - 70 ) ) + + 47 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT MIN( DISTINCT + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-484
SELECT MIN ( DISTINCT + + 59 )
----
59

query I rowsort
SELECT ALL - NULLIF ( - 8, + 95 ) AS col2
----
8

query I rowsort
SELECT + ( 67 ) * - 60
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL MIN( - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL MIN ( - - 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-488
SELECT - CAST( + ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-488
SELECT - CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT - 57 * COUNT( * ) AS col2, + COUNT( * )
----
-57
1

skipif mysql # not compatible
query II rowsort label-489
SELECT - 57 * COUNT ( * ) AS col2, + COUNT ( * )
----
-57
1

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT ALL + 95 col0, SUM( ALL - 86 )
----
95
-86

skipif mysql # not compatible
query II rowsort label-490
SELECT ALL + 95 col0, SUM ( ALL - 86 )
----
95
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT COUNT( - + 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-491
SELECT COUNT ( - + 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT MIN( DISTINCT - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-492
SELECT MIN ( DISTINCT - 38 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT DISTINCT + + 22 - - 75 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + + 22 - - 75 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 9 col2
----
-9

query I rowsort
SELECT DISTINCT - - 16 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT ALL - 82 DIV 39 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - 82 / 39 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 9 + - 87 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - 21 + - 58 * - MAX( ( + + 50 ) )
----
2879

skipif mysql # not compatible
query I rowsort label-498
SELECT - 21 + - 58 * - MAX ( ( + + 50 ) )
----
2879

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - SUM( 37 ) - 33
----
-70

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - SUM ( 37 ) - 33
----
-70

query II rowsort
SELECT ALL 44 AS col0, 67
----
44
67

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + + COUNT( - 48 ) + + 5 * - 0 + - 88 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-501
SELECT + + COUNT ( - 48 ) + + 5 * - 0 + - 88 * + - COUNT ( * )
----
89

query I rowsort
SELECT + ( + 57 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL - MIN( 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - MIN ( 30 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-504
SELECT - - COUNT( * ) * - 4, + ( 39 ) AS col0
----
-4
39

skipif mysql # not compatible
query II rowsort label-504
SELECT - - COUNT ( * ) * - 4, + ( 39 ) AS col0
----
-4
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), COUNT( DISTINCT - ( + 31 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), COUNT ( DISTINCT - ( + 31 ) ) ) AS col0
----
NULL

query I rowsort
SELECT ( - + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ( COUNT( DISTINCT 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-507
SELECT ( COUNT ( DISTINCT 93 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-508
SELECT ALL + 50 AS col1, - CAST( - ( + - 48 ) AS SIGNED )
----
50
-48

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL + 50 AS col1, - CAST ( - ( + - 48 ) AS INTEGER )
----
50
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT COUNT( * ) * + 44 + 5, + COUNT( * ) AS col0
----
49
1

skipif mysql # not compatible
query II rowsort label-509
SELECT COUNT ( * ) * + 44 + 5, + COUNT ( * ) AS col0
----
49
1

query I rowsort
SELECT ( + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT - COUNT( * ) * 76 + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) * 76 + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + COUNT( 61 ) * + COUNT( DISTINCT + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-512
SELECT + COUNT ( 61 ) * + COUNT ( DISTINCT + 20 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL - SUM( ALL + - 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - SUM ( ALL + - 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT ALL 46, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-515
SELECT ALL 46, + COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT 53 + - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 53 + - - COUNT ( * )
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT + MIN( ALL + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + MIN ( ALL + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL + SUM( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + SUM ( + 14 )
----
14

query II rowsort
SELECT ALL + ( - 77 ) + - - 23, 11 AS col1
----
-54
11

onlyif mysql # aggregate syntax: 
query II rowsort label-521
SELECT ALL 31 AS col1, - COUNT( * ) * + + 38 AS col0
----
31
-38

skipif mysql # not compatible
query II rowsort label-521
SELECT ALL 31 AS col1, - COUNT ( * ) * + + 38 AS col0
----
31
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + COUNT( * ) * - 60
----
-60

skipif mysql # not compatible
query I rowsort label-522
SELECT + COUNT ( * ) * - 60
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-523
SELECT CAST ( 86 AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT DISTINCT COUNT( * ) * - - 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT COUNT ( * ) * - - 82 AS col2
----
82

query I rowsort
SELECT ( 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT + CAST( + ( - 71 ) AS SIGNED ), ( 99 ) AS col2
----
-71
99

skipif mysql # not compatible
query II rowsort label-526
SELECT + CAST ( + ( - 71 ) AS INTEGER ), ( 99 ) AS col2
----
-71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + COUNT( + - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-527
SELECT + COUNT ( + - 81 ) AS col0
----
1

query I rowsort
SELECT 8 * + ( - 33 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL + MAX( DISTINCT 24 ) + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL + MAX ( DISTINCT 24 ) + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT 92 * - 48
----
-4416

query I rowsort
SELECT 43 * - 59
----
-2537

onlyif mysql # DIV for integer division: 
query I rowsort label-532
SELECT 24 DIV 10
----
2

skipif mysql # not compatible
query I rowsort label-532
SELECT 24 / 10
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-533
SELECT 39 + 4 + + 95 AS col0, + 50 DIV + + 82 - - - 40
----
138
-40

skipif mysql # not compatible
query II rowsort label-533
SELECT 39 + 4 + + 95 AS col0, + 50 / + + 82 - - - 40
----
138
-40

query I rowsort
SELECT + + 31 * + + 19 + 47 AS col2
----
636

query II rowsort
SELECT DISTINCT - + 70 AS col0, + 21 AS col1
----
-70
21

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - COUNT( * ) * + 58
----
-58

skipif mysql # not compatible
query I rowsort label-536
SELECT - COUNT ( * ) * + 58
----
-58

query II rowsort
SELECT ALL 50 AS col1, 80 col0
----
50
80

query II rowsort
SELECT - 64 AS col0, + 30 AS col1
----
-64
30

query I rowsort
SELECT DISTINCT + - ( 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-540
SELECT ALL + 65, CAST( NULL AS SIGNED ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT ALL + 65, CAST ( NULL AS INTEGER ) AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT MAX( + - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-541
SELECT MAX ( + - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL 41 * + ( COUNT( * ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL 41 * + ( COUNT ( * ) ) AS col1
----
41

query II rowsort
SELECT + 23 + 39 col0, - 20
----
62
-20

query I rowsort
SELECT DISTINCT - + 84 + 30 AS col0
----
-54

query II rowsort
SELECT DISTINCT 29, 99 AS col2
----
29
99

query I rowsort
SELECT ALL 28 + 11 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT SUM( 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-547
SELECT SUM ( 14 ) AS col0
----
14

query I rowsort
SELECT 78 * 86
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 32 * - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT SUM( 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-550
SELECT SUM ( 55 ) AS col2
----
55

query I rowsort
SELECT ALL + - ( + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL - 14 + ( COUNT( * ) ) * 52
----
38

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - 14 + ( COUNT ( * ) ) * 52
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT ALL - 25 DIV COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - 25 / COUNT ( * )
----
-25

query I rowsort
SELECT DISTINCT ( 71 ) * 76
----
5396

query I rowsort
SELECT ( 92 )
----
92

query I rowsort
SELECT ( + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - + SUM( DISTINCT 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-557
SELECT - + SUM ( DISTINCT 8 ) AS col2
----
-8

query I rowsort
SELECT ALL + 13 col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-559
SELECT 94 * - 83 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT 94 * - 83 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 50 + 95
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT COUNT( ALL - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-561
SELECT COUNT ( ALL - 28 ) AS col2
----
1

query I rowsort
SELECT ALL ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-563
SELECT + COUNT ( * ) * 93
----
93

query I rowsort
SELECT - ( + + 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-565
SELECT ALL - CAST( NULL AS DECIMAL ), + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - CAST ( NULL AS REAL ), + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL + COUNT( * ) * + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + COUNT ( * ) * + 20 AS col2
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT + - CAST( + 36 AS SIGNED ) + - - 89 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-568
SELECT + - CAST ( + 36 AS INTEGER ) + - - 89 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT - MAX( DISTINCT 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - MAX ( DISTINCT 61 ) AS col0
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-570
SELECT ALL + ( - AVG ( DISTINCT + 57 ) ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + ( - AVG ( DISTINCT + 57 ) ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL - + COUNT( * ) * + - 19 * - 38
----
-722

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - + COUNT ( * ) * + - 19 * - 38
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - COUNT( * ) - 97 col2
----
-98

skipif mysql # not compatible
query I rowsort label-573
SELECT - COUNT ( * ) - 97 col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT DISTINCT ( - + COUNT( * ) ) AS col2, + 8 + - ( - 41 )
----
-1
49

skipif mysql # not compatible
query II rowsort label-574
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2, + 8 + - ( - 41 )
----
-1
49

query I rowsort
SELECT + 40 + + 54 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT 5 * NULLIF ( + + COUNT( * ), + ( + MAX( DISTINCT 16 ) ) ) * + 51
----
255

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT 5 * NULLIF ( + + COUNT ( * ), + ( + MAX ( DISTINCT 16 ) ) ) * + 51
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT MAX( 21 ) + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-577
SELECT MAX ( 21 ) + - COUNT ( * )
----
20

query I rowsort
SELECT DISTINCT - + 54 AS col2
----
-54

query I rowsort
SELECT DISTINCT ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT 77 * - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-580
SELECT 77 * - COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT DISTINCT - 27 + + + 59
----
32

query I rowsort
SELECT + ( + 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + 0 + + MIN( + 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + 0 + + MIN ( + 89 ) col2
----
89

query II rowsort
SELECT ALL 47 + + - 15 AS col0, + 45 AS col0
----
32
45

query I rowsort
SELECT 99 col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-586
SELECT ALL - COUNT( * ) * - + 66 DIV - + 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - COUNT ( * ) * - + 66 / - + 75 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT - ( + - SUM( ALL + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT - ( + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL SUM( ALL - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL SUM ( ALL - 98 ) AS col0
----
-98

query I rowsort
SELECT ALL 40 * 63 AS col0
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT ALL COUNT( * ) AS col2, 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-590
SELECT ALL COUNT ( * ) AS col2, 55 AS col2
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL SUM( 17 ) + + - 5
----
12

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL SUM ( 17 ) + + - 5
----
12

query I rowsort
SELECT DISTINCT - + ( + 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-593
SELECT - COUNT( ALL 9 ) + - CAST( NULL AS SIGNED ) + + 78 * - CAST( - 87 AS SIGNED ), - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-593
SELECT - COUNT ( ALL 9 ) + - CAST ( NULL AS INTEGER ) + + 78 * - CAST ( - 87 AS INTEGER ), - 13 AS col2
----
NULL
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL CAST( - 77 AS SIGNED ) * - 33 AS col1
----
2541

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL CAST ( - 77 AS INTEGER ) * - 33 AS col1
----
2541

query I rowsort
SELECT ALL - 57 - - ( 86 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL + - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL + - COUNT ( * ) * - 26
----
26

query I rowsort
SELECT - 71 * 25
----
-1775

query I rowsort
SELECT ALL + 79 + - 2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT - MAX( 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT - MAX ( 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT COUNT( * ) + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-600
SELECT COUNT ( * ) + + 70 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT - + CAST( + - 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-601
SELECT - + CAST ( + - 94 AS INTEGER )
----
94

query II rowsort
SELECT ALL - 15, + 38 AS col0
----
-15
38

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT + - 4 DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT + - 4 / + 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT DISTINCT COUNT( * ) * + - 33 + + + 10 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT COUNT ( * ) * + - 33 + + + 10 AS col0
----
-23

query I rowsort
SELECT DISTINCT + ( 50 ) AS col0
----
50

query I rowsort
SELECT ALL ( - - 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL COUNT( + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL COUNT ( + 23 )
----
1

query I rowsort
SELECT ALL ( + COALESCE ( + 6, - - 50 ) ) AS col0
----
6

query I rowsort
SELECT - 76 * + 99 AS col0
----
-7524

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-610
SELECT + CAST( NULL AS DECIMAL ) + - ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT + CAST ( NULL AS REAL ) + - ( - 92 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-611
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - - ( 61 ) + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-612
SELECT - - ( 61 ) + - COUNT ( * )
----
60

query I rowsort
SELECT ( - - 97 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-614
SELECT ALL COUNT( * ) * MIN( ALL + - 81 ), - 1 AS col1
----
-81
-1

skipif mysql # not compatible
query II rowsort label-614
SELECT ALL COUNT ( * ) * MIN ( ALL + - 81 ), - 1 AS col1
----
-81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT COUNT( * ) - - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-615
SELECT COUNT ( * ) - - + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + COUNT ( * ) + - 30
----
-29

query I rowsort
SELECT + + 5 * - ( + - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + COUNT( * ) * - + 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-618
SELECT + COUNT ( * ) * - + 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT + COUNT( * ) + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-619
SELECT + COUNT ( * ) + 22 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT - NULLIF ( + - 65, + COALESCE ( - + ( - COUNT( * ) ), - + COUNT( * ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-620
SELECT - NULLIF ( + - 65, + COALESCE ( - + ( - COUNT ( * ) ), - + COUNT ( * ) ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL COUNT( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COUNT ( ALL + 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + 63 + + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-622
SELECT + 63 + + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT DISTINCT + 91 col0, COUNT( * ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT + 91 col0, COUNT ( * ) AS col1
----
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - - COUNT( * ) + - 54 - - + ( - COUNT( * ) ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-624
SELECT - - COUNT ( * ) + - 54 - - + ( - COUNT ( * ) ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-625
SELECT - CAST ( - 75 AS INTEGER )
----
75

query I rowsort
SELECT ALL 81 * + + 28 * 97
----
219996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-627
SELECT + 99 AS col2, + ( - SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-627
SELECT + 99 AS col2, + ( - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col1
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT CASE + 99 WHEN 73 THEN + COUNT( * ) END - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT CASE + 99 WHEN 73 THEN + COUNT ( * ) END - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 44 + + 46
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ( ( - 17 ) ) * + + ( - COUNT( * ) ) AS col1, - COUNT( * ) + - COUNT( * )
----
17
-2

skipif mysql # not compatible
query II rowsort label-630
SELECT ( ( - 17 ) ) * + + ( - COUNT ( * ) ) AS col1, - COUNT ( * ) + - COUNT ( * )
----
17
-2

query I rowsort
SELECT ALL + 99 + + 45 col2
----
144

query II rowsort
SELECT - 90 AS col1, 11 AS col0
----
-90
11

query I rowsort
SELECT - 9 + + 94
----
85

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

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

query I rowsort
SELECT + - 77 * + - 77 col2
----
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT ALL - ( 41 ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - ( 41 ) / + 61
----
0

query II rowsort
SELECT ALL + ( 52 ) * - 32 - - - 0 * + 95, - 84 col1
----
-1664
-84

query I rowsort
SELECT - - 72 + - 18
----
54

query I rowsort
SELECT 84 + - - 8
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT COUNT( * ) * + 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-640
SELECT COUNT ( * ) * + 6 col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT + CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-641
SELECT + CAST ( + 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT DISTINCT MIN( + 77 ), - 45 AS col1
----
77
-45

skipif mysql # not compatible
query II rowsort label-642
SELECT DISTINCT MIN ( + 77 ), - 45 AS col1
----
77
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + ( + COUNT( * ) ) - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-643
SELECT + ( + COUNT ( * ) ) - + 32
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT 96, - 97 + - - COUNT( * ) + + 89 AS col1
----
96
-7

skipif mysql # not compatible
query II rowsort label-644
SELECT 96, - 97 + - - COUNT ( * ) + + 89 AS col1
----
96
-7

query I rowsort
SELECT ALL - ( + 81 ) + + + 61 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + 91 + - - COUNT( * ) * + - 86 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-647
SELECT + 91 + - - COUNT ( * ) * + - 86 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - - ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-648
SELECT - - ( - + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ( + - 64 ) col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT ALL COUNT( * ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL COUNT ( * ) / - 44
----
0

query I rowsort
SELECT + ( - - 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT DISTINCT ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT + + COUNT( * ) * + 86 col1
----
86

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT + + COUNT ( * ) * + 86 col1
----
86

query I rowsort
SELECT + ( - 64 ) AS col0
----
-64

query I rowsort
SELECT ALL - ( + 35 ) AS col2
----
-35

query I rowsort
SELECT ALL COALESCE ( 11, - - 35 + + 20 )
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT + CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-658
SELECT + CAST ( 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT + COUNT( * ) DIV 72 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-659
SELECT + COUNT ( * ) / 72 / + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT + - 78 * + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-660
SELECT + - 78 * + COUNT ( * )
----
-78

query I rowsort
SELECT ALL ( + + 5 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT ALL - 37 DIV + COUNT( * ) + + - 25
----
-62

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - 37 / + COUNT ( * ) + + - 25
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL ( - ( + MAX( DISTINCT - 21 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL ( - ( + MAX ( DISTINCT - 21 ) ) )
----
21

query I rowsort
SELECT - + ( + - 58 )
----
58

query I rowsort
SELECT - ( + - ( 13 ) ) AS col1
----
13

query I rowsort
SELECT ALL 97 * - 11 col1
----
-1067

query I rowsort
SELECT ALL + + ( - 87 ) + - 35 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT COUNT( * ) * - - 65
----
65

skipif mysql # not compatible
query I rowsort label-668
SELECT COUNT ( * ) * - - 65
----
65

query I rowsort
SELECT ALL 63 * 91 AS col0
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - - COUNT( * ) * 59 * + 10 + 10
----
600

skipif mysql # not compatible
query I rowsort label-670
SELECT - - COUNT ( * ) * 59 * + 10 + 10
----
600

query I rowsort
SELECT - 32 * ( + 71 ) col1
----
-2272

query I rowsort
SELECT - 26 + 99
----
73

query I rowsort
SELECT + + 90 col2
----
90

query I rowsort
SELECT + NULLIF ( - 68, - - 49 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT SUM( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-675
SELECT SUM ( ALL + 67 )
----
67

query I rowsort
SELECT - ( 28 )
----
-28

query I rowsort
SELECT DISTINCT 73 * - - 24 AS col1
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT - 2 DIV + COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-678
SELECT - 2 / + COUNT ( * ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL + - COUNT( * ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + - COUNT ( * ) + 85
----
84

query I rowsort
SELECT - 40 * - 94 AS col1
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - NULLIF ( 44, + - 16 / - + 74 ) * + - 15 + - COUNT( * )
----
659

skipif mysql # not compatible
query I rowsort label-681
SELECT - NULLIF ( 44, + - 16 / - + 74 ) * + - 15 + - COUNT ( * )
----
659

query I rowsort
SELECT 54 * - 6 AS col0
----
-324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-683
SELECT 4 * COUNT( * ) * - COUNT( * ) DIV + ( - + ( COUNT( * ) ) ) col2, 98
----
4
98

skipif mysql # not compatible
query II rowsort label-683
SELECT 4 * COUNT ( * ) * - COUNT ( * ) / + ( - + ( COUNT ( * ) ) ) col2, 98
----
4
98

query I rowsort
SELECT DISTINCT - 76 col1
----
-76

query I rowsort
SELECT 62 + - + 89
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT COUNT( * ) - - 40
----
41

skipif mysql # not compatible
query I rowsort label-686
SELECT COUNT ( * ) - - 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT MIN( ALL + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-687
SELECT MIN ( ALL + 66 ) AS col2
----
66

query I rowsort
SELECT - 80 + - 33 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT COUNT( * ), 35 + + 58 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-689
SELECT COUNT ( * ), 35 + + 58 AS col0
----
1
93

query I rowsort
SELECT - 61 + - - 5 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL ( + + COUNT( - 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL ( + + COUNT ( - 26 ) )
----
1

query I rowsort
SELECT ALL - ( - 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + MIN ( - 16 )
----
-16

query I rowsort
SELECT + ( 36 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-695
SELECT - 56 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-695
SELECT - 56 / 58 AS col2
----
0

query I rowsort
SELECT ( - 82 )
----
-82

query I rowsort
SELECT ALL - - 10 * 56 - 77 AS col1
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT - + 57 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT - + 57 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 78 * + 3 * + 61 AS col0
----
14274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT + 49 DIV + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-701
SELECT + 49 / + + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT COUNT( * ) col2, 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-702
SELECT COUNT ( * ) col2, 16 AS col1
----
1
16

query I rowsort
SELECT 78 * - 34
----
-2652

query II rowsort
SELECT + + 77, 18 AS col0
----
77
18

query II rowsort
SELECT ALL + 21 AS col0, 80
----
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - + MAX( ALL - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-706
SELECT - + MAX ( ALL - 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT - MIN( ALL - 42 ), - 8 AS col2
----
42
-8

skipif mysql # not compatible
query II rowsort label-707
SELECT - MIN ( ALL - 42 ), - 8 AS col2
----
42
-8

query I rowsort
SELECT + 75 + 45 + 64 AS col0
----
184

query I rowsort
SELECT ( - 15 ) col1
----
-15

query I rowsort
SELECT ALL NULLIF ( 5, + 93 )
----
5

query II rowsort
SELECT ALL 53, 83 col1
----
53
83

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT MAX( DISTINCT + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT MAX ( DISTINCT + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - ( + ( COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-713
SELECT - ( + ( COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT DISTINCT 47 + + 45 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - + 34 * + + ( - MAX( ALL + 1 ) )
----
34

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - + 34 * + + ( - MAX ( ALL + 1 ) )
----
34

query I rowsort
SELECT 72 + 42 AS col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT ALL - 86 - + ( - 9 ) DIV + + 27
----
-86

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - 86 - + ( - 9 ) / + + 27
----
-86

query I rowsort
SELECT ( + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT 98 + + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-719
SELECT 98 + + COUNT ( * ) AS col0
----
99

query I rowsort
SELECT ALL - 31 + - - 26
----
-5

query I rowsort
SELECT DISTINCT - 14 + - 22
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + SUM( 73 ) + - 88 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-722
SELECT + SUM ( 73 ) + - 88 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT + - 43 * COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-723
SELECT + - 43 * COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT ALL + 88 * - + 81
----
-7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT + CAST( + 49 AS SIGNED ) * - + 44 AS col1
----
-2156

skipif mysql # not compatible
query I rowsort label-725
SELECT + CAST ( + 49 AS INTEGER ) * - + 44 AS col1
----
-2156

query I rowsort
SELECT ALL 10 * - ( + - 38 ) AS col2
----
380

query II rowsort
SELECT 63 - + - 85, 62 AS col2
----
148
62

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - COUNT( * ) * + 50 + + - MIN( ALL 76 )
----
-126

skipif mysql # not compatible
query I rowsort label-728
SELECT - COUNT ( * ) * + 50 + + - MIN ( ALL 76 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL - 82 + - COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - 82 + - COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT 15 * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT 15 * + COUNT ( * )
----
15

query I rowsort
SELECT 48 col0
----
48

query I rowsort
SELECT ALL 50 * + + 34 + + 4 col1
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - COUNT( * ) * + - 25 * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-733
SELECT - COUNT ( * ) * + - 25 * + COUNT ( * ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT - - CAST( - - 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-734
SELECT - - CAST ( - - 56 AS INTEGER ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-735
SELECT ALL - CAST( NULL AS SIGNED ) / + 96 AS col1, + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-735
SELECT ALL - CAST ( NULL AS INTEGER ) / + 96 AS col1, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT CAST( - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-736
SELECT CAST ( - 45 AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT + ( 88 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT CAST( - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-738
SELECT CAST ( - 97 AS INTEGER )
----
-97

query I rowsort
SELECT ( - 9 )
----
-9

query I rowsort
SELECT ( - 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT + MAX( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + MAX ( ALL - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT ALL - COUNT( * ) * - + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - COUNT ( * ) * - + 21 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 85 + + MIN( + 75 ) + - + 84 * 13 * - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 85 + + MIN ( + 75 ) + - + 84 * 13 * - - 21
----
NULL

query I rowsort
SELECT + 42 col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT - 3 * + + 78 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT - 3 * + + 78 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - - 26 AS col2, - 25 AS col2
----
26
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT - CAST( 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-747
SELECT - CAST ( 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL + SUM( + ( + - 9 ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + SUM ( + ( + - 9 ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT + 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + 90 * COUNT ( * )
----
90

query I rowsort
SELECT 60 - - 91
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT DISTINCT 42 * + - CAST( NULL AS SIGNED ) * ( + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT 42 * + - CAST ( NULL AS INTEGER ) * ( + 46 ) AS col0
----
NULL

query I rowsort
SELECT + + 21 col0
----
21

query II rowsort
SELECT DISTINCT + 89 AS col1, - 86
----
89
-86

query II rowsort
SELECT + 44 AS col2, 51
----
44
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-755
SELECT ALL + CAST( NULL AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + CAST ( NULL AS REAL ) + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT - CAST( - ( - + ( + 14 ) ) AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-756
SELECT - CAST ( - ( - + ( + 14 ) ) AS INTEGER ) AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT - CAST( - 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-757
SELECT - CAST ( - 40 AS INTEGER ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-758
SELECT ALL - 30 DIV 93, 52 - - 87 AS col0
----
0
139

skipif mysql # not compatible
query II rowsort label-758
SELECT ALL - 30 / 93, 52 - - 87 AS col0
----
0
139

query I rowsort
SELECT DISTINCT - - 4
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT 35 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-761
SELECT 35 / - 40 AS col2
----
0

query I rowsort
SELECT 42 * - 7 AS col1
----
-294

query I rowsort
SELECT 31 * + 88
----
2728

query I rowsort
SELECT ALL 12 * 63
----
756

query I rowsort
SELECT ALL 59 * 12
----
708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT ALL + CAST( COUNT( 34 ) AS SIGNED ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + CAST ( COUNT ( 34 ) AS INTEGER ) + - 81
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 4 * COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL - COUNT( * ) - + 31
----
-32

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - COUNT ( * ) - + 31
----
-32

query I rowsort
SELECT 56 * 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT ALL + - CAST( + 1 AS SIGNED ) * 39 + + 7 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + - CAST ( + 1 AS INTEGER ) * 39 + + 7 AS col0
----
-32

query I rowsort
SELECT + ( 12 )
----
12

query I rowsort
SELECT ALL + ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT + MIN( ALL - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + MIN ( ALL - - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL + COUNT( * ) + - + COUNT( * ) * 55
----
-54

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * 55
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - COUNT( * ) * - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-775
SELECT - COUNT ( * ) * - - 44
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT ALL - CAST( + - 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - CAST ( + - 94 AS INTEGER ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT ALL + + CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + + CAST ( 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT ALL + + MAX( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + + MAX ( ALL + 54 )
----
54

query I rowsort
SELECT 85 * - 10
----
-850

query I rowsort
SELECT - 55 + + - 10
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT MIN( + 41 ) * - 28 AS col1
----
-1148

skipif mysql # not compatible
query I rowsort label-781
SELECT MIN ( + 41 ) * - 28 AS col1
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT + ( - - ( + - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + ( - - ( + - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL 48 + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL 48 + + COUNT ( * ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-784
SELECT DISTINCT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - ( - - 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT COUNT( + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-786
SELECT COUNT ( + + 95 )
----
1

query I rowsort
SELECT DISTINCT + ( - - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - 42 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-788
SELECT - 42 * + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT COUNT( - - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-789
SELECT COUNT ( - - 27 ) AS col2
----
1

query I rowsort
SELECT ( + 92 ) col1
----
92

query I rowsort
SELECT - 74 * - - 59
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT + COUNT( * ) + + 69
----
70

skipif mysql # not compatible
query I rowsort label-792
SELECT + COUNT ( * ) + + 69
----
70

query I rowsort
SELECT - - ( 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + COUNT( * ) * - 69 * - 22
----
1518

skipif mysql # not compatible
query I rowsort label-794
SELECT + COUNT ( * ) * - 69 * - 22
----
1518

query I rowsort
SELECT + 14 * - - 84 + 44
----
1220

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

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

query I rowsort
SELECT ALL - 53 + - + ( - 32 )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT + 31 DIV - 55 + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-798
SELECT + 31 / - 55 + - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT - ( + 79 ) * + 77
----
-6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL - 81 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - 81 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT SUM( - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-801
SELECT SUM ( - 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL 83 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 83 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT ALL - ( + CAST( ( - 68 ) AS SIGNED ) ) col2
----
68

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL - ( + CAST ( ( - 68 ) AS INTEGER ) ) col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT ALL COUNT( * ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL COUNT ( * ) / + 59
----
0

query I rowsort
SELECT + ( - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT + 86 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT + 86 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT ALL - COUNT( * ) * - 69 DIV - 12 col2
----
-5

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL - COUNT ( * ) * - 69 / - 12 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT + COUNT( * ) * + ( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-808
SELECT + COUNT ( * ) * + ( - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT DISTINCT 73 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT 73 / 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT ALL 13, MIN( + 78 ) AS col0
----
13
78

skipif mysql # not compatible
query II rowsort label-810
SELECT ALL 13, MIN ( + 78 ) AS col0
----
13
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT - COUNT( * ) DIV + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT - COUNT ( * ) / + 42 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT - COUNT( * ) * - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-812
SELECT - COUNT ( * ) * - 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + MIN( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + MIN ( DISTINCT 12 )
----
12

query I rowsort
SELECT 15 * ( - 33 ) AS col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT COUNT( * ) - + - COUNT( * ) * - + 80 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-815
SELECT COUNT ( * ) - + - COUNT ( * ) * - + 80 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - 47 * COUNT( * ) AS col2, COUNT( * ) AS col2
----
-47
1

skipif mysql # not compatible
query II rowsort label-816
SELECT - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
-47
1

query I rowsort
SELECT DISTINCT + 18 * ( - 42 )
----
-756

query I rowsort
SELECT + - ( + + 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-819
SELECT COUNT( DISTINCT - CAST( - 32 AS SIGNED ) ) AS col0, 94 - 38
----
1
56

skipif mysql # not compatible
query II rowsort label-819
SELECT COUNT ( DISTINCT - CAST ( - 32 AS INTEGER ) ) AS col0, 94 - 38
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL + MAX( - 41 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL + MAX ( - 41 ) col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT ALL CAST( - 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL CAST ( - 30 AS INTEGER ) AS col0
----
-30

query I rowsort
SELECT ALL + + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT + ( + SUM( 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-823
SELECT + ( + SUM ( 3 ) )
----
3

query I rowsort
SELECT 98 * + ( - + 40 ) AS col0
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT - COUNT( * ) + - - 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-825
SELECT - COUNT ( * ) + - - 91 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT 57 - - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-826
SELECT 57 - - COUNT ( * ) AS col0
----
58

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

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

query I rowsort
SELECT 46 + - 56
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL COUNT( * ) + - 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL COUNT ( * ) + - 72 AS col0
----
-71

query I rowsort
SELECT 44 + + + 44 AS col0
----
88

query I rowsort
SELECT - ( + + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT MAX( + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-832
SELECT MAX ( + 59 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL - SUM( ALL + + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL - SUM ( ALL + + 58 ) AS col1
----
-58

query II rowsort
SELECT + 17 AS col1, 5 AS col2
----
17
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) + - + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + 51 - + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-836
SELECT + 51 - + - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT + + 96 * - 68 col2
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT + COUNT( * ) * + 91
----
91

skipif mysql # not compatible
query I rowsort label-838
SELECT + COUNT ( * ) * + 91
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-839
SELECT ALL 88 AS col0, CAST( NULL AS SIGNED )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-839
SELECT ALL 88 AS col0, CAST ( NULL AS INTEGER )
----
88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT 42 / 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT 42 / 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT COUNT( * ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-841
SELECT COUNT ( * ) + + 16
----
17

query I rowsort
SELECT 67 * - 72 AS col2
----
-4824

query I rowsort
SELECT ALL - 44 col0
----
-44

query II rowsort
SELECT - ( - 12 ) - 57 AS col2, - 6 AS col2
----
-45
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT - + CAST( 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-845
SELECT - + CAST ( 78 AS INTEGER ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL ( + ( COUNT( * ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL ( + ( COUNT ( * ) ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-847
SELECT 58 * + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT 89 DIV + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 89 / + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT DISTINCT - ( 24 )
----
-24

query I rowsort
SELECT - + 53 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT ALL CAST( NULL AS SIGNED ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL CAST ( NULL AS INTEGER ) * 22
----
NULL

query I rowsort
SELECT ALL + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT + - 2 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-853
SELECT + - 2 * + COUNT ( * )
----
-2

query I rowsort
SELECT - - 58 + 82
----
140

query I rowsort
SELECT ALL + 89 + 18
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT - - COUNT( * ) * + 17
----
17

skipif mysql # not compatible
query I rowsort label-856
SELECT - - COUNT ( * ) * + 17
----
17

query I rowsort
SELECT + 40 * - - 11 - + + ( - 48 )
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + COUNT( DISTINCT + ( 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-858
SELECT + COUNT ( DISTINCT + ( 17 ) )
----
1

query I rowsort
SELECT ALL + 89 + + 59
----
148

query I rowsort
SELECT DISTINCT - ( 74 ) AS col0
----
-74

query I rowsort
SELECT ALL + 99 * - 15
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT + SUM( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-862
SELECT + SUM ( 4 )
----
4

query I rowsort
SELECT + + ( + 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT COUNT( ALL 82 )
----
1

skipif mysql # not compatible
query I rowsort label-864
SELECT COUNT ( ALL 82 )
----
1

query I rowsort
SELECT DISTINCT + ( + + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT COUNT( DISTINCT - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-866
SELECT COUNT ( DISTINCT - 34 )
----
1

query I rowsort
SELECT DISTINCT ( - 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL + 80 + - 50 - + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + 80 + - 50 - + COUNT ( * ) AS col0
----
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT + CAST( - CAST( + 49 AS SIGNED ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-870
SELECT + CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + COUNT( * ) + + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-871
SELECT + COUNT ( * ) + + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL MIN( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL MIN ( ALL - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - 88 * + MIN( ALL - + 51 )
----
4488

skipif mysql # not compatible
query I rowsort label-873
SELECT - 88 * + MIN ( ALL - + 51 )
----
4488

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL - COUNT ( * ), - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-875
SELECT + CAST( NULL AS SIGNED ) col0, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-875
SELECT + CAST ( NULL AS INTEGER ) col0, 76
----
NULL
76

query I rowsort
SELECT ALL - 52 * 54 AS col0
----
-2808

query I rowsort
SELECT DISTINCT - 18 col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT DISTINCT - ( + COUNT( * ) ) * - 77 AS col1, 21 AS col0
----
77
21

skipif mysql # not compatible
query II rowsort label-878
SELECT DISTINCT - ( + COUNT ( * ) ) * - 77 AS col1, 21 AS col0
----
77
21

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT - 89 + COUNT( * ) col0, 54
----
-88
54

skipif mysql # not compatible
query II rowsort label-879
SELECT - 89 + COUNT ( * ) col0, 54
----
-88
54

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL MIN( ALL + + ( - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL MIN ( ALL + + ( - 37 ) ) AS col2
----
-37

query II rowsort
SELECT DISTINCT 84, - 52 AS col1
----
84
-52

query I rowsort
SELECT ( + 98 ) AS col1
----
98

query I rowsort
SELECT ( 68 ) AS col2
----
68

query I rowsort
SELECT ( 72 ) AS col1
----
72

query I rowsort
SELECT 1 * + 27 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT - MAX( 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - MAX ( 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL - + COUNT( DISTINCT 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL - + COUNT ( DISTINCT 9 ) AS col1
----
-1

query I rowsort
SELECT 49 * 7
----
343

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-890
SELECT CAST( NULL AS DECIMAL ) * - 58 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT CAST ( NULL AS REAL ) * - 58 + - 59
----
NULL

query I rowsort
SELECT ( - + 43 )
----
-43

query I rowsort
SELECT 92 + - + 67 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL CAST( NULL AS SIGNED ) * + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL CAST ( NULL AS INTEGER ) * + + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT COUNT( * ) + - 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-894
SELECT COUNT ( * ) + - 50 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT CAST( NULL AS SIGNED ) - - + ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT CAST ( NULL AS INTEGER ) - - + ( - 46 )
----
NULL

query I rowsort
SELECT + + 20 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT - 86 + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - 86 + COUNT ( * )
----
-85

query I rowsort
SELECT ALL - - 84 * + + 54 AS col2
----
4536

query II rowsort
SELECT 29 AS col2, + 48 AS col0
----
29
48

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + 46 * + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + 46 * + + COUNT ( * )
----
46

query I rowsort
SELECT - 71 - + 88 AS col0
----
-159

query I rowsort
SELECT ALL + ( + ( - + 4 ) ) AS col1
----
-4

query I rowsort
SELECT ALL 93 col2
----
93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-904
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + CAST( NULL AS DECIMAL ) AS col0, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS REAL ) AS col0, 13
----
NULL
13

query I rowsort
SELECT ALL + - 78 AS col2
----
-78

query I rowsort
SELECT 40 * 99 AS col2
----
3960

query I rowsort
SELECT 30 * + 50 col2
----
1500

query I rowsort
SELECT 36 + 71 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL COUNT( * ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1
----
-1

query I rowsort
SELECT DISTINCT - - 91 AS col2
----
91

query I rowsort
SELECT 55 + 3 AS col2
----
58

query I rowsort
SELECT DISTINCT - - 42 col0
----
42

query I rowsort
SELECT ALL 55 * - - 18 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT MAX( - + 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-914
SELECT MAX ( - + 46 ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - COUNT( * ) * 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-915
SELECT - COUNT ( * ) * 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - COUNT( DISTINCT + + 99 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-916
SELECT - COUNT ( DISTINCT + + 99 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT MIN( + ( 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-917
SELECT MIN ( + ( 97 ) ) AS col0
----
97

query I rowsort
SELECT DISTINCT + 97 col0
----
97

query I rowsort
SELECT - + 13 + 14
----
1

query II rowsort
SELECT - 17, 50 + - + 47 AS col2
----
-17
3

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT DISTINCT - ( + 26 ) AS col1, + 72 * + + COUNT( * )
----
-26
72

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT - ( + 26 ) AS col1, + 72 * + + COUNT ( * )
----
-26
72

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT - MAX( - 79 ) * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT - MAX ( - 79 ) * COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT DISTINCT 88 * - COUNT( * ) AS col2, 16 AS col0
----
-88
16

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT 88 * - COUNT ( * ) AS col2, 16 AS col0
----
-88
16

query I rowsort
SELECT DISTINCT + 98 - - 30
----
128

query I rowsort
SELECT - + 98 AS col2
----
-98

query I rowsort
SELECT - + ( - 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT - - COUNT( * ) DIV - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-927
SELECT - - COUNT ( * ) / - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT SUM( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-928
SELECT SUM ( 44 ) AS col1
----
44

query I rowsort
SELECT DISTINCT 38 * - - 58 AS col1
----
2204

query I rowsort
SELECT - + 19
----
-19

query I rowsort
SELECT + - ( + 7 ) col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + 78 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-932
SELECT + 78 + - COUNT ( * )
----
77

query II rowsort
SELECT DISTINCT 75, - 81 AS col1
----
75
-81

query I rowsort
SELECT ALL - 75 * + 18
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT CAST( MAX( DISTINCT - 45 ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-935
SELECT CAST ( MAX ( DISTINCT - 45 ) AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT - COUNT( * ) + + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-936
SELECT - COUNT ( * ) + + 99 AS col0
----
98

query I rowsort
SELECT ALL + - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT + 96 + + COUNT( * ) + - 18
----
79

skipif mysql # not compatible
query I rowsort label-938
SELECT + 96 + + COUNT ( * ) + - 18
----
79

query I rowsort
SELECT ALL - 49 * - 10 AS col1
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT + ( - COUNT( ALL + 71 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + ( - COUNT ( ALL + 71 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 94 * - ( + COUNT( * ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 94 * - ( + COUNT ( * ) ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ALL + 94 + - 52 DIV - 9
----
99

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + 94 + - 52 / - 9
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - MIN( 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-944
SELECT - MIN ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT COUNT( DISTINCT - 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-945
SELECT COUNT ( DISTINCT - 14 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL - CAST( + 84 AS SIGNED ) + + - COUNT( * ) * + COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - CAST ( + 84 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-85

query II rowsort
SELECT 44 col2, - 79
----
44
-79

query I rowsort
SELECT - ( - 58 ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL - ( - COUNT( * ) ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - ( - COUNT ( * ) ) * - 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT DISTINCT + CAST( - 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT COUNT( * ) AS col1, + COUNT( DISTINCT + + 67 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-951
SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1
----
1
1

query I rowsort
SELECT - 29 * 3 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - + 43 - - + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-953
SELECT - + 43 - - + COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT + COUNT( * ) - - MIN( DISTINCT 95 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-954
SELECT + COUNT ( * ) - - MIN ( DISTINCT 95 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-955
SELECT - + 89 + - CAST( - COUNT( * ) AS SIGNED ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-955
SELECT - + 89 + - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-88

query II rowsort
SELECT ( - ( - 97 ) ) AS col0, 97 AS col0
----
97
97

query I rowsort
SELECT - 5 + 13 AS col2
----
8

query I rowsort
SELECT DISTINCT + - 78 + - 51
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT COUNT( * ) * + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( * ) * + + 62 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT DISTINCT + 17 DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + 17 / + 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT COUNT( * ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-961
SELECT COUNT ( * ) * - 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT 8 * COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-962
SELECT 8 * COUNT ( * ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT - MAX( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - MAX ( + 18 )
----
-18

query II rowsort
SELECT + 8, + 95 AS col0
----
8
95

query I rowsort
SELECT 8 - - 89 AS col0
----
97

query II rowsort
SELECT - 3, - ( + 68 ) AS col2
----
-3
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-967
SELECT DISTINCT - MAX( ALL - 67 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT - MAX ( ALL - 67 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - + COUNT( + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-968
SELECT - + COUNT ( + 55 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT ALL 79 DIV + + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 79 / + + 46 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL - COUNT( + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - COUNT ( + 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL COUNT( * ) * - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL COUNT ( * ) * - 6 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-972
SELECT ALL CAST( + 48 AS SIGNED ), + COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-972
SELECT ALL CAST ( + 48 AS INTEGER ), + COUNT ( * ) AS col0
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT SUM( DISTINCT + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT SUM ( DISTINCT + 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + + ( 1 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + + ( 1 ) AS col2
----
2

query I rowsort
SELECT ( - 44 ) col0
----
-44

query I rowsort
SELECT ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT ALL + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-977
SELECT ALL + COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + SUM( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-979
SELECT + SUM ( + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - COUNT( * ) - 21 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-980
SELECT - COUNT ( * ) - 21 AS col0
----
-22

query I rowsort
SELECT DISTINCT - 94 * + 70 AS col1
----
-6580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT - 38 DIV COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-982
SELECT - 38 / COUNT ( * )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 85 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 85 / 97 AS col0
----
0

query I rowsort
SELECT ALL ( + 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT DISTINCT CAST( 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT CAST ( 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL COUNT( ALL 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL COUNT ( ALL 87 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 75 col1
----
75

query I rowsort
SELECT + 77 + - 30 * 35
----
-973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT ALL - CAST( 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - CAST ( 37 AS INTEGER )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 8
----
NULL

query I rowsort
SELECT ALL - 56 + + 57 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-992
SELECT ALL ( + - COUNT( + 29 ) ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL ( + - COUNT ( + 29 ) ) / 83
----
0

query I rowsort
SELECT 24 + - 25
----
-1

query I rowsort
SELECT DISTINCT + 37 + 1 AS col1
----
38

query I rowsort
SELECT DISTINCT - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - MAX( DISTINCT - 25 ) * - 92 AS col2
----
-2300

skipif mysql # not compatible
query I rowsort label-996
SELECT - MAX ( DISTINCT - 25 ) * - 92 AS col2
----
-2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL CAST( NULL AS SIGNED ) * + MAX( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL CAST ( NULL AS INTEGER ) * + MAX ( 68 )
----
NULL

query I rowsort
SELECT ALL - 45 + 55
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT 53 * - SUM( ALL + 0 ) * 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT 53 * - SUM ( ALL + 0 ) * 31 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT + 61 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + 61 / 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL COUNT( DISTINCT + 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL COUNT ( DISTINCT + 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - 61 + - MIN( ALL 7 ) + + 63
----
-5

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 61 + - MIN ( ALL 7 ) + + 63
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1003
SELECT + + 94 + + COUNT ( * )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL 34 DIV - - 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 34 / - - 25 AS col2
----
1

query II rowsort
SELECT + - 64, - 79 AS col1
----
-64
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - ( - SUM( - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-1006
SELECT - ( - SUM ( - 24 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT + 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-1007
SELECT + 42 * + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT 58 * - MAX( DISTINCT + 66 ) * - 92 AS col1
----
352176

skipif mysql # not compatible
query I rowsort label-1008
SELECT 58 * - MAX ( DISTINCT + 66 ) * - 92 AS col1
----
352176

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL COUNT( + - 28 ) * + ( - + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL COUNT ( + - 28 ) * + ( - + 85 )
----
-85

query I rowsort
SELECT ALL 40 * + 85 * 41 * - - 50 AS col0
----
6970000

query I rowsort
SELECT ( 85 ) * + 22 AS col0
----
1870

query II rowsort
SELECT 11 AS col0, 99
----
11
99

query I rowsort
SELECT DISTINCT - ( - 75 )
----
75

query I rowsort
SELECT ALL 29 + + - ( - + 21 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT COUNT( * ) * + - 75 col0
----
-75

skipif mysql # not compatible
query I rowsort label-1015
SELECT COUNT ( * ) * + - 75 col0
----
-75

query I rowsort
SELECT - + 98 col1
----
-98

query I rowsort
SELECT + ( + 97 ) AS col2
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1018
SELECT - ( + - CAST( NULL AS DECIMAL ) ) + - - 77 AS col0, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1018
SELECT - ( + - CAST ( NULL AS REAL ) ) + - - 77 AS col0, 73
----
NULL
73

query I rowsort
SELECT 72 * 95 + 62
----
6902

onlyif mysql # aggregate syntax: 
query II rowsort label-1020
SELECT + 70 - + COUNT( * ) AS col0, + 12
----
69
12

skipif mysql # not compatible
query II rowsort label-1020
SELECT + 70 - + COUNT ( * ) AS col0, + 12
----
69
12

query I rowsort
SELECT 99 * + 10
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - COUNT( ALL + 76 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1022
SELECT - COUNT ( ALL + 76 ) col0
----
-1

query I rowsort
SELECT 24 * - 39
----
-936

query I rowsort
SELECT 71 + 75 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - COUNT ( * ) - COUNT ( * )
----
-2

query I rowsort
SELECT 13 * 52
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + COUNT( DISTINCT + 64 ) + + - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1027
SELECT + COUNT ( DISTINCT + 64 ) + + - 82 AS col1
----
-81

query II rowsort
SELECT DISTINCT 5, 1 AS col0
----
5
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT + COUNT( * ) DIV + MAX( 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COUNT ( * ) / + MAX ( 98 ) AS col1
----
0

query II rowsort
SELECT - NULLIF ( + + 84, + 13 ) + - 27 col0, - ( - 2 ) AS col2
----
-111
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - COALESCE ( - COUNT( * ), + - 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT - COALESCE ( - COUNT ( * ), + - 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL MIN( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL MIN ( DISTINCT 69 )
----
69

query I rowsort
SELECT DISTINCT - 16 * + - 58 AS col0
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL + MIN( DISTINCT + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + MIN ( DISTINCT + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT NULLIF ( COUNT( * ), - 13 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1035
SELECT NULLIF ( COUNT ( * ), - 13 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + 31 * + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + 31 * + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT + ( + + 18 ) * + + 20
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT ALL + COUNT( * ) AS col2, ( - + 5 )
----
1
-5

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL + COUNT ( * ) AS col2, ( - + 5 )
----
1
-5

query I rowsort
SELECT ALL - - 82 + - - 73
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT DISTINCT MIN( DISTINCT + - 7 ) AS col1, - 49
----
-7
-49

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT MIN ( DISTINCT + - 7 ) AS col1, - 49
----
-7
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1041
SELECT ALL + COUNT( * ) DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + COUNT ( * ) / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + COUNT( * ) + + - 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1042
SELECT + COUNT ( * ) + + - 11 AS col1
----
-10

query I rowsort
SELECT DISTINCT - + 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL + MIN( ALL - 76 ) * + 20
----
-1520

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + MIN ( ALL - 76 ) * + 20
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT CAST ( NULL AS INTEGER ) * - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + MAX( - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1046
SELECT + MAX ( - - 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT + 68 + + - 16 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + 68 + + - 16 + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 31 + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1048
SELECT 31 + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 11 * 27 AS col2
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT - MIN( ALL - - ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT - MIN ( ALL - - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 17 col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT ALL + CAST( - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + CAST ( - 51 AS INTEGER )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT - - 93 DIV + - 84
----
-1

skipif mysql # not compatible
query I rowsort label-1053
SELECT - - 93 / + - 84
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT + - 87 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT + - 87 / - 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT ALL - 53 * - + COUNT( * ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - 53 * - + COUNT ( * ) / 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT + COUNT( ALL 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + COUNT ( ALL 8 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT + 94 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT + 94 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT - 23 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT - 23 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL SUM( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL SUM ( - 26 )
----
-26

query I rowsort
SELECT ALL - 18 + - + 68 AS col2
----
-86

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT + 0 / COUNT ( * )
----
0

query I rowsort
SELECT ALL - ( + 5 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT 22 * + CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT 22 * + CAST ( NULL AS INTEGER ) * + 5
----
NULL

query I rowsort
SELECT + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT DISTINCT + COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + COUNT ( * ) * - 80
----
-80

query I rowsort
SELECT + 63 + - + 52
----
11

query II rowsort
SELECT - 47 AS col1, 38
----
-47
38

query I rowsort
SELECT ALL + ( - 99 )
----
-99

query I rowsort
SELECT ALL 87 + ( + - 84 ) * - 92
----
7815

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT 1 * - COUNT( * ) - - 26
----
25

skipif mysql # not compatible
query I rowsort label-1070
SELECT 1 * - COUNT ( * ) - - 26
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT ( + CAST( - 44 AS SIGNED ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1071
SELECT ( + CAST ( - 44 AS INTEGER ) ) AS col0
----
-44

query I rowsort
SELECT 91 + - - 99
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT ALL + ( ( - + ( COUNT( * ) ) ) ) * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + ( ( - + ( COUNT ( * ) ) ) ) * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1074
SELECT DISTINCT 62 AS col0, COUNT( * )
----
62
1

skipif mysql # not compatible
query II rowsort label-1074
SELECT DISTINCT 62 AS col0, COUNT ( * )
----
62
1

query II rowsort
SELECT + 87 AS col1, + 99
----
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ( + - COUNT( * ) ) - 60
----
-61

skipif mysql # not compatible
query I rowsort label-1076
SELECT ( + - COUNT ( * ) ) - 60
----
-61

query I rowsort
SELECT 19 - + 75 * - 22
----
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL + 76 * - + NULLIF ( COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + 76 * - + NULLIF ( COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 4 AS col2, 14
----
4
14

query I rowsort
SELECT ALL + 20 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT + - SUM( DISTINCT - + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + - SUM ( DISTINCT - + 15 )
----
15

query I rowsort
SELECT DISTINCT + + 46 AS col2
----
46

query I rowsort
SELECT + - 59 * 37
----
-2183

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT 91 AS col0, + COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-1084
SELECT 91 AS col0, + COUNT ( * ) AS col0
----
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL + MAX( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + MAX ( 81 ) AS col0
----
81

query I rowsort
SELECT ALL + - 52
----
-52

query I rowsort
SELECT DISTINCT - - 70
----
70

query I rowsort
SELECT + + ( 55 ) AS col1
----
55

query I rowsort
SELECT ALL 64 + + - 93 AS col0
----
-29

query I rowsort
SELECT ALL - - 83 AS col0
----
83

query I rowsort
SELECT ALL - 11 - - 57
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT DISTINCT COUNT( * ), + 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-1092
SELECT DISTINCT COUNT ( * ), + 57 AS col2
----
1
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT ( CAST( NULL AS SIGNED ) ) + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT ( CAST ( NULL AS INTEGER ) ) + 45 col2
----
NULL

query I rowsort
SELECT 50 * 87 col0
----
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT + + COUNT( 77 ) DIV + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1095
SELECT + + COUNT ( 77 ) / + + COUNT ( * ) AS col0
----
1

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

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

query I rowsort
SELECT ALL + + 97
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1098
SELECT - CAST( NULL AS DECIMAL ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT - CAST ( NULL AS REAL ) + 50
----
NULL

query I rowsort
SELECT + + ( + + 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT + COUNT( * ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT + COUNT ( * ) / 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ( + MIN( - 66 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1101
SELECT ( + MIN ( - 66 ) ) AS col1
----
-66

query I rowsort
SELECT - + ( + 28 ) AS col1
----
-28

query I rowsort
SELECT 68 * + + 58
----
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT 13 DIV + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1104
SELECT 13 / + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT DISTINCT ( - + 58 ) + - - 15
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT - + 48 AS col2, COUNT( * ) AS col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-1106
SELECT - + 48 AS col2, COUNT ( * ) AS col1
----
-48
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT - - COUNT( * ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-1107
SELECT - - COUNT ( * ), 1
----
1
1

query I rowsort
SELECT 73 + + 23
----
96

query I rowsort
SELECT ALL + 68 - 17
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT - - COUNT( * ) * - - 2 * + 69 DIV - - COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1110
SELECT - - COUNT ( * ) * - - 2 * + 69 / - - COUNT ( * ) AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT 99 * ( MAX( - 98 ) ) AS col2
----
-9702

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 99 * ( MAX ( - 98 ) ) AS col2
----
-9702

query II rowsort
SELECT - 29 * - ( + + NULLIF ( 54, + + 0 ) ), - ( + 56 ) AS col1
----
1566
-56

query I rowsort
SELECT ( - + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT + CAST( - + 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1114
SELECT + CAST ( - + 56 AS INTEGER ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL + MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + MIN ( 12 )
----
12

query I rowsort
SELECT DISTINCT + ( - 13 ) AS col1
----
-13

query I rowsort
SELECT DISTINCT + 70 * - 83
----
-5810

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - - COUNT( * ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1118
SELECT - - COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT ALL + CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT - COUNT( * ) DIV - - COUNT( 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-1121
SELECT - COUNT ( * ) / - - COUNT ( 96 )
----
-1

query I rowsort
SELECT + 31 + + 58 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT + - 14 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT + - 14 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT - MIN( ALL - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - MIN ( ALL - 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1126
SELECT - + CAST( + + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-1126
SELECT - + CAST ( + + 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT - COUNT( - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-1127
SELECT - COUNT ( - 2 )
----
-1

query I rowsort
SELECT ALL NULLIF ( - ( 28 ), + 58 ) col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT - 90 + - 44 * + COUNT( * ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - 90 + - 44 * + COUNT ( * ) AS col1
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 5 col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT MIN( + 10 ) DIV + - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1132
SELECT MIN ( + 10 ) / + - COUNT ( * ) AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT - 85 DIV + + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT - 85 / + + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL SUM( ALL - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL SUM ( ALL - - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ( - ( - COUNT( + 5 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT ( - ( - COUNT ( + 5 ) ) )
----
1

query I rowsort
SELECT DISTINCT + ( 60 ) AS col0
----
60

query I rowsort
SELECT - 74 * - 13 AS col1
----
962

query I rowsort
SELECT 47 + - 70
----
-23

query I rowsort
SELECT 43 + - 91
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT ALL CAST( + - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL CAST ( + - 19 AS INTEGER )
----
-19

query I rowsort
SELECT DISTINCT + 64 + 56
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - - 64 + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - - 64 + - COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL - ( + - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - ( + - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT COUNT( * ) DIV + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT COUNT ( * ) / + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT COUNT( * ) DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT COUNT ( * ) / + 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - COUNT( ALL 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( ALL 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 11 * - COUNT( * ) * 50
----
-550

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 11 * - COUNT ( * ) * 50
----
-550

query I rowsort
SELECT - 51 * + 52
----
-2652

query I rowsort
SELECT - 78 * - - ( - 9 ) AS col1
----
702

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL - 27 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 27 / 57 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1151
SELECT - CAST( + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-1151
SELECT - CAST ( + 36 AS INTEGER )
----
-36

query I rowsort
SELECT DISTINCT - ( - ( + 37 ) ) AS col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-1153
SELECT - 97 DIV + - 36 AS col1, - 84 AS col1
----
2
-84

skipif mysql # not compatible
query II rowsort label-1153
SELECT - 97 / + - 36 AS col1, - 84 AS col1
----
2
-84

query I rowsort
SELECT - 24 + - - 18 col1
----
-6

query I rowsort
SELECT - 56 * + 76
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - ( + 70 ) + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1156
SELECT - ( + 70 ) + COUNT ( * )
----
-69

query I rowsort
SELECT ALL - 81 * + + 95 AS col0
----
-7695

query I rowsort
SELECT + 70 * - 33
----
-2310

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT ALL - 33 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL - 33 / - 84
----
0

query I rowsort
SELECT ALL 15 * - + 20
----
-300

query I rowsort
SELECT ALL + + 91 * 57 AS col1
----
5187

query I rowsort
SELECT - 47 + - 31 * - + 32
----
945

query I rowsort
SELECT ALL - - 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL + 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + 79 + + COUNT ( * )
----
80

query I rowsort
SELECT DISTINCT - ( + + 95 ) AS col2
----
-95

query I rowsort
SELECT - 1 + 6
----
5

query II rowsort
SELECT ALL 5, 85 AS col2
----
5
85

query I rowsort
SELECT ALL 98 + 16 AS col2
----
114

query I rowsort
SELECT + 41 + - 81 AS col0
----
-40

query I rowsort
SELECT DISTINCT - + 15 AS col0
----
-15

query I rowsort
SELECT DISTINCT - 0 - 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT + + 87
----
87

query I rowsort
SELECT + 54 * - + 81
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - ( ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1174
SELECT - ( ( COUNT ( * ) ) )
----
-1

query II rowsort
SELECT DISTINCT 6, 87 AS col0
----
6
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT 51 + - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT 51 + - COUNT ( * ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT - CAST( - 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1177
SELECT - CAST ( - 80 AS INTEGER ) AS col2
----
80

query I rowsort
SELECT - 50 * - 96 AS col0
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT + 86 * + ( - COUNT( ALL - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 86 * + ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1181
SELECT ALL CAST( NULL AS DECIMAL ) * - + CAST( - 60 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL CAST ( NULL AS REAL ) * - + CAST ( - 60 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 1 ) + - 95 AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT 39 * CAST( - 21 AS SIGNED ) AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-1183
SELECT 39 * CAST ( - 21 AS INTEGER ) AS col2
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + COUNT( * ) * - 25 * 4
----
-100

skipif mysql # not compatible
query I rowsort label-1184
SELECT + COUNT ( * ) * - 25 * 4
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT + COUNT( * ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT + COUNT ( * ) + - 27
----
-26

query I rowsort
SELECT DISTINCT + 97 + 50 + - 63
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT MIN( 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT MIN ( 51 ) AS col0
----
51

query I rowsort
SELECT DISTINCT 33 - + 93 AS col0
----
-60

query I rowsort
SELECT 33 * - + 25
----
-825

query II rowsort
SELECT - ( 23 ) AS col1, 40
----
-23
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT MIN( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT MIN ( ALL - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL MIN( ALL + - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL MIN ( ALL + - 70 ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT + CAST( + - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1193
SELECT + CAST ( + - 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1194
SELECT + CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1194
SELECT + CAST ( - 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT + ( CAST( + 19 AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-1195
SELECT + ( CAST ( + 19 AS INTEGER ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT DISTINCT + SUM( + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + SUM ( + + 59 )
----
59

query I rowsort
SELECT - ( - 50 ) - + 66
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT + SUM( 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1198
SELECT + SUM ( 43 ) AS col0
----
43

query I rowsort
SELECT ALL + 52 * 95 AS col0
----
4940

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

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - MIN ( DISTINCT + 51 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT + ( - 84 ) + + 68
----
-16

query I rowsort
SELECT DISTINCT - ( 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT COUNT( * ) * + ( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1203
SELECT COUNT ( * ) * + ( + 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL COUNT( ALL + ( - 7 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( ALL + ( - 7 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL COUNT( * ) - + 25 * 18
----
-449

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL COUNT ( * ) - + 25 * 18
----
-449

query I rowsort
SELECT + + 94 * - 80 AS col1
----
-7520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1207
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL SUM( DISTINCT - 13 ) * 10 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL SUM ( DISTINCT - 13 ) * 10 AS col1
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT DISTINCT + CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ( + + 18 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT NULLIF ( - NULLIF ( - CAST( NULL AS SIGNED ), - 88 ), - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT NULLIF ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ), - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 84, 79 )
----
-84

query I rowsort
SELECT DISTINCT - + 78 * - + 90 - - 73
----
7093

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + COUNT( * ) - - 8
----
9

skipif mysql # not compatible
query I rowsort label-1214
SELECT + COUNT ( * ) - - 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL COUNT( ALL + + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL COUNT ( ALL + + 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT COUNT( ALL 64 )
----
1

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT COUNT ( ALL 64 )
----
1

query I rowsort
SELECT ALL - 82 * + 61
----
-5002

query I rowsort
SELECT ALL - - 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - SUM( - 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1219
SELECT - SUM ( - 60 ) col2
----
60

query I rowsort
SELECT 35 + 96
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT DISTINCT - CASE 97 WHEN + 21 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT - CASE 97 WHEN + 21 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL - COUNT( DISTINCT - 97 ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - COUNT ( DISTINCT - 97 ) * - 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT DISTINCT + 44 + + 37 col1, + 5 + + + COUNT( * )
----
81
6

skipif mysql # not compatible
query II rowsort label-1223
SELECT DISTINCT + 44 + + 37 col1, + 5 + + + COUNT ( * )
----
81
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT 45 + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1224
SELECT 45 + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1225
SELECT 35 + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL COUNT( ALL + 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL COUNT ( ALL + 28 ) AS col2
----
1

query I rowsort
SELECT ALL + 73 * - 90 AS col0
----
-6570

onlyif mysql # aggregate syntax: 
query II rowsort label-1228
SELECT MAX( + - 84 ) AS col1, - 69 col0
----
-84
-69

skipif mysql # not compatible
query II rowsort label-1228
SELECT MAX ( + - 84 ) AS col1, - 69 col0
----
-84
-69

query I rowsort
SELECT DISTINCT ( + + 70 ) AS col2
----
70

query I rowsort
SELECT - ( - 65 ) * + 72 col2
----
4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT + COUNT( DISTINCT ( - 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT + COUNT ( DISTINCT ( - 9 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1233
SELECT COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-1233
SELECT COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT ALL + CAST( NULL AS SIGNED ) * - 12 * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - 5 AS col0
----
NULL

query I rowsort
SELECT + - 70 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT - CAST( + MIN( DISTINCT + + 86 ) AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - CAST ( + MIN ( DISTINCT + + 86 ) AS INTEGER )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL - SUM( DISTINCT + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - SUM ( DISTINCT + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT 79 * + + 7 + - COUNT( * ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-1238
SELECT 79 * + + 7 + - COUNT ( * ) AS col1
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT DISTINCT SUM( - 56 ) DIV - - COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT SUM ( - 56 ) / - - COUNT ( * ) col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT - + 17 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1240
SELECT - + 17 / 68 AS col1
----
0

query I rowsort
SELECT ALL + + 20 * - 37 AS col1
----
-740

query I rowsort
SELECT ALL + + 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT + 59 * COUNT( * ) + - + ( - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 59 * COUNT ( * ) + - + ( - COUNT ( * ) )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT - CAST( 75 AS SIGNED ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-1244
SELECT - CAST ( 75 AS INTEGER ) col2
----
-75

query I rowsort
SELECT + ( - - 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT 98 DIV - 80 DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1246
SELECT 98 / - 80 / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 27 + 39 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT MIN( 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1248
SELECT MIN ( 22 ) AS col1
----
22

query I rowsort
SELECT ALL - + 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT + COUNT( * ) + + 96 AS col0, COUNT( DISTINCT - 53 )
----
97
1

skipif mysql # not compatible
query II rowsort label-1250
SELECT + COUNT ( * ) + + 96 AS col0, COUNT ( DISTINCT - 53 )
----
97
1

query I rowsort
SELECT DISTINCT 11 + 34
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1252
SELECT - ( + + ( COUNT( * ) ) ) AS col2, - 62
----
-1
-62

skipif mysql # not compatible
query II rowsort label-1252
SELECT - ( + + ( COUNT ( * ) ) ) AS col2, - 62
----
-1
-62

query I rowsort
SELECT ALL + 27 col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT ( MAX( + 64 ) ) col1, 99
----
64
99

skipif mysql # not compatible
query II rowsort label-1254
SELECT ( MAX ( + 64 ) ) col1, 99
----
64
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT DISTINCT 97 DIV 30 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT 97 / 30 AS col1
----
3

query II rowsort
SELECT ALL + + 11, + 38 AS col0
----
11
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT - 86 * + COUNT( * ) - COUNT( * ) - - + 59
----
-28

skipif mysql # not compatible
query I rowsort label-1257
SELECT - 86 * + COUNT ( * ) - COUNT ( * ) - - + 59
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - + ( + 23 ) + + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1258
SELECT - + ( + 23 ) + + - COUNT ( * )
----
-24

query I rowsort
SELECT + - 55 * + 0 AS col1
----
0

query I rowsort
SELECT - ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT DISTINCT COALESCE ( - COUNT( * ), + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT COALESCE ( - COUNT ( * ), + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT CAST( + 52 AS SIGNED ) col1
----
52

skipif mysql # not compatible
query I rowsort label-1262
SELECT CAST ( + 52 AS INTEGER ) col1
----
52

query I rowsort
SELECT + 79 * - 27 AS col1
----
-2133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT ALL - - 46 + + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - - 46 + + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1265
SELECT + COUNT( * ) - 36 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT + COUNT ( * ) - 36 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL MAX( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL MAX ( ALL 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT DISTINCT - 10 - - COUNT( * ) DIV + 55
----
-10

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - 10 - - COUNT ( * ) / + 55
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 88 + + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1268
SELECT 88 + + - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-1269
SELECT COUNT ( * ) + 81
----
82

query I rowsort
SELECT DISTINCT - + 82
----
-82

query I rowsort
SELECT ALL - 28 * - 22
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - SUM( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1272
SELECT - SUM ( - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1273
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT - 54 * 7 - - 19 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 54 * 7 - - 19 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 75 - + - 55 AS col0
----
130

query I rowsort
SELECT ALL - 75 * 70 AS col2
----
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - 21 - - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1277
SELECT - 21 - - COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT - + 72 + - 39
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT ALL + AVG ( ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + AVG ( ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT ALL + + CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + + CAST ( + 16 AS INTEGER ) AS col2
----
16

query I rowsort
SELECT - ( 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - MIN( ALL 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - MIN ( ALL 37 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - COUNT( * ) - + COUNT( * ) + - 52
----
-54

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + - 52
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT MIN( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-1284
SELECT MIN ( 37 )
----
37

query I rowsort
SELECT DISTINCT - + 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - 98 + + MAX( ALL - 93 ) AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 98 + + MAX ( ALL - 93 ) AS col1
----
-191

query I rowsort
SELECT - 38 + + 27 AS col2
----
-11

query I rowsort
SELECT + ( + - 61 ) * + + ( - 20 ) AS col2
----
1220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT ALL - - CAST( NULL AS SIGNED ) / + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - - CAST ( NULL AS INTEGER ) / + - 97 AS col0
----
NULL

query I rowsort
SELECT ALL ( 10 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1291
SELECT - - CAST( + 40 AS SIGNED ) - 94
----
-54

skipif mysql # not compatible
query I rowsort label-1291
SELECT - - CAST ( + 40 AS INTEGER ) - 94
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT + - 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT + - 10 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + SUM( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + SUM ( ALL - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT COUNT( * ), 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-1294
SELECT COUNT ( * ), 26 AS col1
----
1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT DISTINCT - 5 * + + 58 DIV - COUNT( * ) AS col2
----
290

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT - 5 * + + 58 / - COUNT ( * ) AS col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL COUNT( DISTINCT + ( 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL COUNT ( DISTINCT + ( 11 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT DISTINCT + COUNT( * ) col0, - 19 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-1297
SELECT DISTINCT + COUNT ( * ) col0, - 19 AS col1
----
1
-19

query I rowsort
SELECT DISTINCT + 22 AS col1
----
22

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

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

query I rowsort
SELECT DISTINCT + + 48 + - 24
----
24

query I rowsort
SELECT DISTINCT - 21 * - 41 AS col2
----
861

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT ALL + + 1 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + + 1 / + 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL + 22 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + 22 / + 66
----
0

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + COUNT ( * ) / 33 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT - CAST( - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - CAST ( - 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT 57 * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1306
SELECT 57 * + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL - COUNT( DISTINCT + 55 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL - COUNT ( DISTINCT + 55 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT + - COUNT( * ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT + - COUNT ( * ) / + 83
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1309
SELECT - - CAST( NULL AS DECIMAL ) AS col0, - 30 AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-1309
SELECT - - CAST ( NULL AS REAL ) AS col0, - 30 AS col1
----
NULL
-30

query I rowsort
SELECT - + 21 + 55
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - 74 + - 82 + - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 74 + - 82 + - COUNT ( * )
----
-157

query I rowsort
SELECT - ( - + 67 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT - CAST( 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1313
SELECT - CAST ( 46 AS INTEGER )
----
-46

query I rowsort
SELECT + 86 + 53
----
139

query I rowsort
SELECT DISTINCT 86 * + 10 AS col2
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT CAST( - 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1316
SELECT CAST ( - 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT ALL - - 75 AS col1
----
75

query I rowsort
SELECT + 8 * + 7
----
56

query I rowsort
SELECT DISTINCT - 81 + - + 54
----
-135

query I rowsort
SELECT ALL - 64 * - 99 col1
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT 38 + - 66 - - COUNT( * ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT 38 + - 66 - - COUNT ( * ) col2
----
-27

query I rowsort
SELECT DISTINCT 2 - + 69 AS col1
----
-67

query I rowsort
SELECT ALL - + 86 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL + CAST( - - 1 AS SIGNED ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + CAST ( - - 1 AS INTEGER ) + + 99
----
100

query I rowsort
SELECT DISTINCT 32 col2
----
32

query I rowsort
SELECT ALL - 69 - - 29
----
-40

query I rowsort
SELECT + 65 * - 93 col1
----
-6045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - MIN( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1329
SELECT - MIN ( 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + COUNT( * ) - + COUNT( * ) * - - ( - 89 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + COUNT ( * ) - + COUNT ( * ) * - - ( - 89 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - COUNT( * ) * ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1331
SELECT - COUNT ( * ) * ( COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT ( + - 33 )
----
-33

query I rowsort
SELECT + ( + + 15 )
----
15

query I rowsort
SELECT - COALESCE ( + - 15, - 36 )
----
15

query I rowsort
SELECT - ( - 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT + ( + 79 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT + ( + 79 ) / - 85
----
0

query I rowsort
SELECT ALL + - 48 + + 95 * - 32 AS col1
----
-3088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 45
----
NULL

query I rowsort
SELECT + - 35 col0
----
-35

query I rowsort
SELECT DISTINCT - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT 67 * - + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1341
SELECT 67 * - + COUNT ( * )
----
-67

query I rowsort
SELECT 5 * ( + 82 ) * - 92 + + + 21 AS col2
----
-37699

query II rowsort
SELECT - 54, - 96 AS col0
----
-54
-96

query I rowsort
SELECT DISTINCT - + 98
----
-98

query I rowsort
SELECT + + ( 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1346
SELECT ALL - ( + CAST( - - 90 AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL - ( + CAST ( - - 90 AS INTEGER ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT - CAST( ( - - 5 ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - CAST ( ( - - 5 ) AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT ALL - 70 * + 58
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - NULLIF ( + COUNT( * ), - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - NULLIF ( + COUNT ( * ), - 19 )
----
-1

query I rowsort
SELECT ( ( - 57 ) )
----
-57

query I rowsort
SELECT ( + - 89 ) AS col0
----
-89

query I rowsort
SELECT ALL ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT ALL + 2 DIV + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + 2 / + COUNT ( * ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1354
SELECT ALL COUNT( * ) DIV - CAST( + MIN( 44 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL COUNT ( * ) / - CAST ( + MIN ( 44 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + 54 + + - 43 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT COUNT( * ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1356
SELECT COUNT ( * ) * - 90 AS col0
----
-90

query I rowsort
SELECT - 42 + + - 73 AS col0
----
-115

query I rowsort
SELECT - 0 * - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + 67 + + - SUM( + + 76 )
----
-9

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 67 + + - SUM ( + + 76 )
----
-9

query II rowsort
SELECT DISTINCT - 67 * + 2, 29 AS col0
----
-134
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT - 7 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT - 7 / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT - COUNT( * ) * - ( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-1362
SELECT - COUNT ( * ) * - ( + 50 )
----
50

query I rowsort
SELECT DISTINCT - - 13 * 23
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + + COUNT( * ) - 16
----
-15

skipif mysql # not compatible
query I rowsort label-1364
SELECT + + COUNT ( * ) - 16
----
-15

query I rowsort
SELECT - ( + 18 )
----
-18

query I rowsort
SELECT + 12 * 68 + + 68 AS col0
----
884

query I rowsort
SELECT + 51 + 26
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-1368
SELECT COUNT ( * ) * + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT COUNT( * ) + + 17
----
18

skipif mysql # not compatible
query I rowsort label-1369
SELECT COUNT ( * ) + + 17
----
18

query I rowsort
SELECT + ( + - ( + 93 ) )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1371
SELECT - CAST( NULL AS SIGNED ) * 50, - 42 AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-1371
SELECT - CAST ( NULL AS INTEGER ) * 50, - 42 AS col1
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-1373
SELECT 14 * + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT COUNT( * ) - + + 2 + 23
----
22

skipif mysql # not compatible
query I rowsort label-1374
SELECT COUNT ( * ) - + + 2 + 23
----
22

query I rowsort
SELECT ALL - - 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + + MIN( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + + MIN ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL COUNT( * ) * 61
----
61

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL COUNT ( * ) * 61
----
61

query I rowsort
SELECT + + 65 col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT ALL - - COUNT( * ) DIV 2 - + 43 - + + 86
----
-129

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - - COUNT ( * ) / 2 - + 43 - + + 86
----
-129

query I rowsort
SELECT - ( + 95 ) AS col0
----
-95

query I rowsort
SELECT + 20 * - + 50
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT - 68 * - + COUNT( * ) + - 22 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - 68 * - + COUNT ( * ) + - 22 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT COUNT( - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT COUNT ( - 20 ) AS col2
----
1

query II rowsort
SELECT 85 AS col2, + 66
----
85
66

query I rowsort
SELECT 12 + - 24
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT CAST( - + 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-1386
SELECT CAST ( - + 63 AS INTEGER )
----
-63

query I rowsort
SELECT DISTINCT + - 17 + - 94
----
-111

query I rowsort
SELECT ALL + 44 + - 10
----
34

query I rowsort
SELECT ALL - ( 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - MIN( DISTINCT - 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - MIN ( DISTINCT - 18 ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT MIN( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT MIN ( DISTINCT 96 )
----
96

query I rowsort
SELECT DISTINCT - ( + + 59 ) AS col2
----
-59

query I rowsort
SELECT 65 * ( + + 13 ) AS col1
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT 88 * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-1394
SELECT 88 * COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1395
SELECT ALL + CAST( NULL AS DECIMAL ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + CAST ( NULL AS REAL ) / COUNT ( * )
----
NULL

query I rowsort
SELECT - - 34 col2
----
34

query I rowsort
SELECT + ( - + 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT DISTINCT ( 58 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT ( 58 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 col0
----
50

query I rowsort
SELECT ALL + - ( - 62 ) + 14 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT - CAST( - + 74 AS SIGNED ) + + + 48 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-1401
SELECT - CAST ( - + 74 AS INTEGER ) + + + 48 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT + COUNT( * ) + 99 + + + 0 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + COUNT ( * ) + 99 + + + 0 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - ( ( + + COUNT( ALL 84 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - ( ( + + COUNT ( ALL 84 ) ) )
----
-1

query I rowsort
SELECT ALL + 50 * - 77 AS col2
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 44 - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 44 - + COUNT ( * )
----
-45

query I rowsort
SELECT - ( - - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - COUNT( * ) * - - 11
----
-11

skipif mysql # not compatible
query I rowsort label-1407
SELECT - COUNT ( * ) * - - 11
----
-11

query I rowsort
SELECT 58 + 27 AS col0
----
85

query I rowsort
SELECT DISTINCT 60 + + 41 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1410
SELECT ALL MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) * + - MIN( - ( 5 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * + COUNT ( * ) * + - MIN ( - ( 5 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 38 + - 1 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - NULLIF ( - COUNT( * ), + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT - NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - MAX( - - 37 ) * 8
----
-296

skipif mysql # not compatible
query I rowsort label-1413
SELECT - MAX ( - - 37 ) * 8
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) * - 93 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) * - 93 * + 8
----
NULL

query I rowsort
SELECT + 21 + 93 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT MAX( DISTINCT + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT MAX ( DISTINCT + + 60 )
----
60

query I rowsort
SELECT + 31 + - ( 70 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT + ( 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT - - 64 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - - 64 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT - COUNT( * ) + + 50 AS col1, COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-1420
SELECT - COUNT ( * ) + + 50 AS col1, COUNT ( * ) AS col2
----
49
1

query II rowsort
SELECT DISTINCT 77 + 84 * - 4 AS col1, 57 AS col0
----
-259
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT COUNT( * ) + + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1422
SELECT COUNT ( * ) + + - 0 AS col1
----
1

query I rowsort
SELECT ALL - + 16 AS col0
----
-16

query II rowsort
SELECT DISTINCT - 46 * + - 46 AS col1, ( - 58 ) AS col2
----
2116
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL + 92 + + + 29 * + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL + 92 + + + 29 * + COUNT ( * )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - MAX( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-1426
SELECT - MAX ( + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - MIN( 40 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-1427
SELECT - MIN ( 40 ) col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1428
SELECT ALL - - ( 7 ), CAST( + COUNT( * ) AS SIGNED ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-1428
SELECT ALL - - ( 7 ), CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
7
1

query I rowsort
SELECT 40 * 1 * + 52
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT - COUNT( * ) * ( 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - COUNT ( * ) * ( 95 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL MIN( DISTINCT + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL MIN ( DISTINCT + 68 ) AS col1
----
68

query I rowsort
SELECT - ( - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1433
SELECT + COUNT ( * ) * + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - COUNT( * ) + + 72 col2
----
71

skipif mysql # not compatible
query I rowsort label-1434
SELECT - COUNT ( * ) + + 72 col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT ALL COALESCE ( CAST( - 49 AS SIGNED ), + 10 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL COALESCE ( CAST ( - 49 AS INTEGER ), + 10 ) AS col2
----
-49

query I rowsort
SELECT ( 42 ) AS col2
----
42

query I rowsort
SELECT - 22 * 34 col0
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT + CAST( 48 AS SIGNED ) - 39 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1438
SELECT + CAST ( 48 AS INTEGER ) - 39 * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT + MIN( - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1439
SELECT + MIN ( - 90 ) AS col0
----
-90

query I rowsort
SELECT ALL - ( + 10 ) * 60 - + 68 AS col0
----
-668

query I rowsort
SELECT ALL 67 * 64
----
4288

query I rowsort
SELECT + 66 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1443
SELECT + CAST( NULL AS SIGNED ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT + CAST ( NULL AS INTEGER ) + 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT DISTINCT ( + CAST( + 43 AS SIGNED ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT ( + CAST ( + 43 AS INTEGER ) ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL + - 80 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + - 80 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 88 + 81 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT - 26 - + CAST( 87 AS SIGNED ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-1447
SELECT - 26 - + CAST ( 87 AS INTEGER ) AS col0
----
-113

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

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

query I rowsort
SELECT + 93 * + 26
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT 18 * ( MIN( - 36 ) ) col2
----
-648

skipif mysql # not compatible
query I rowsort label-1450
SELECT 18 * ( MIN ( - 36 ) ) col2
----
-648

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1451
SELECT ALL MIN( CAST( NULL AS DECIMAL ) ) + 34 * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL MIN ( CAST ( NULL AS REAL ) ) + 34 * 95 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT + 99 + + + CAST( 51 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-1452
SELECT + 99 + + + CAST ( 51 AS INTEGER )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT 18 * - + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1453
SELECT 18 * - + COUNT ( * ) AS col0
----
-18

query II rowsort
SELECT + 35, 44 AS col0
----
35
44

query I rowsort
SELECT DISTINCT + 85 + - 78 * - 79 AS col0
----
6247

query I rowsort
SELECT + - 2 + - 41
----
-43

query I rowsort
SELECT DISTINCT - 63 - + - 77
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT DISTINCT - CAST( + + 2 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - CAST ( + + 2 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + ( + MIN( ALL 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-1459
SELECT + ( + MIN ( ALL 99 ) )
----
99

query I rowsort
SELECT DISTINCT + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT ALL + MAX( - - 10 ) AS col1, 1
----
10
1

skipif mysql # not compatible
query II rowsort label-1461
SELECT ALL + MAX ( - - 10 ) AS col1, 1
----
10
1

query I rowsort
SELECT + ( + ( - 46 ) ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT 7 DIV 96 + + + 30
----
30

skipif mysql # not compatible
query I rowsort label-1463
SELECT 7 / 96 + + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - COUNT( DISTINCT + 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1464
SELECT - COUNT ( DISTINCT + 96 ) AS col2
----
-1

query I rowsort
SELECT - ( + 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1466
SELECT ALL 5 * - 72 AS col0, CAST( NULL AS SIGNED )
----
-360
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT ALL 5 * - 72 AS col0, CAST ( NULL AS INTEGER )
----
-360
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + 94 + + COUNT ( * )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT + 32 DIV - + 9
----
-3

skipif mysql # not compatible
query I rowsort label-1468
SELECT + 32 / - + 9
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL + 29 DIV + ( + - COUNT( * ) ) + + - 10 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 29 / + ( + - COUNT ( * ) ) + + - 10 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT COUNT( * ) * + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-1470
SELECT COUNT ( * ) * + - 28
----
-28

query I rowsort
SELECT ALL - + 77 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT + - 15 * - ( - - COUNT( - 87 ) ) - - - MIN( - 32 ) - ( COUNT( * ) + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT + - 15 * - ( - - COUNT ( - 87 ) ) - - - MIN ( - 32 ) - ( COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL - + 4
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1474
SELECT DISTINCT - 89, + CAST( NULL AS SIGNED ) AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1474
SELECT DISTINCT - 89, + CAST ( NULL AS INTEGER ) AS col2
----
-89
NULL

query II rowsort
SELECT DISTINCT 4 col2, 8
----
4
8

query I rowsort
SELECT 8 * 77 AS col2
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT ALL + 58 + - 37 + - MAX( + 91 ) DIV + 43
----
19

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL + 58 + - 37 + - MAX ( + 91 ) / + 43
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT COUNT( * ) * + + 54
----
54

skipif mysql # not compatible
query I rowsort label-1478
SELECT COUNT ( * ) * + + 54
----
54

query I rowsort
SELECT DISTINCT - ( - 77 ) * - + 23
----
-1771

query I rowsort
SELECT ALL + 90 * ( - + 43 ) AS col0
----
-3870

query II rowsort
SELECT DISTINCT + 13 AS col2, + 75
----
13
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT - CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT - CAST ( NULL AS INTEGER ) * 19
----
NULL

query I rowsort
SELECT + ( - + 52 )
----
-52

query I rowsort
SELECT - ( + + 69 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT 31 * 39
----
1209

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT 62 DIV - ( - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1486
SELECT 62 / - ( - 56 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL COUNT( * ) + 25 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL COUNT ( * ) + 25 AS col0
----
26

query I rowsort
SELECT 46 + 78
----
124

query II rowsort
SELECT ALL 59, - 15 AS col2
----
59
-15

query I rowsort
SELECT DISTINCT - ( + ( ( 23 ) ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL - - COUNT( ALL + 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - - COUNT ( ALL + 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT ALL + COUNT( * ) DIV - + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + COUNT ( * ) / - + 27 AS col0
----
0

query I rowsort
SELECT - 67 * - 3 col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - COUNT( + 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1494
SELECT - COUNT ( + 67 ) AS col0
----
-1

query I rowsort
SELECT - 77 - - 37
----
-40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1497
SELECT ALL - CAST( NULL AS DECIMAL ) / - 55 - + 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - CAST ( NULL AS REAL ) / - 55 - + 35 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL + 1 - + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + 1 - + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - + 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT MAX( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1500
SELECT MAX ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1501
SELECT 6 + + COUNT ( * )
----
7

query I rowsort
SELECT 96 * 24
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1503
SELECT SUM ( - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL - + 5 + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - + 5 + COUNT ( * ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT - 90 DIV + ( + - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT - 90 / + ( + - 65 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT COUNT( * ) DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT COUNT ( * ) / - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1507
SELECT + + 69 DIV COUNT( * ), - 4 AS col0
----
69
-4

skipif mysql # not compatible
query II rowsort label-1507
SELECT + + 69 / COUNT ( * ), - 4 AS col0
----
69
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1508
SELECT ALL + - ( - 61 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + - ( - 61 ) / - 71
----
0

query I rowsort
SELECT ( + 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT - 48 * - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT - 48 * - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + MIN( DISTINCT + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + MIN ( DISTINCT + 95 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1512
SELECT DISTINCT + CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + CAST ( - 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + + COUNT( * ) + - - COUNT( ALL + 56 )
----
2

skipif mysql # not compatible
query I rowsort label-1513
SELECT + + COUNT ( * ) + - - COUNT ( ALL + 56 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT CAST( + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1514
SELECT CAST ( + 10 AS INTEGER ) AS col0
----
10

query II rowsort
SELECT ALL + 45 AS col1, - 40
----
45
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL 67 + - 59 * + 78 * COUNT( * )
----
-4535

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 67 + - 59 * + 78 * COUNT ( * )
----
-4535

query II rowsort
SELECT 75 + - + 1 AS col2, 74
----
74
74

query I rowsort
SELECT DISTINCT + - 77 * + 44 AS col1
----
-3388

query I rowsort
SELECT 53 * 28 AS col2
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - 87 * - COUNT( * ) * 22 + + COUNT( * )
----
1915

skipif mysql # not compatible
query I rowsort label-1521
SELECT - 87 * - COUNT ( * ) * 22 + + COUNT ( * )
----
1915

query I rowsort
SELECT - 87 * - 10
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT ALL + COUNT( * ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL + COUNT ( * ) + 75
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1524
SELECT ALL + + 94 col1, COUNT( * ) + COUNT( * ) col1
----
94
2

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1
----
94
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1525
SELECT ALL + 48 AS col1, CAST( NULL AS DECIMAL )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL + 48 AS col1, CAST ( NULL AS REAL )
----
48
NULL

query I rowsort
SELECT ALL + + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT + COUNT( + 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + COUNT ( + 0 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT ALL - 19 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - 19 / + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT CAST( - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-1529
SELECT CAST ( - 89 AS INTEGER )
----
-89

query I rowsort
SELECT - 46 * - 42 * + 14
----
27048

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ( + 21 ) * - COUNT( * ) + 20
----
-1

skipif mysql # not compatible
query I rowsort label-1531
SELECT ( + 21 ) * - COUNT ( * ) + 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - COALESCE ( - COUNT( * ), - ( - 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1532
SELECT - COALESCE ( - COUNT ( * ), - ( - 33 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL 54 + + 8 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL 54 + + 8 + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL COUNT ( * ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL 18 + COUNT( * ) * - + 87
----
-69

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 18 + COUNT ( * ) * - + 87
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT COUNT( * ) - - + 20 * - 38 AS col1
----
-759

skipif mysql # not compatible
query I rowsort label-1536
SELECT COUNT ( * ) - - + 20 * - 38 AS col1
----
-759

query I rowsort
SELECT DISTINCT - NULLIF ( + + ( + 34 ), 38 )
----
-34

query I rowsort
SELECT ALL - + 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT 19 + COUNT( * ) * + - 37
----
-18

skipif mysql # not compatible
query I rowsort label-1539
SELECT 19 + COUNT ( * ) * + - 37
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL - 97 + - + MIN( - 42 ) * - 2 + - 35
----
-216

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL - 97 + - + MIN ( - 42 ) * - 2 + - 35
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT ALL - 24 * 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - 24 * 82 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT + 16 - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT + 16 - + COUNT ( * )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1543
SELECT COUNT( * ) * + - CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( * ) * + - CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT COUNT( * ) * + + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT COUNT ( * ) * + + 85 AS col0
----
85

query I rowsort
SELECT + - 22 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT + - CAST( 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1546
SELECT + - CAST ( 64 AS INTEGER ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT + 7 * - MIN( DISTINCT - 51 )
----
357

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + 7 * - MIN ( DISTINCT - 51 )
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT + COUNT( - 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + COUNT ( - 10 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) / + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 36 + - - 89 + 12 + - 58
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - 29 * + + COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 29 * + + COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL + + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL + + ( + COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1553
SELECT DISTINCT + - 65 DIV ( - COUNT( * ) ) + - 27 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT + - 65 / ( - COUNT ( * ) ) + - 27 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT + ( 5 ) DIV 2 col1
----
2

skipif mysql # not compatible
query I rowsort label-1554
SELECT + ( 5 ) / 2 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + MIN( - + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + MIN ( - + 60 ) AS col0
----
-60

query I rowsort
SELECT DISTINCT ( 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT - 6 DIV - + 9
----
0

skipif mysql # not compatible
query I rowsort label-1557
SELECT - 6 / - + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL - 25 + - - COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - 25 + - - COUNT ( * ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1559
SELECT - 28 col2, CASE + COUNT( * ) WHEN + + COUNT( * ) THEN + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) END
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-1559
SELECT - 28 col2, CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) END
----
-28
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1560
SELECT ALL + + 53 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL + + 53 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1561
SELECT + 3 AS col2, MAX( ALL + 1 )
----
3
1

skipif mysql # not compatible
query II rowsort label-1561
SELECT + 3 AS col2, MAX ( ALL + 1 )
----
3
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT 15 DIV - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1562
SELECT 15 / - COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT ALL 0 * 26
----
0

query I rowsort
SELECT DISTINCT + 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - - SUM( DISTINCT 16 ) + - 25 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - - SUM ( DISTINCT 16 ) + - 25 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) * - 65 * 74
----
-4810

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) * - 65 * 74
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - 33 + - + 0 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT 38 * MAX( ALL - 14 )
----
-532

skipif mysql # not compatible
query I rowsort label-1569
SELECT 38 * MAX ( ALL - 14 )
----
-532

query I rowsort
SELECT 33 * - + 22
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT MIN( ALL - 36 ) * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-1571
SELECT MIN ( ALL - 36 ) * COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + + 61 + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1572
SELECT + + 61 + - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT COALESCE ( + 57, - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-1573
SELECT COALESCE ( + 57, - COUNT ( * ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1574
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + + 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 61 col1
----
NULL

query I rowsort
SELECT + - 75 AS col0
----
-75

query II rowsort
SELECT ALL - 94 AS col0, + 31
----
-94
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL - + COUNT( ALL + 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - + COUNT ( ALL + 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT 56 * + 10 + + ( + - COUNT( * ) )
----
559

skipif mysql # not compatible
query I rowsort label-1578
SELECT 56 * + 10 + + ( + - COUNT ( * ) )
----
559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT + 50 / - CAST( NULL AS SIGNED ) / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT + 50 / - CAST ( NULL AS INTEGER ) / 55
----
NULL

query I rowsort
SELECT 69 * - - 3
----
207

query I rowsort
SELECT + - 68 * - 89
----
6052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL CAST( - + COUNT( DISTINCT - 66 ) AS SIGNED ) + - - 92
----
91

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL CAST ( - + COUNT ( DISTINCT - 66 ) AS INTEGER ) + - - 92
----
91

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

query I rowsort
SELECT - ( - 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1585
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 3 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + ( - 82 ) - - 92 * + 72 + - MAX( - 54 ) AS col1
----
6596

skipif mysql # not compatible
query I rowsort label-1587
SELECT + ( - 82 ) - - 92 * + 72 + - MAX ( - 54 ) AS col1
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL COUNT( * ) * + + 4
----
4

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL COUNT ( * ) * + + 4
----
4

query I rowsort
SELECT ALL 12 * - + 79
----
-948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1590
SELECT + ( CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1590
SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT ( + 19 ) AS col2
----
19

query I rowsort
SELECT + 2 * - 29 * - - 99
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT 86 * + + 49 + + + COUNT( * ) * 22 col2
----
4236

skipif mysql # not compatible
query I rowsort label-1593
SELECT 86 * + + 49 + + + COUNT ( * ) * 22 col2
----
4236

query I rowsort
SELECT DISTINCT + 5 + + 6
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT 64 + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT 64 + + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL 95 + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL 95 + - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT - - 90 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT ALL + COUNT( * ) DIV - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + COUNT ( * ) / - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 23 + - 71 AS col0
----
-48

query I rowsort
SELECT - 5 - + 24
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL - COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( + COUNT( * ), 58 ) + + + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( + COUNT ( * ), 58 ) + + + 26 AS col1
----
27

query I rowsort
SELECT + 55 * - 61 * + 75 AS col0
----
-251625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT MAX( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-1604
SELECT MAX ( 84 )
----
84

query I rowsort
SELECT - + 52 col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT CAST( NULL AS SIGNED ) * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT CAST ( NULL AS INTEGER ) * + 36 AS col0
----
NULL

query I rowsort
SELECT 34 - + - 32
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT ALL - CASE + COUNT( * ) WHEN AVG ( ALL + 59 ) THEN NULL ELSE + CAST( - - 61 AS SIGNED ) END col2
----
-61

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - CASE + COUNT ( * ) WHEN AVG ( ALL + 59 ) THEN NULL ELSE + CAST ( - - 61 AS INTEGER ) END col2
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT + COUNT( * ) * + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + COUNT ( * ) * + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) - + + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) - + + 24 AS col0
----
-24

query II rowsort
SELECT 47 AS col2, + ( + - 42 )
----
47
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT MAX( - - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-1613
SELECT MAX ( - - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - COUNT( * ) + - - ( + + COUNT( * ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - COUNT ( * ) + - - ( + + COUNT ( * ) ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT ALL - + COUNT( * ) DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - + COUNT ( * ) / + + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT MAX( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT MAX ( ALL 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL MIN( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL MIN ( 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT 36 * - + 49 AS col0
----
-1764

query I rowsort
SELECT - 99 * + + 90
----
-8910

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT - 61 DIV - + 22 + - 35 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - 61 / - + 22 + - 35 AS col2
----
-33

query I rowsort
SELECT DISTINCT + - ( + 92 ) AS col1
----
-92

query I rowsort
SELECT 87 - - - 92
----
-5

query I rowsort
SELECT ALL - 79 + + 21 AS col2
----
-58

query I rowsort
SELECT 3 * + 23 AS col2
----
69

query I rowsort
SELECT ALL + - 40 + - 81
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL SUM( ( - 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL SUM ( ( - 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1627
SELECT 28 + + COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT DISTINCT + + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL + ( - + 60 ) AS col2
----
-60

query II rowsort
SELECT ALL 43 AS col0, 55
----
43
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - COUNT( - + 65 ) * + 81
----
-81

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COUNT ( - + 65 ) * + 81
----
-81

query I rowsort
SELECT - 69 - + 27
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT - + CAST( NULL AS SIGNED ) * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT - + CAST ( NULL AS INTEGER ) * 79 AS col2
----
NULL

query I rowsort
SELECT ALL + + 26 AS col0
----
26

query I rowsort
SELECT DISTINCT - 42 * + 21
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1636
SELECT DISTINCT COUNT( + + 7 ) AS col1, ( CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1636
SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT - CAST( 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1637
SELECT - CAST ( 23 AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT ALL - 90 + - - 46 AS col1
----
-44

query I rowsort
SELECT ALL - 64 * - ( 46 ) col2
----
2944

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT COUNT( * ) + + + 18 + + 41 AS col1, COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-1640
SELECT COUNT ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1
----
60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT( * ) col0
----
-19
-1

skipif mysql # not compatible
query II rowsort label-1641
SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT ( * ) col0
----
-19
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1642
SELECT ALL ( 11 ) * - COUNT( * ) AS col2, 39 col2
----
-11
39

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL ( 11 ) * - COUNT ( * ) AS col2, 39 col2
----
-11
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT COUNT( * ) - 48
----
-47

skipif mysql # not compatible
query I rowsort label-1643
SELECT COUNT ( * ) - 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT + NULLIF ( + 28, - 4 * - 7 * - ( - COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT + NULLIF ( + 28, - 4 * - 7 * - ( - COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT 57 * + - 54
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT - COUNT( * ) + - 42 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1646
SELECT - COUNT ( * ) + - 42 AS col1
----
-43

query I rowsort
SELECT ALL - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + COUNT( * ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-1648
SELECT + COUNT ( * ) * - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL NULLIF ( + COUNT( * ), COUNT( * ) / 23 )
----
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) / 23 )
----
1

query I rowsort
SELECT DISTINCT ( ( + 16 ) ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT - 87 DIV + + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT - 87 / + + 96 col1
----
0

query I rowsort
SELECT DISTINCT 27 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT COUNT( 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1653
SELECT COUNT ( 26 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT ALL - COUNT( * ) col0, + 74 AS col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-1656
SELECT ALL - COUNT ( * ) col0, + 74 AS col1
----
-1
74

query I rowsort
SELECT DISTINCT - 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL COUNT( * ) + - 26 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL COUNT ( * ) + - 26 AS col2
----
-25

query I rowsort
SELECT - 71 * + 18 AS col2
----
-1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1660
SELECT ALL + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT NULLIF ( + 17, ( - - 4 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - COUNT( * ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-1662
SELECT - COUNT ( * ) * 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT + MIN( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT + MIN ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 66 * ( 90 )
----
5940

query I rowsort
SELECT ALL 24 + - 10 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - COUNT( * ) * 17
----
-17

skipif mysql # not compatible
query I rowsort label-1666
SELECT - COUNT ( * ) * 17
----
-17

query I rowsort
SELECT DISTINCT 69 * + 49 * - 56 col1
----
-189336

query I rowsort
SELECT ALL + - ( - 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1669
SELECT DISTINCT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * - 27 * + COALESCE ( - 69, - ( + - 35 ) * COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * - 27 * + COALESCE ( - 69, - ( + - 35 ) * COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 89 + + 10 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT COUNT ( * ) + 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT COUNT( * ) + - 22 col1
----
-21

skipif mysql # not compatible
query I rowsort label-1672
SELECT COUNT ( * ) + - 22 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT 38 * - COUNT( * ) - - 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1673
SELECT 38 * - COUNT ( * ) - - 40 AS col2
----
2

query I rowsort
SELECT 54 * + 85 AS col2
----
4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT ALL COALESCE ( - SUM( ALL - 56 ), COUNT( * ) DIV + 26 ) * 14 AS col0
----
784

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL COALESCE ( - SUM ( ALL - 56 ), COUNT ( * ) / + 26 ) * 14 AS col0
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT DISTINCT - ( - MIN( ( 89 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - ( - MIN ( ( 89 ) ) )
----
89

query I rowsort
SELECT DISTINCT 4 * 57
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - + MIN( DISTINCT - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - + MIN ( DISTINCT - 42 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT DISTINCT + 99 DIV - 12
----
-8

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + 99 / - 12
----
-8

query I rowsort
SELECT DISTINCT + - 99 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT + + 60 DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-1681
SELECT + + 60 / - 22
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT SUM( ALL + 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-1682
SELECT SUM ( ALL + 89 ) col2
----
89

query I rowsort
SELECT + 89 - - 70
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + COUNT( * ) + + - 46 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1684
SELECT + COUNT ( * ) + + - 46 AS col2
----
-45

query I rowsort
SELECT ALL - 86 * 78
----
-6708

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - - COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1686
SELECT - - COUNT ( * ) + - + 7
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT + NULLIF ( - 21, 94 + + 24 ) DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + NULLIF ( - 21, 94 + + 24 ) / + 34 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL + COUNT( * ) * - + 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + COUNT ( * ) * - + 43 AS col0
----
-43

query I rowsort
SELECT + 30 * + 27 AS col1
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT + CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT + CAST ( NULL AS INTEGER ) * 5
----
NULL

query II rowsort
SELECT + 92 AS col1, 85 * ( + 32 ) AS col0
----
92
2720

query II rowsort
SELECT 69 * - 65 AS col0, 27 AS col1
----
-4485
27

query I rowsort
SELECT DISTINCT ( - 81 ) + 42 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT ALL - + COUNT( DISTINCT 80 ), 27 col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-1695
SELECT ALL - + COUNT ( DISTINCT 80 ), 27 col2
----
-1
27

query I rowsort
SELECT 69 * + 88 AS col2
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT 75 + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1697
SELECT 75 + - COUNT ( * )
----
74

query I rowsort
SELECT 14 * + - 33
----
-462

query I rowsort
SELECT 30 + 39
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT + 69 * - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + 69 * - COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT 4 * + SUM( DISTINCT + 36 )
----
144

skipif mysql # not compatible
query I rowsort label-1701
SELECT 4 * + SUM ( DISTINCT + 36 )
----
144

query II rowsort
SELECT - 65, - 60 col0
----
-65
-60

query I rowsort
SELECT + + 27 + ( - 7 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT - CAST( 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1704
SELECT - CAST ( 44 AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT + ( + 9 ) AS col0
----
9

query I rowsort
SELECT + COALESCE ( 5, - 58 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-1707
SELECT - COUNT ( * ) * + 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT - 88 DIV + + ( + 40 )
----
-2

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 88 / + + ( + 40 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT - COUNT( * ) + - AVG ( - + ( + - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT - COUNT ( * ) + - AVG ( - + ( + - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 65 - - MAX( DISTINCT + + ( - 64 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT 65 - - MAX ( DISTINCT + + ( - 64 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - COUNT( DISTINCT - 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1711
SELECT - COUNT ( DISTINCT - 52 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT COUNT( * ) AS col1, 98 col2
----
1
98

skipif mysql # not compatible
query II rowsort label-1712
SELECT COUNT ( * ) AS col1, 98 col2
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - 40 + + MIN( + - 44 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 40 + + MIN ( + - 44 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + 86 + - 76 + + MIN( + - 73 )
----
-63

skipif mysql # not compatible
query I rowsort label-1714
SELECT + 86 + - 76 + + MIN ( + - 73 )
----
-63

query I rowsort
SELECT ALL + - 53 AS col1
----
-53

query I rowsort
SELECT + + 31 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + - 92 * + + COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1717
SELECT + - 92 * + + COUNT ( * ) AS col2
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1718
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 82 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 82 + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT 6 - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT 6 - - COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT 35 - - 26
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1721
SELECT - CAST( NULL AS SIGNED ) AS col1, 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-1721
SELECT - CAST ( NULL AS INTEGER ) AS col1, 38 AS col1
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + COUNT( ALL - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1722
SELECT + COUNT ( ALL - 47 ) AS col2
----
1

query I rowsort
SELECT ALL - 12 * - 32 AS col0
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL + + NULLIF ( + 67, - - MAX( ALL - 83 ) )
----
67

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + + NULLIF ( + 67, - - MAX ( ALL - 83 ) )
----
67

query I rowsort
SELECT + + 48 col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1726
SELECT COUNT( + CAST( + + 7 AS SIGNED ) ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT COUNT ( + CAST ( + + 7 AS INTEGER ) ) / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT + 32 * 96 + - COUNT( * ) + + CAST( + + MAX( + + 83 ) AS SIGNED ) AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-1727
SELECT + 32 * 96 + - COUNT ( * ) + + CAST ( + + MAX ( + + 83 ) AS INTEGER ) AS col2
----
3154

query I rowsort
SELECT DISTINCT + - 30 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL COUNT( * ) * - + 63
----
-63

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL COUNT ( * ) * - + 63
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1731
SELECT - - 64 + COUNT( * ) DIV - - 36
----
64

skipif mysql # not compatible
query I rowsort label-1731
SELECT - - 64 + COUNT ( * ) / - - 36
----
64

query I rowsort
SELECT ALL + - 63 * + 49
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + COUNT( * ) * + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1733
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT + NULLIF ( + - MAX( CAST( NULL AS SIGNED ) ), + ( - COUNT( * ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + NULLIF ( + - MAX ( CAST ( NULL AS INTEGER ) ), + ( - COUNT ( * ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT - CAST( + 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1735
SELECT - CAST ( + 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT - - COUNT( * ) / - CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 4
----
NULL

query I rowsort
SELECT DISTINCT - - 94 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - ( COUNT( + 20 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1738
SELECT - ( COUNT ( + 20 ) )
----
-1

query I rowsort
SELECT DISTINCT - 96 col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col2
----
2

query II rowsort
SELECT - 10 AS col1, + 98
----
-10
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT COUNT( * ) - + 99
----
-98

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) - + 99
----
-98

query I rowsort
SELECT ALL - + 74 AS col2
----
-74

query I rowsort
SELECT ALL - 85 * + 89 AS col0
----
-7565

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1745
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL 63 * + ( COUNT( * ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 63 * + ( COUNT ( * ) ) AS col0
----
63

query I rowsort
SELECT 88 * + + 11 col1
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + COUNT( * ) + 42 col1
----
43

skipif mysql # not compatible
query I rowsort label-1748
SELECT + COUNT ( * ) + 42 col1
----
43

query II rowsort
SELECT + 39 + 23, + ( 61 ) col1
----
62
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL COUNT( + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL COUNT ( + 91 )
----
1

query I rowsort
SELECT + + 26 * 97
----
2522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT + SUM( - 45 ) DIV - - 43
----
-1

skipif mysql # not compatible
query I rowsort label-1752
SELECT + SUM ( - 45 ) / - - 43
----
-1

query I rowsort
SELECT + - 99 + - ( 33 ) AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT ( - COUNT( * ) ) * + 4
----
-4

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT ( - COUNT ( * ) ) * + 4
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT COALESCE ( + COUNT( * ), 9 DIV - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1755
SELECT COALESCE ( + COUNT ( * ), 9 / - - 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - 41 * ( - - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - 41 * ( - - COUNT ( * ) )
----
-41

query I rowsort
SELECT - - ( - 50 )
----
-50

query I rowsort
SELECT ALL - 8 + - - 14 * - 25 AS col2
----
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL 58 + COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 58 + COUNT ( * ) col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT CAST( + MAX( DISTINCT - 86 ) AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1760
SELECT CAST ( + MAX ( DISTINCT - 86 ) AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT DISTINCT - 56 AS col0, + COUNT( * ) AS col2
----
-56
1

skipif mysql # not compatible
query II rowsort label-1761
SELECT DISTINCT - 56 AS col0, + COUNT ( * ) AS col2
----
-56
1

query I rowsort
SELECT DISTINCT + 37 * + 21 AS col0
----
777

query II rowsort
SELECT DISTINCT 90 AS col2, + 26
----
90
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( DISTINCT - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( DISTINCT - 57 )
----
1

query I rowsort
SELECT + ( - 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1766
SELECT 63 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT 63 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT NULLIF ( 51, - - COUNT( * ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1767
SELECT NULLIF ( 51, - - COUNT ( * ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - COUNT( * ) * - COUNT( * ) + + 72 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + 72 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT + + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1769
SELECT + + ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT ( + + 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT 11 - 94
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL MIN( DISTINCT - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL MIN ( DISTINCT - - 23 )
----
23

query I rowsort
SELECT DISTINCT ( 63 ) col2
----
63

query I rowsort
SELECT - ( + 99 ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1775
SELECT CAST( NULL AS SIGNED ) col1, SUM( DISTINCT + + 60 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1775
SELECT CAST ( NULL AS INTEGER ) col1, SUM ( DISTINCT + + 60 ) AS col0
----
NULL
60

query I rowsort
SELECT - + 11 * - 79
----
869

query II rowsort
SELECT DISTINCT + + 62 AS col1, 89 AS col0
----
62
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT MAX( 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1778
SELECT MAX ( 17 ) AS col0
----
17

query I rowsort
SELECT ALL 17 + + 97 AS col2
----
114

query I rowsort
SELECT DISTINCT - - 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - SUM( DISTINCT + 84 ) * - 85 AS col1
----
7140

skipif mysql # not compatible
query I rowsort label-1781
SELECT - SUM ( DISTINCT + 84 ) * - 85 AS col1
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - MIN( - + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1782
SELECT - MIN ( - + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + + COUNT( - + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1783
SELECT + + COUNT ( - + 17 ) AS col2
----
1

query I rowsort
SELECT ALL - 47 col0
----
-47

query I rowsort
SELECT DISTINCT 42 + - - 98
----
140

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + - NULLIF ( - - 81, - + 18 ), 46 )
----
-81

query I rowsort
SELECT - 74 + - - 76 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL - COUNT( * ) * + COUNT( ALL 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - COUNT ( * ) * + COUNT ( ALL 28 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT - 69 DIV - MAX( DISTINCT 45 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1790
SELECT - 69 / - MAX ( DISTINCT 45 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT - CAST( + 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-1791
SELECT - CAST ( + 57 AS INTEGER )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT - CAST( 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1792
SELECT - CAST ( 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT - COUNT( * ) DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT - COUNT ( * ) / - 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - SUM( ALL - - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1794
SELECT - SUM ( ALL - - 38 )
----
-38

query I rowsort
SELECT DISTINCT ( - ( + 14 ) )
----
-14

query I rowsort
SELECT ALL - - 22 + - 89
----
-67

query I rowsort
SELECT DISTINCT - ( - - 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1798
SELECT - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL + + 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + + 74 + + COUNT ( * )
----
75

query II rowsort
SELECT + + 37 AS col2, - 82
----
37
-82

query II rowsort
SELECT + 75 AS col0, ( 61 ) + + - 1 AS col0
----
75
60

query I rowsort
SELECT ALL 39 + - 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT 33 * - + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT 33 * - + COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT COUNT( - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( - 19 ) AS col2
----
1

query II rowsort
SELECT NULLIF ( - 9, 50 ) AS col1, 18
----
-9
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + 16 + + - MIN( 58 )
----
-42

skipif mysql # not compatible
query I rowsort label-1806
SELECT + 16 + + - MIN ( 58 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT + CAST( + 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-1807
SELECT + CAST ( + 90 AS INTEGER )
----
90

query I rowsort
SELECT DISTINCT - 93 col1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT 74, - 40 * COUNT( * ) AS col1
----
74
-40

skipif mysql # not compatible
query II rowsort label-1809
SELECT 74, - 40 * COUNT ( * ) AS col1
----
74
-40

query I rowsort
SELECT ALL - 22 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT + 75 - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + 75 - - COUNT ( * )
----
76

query I rowsort
SELECT 68 * 5
----
340

query II rowsort
SELECT DISTINCT + 32 AS col0, + 31
----
32
31

query I rowsort
SELECT - 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - COUNT( * ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT - COUNT ( * ) - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL NULLIF ( - ( + ( + COUNT( * ) ) ), + + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL NULLIF ( - ( + ( + COUNT ( * ) ) ), + + 24 )
----
-1

query II rowsort
SELECT ALL ( 7 ), 33 AS col1
----
7
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT ALL + SUM( - 22 ), 27 AS col1
----
-22
27

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL + SUM ( - 22 ), 27 AS col1
----
-22
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1820
SELECT - CAST( NULL AS DECIMAL ) * + ( - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT - CAST ( NULL AS REAL ) * + ( - 90 ) AS col2
----
NULL

query I rowsort
SELECT 86 * - + 77 AS col1
----
-6622

query I rowsort
SELECT DISTINCT + + 24 + + + 76 col2
----
100

query I rowsort
SELECT + 67 + + + 85 AS col2
----
152

query I rowsort
SELECT + ( 40 )
----
40

query I rowsort
SELECT DISTINCT - 60 * - 36
----
2160

query I rowsort
SELECT ALL 10 * - + 73 AS col2
----
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT 86 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-1827
SELECT 86 / + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL 74 * + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 74 * + + COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT CAST( NULL AS SIGNED ) - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( NULL AS INTEGER ) - - 38
----
NULL

query I rowsort
SELECT DISTINCT - + 80 col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1831
SELECT + COUNT( * ) DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT + COUNT ( * ) / 47 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - COUNT( * ) + - 76
----
-77

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) + - 76
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT MAX( DISTINCT + - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT MAX ( DISTINCT + - 13 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT COALESCE ( 9, + - COUNT( * ) DIV - 44 )
----
9

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT COALESCE ( 9, + - COUNT ( * ) / - 44 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT - + 97 - - 52 DIV - MIN( 33 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1835
SELECT - + 97 - - 52 / - MIN ( 33 ) AS col2
----
-98

query I rowsort
SELECT ALL - 86 * + 45 AS col1
----
-3870

query I rowsort
SELECT - - 60 col0
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT + + 65 * - + CAST( + 21 AS SIGNED ) AS col1
----
-1365

skipif mysql # not compatible
query I rowsort label-1839
SELECT + + 65 * - + CAST ( + 21 AS INTEGER ) AS col1
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL + - COALESCE ( - CAST( + 84 AS SIGNED ), 72 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + - COALESCE ( - CAST ( + 84 AS INTEGER ), 72 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL MAX( DISTINCT + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL MAX ( DISTINCT + - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT MAX( DISTINCT - - 37 ) AS col0, 93 col0
----
37
93

skipif mysql # not compatible
query II rowsort label-1842
SELECT MAX ( DISTINCT - - 37 ) AS col0, 93 col0
----
37
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT COUNT( * ) AS col2, - 16 AS col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-1843
SELECT COUNT ( * ) AS col2, - 16 AS col2
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT + COUNT( * ) * + + 45
----
45

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + COUNT ( * ) * + + 45
----
45

query I rowsort
SELECT ALL ( + - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT 17 AS col0, COUNT( * ) * 25 AS col0
----
17
25

skipif mysql # not compatible
query II rowsort label-1846
SELECT 17 AS col0, COUNT ( * ) * 25 AS col0
----
17
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + - COUNT( * ) + + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1847
SELECT + - COUNT ( * ) + + + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL + + SUM( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + + SUM ( - 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - COUNT( * ) * - 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1849
SELECT - COUNT ( * ) * - 68 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1850
SELECT + COUNT( + 99 ) DIV - 30 + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-1850
SELECT + COUNT ( + 99 ) / - 30 + - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL - 54 * - ( - COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - 54 * - ( - COUNT ( * ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT COUNT( * ) - + 30
----
-29

skipif mysql # not compatible
query I rowsort label-1852
SELECT COUNT ( * ) - + 30
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - ( - - MAX( ALL - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-1853
SELECT - ( - - MAX ( ALL - 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + + COUNT( * ) + 14 - - 8 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1854
SELECT + + COUNT ( * ) + 14 - - 8 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL - COUNT( * ) * - COUNT( * ) + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + 16 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT - 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 93 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT ALL - COUNT( * ) DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COUNT ( * ) / 23
----
0

query I rowsort
SELECT 24 * + 72 + + + 89 AS col1
----
1817

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1859
SELECT + - CAST( NULL AS DECIMAL ) + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT + - CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 14 * + ( - - 38 ) + - - ( - 73 )
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL + SUM( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + SUM ( - 6 )
----
-6

query I rowsort
SELECT - + 36 + 9
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT CAST( - - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-1863
SELECT CAST ( - - 91 AS INTEGER )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT + CAST( + 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-1864
SELECT + CAST ( + 11 AS INTEGER )
----
11

query I rowsort
SELECT ALL + ( - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT + + 66 + + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT + + 66 + + + COUNT ( * )
----
67

query II rowsort
SELECT ALL + 23 AS col2, - 10 col1
----
23
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT COUNT( * ) + + - 45 + SUM( ALL 72 )
----
28

skipif mysql # not compatible
query I rowsort label-1868
SELECT COUNT ( * ) + + - 45 + SUM ( ALL 72 )
----
28

query I rowsort
SELECT + 94 + 49
----
143

query I rowsort
SELECT DISTINCT - - 11 - + 86
----
-75

query II rowsort
SELECT + 84, - 41 AS col1
----
84
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT ALL + COUNT( + - 88 ) * - 82 DIV + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + COUNT ( + - 88 ) * - 82 / + 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT COUNT( + 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT COUNT ( + 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT DISTINCT - 73 DIV - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - 73 / - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-1875
SELECT + MIN ( ALL - 16 )
----
-16

query I rowsort
SELECT DISTINCT + - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT COUNT( ALL 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT COUNT ( ALL 90 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT - CAST( + SUM( DISTINCT - 31 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-1878
SELECT - CAST ( + SUM ( DISTINCT - 31 ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1879
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1879
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT + - CAST( + 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1880
SELECT + - CAST ( + 22 AS INTEGER ) AS col2
----
-22

query I rowsort
SELECT DISTINCT - + 97 * 52
----
-5044

query I rowsort
SELECT ALL + - ( - 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + + MAX( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + + MAX ( + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-1884
SELECT SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL 62 + MIN( DISTINCT 86 )
----
148

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL 62 + MIN ( DISTINCT 86 )
----
148

query I rowsort
SELECT ALL - 12 - - - 79 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL NULLIF ( + 47, - COUNT( * ) ) * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL NULLIF ( + 47, - COUNT ( * ) ) * - - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT - SUM( ALL + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1888
SELECT - SUM ( ALL + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - COUNT ( * ) * - 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT - SUM( DISTINCT + + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - SUM ( DISTINCT + + 34 ) AS col1
----
-34

query I rowsort
SELECT ALL - COALESCE ( + + 98, - + 5 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL - + COUNT( * ) * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - + COUNT ( * ) * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT ALL - 8 - CAST( - + ( - + 6 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 8 - CAST ( - + ( - + 6 ) AS INTEGER )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT - CAST( NULL AS SIGNED ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT - CAST ( NULL AS INTEGER ) + - 48 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL - 73 + - - COUNT( * ) + + COUNT( * ) * CAST( + + MIN( ALL ( 51 ) ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - 73 + - - COUNT ( * ) + + COUNT ( * ) * CAST ( + + MIN ( ALL ( 51 ) ) AS INTEGER ) AS col2
----
-21

query II rowsort
SELECT + 50 AS col2, COALESCE ( + 20, 27 )
----
50
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + 45 + - ( - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-1897
SELECT + 45 + - ( - COUNT ( * ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT - COUNT( * ) + - 0 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1898
SELECT - COUNT ( * ) + - 0 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT + 90 DIV - 44
----
-2

skipif mysql # not compatible
query I rowsort label-1899
SELECT + 90 / - 44
----
-2

query I rowsort
SELECT ALL + - 36 col2
----
-36

query II rowsort
SELECT + 40 AS col1, 74
----
40
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT SUM( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1903
SELECT SUM ( + 56 )
----
56

query I rowsort
SELECT ALL ( + 63 )
----
63

query II rowsort
SELECT - 68 + + + 58, 69 AS col1
----
-10
69

query II rowsort
SELECT + ( - 75 ), ( - - 6 ) AS col1
----
-75
6

query I rowsort
SELECT 87 + + - 64
----
23

query I rowsort
SELECT - 81 + - 93 AS col2
----
-174

query I rowsort
SELECT ALL - ( 74 )
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1910
SELECT + AVG ( ( - - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT + AVG ( ( - - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT COUNT( * ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT COUNT ( * ) + + 82
----
83

query I rowsort
SELECT + ( + - 42 ) * + 8 AS col2
----
-336

query I rowsort
SELECT - 39 * 95
----
-3705

query I rowsort
SELECT + 99 * - - 8
----
792

query I rowsort
SELECT NULLIF ( - ( 93 ), + - 7 ) AS col0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1916
SELECT - CAST( NULL AS DECIMAL ) * + + 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - CAST ( NULL AS REAL ) * + + 52 col1
----
NULL

query I rowsort
SELECT ALL ( - 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT + MAX( DISTINCT + 81 ) DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-1918
SELECT + MAX ( DISTINCT + 81 ) / + 33
----
2

query I rowsort
SELECT DISTINCT + 19 col2
----
19

query I rowsort
SELECT ALL 3 * - 86
----
-258

query I rowsort
SELECT ALL 67 * + 52 AS col1
----
3484

query I rowsort
SELECT ALL + ( - 40 ) col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT COUNT( * ) * MAX( + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1924
SELECT COUNT ( * ) * MAX ( + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - COUNT( * ) * + 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1925
SELECT - COUNT ( * ) * + 30 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1926
SELECT DISTINCT - CAST( ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - CAST ( ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + COUNT( * ) + 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-1927
SELECT + COUNT ( * ) + 4 col0
----
5

query I rowsort
SELECT + 84 + 29
----
113

query I rowsort
SELECT 86 * + 75
----
6450

query I rowsort
SELECT DISTINCT - ( + 76 )
----
-76

query I rowsort
SELECT DISTINCT - 77 col2
----
-77

query I rowsort
SELECT 68 * - - 32 * + 54 col2
----
117504

query I rowsort
SELECT DISTINCT + 7 + 88
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT ALL + 90 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 90 - - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT - COUNT( * ) * - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - COUNT ( * ) * - 22 AS col0
----
22

query II rowsort
SELECT DISTINCT + 22, - 41 AS col0
----
22
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT + + 92 + + MIN( DISTINCT + - 6 ) - + 52 * 7 * 71 AS col1
----
-25758

skipif mysql # not compatible
query I rowsort label-1938
SELECT + + 92 + + MIN ( DISTINCT + - 6 ) - + 52 * 7 * 71 AS col1
----
-25758

query I rowsort
SELECT ALL ( - - 70 ) AS col1
----
70

query I rowsort
SELECT + 16 * 49 AS col2
----
784

query I rowsort
SELECT + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT + MIN( + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT + MIN ( + - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT + - ( SUM( ALL - 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT + - ( SUM ( ALL - 76 ) ) AS col0
----
76

query I rowsort
SELECT DISTINCT 39 * 86
----
3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL COUNT( * ) + CAST( + ( COUNT( * ) ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL COUNT ( * ) + CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT COUNT( * ) + - 59 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1946
SELECT COUNT ( * ) + - 59 AS col0
----
-58

query I rowsort
SELECT 20 * 84
----
1680

query I rowsort
SELECT ALL - 42 * 48
----
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT - 37 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT - 37 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - MIN( ALL - 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1950
SELECT - MIN ( ALL - 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT DISTINCT - + AVG ( - - CAST( NULL AS SIGNED ) ) - - 17 * - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - + AVG ( - - CAST ( NULL AS INTEGER ) ) - - 17 * - ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL ( + 82 ) col0
----
82

query I rowsort
SELECT 21 + 95
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT 72 + - + 45 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT 72 + - + 45 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT + COUNT( * ) + + 99 + - 18 + 20 col2
----
102

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + COUNT ( * ) + + 99 + - 18 + 20 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COUNT( * ) * + 29 col1
----
29

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( * ) * + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + COUNT( * ) * + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1957
SELECT + COUNT ( * ) * + + ( - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 29
----
NULL

query I rowsort
SELECT DISTINCT ( + 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT DISTINCT + 88 col1, 0 col0
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL + SUM( ( - 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + SUM ( ( - 39 ) )
----
-39

query I rowsort
SELECT + + 50 * + 96
----
4800

query II rowsort
SELECT + 49, + 90 AS col2
----
49
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL COUNT( DISTINCT + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL COUNT ( DISTINCT + 41 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT + - 81 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + - 81 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL COUNT( * ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL COUNT ( * ) * - + 93
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1968
SELECT COUNT( * ) DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT COUNT ( * ) / + 46 AS col1
----
0

query I rowsort
SELECT 72 * + 97
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - 43 + + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - 43 + + COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT MAX( DISTINCT - - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1971
SELECT MAX ( DISTINCT - - 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL + MAX( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + MAX ( - 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - ( - + SUM( DISTINCT + 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1973
SELECT - ( - + SUM ( DISTINCT + 78 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - COUNT( * ) + - + 4 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1974
SELECT - COUNT ( * ) + - + 4 AS col1
----
-5

query I rowsort
SELECT ALL ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL + 30 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + 30 + + + COUNT ( * )
----
31

query I rowsort
SELECT - + 94 * - 8 col2
----
752

query I rowsort
SELECT - ( 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( + ( - 36 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1979
SELECT COUNT ( + ( - 36 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT DISTINCT - 15 + CAST( 95 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - 15 + CAST ( 95 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT MIN( ALL - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1981
SELECT MIN ( ALL - 1 ) AS col0
----
-1

query II rowsort
SELECT 8 col0, + 24
----
8
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - COUNT( * ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-1983
SELECT - COUNT ( * ) + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 42 + COUNT( * ) + - 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT 42 + COUNT ( * ) + - 42 AS col2
----
1

query I rowsort
SELECT 71 * - 51
----
-3621

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT COUNT( * ) * COUNT( * ) AS col0, - 95
----
1
-95

skipif mysql # not compatible
query II rowsort label-1986
SELECT COUNT ( * ) * COUNT ( * ) AS col0, - 95
----
1
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT - + COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1988
SELECT - COUNT( * ), CAST( NULL AS DECIMAL ) col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT - COUNT ( * ), CAST ( NULL AS REAL ) col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT + CAST( NULL AS SIGNED ) + - ( + 51 ) * + 77 / - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT + CAST ( NULL AS INTEGER ) + - ( + 51 ) * + 77 / - - 10 AS col2
----
NULL

query II rowsort
SELECT ALL 71, 2 AS col0
----
71
2

query I rowsort
SELECT + + ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL 25 * + COUNT( * ) + + 0 * 15
----
25

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 25 * + COUNT ( * ) + + 0 * 15
----
25

query I rowsort
SELECT ALL ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - - COUNT( * ) + + + MIN( + 26 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT - - COUNT ( * ) + + + MIN ( + 26 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL 50 + - - 1 - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL 50 + - - 1 - COUNT ( * )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT CAST( - + 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1996
SELECT CAST ( - + 46 AS INTEGER )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT CAST( + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1997
SELECT CAST ( + 44 AS INTEGER )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT + CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1998
SELECT + CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL COUNT( + 88 ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL COUNT ( + 88 ) * - 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT CAST( NULL AS SIGNED ) * + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT CAST ( NULL AS INTEGER ) * + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - - ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2001
SELECT - - ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 67 + - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 67 + - + 57
----
NULL

query I rowsort
SELECT 8 * + 65 AS col2
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 22 + 26 - - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 22 + 26 - - - COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2005
SELECT 33 * - - 33 AS col0, NULLIF ( + CAST( NULL AS DECIMAL ), - + 49 )
----
1089
NULL

skipif mysql # not compatible
query II rowsort label-2005
SELECT 33 * - - 33 AS col0, NULLIF ( + CAST ( NULL AS REAL ), - + 49 )
----
1089
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - COUNT( ALL - + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-2006
SELECT - COUNT ( ALL - + 77 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-2007
SELECT + COUNT ( * ) + 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL COUNT( * ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL COUNT ( * ) * 82 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT DISTINCT MAX( DISTINCT - - 85 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT MAX ( DISTINCT - - 85 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT DISTINCT 6 DIV + + ( + COUNT( * ) ) col0
----
6

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT 6 / + + ( + COUNT ( * ) ) col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT ( - 18 ) * + + COUNT( * ) / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ( - 18 ) * + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( - 80 ) * - - 60
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL COUNT( + 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL COUNT ( + 23 ) AS col0
----
1

query I rowsort
SELECT + ( + + 26 )
----
26

query I rowsort
SELECT ALL - + 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT + 51 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-2016
SELECT + 51 / + 47
----
1

query II rowsort
SELECT - 54, 38 AS col0
----
-54
38

query I rowsort
SELECT DISTINCT ( + - 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - COUNT( * ) * MAX( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-2019
SELECT - COUNT ( * ) * MAX ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT COUNT( * ) * + 6 + - - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT COUNT ( * ) * + 6 + - - COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL + + 63 AS col0, SUM( 92 ) AS col0
----
63
92

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL + + 63 AS col0, SUM ( 92 ) AS col0
----
63
92

query I rowsort
SELECT + ( - - 94 ) AS col0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2023
SELECT + - 47 * + - CAST( NULL AS DECIMAL ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT + - 47 * + - CAST ( NULL AS REAL ) + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT - + COUNT( + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - + COUNT ( + - 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL 70 - - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL 70 - - + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT 99 * + + CAST( + 13 AS SIGNED )
----
1287

skipif mysql # not compatible
query I rowsort label-2026
SELECT 99 * + + CAST ( + 13 AS INTEGER )
----
1287

query II rowsort
SELECT DISTINCT 53 col1, + 9 AS col0
----
53
9

query I rowsort
SELECT 60 + + 95 col2
----
155

query II rowsort
SELECT + 46 AS col0, 52 AS col1
----
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT + COUNT( * ) * - - 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT + COUNT ( * ) * - - 74 col0
----
74

query I rowsort
SELECT ( 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - MAX( + ( 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - MAX ( + ( 83 ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - COUNT( * ) - COUNT( * ) * - 62
----
61

skipif mysql # not compatible
query I rowsort label-2035
SELECT - COUNT ( * ) - COUNT ( * ) * - 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT MAX( 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2036
SELECT MAX ( 11 ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2037
SELECT + ( - 52 ) - + COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT + ( - 52 ) - + COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2038
SELECT + COUNT( * ) * 78 AS col2, COUNT( * ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-2038
SELECT + COUNT ( * ) * 78 AS col2, COUNT ( * ) AS col1
----
78
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL + CAST( - - 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + CAST ( - - 46 AS INTEGER )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT CAST( - - NULLIF ( + 41, + 87 ) AS SIGNED ) AS col1, ( - ( 75 ) ) col1
----
41
-75

skipif mysql # not compatible
query II rowsort label-2040
SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1
----
41
-75

query I rowsort
SELECT + ( - 16 )
----
-16

query I rowsort
SELECT ( + 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT CAST( + COUNT( * ) AS SIGNED ) - - 29
----
30

skipif mysql # not compatible
query I rowsort label-2043
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - - 29
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2044
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - 95 + - - COUNT( DISTINCT + 62 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2045
SELECT - 95 + - - COUNT ( DISTINCT + 62 ) AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT + CAST( + 36 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + CAST ( + 36 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 1 AS col2
----
NULL

query I rowsort
SELECT ALL - - 15 + + 2
----
17

query I rowsort
SELECT - ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT + MAX( - 71 ) * + 58 AS col0
----
-4118

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT + MAX ( - 71 ) * + 58 AS col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT COUNT( * ) * - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( * ) * - 83 AS col0
----
-83

query I rowsort
SELECT DISTINCT 53 * - 97 AS col2
----
-5141

query I rowsort
SELECT - 59 - - - 46 AS col0
----
-105

query II rowsort
SELECT + 88 AS col0, + 81 * - ( - 41 ) AS col0
----
88
3321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2054
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) + 3 - + CAST( NULL AS SIGNED ) * - 92 ) AS col2, - MAX( ALL + 20 ) AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-2054
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 3 - + CAST ( NULL AS INTEGER ) * - 92 ) AS col2, - MAX ( ALL + 20 ) AS col1
----
NULL
-20

query I rowsort
SELECT NULLIF ( - 18, - 66 * + 95 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL + - MAX( ALL - + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + - MAX ( ALL - + 47 ) AS col0
----
47

query I rowsort
SELECT + - 89 * - 36
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + COUNT( * ) + - 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2058
SELECT + COUNT ( * ) + - 76 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + 13 - - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2059
SELECT + 13 - - + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - 51 + 17 * - ( - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - 51 + 17 * - ( - COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT 58 + - COALESCE ( - COUNT( * ), COUNT( * ) * - 68 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT 58 + - COALESCE ( - COUNT ( * ), COUNT ( * ) * - 68 ) AS col2
----
59

query I rowsort
SELECT + 26 + - - 7 * 88 + + - 19 + + 13
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - 48 * + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - 48 * + COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT 73 * 94
----
6862

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT ALL - 17 DIV - 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - 17 / - 76 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2066
SELECT DISTINCT - COUNT( * ) AS col1, ( + 28 ) DIV - + 2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2066
SELECT DISTINCT - COUNT ( * ) AS col1, ( + 28 ) / - + 2
----
-1
-14

query I rowsort
SELECT DISTINCT - ( + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2068
SELECT - 85 AS col0, - SUM( ALL + - 33 )
----
-85
33

skipif mysql # not compatible
query II rowsort label-2068
SELECT - 85 AS col0, - SUM ( ALL + - 33 )
----
-85
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT 62 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT 62 / 74
----
0

query I rowsort
SELECT + 43 + - - 63 AS col1
----
106

query I rowsort
SELECT ALL - + 76 AS col0
----
-76

query I rowsort
SELECT + + 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - COUNT( * ) + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-2073
SELECT - COUNT ( * ) + - 4
----
-5

query I rowsort
SELECT DISTINCT + 16 * - 71
----
-1136

query I rowsort
SELECT DISTINCT ( 77 ) AS col2
----
77

query I rowsort
SELECT ALL + + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT 15 * - COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT 15 * - COUNT ( * ) col0
----
-15

query I rowsort
SELECT - ( + + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT MIN( DISTINCT + + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2079
SELECT MIN ( DISTINCT + + 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT MIN( ALL + - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-2080
SELECT MIN ( ALL + - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT + 21 + + MIN( DISTINCT 24 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + 21 + + MIN ( DISTINCT 24 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT 37 * - COUNT ( * )
----
-37

query I rowsort
SELECT ALL - + ( + 9 ) AS col1
----
-9

query I rowsort
SELECT ALL - + ( + 25 ) AS col2
----
-25

query I rowsort
SELECT DISTINCT - + 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT 56 * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2086
SELECT 56 * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT 72 - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2087
SELECT 72 - + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT DISTINCT CAST( - 98 AS SIGNED ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT CAST ( - 98 AS INTEGER ) col1
----
-98

query I rowsort
SELECT ALL - ( + 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2091
SELECT 70 AS col2, CAST( NULL AS SIGNED )
----
70
NULL

skipif mysql # not compatible
query II rowsort label-2091
SELECT 70 AS col2, CAST ( NULL AS INTEGER )
----
70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT 51 AS col2, - COUNT( * )
----
51
-1

skipif mysql # not compatible
query II rowsort label-2092
SELECT 51 AS col2, - COUNT ( * )
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - 86 * + MAX( ALL - 94 ) AS col2
----
8084

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - 86 * + MAX ( ALL - 94 ) AS col2
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + COUNT( * ) - + - 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2094
SELECT + COUNT ( * ) - + - 94 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT - 77 DIV + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-2095
SELECT - 77 / + + COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT COALESCE ( 10, + + 81 )
----
10

query I rowsort
SELECT ALL 79 * + 52 AS col1
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT CAST( - - ( + + COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT CAST( - 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2099
SELECT CAST ( - 82 AS INTEGER ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + ( + 11 ) + ( - + COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2100
SELECT + ( + 11 ) + ( - + COUNT ( * ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + 17 - + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2101
SELECT + 17 - + COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - COUNT ( - 94 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2103
SELECT 50 - - + ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT 50 - - + ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 6 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2104
SELECT 6 + - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL - SUM( DISTINCT + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - SUM ( DISTINCT + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT - MAX( DISTINCT + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - MAX ( DISTINCT + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + SUM( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2107
SELECT + SUM ( + 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT ALL + COUNT( * ) * + ( - AVG ( 27 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + COUNT ( * ) * + ( - AVG ( 27 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 43 * 87 col0
----
3741

query I rowsort
SELECT + 56 + + + 31
----
87

query I rowsort
SELECT - 38 - 51 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + SUM( DISTINCT - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2112
SELECT + SUM ( DISTINCT - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT + + 3 - - 69 + + COUNT( * ) DIV 6 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2113
SELECT + + 3 - - 69 + + COUNT ( * ) / 6 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT SUM( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2114
SELECT SUM ( + 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT 6 + - MAX( DISTINCT - - 63 ) - 74 * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT 6 + - MAX ( DISTINCT - - 63 ) - 74 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + MAX( - - 22 ) - - COUNT( * ) col1
----
23

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + MAX ( - - 22 ) - - COUNT ( * ) col1
----
23

query I rowsort
SELECT ALL - ( - - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL SUM ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL COUNT( - - 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL COUNT ( - - 64 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT - 80 AS col1, COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-2120
SELECT - 80 AS col1, COUNT ( * ) AS col0
----
-80
1

query I rowsort
SELECT - 36 + - - 69
----
33

query I rowsort
SELECT - 53 * + 16
----
-848

query I rowsort
SELECT 16 * - + 76 + 54 * - - 93 col0
----
3806

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT NULLIF ( - ( + ( + + 34 ) ), + COUNT( * ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2124
SELECT NULLIF ( - ( + ( + + 34 ) ), + COUNT ( * ) ) AS col1
----
-34

query I rowsort
SELECT + ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2127
SELECT DISTINCT ( + 90 ) AS col1, - COUNT( * )
----
90
-1

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT ( + 90 ) AS col1, - COUNT ( * )
----
90
-1

query I rowsort
SELECT DISTINCT + 53 + + 97
----
150

query I rowsort
SELECT DISTINCT - 31 + 7
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MIN( DISTINCT + 74 ) * + 16 col1
----
1184

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MIN ( DISTINCT + 74 ) * + 16 col1
----
1184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT ALL + COUNT( ALL - 16 ) DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL + COUNT ( ALL - 16 ) / 25
----
0

query I rowsort
SELECT - - ( + 11 ) AS col1
----
11

query I rowsort
SELECT - - ( - 28 ) AS col1
----
-28

query I rowsort
SELECT + 96 * 83 col2
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-2135
SELECT + COUNT ( * ) * 78
----
78

query I rowsort
SELECT + ( - 45 ) * - 56
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT + CAST( NULL AS SIGNED ) * - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT + CAST ( NULL AS INTEGER ) * - - 85 AS col2
----
NULL

query I rowsort
SELECT ( - 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - 55 * - - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 55 * - - COUNT ( * )
----
-55

query II rowsort
SELECT 17, + 40 AS col1
----
17
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT 89 DIV - COALESCE ( + ( 44 ), + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2141
SELECT 89 / - COALESCE ( + ( 44 ), + COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT 79 DIV - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-2142
SELECT 79 / - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT - + COUNT( DISTINCT - - 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - + COUNT ( DISTINCT - - 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT COUNT( * ) + + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-2144
SELECT COUNT ( * ) + + - 60
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ALL + COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + COUNT ( * ) / 5
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT DISTINCT + CAST( - 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) AS col2
----
-24

query I rowsort
SELECT - ( - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL MAX( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL MAX ( 91 ) AS col0
----
91

query I rowsort
SELECT ALL + ( + 27 ) AS col1
----
27

query I rowsort
SELECT ALL + 30 col0
----
30

query I rowsort
SELECT ALL + 53 * ( 81 )
----
4293

query II rowsort
SELECT DISTINCT + 6, 18 AS col0
----
6
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT DISTINCT + ( 25 ) * + - COUNT( * ), + 44 AS col0
----
-25
44

skipif mysql # not compatible
query II rowsort label-2153
SELECT DISTINCT + ( 25 ) * + - COUNT ( * ), + 44 AS col0
----
-25
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT - - MIN( - - 56 ) + 69 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - - MIN ( - - 56 ) + 69 AS col0
----
125

query I rowsort
SELECT DISTINCT + 70 * - 96
----
-6720

query I rowsort
SELECT ( - + 43 ) * + COALESCE ( + 3, 13 ) AS col0
----
-129

query I rowsort
SELECT 3 + - - 93
----
96

query I rowsort
SELECT ( 45 ) AS col0
----
45

query I rowsort
SELECT DISTINCT - + ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL MIN( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL MIN ( + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT + CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-2161
SELECT + CAST ( + 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - ( - + MIN( ALL + - 36 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2162
SELECT - ( - + MIN ( ALL + - 36 ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - MIN( DISTINCT + ( + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-2163
SELECT - MIN ( DISTINCT + ( + 55 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL SUM( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL SUM ( DISTINCT - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - SUM( DISTINCT - + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2165
SELECT - SUM ( DISTINCT - + 20 ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2166
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - 53 AS col2, + 70 * - COUNT( * )
----
-53
-70

skipif mysql # not compatible
query II rowsort label-2166
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - 53 AS col2, + 70 * - COUNT ( * )
----
-53
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT CAST( NULL AS SIGNED ) / - + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT CAST ( NULL AS INTEGER ) / - + 2 col0
----
NULL

query I rowsort
SELECT ALL ( - 87 ) AS col0
----
-87

query I rowsort
SELECT ALL + + 49 + - 42 * 94 AS col1
----
-3899

query I rowsort
SELECT 94 * 83
----
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - COUNT( 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2171
SELECT - COUNT ( 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT + 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT + 97 * + COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2173
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL ( - 10 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT - 81 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 81 / - 97
----
0

query I rowsort
SELECT + ( + 63 ) AS col1
----
63

query I rowsort
SELECT ( + + NULLIF ( + 99, - 35 ) ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL + CAST( - + ( 59 ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + CAST ( - + ( 59 ) AS INTEGER ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT ALL + 72 * - CAST( NULL AS SIGNED ) + + COUNT( * ) - 87 + - + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL + 72 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 87 + - + ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2180
SELECT COUNT( * ) DIV CAST( + 82 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) / CAST ( + 82 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT COUNT( * ) * + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2181
SELECT COUNT ( * ) * + - COUNT ( * ) col1
----
-1

query II rowsort
SELECT 77 AS col0, 74
----
77
74

query I rowsort
SELECT ( 18 ) AS col0
----
18

query I rowsort
SELECT ALL + 18 * + 41 AS col1
----
738

query I rowsort
SELECT ALL ( + - 51 ) * - 3
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT SUM( - + 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-2186
SELECT SUM ( - + 28 ) col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2187
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL - - 33 * - - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - - 33 * - - COUNT ( * ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL 30 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 30 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 36 * + 85
----
-3060

query II rowsort
SELECT - 29 AS col2, + 12 AS col1
----
-29
12

query I rowsort
SELECT ALL + - 83 col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + COUNT( * ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COUNT ( * ) - 30 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT ALL + 89 DIV + - 73
----
-1

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + 89 / + - 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) + - ( - 37 ) * + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + - ( - 37 ) * + + COUNT ( * ) col1
----
NULL

query II rowsort
SELECT - + 67 AS col1, 79 col0
----
-67
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + - SUM( DISTINCT + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-2198
SELECT + - SUM ( DISTINCT + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - MIN( 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - MIN ( 94 ) AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT - 16 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - 16 / + 77
----
0

query I rowsort
SELECT DISTINCT 23 * + 95
----
2185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT COUNT( * ) + + ( - COALESCE ( 81, - CAST( NULL AS SIGNED ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT COUNT ( * ) + + ( - COALESCE ( 81, - CAST ( NULL AS INTEGER ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT 45 + + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT 45 + + - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 33 + - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-2204
SELECT 33 + - + COUNT ( * )
----
32

query II rowsort
SELECT ALL + 81 AS col0, - 5
----
81
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - 20 * + + COUNT( * ) * - + 77 AS col2
----
1540

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - 20 * + + COUNT ( * ) * - + 77 AS col2
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT ALL + CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL + CAST ( - 83 AS INTEGER ) AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + 46 + - + 86 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 46 + - + 86 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 75 ) + 22 AS col0
----
97

query I rowsort
SELECT - 64 + + 16
----
-48

query I rowsort
SELECT - + 80 * + - 34 col0
----
2720

query I rowsort
SELECT DISTINCT + 86 - 80
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT + COUNT( DISTINCT 35 )
----
1

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + COUNT ( DISTINCT 35 )
----
1

query I rowsort
SELECT - - ( - - 45 ) col1
----
45

query I rowsort
SELECT ALL 49 * + 1
----
49

query I rowsort
SELECT ALL + + ( - - 42 )
----
42

query I rowsort
SELECT - 65 - + 90 AS col1
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT COUNT( * ) + + 95 DIV + + 62 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2218
SELECT COUNT ( * ) + + 95 / + + 62 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 65 + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2219
SELECT 65 + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT - - 95 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( 80, + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( 80, + COUNT ( * ) ) col1
----
NULL

query II rowsort
SELECT ALL 4 AS col0, 67 AS col1
----
4
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2223
SELECT COUNT( * ) - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2223
SELECT COUNT ( * ) - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

query I rowsort
SELECT DISTINCT + 20 + + 97 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - ( + - NULLIF ( COUNT( * ), + 23 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - ( + - NULLIF ( COUNT ( * ), + 23 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 23
----
-23

query II rowsort
SELECT - 21 AS col2, 88 col1
----
-21
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT COUNT( * ) + - 65 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2228
SELECT COUNT ( * ) + - 65 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2230
SELECT + MIN( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + MIN ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT + COUNT( * ) * + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + COUNT ( * ) * + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL 16 * - SUM( - + 99 )
----
1584

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 16 * - SUM ( - + 99 )
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT + + COUNT( + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + + COUNT ( + - 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT COUNT( * ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT COUNT ( * ) + + - 2
----
-1

query II rowsort
SELECT ALL + 32 AS col2, + 21
----
32
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT + - COUNT( * ) DIV + MIN( ALL + 53 ) DIV COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT + - COUNT ( * ) / + MIN ( ALL + 53 ) / COUNT ( * ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT + 74 DIV - 81 * ( + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT + 74 / - 81 * ( + + 73 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2238
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2238
SELECT DISTINCT MIN ( - CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * )
----
NULL
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT - + ( CAST( NULL AS SIGNED ) ) * + 42 - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + ( CAST ( NULL AS INTEGER ) ) * + 42 - - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT MAX( ALL + + 97 ) * - COUNT( * ) * COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT MAX ( ALL + + 97 ) * - COUNT ( * ) * COUNT ( * ) AS col1
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2242
SELECT ALL CAST( NULL AS DECIMAL ) / 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL CAST ( NULL AS REAL ) / 44 col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL SUM( ALL - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL SUM ( ALL - 72 ) AS col0
----
-72

query II rowsort
SELECT 66 AS col0, 95
----
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT - 46 + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - 46 + - COUNT ( * )
----
-47

query I rowsort
SELECT + - 2 + 86 AS col0
----
84

query I rowsort
SELECT - ( - + ( + + 95 ) )
----
95

query I rowsort
SELECT + 0 * - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - MIN( DISTINCT + 49 ) - + + 6 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2250
SELECT - MIN ( DISTINCT + 49 ) - + + 6 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT - 0 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT - 0 + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL 12 * - 88 / + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 12 * - 88 / + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT 20 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT 20 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 96 + - 31
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT SUM( ALL - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-2256
SELECT SUM ( ALL - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - COUNT( * ) * 67
----
-67

skipif mysql # not compatible
query I rowsort label-2257
SELECT - COUNT ( * ) * 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT 86 * - 55 - - COUNT( * )
----
-4729

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT 86 * - 55 - - COUNT ( * )
----
-4729

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - ( COUNT( * ) ) * + - 25
----
25

skipif mysql # not compatible
query I rowsort label-2259
SELECT - ( COUNT ( * ) ) * + - 25
----
25

query I rowsort
SELECT + ( 84 ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - MAX( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - MAX ( 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL 97 + - 67 DIV + 63
----
96

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL 97 + - 67 / + 63
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT CAST( NULL AS SIGNED ), 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2263
SELECT CAST ( NULL AS INTEGER ), 36 AS col2
----
NULL
36

onlyif mysql # DIV for integer division: 
query II rowsort label-2264
SELECT ALL - 35 + + - 18 DIV + 35, 56 AS col2
----
-35
56

skipif mysql # not compatible
query II rowsort label-2264
SELECT ALL - 35 + + - 18 / + 35, 56 AS col2
----
-35
56

query I rowsort
SELECT DISTINCT 93 * 23 * - + 28 AS col1
----
-59892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT CAST( + 15 AS SIGNED ) + - ( ( + + COUNT( * ) ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2266
SELECT CAST ( + 15 AS INTEGER ) + - ( ( + + COUNT ( * ) ) ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2267
SELECT 98 * + COALESCE ( - ( + 82 ), - 44 DIV 14 + - + 40 + - + 49 * - COUNT( * ) DIV - + MIN( DISTINCT + 66 ) ) + 16 AS col1
----
-8020

skipif mysql # not compatible
query I rowsort label-2267
SELECT 98 * + COALESCE ( - ( + 82 ), - 44 / 14 + - + 40 + - + 49 * - COUNT ( * ) / - + MIN ( DISTINCT + 66 ) ) + 16 AS col1
----
-8020

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT ALL + MAX( DISTINCT + - 65 ) AS col2, + 7 col0
----
-65
7

skipif mysql # not compatible
query II rowsort label-2268
SELECT ALL + MAX ( DISTINCT + - 65 ) AS col2, + 7 col0
----
-65
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT COUNT( ALL - 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2269
SELECT COUNT ( ALL - 20 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2270
SELECT + MAX ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + MIN( ALL + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-2271
SELECT + MIN ( ALL + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - COUNT( * ) - - 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - COUNT ( * ) - - 70 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - - COUNT( * ) * + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2273
SELECT - - COUNT ( * ) * + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT MIN( - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT MIN ( - - 51 ) AS col0
----
51

query I rowsort
SELECT ALL + 38 * + + 83
----
3154

query I rowsort
SELECT ALL - 76 * - 41 AS col1
----
3116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT + COUNT( * ) * + NULLIF ( + CAST( NULL AS SIGNED ), + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS INTEGER ), + 29 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2278
SELECT - CAST ( - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT - ( 20 )
----
-20

query I rowsort
SELECT DISTINCT - - 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT - + CAST( + 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - + CAST ( + 94 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT - CAST( + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - CAST ( + 3 AS INTEGER )
----
-3

query I rowsort
SELECT ALL 13 + + 75
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT ALL 77 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 77 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - COUNT( * ) + 31 + + 84 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - COUNT ( * ) + 31 + + 84 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL 58 * + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL 58 * + COUNT ( * ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT - ( - - CAST( + - COUNT( ALL - + ( - - 98 ) ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2288
SELECT - ( - - CAST ( + - COUNT ( ALL - + ( - - 98 ) ) AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT + 86 * 76
----
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - - 46 + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2290
SELECT - - 46 + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT MIN( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-2291
SELECT MIN ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT - + COUNT( * ) AS col2, + 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-2292
SELECT - + COUNT ( * ) AS col2, + 42
----
-1
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT - COUNT( * ) col0, - COUNT( * ) + - + 48 AS col0
----
-1
-49

skipif mysql # not compatible
query II rowsort label-2293
SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0
----
-1
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT ALL + CAST( - - 60 AS SIGNED ) DIV + - 30
----
-2

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + CAST ( - - 60 AS INTEGER ) / + - 30
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT 22 * COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2296
SELECT 22 * COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL + - CAST( NULL AS SIGNED ) + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + - CAST ( NULL AS INTEGER ) + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( * ) * + 31
----
31

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( * ) * + 31
----
31

query I rowsort
SELECT 18 + - 73 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - SUM( ALL ( - 96 ) ) * - 98 - 75
----
-9483

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - SUM ( ALL ( - 96 ) ) * - 98 - 75
----
-9483

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - 81 + - SUM( DISTINCT + 21 ) + + + 74 + COUNT( * ) * - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-2301
SELECT - 81 + - SUM ( DISTINCT + 21 ) + + + 74 + COUNT ( * ) * - COUNT ( * ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT - NULLIF ( 13, 5 + - COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - NULLIF ( 13, 5 + - COUNT ( * ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - + MAX( ALL + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2303
SELECT - + MAX ( ALL + 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2304
SELECT ALL - COUNT( * ), - ( + COUNT( * ) ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2304
SELECT ALL - COUNT ( * ), - ( + COUNT ( * ) ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT 52 + - COUNT( * ) + + - 24 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2305
SELECT 52 + - COUNT ( * ) + + - 24 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + + ( CASE COUNT( * ) WHEN - + COUNT( * ) THEN + 66 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT + + ( CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN + 66 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 36 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2307
SELECT 36 * - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2308
SELECT ALL 81 * + ( COUNT( * ) ), 94 AS col0
----
81
94

skipif mysql # not compatible
query II rowsort label-2308
SELECT ALL 81 * + ( COUNT ( * ) ), 94 AS col0
----
81
94

query I rowsort
SELECT ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + COUNT( 99 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2310
SELECT + COUNT ( 99 ) col2
----
1

query I rowsort
SELECT + 83 * 23 AS col2
----
1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT ALL 75 DIV 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 75 / 61 AS col2
----
1

query I rowsort
SELECT - 39 - - 60 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-2315
SELECT + COUNT ( * ) * 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT - + 78 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT - + 78 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 50 * 15
----
750

query I rowsort
SELECT ALL + - 59 + 87
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT + + 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + + 17 + COUNT ( * )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2320
SELECT DISTINCT - CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - CAST ( - - CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - MIN( + CASE 4 WHEN 88 THEN 65 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - MIN ( + CASE 4 WHEN 88 THEN 65 END )
----
NULL

query I rowsort
SELECT 51 * + 25 AS col2
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT COUNT( * ) * + 28
----
28

skipif mysql # not compatible
query I rowsort label-2324
SELECT COUNT ( * ) * + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT - MIN( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - MIN ( 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT ALL COUNT( * ) AS col2, 45 + ( + 59 )
----
1
104

skipif mysql # not compatible
query II rowsort label-2326
SELECT ALL COUNT ( * ) AS col2, 45 + ( + 59 )
----
1
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT ALL 58 DIV - - 44 col0
----
1

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 58 / - - 44 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL 22 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 22 / - + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL + MAX( DISTINCT + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + MAX ( DISTINCT + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT NULLIF ( COUNT( * ), 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2330
SELECT NULLIF ( COUNT ( * ), 19 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT - ( - COUNT( * ) ) DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - ( - COUNT ( * ) ) / 29
----
0

query I rowsort
SELECT DISTINCT + - 28 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT + - 76 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT + - 76 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 86 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT - 93 DIV + 92
----
-1

skipif mysql # not compatible
query I rowsort label-2335
SELECT - 93 / + 92
----
-1

query I rowsort
SELECT 89 - 71 AS col1
----
18

query I rowsort
SELECT ALL 35 + 1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT ( + MIN( ALL - 91 ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT ( + MIN ( ALL - 91 ) ) col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ALL - 50 DIV - 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - 50 / - 24 AS col2
----
2

query I rowsort
SELECT 34 * - - 47 + + 9 AS col2
----
1607

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL 65 AS col0, - MAX( DISTINCT 70 )
----
65
-70

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL 65 AS col0, - MAX ( DISTINCT 70 )
----
65
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL - 23 + + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - 23 + + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT 71 * + + MIN( ALL - 27 )
----
-1917

skipif mysql # not compatible
query I rowsort label-2343
SELECT 71 * + + MIN ( ALL - 27 )
----
-1917

query I rowsort
SELECT + 13 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT MAX( - - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2345
SELECT MAX ( - - 32 ) AS col2
----
32

query I rowsort
SELECT - ( + 93 )
----
-93

query I rowsort
SELECT DISTINCT + 72 * - 70 AS col0
----
-5040

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT + - 39 DIV + - 1 col1
----
39

skipif mysql # not compatible
query I rowsort label-2348
SELECT + - 39 / + - 1 col1
----
39

query I rowsort
SELECT - NULLIF ( - - 58, - + 5 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT - CAST( NULL AS SIGNED ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT - CAST ( NULL AS INTEGER ) + + 38
----
NULL

query I rowsort
SELECT - ( + + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + COUNT( * ) * - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-2352
SELECT + COUNT ( * ) * - + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL + MIN( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + MIN ( 25 ) AS col0
----
25

query I rowsort
SELECT - 80 * 4 AS col1
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - MIN( 50 ) + 76
----
26

skipif mysql # not compatible
query I rowsort label-2355
SELECT - MIN ( 50 ) + 76
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - + COUNT( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2356
SELECT - + COUNT ( 75 )
----
-1

query I rowsort
SELECT ALL 82 + ( + 1 ) col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT ( + 96 ) DIV - - 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2358
SELECT ( + 96 ) / - - 71 AS col0
----
1

query I rowsort
SELECT + 3 * 31 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 24 AS col2
----
NULL

query I rowsort
SELECT ALL - 17 * 47 AS col2
----
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT COUNT( * ) + - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2362
SELECT COUNT ( * ) + - 64 AS col2
----
-63

query I rowsort
SELECT ALL 46 col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + COUNT( * ) + + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2365
SELECT + COUNT ( * ) + + 22 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT - 88 DIV - + 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2366
SELECT - 88 / - + 22 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT - + 5 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT - + 5 / - 70
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT DISTINCT + COUNT( * ), 40 col0
----
1
40

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT + COUNT ( * ), 40 col0
----
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - MAX( DISTINCT - - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2369
SELECT - MAX ( DISTINCT - - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT + 59 * 74 * - COUNT( * ) * - 85 col2
----
371110

skipif mysql # not compatible
query I rowsort label-2370
SELECT + 59 * 74 * - COUNT ( * ) * - 85 col2
----
371110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT - COUNT( * ) DIV 97 * + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT - COUNT ( * ) / 97 * + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - - ( + ( - + 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL - MAX( 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - MAX ( 40 )
----
-40

query I rowsort
SELECT DISTINCT 11 + - 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT COUNT( * ) * - 41 * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2375
SELECT COUNT ( * ) * - 41 * COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL 56 + + 36 - - - 50 * - + COUNT( * ) + + + 43 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL 56 + + 36 - - - 50 * - + COUNT ( * ) + + + 43 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( * ) + - COUNT( * ) * 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) + - COUNT ( * ) * 33 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - MAX( + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2378
SELECT - MAX ( + 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT + - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( 48 )
----
48

query I rowsort
SELECT ALL + 57 + + 12 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT 12 DIV 49 + 73
----
73

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT 12 / 49 + 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT + 83, + 49 * - SUM( 1 ) - - 14 AS col1
----
83
-35

skipif mysql # not compatible
query II rowsort label-2383
SELECT + 83, + 49 * - SUM ( 1 ) - - 14 AS col1
----
83
-35

query I rowsort
SELECT + - 6 + - - 33
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT ALL - 1 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 1 / + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT + CAST( + NULLIF ( 37, - 48 ) AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2386
SELECT + CAST ( + NULLIF ( 37, - 48 ) AS INTEGER ) AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-2387
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT + MIN( 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + MIN ( 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2389
SELECT ALL + COUNT( * ) AS col1, + 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-2389
SELECT ALL + COUNT ( * ) AS col1, + 97 AS col0
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + COUNT( * ) + - 26 * - 73 col2
----
1899

skipif mysql # not compatible
query I rowsort label-2391
SELECT + COUNT ( * ) + - 26 * - 73 col2
----
1899

query I rowsort
SELECT - - 56 col0
----
56

query II rowsort
SELECT + 33, - 4 AS col2
----
33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 0 * - COUNT( * ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 0 * - COUNT ( * ) * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2395
SELECT COUNT( CAST( NULL AS DECIMAL ) ) * + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT COUNT ( CAST ( NULL AS REAL ) ) * + 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT DISTINCT 86 * 15 * + COUNT( * ) AS col2, + 71 AS col1
----
1290
71

skipif mysql # not compatible
query II rowsort label-2396
SELECT DISTINCT 86 * 15 * + COUNT ( * ) AS col2, + 71 AS col1
----
1290
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL SUM( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL SUM ( DISTINCT 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2399
SELECT + 8 col1, + COUNT( * ) DIV 63 AS col1
----
8
0

skipif mysql # not compatible
query II rowsort label-2399
SELECT + 8 col1, + COUNT ( * ) / 63 AS col1
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-2400
SELECT + COUNT ( * ) + - 1
----
0

query I rowsort
SELECT ALL ( + 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2402
SELECT ALL CAST( NULL AS DECIMAL ) * - - COUNT( * ) * - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL CAST ( NULL AS REAL ) * - - COUNT ( * ) * - 38 col0
----
NULL

query I rowsort
SELECT ALL + 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + SUM( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2404
SELECT + SUM ( 6 )
----
6

query I rowsort
SELECT - + 77 * - - 92 col2
----
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT + 53 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT + 53 / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + COUNT( * ) - + - COUNT( DISTINCT 63 )
----
2

skipif mysql # not compatible
query I rowsort label-2408
SELECT + COUNT ( * ) - + - COUNT ( DISTINCT 63 )
----
2

query I rowsort
SELECT ALL ( - + 67 ) * + ( + + 18 )
----
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + COUNT( * ) * 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2410
SELECT + COUNT ( * ) * 21 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT - CAST( COUNT( * ) AS SIGNED ) * 61 - + 88
----
-149

skipif mysql # not compatible
query I rowsort label-2411
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 61 - + 88
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-2412
SELECT COUNT ( * ) + - 52
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - + COALESCE ( COUNT( * ), 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - + COALESCE ( COUNT ( * ), 52 ) AS col0
----
-1

query II rowsort
SELECT + 64 AS col1, - ( + 60 ) + - + 96 * + - 54 AS col2
----
64
5124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - ( COUNT( * ) ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT - ( COUNT ( * ) ) / + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT ALL + - ( - + 76 ) DIV - 3 + + 92 * + + 60 + + 22
----
5517

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + - ( - + 76 ) / - 3 + + 92 * + + 60 + + 22
----
5517

onlyif mysql # aggregate syntax: 
query II rowsort label-2417
SELECT ALL COUNT( ALL - 58 ) AS col1, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-2417
SELECT ALL COUNT ( ALL - 58 ) AS col1, - 23
----
1
-23

query I rowsort
SELECT DISTINCT + + 27 AS col2
----
27

query I rowsort
SELECT ALL + + ( + 17 ) * + 28 col0
----
476

query I rowsort
SELECT - - 54 + - - 23
----
77

query I rowsort
SELECT - ( 40 )
----
-40

query I rowsort
SELECT ALL + 0 - 85
----
-85

query II rowsort
SELECT ALL + ( - 20 ) AS col2, 75
----
-20
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2424
SELECT - COUNT( * ) DIV - 46, + 69 AS col2
----
0
69

skipif mysql # not compatible
query II rowsort label-2424
SELECT - COUNT ( * ) / - 46, + 69 AS col2
----
0
69

query I rowsort
SELECT DISTINCT - + ( - + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT - - COUNT( * ) * - - 29 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - - COUNT ( * ) * - - 29 * COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL - + 91 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2428
SELECT 75 * COUNT ( * )
----
75

query I rowsort
SELECT ALL - 55 * - 70 AS col0
----
3850

query II rowsort
SELECT ALL + 6, 9 AS col0
----
6
9

query I rowsort
SELECT 9 + + 46
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL 41 * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL 41 * - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT DISTINCT + COUNT( * ), 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-2433
SELECT DISTINCT + COUNT ( * ), 93 AS col2
----
1
93

query I rowsort
SELECT DISTINCT ( - 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL CAST( - + 80 AS SIGNED ) + - - 48
----
-32

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL CAST ( - + 80 AS INTEGER ) + - - 48
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL SUM( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL SUM ( - 17 ) AS col1
----
-17

query I rowsort
SELECT DISTINCT 55 - + 37 col1
----
18

query I rowsort
SELECT ALL + ( 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL + SUM( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + SUM ( 20 ) AS col1
----
20

query I rowsort
SELECT ALL + - 27 * - 45 AS col0
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2441
SELECT 72 + COUNT ( * )
----
73

query I rowsort
SELECT - 2 - - 80 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT COUNT( * ) + - 7 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2443
SELECT COUNT ( * ) + - 7 AS col2
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2444
SELECT ALL 80 + - 98 * - 70 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL 80 + - 98 * - 70 - + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 53, 78 AS col1
----
53
78

query I rowsort
SELECT DISTINCT ( + 37 ) * - 52
----
-1924

query II rowsort
SELECT ALL 47 AS col0, 27 AS col1
----
47
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT - - SUM( DISTINCT - 0 ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - - SUM ( DISTINCT - 0 ) * + 68
----
0

query II rowsort
SELECT 3 - 49 AS col2, + 4 - - 11
----
-46
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT COUNT( + 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( + 4 ) AS col1
----
1

query I rowsort
SELECT ALL - 23 * - 5 - - 62
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT + COUNT( * ) * + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT + COUNT ( * ) * + - 91
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - + ( - 27 ) + - 52 * + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - + ( - 27 ) + - 52 * + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT MIN( DISTINCT + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT MIN ( DISTINCT + 65 ) AS col2
----
65

query I rowsort
SELECT - 22 + - 67 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT DISTINCT MIN( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT MIN ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL MIN( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL MIN ( ALL 58 ) AS col0
----
58

query I rowsort
SELECT - 62 * - - 19 AS col0
----
-1178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT - 26 + + CAST( NULL AS SIGNED ) * + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT - 26 + + CAST ( NULL AS INTEGER ) * + 87 col1
----
NULL

query I rowsort
SELECT ALL + + ( - + ( 2 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + MIN( ALL + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + MIN ( ALL + 42 ) AS col0
----
42

query I rowsort
SELECT - - 39 AS col1
----
39

query I rowsort
SELECT ALL ( - + 7 ) col2
----
-7

query I rowsort
SELECT ALL + 94 * 98 AS col1
----
9212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL CAST( NULL AS SIGNED ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL CAST ( NULL AS INTEGER ) * + 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 47 - - 45 AS col2
----
-2

query I rowsort
SELECT ALL + 75 * 42
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + COALESCE ( + COUNT( * ), SUM( + - 12 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + COALESCE ( + COUNT ( * ), SUM ( + - 12 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT ALL 34 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL 34 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2471
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2472
SELECT - ( + + CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2472
SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - + ( + + 81 ) + - 11 AS col1
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2474
SELECT ALL - 16 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - 16 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 61 * + 82
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - + ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + MIN( ALL 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-2477
SELECT + MIN ( ALL 79 ) col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT COUNT( * ) DIV - - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT COUNT ( * ) / - - 59 AS col1
----
0

query I rowsort
SELECT 54 - - 83 + 16 * - - 72
----
1289

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT 37 + ( - COUNT( * ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2480
SELECT 37 + ( - COUNT ( * ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT - ( + 58 ) + + MIN( ALL - 41 )
----
-99

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - ( + 58 ) + + MIN ( ALL - 41 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT 50 + + COUNT( * ) * + 50
----
100

skipif mysql # not compatible
query I rowsort label-2482
SELECT 50 + + COUNT ( * ) * + 50
----
100

query I rowsort
SELECT ALL - ( 95 )
----
-95

query II rowsort
SELECT DISTINCT 97 AS col0, - 97 AS col2
----
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT - 11 + - COUNT( * ) col1, 87
----
-12
87

skipif mysql # not compatible
query II rowsort label-2485
SELECT - 11 + - COUNT ( * ) col1, 87
----
-12
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT + COUNT( * ) * - NULLIF ( COUNT( * ), - - 54 + - 31 * - AVG ( 47 ) * 36 ) + + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( COUNT ( * ), - - 54 + - 31 * - AVG ( 47 ) * 36 ) + + 92 AS col1
----
91

query II rowsort
SELECT - 26, - 86 AS col2
----
-26
-86

query I rowsort
SELECT DISTINCT - + 39
----
-39

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

query I rowsort
SELECT - 79 - + 27 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) * + COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) * + COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT 82 * + - COUNT( * ) DIV COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-2492
SELECT 82 * + - COUNT ( * ) / COUNT ( * )
----
-82

query I rowsort
SELECT 72 * - 26 * 43 AS col0
----
-80496

query I rowsort
SELECT ALL 26 * + 14 AS col1
----
364

query I rowsort
SELECT ALL - 62 col0
----
-62

query I rowsort
SELECT DISTINCT - 89 * 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 67 AS col1, - 13
----
67
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL + 22 DIV ( - + COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + 22 / ( - + COUNT ( * ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + COUNT( * ) - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-2500
SELECT + COUNT ( * ) - + 39
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - 39 * - MAX( ALL + 12 ) AS col1
----
468

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 39 * - MAX ( ALL + 12 ) AS col1
----
468

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2502
SELECT ALL + COUNT( * ) AS col2, - 12 DIV + 20 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL + COUNT ( * ) AS col2, - 12 / + 20 AS col0
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT - - CAST( NULL AS SIGNED ) * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT - - CAST ( NULL AS INTEGER ) * - 92 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 4 AS col0
----
4

query I rowsort
SELECT ALL + 36 * 88 * + ( 18 )
----
57024

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT COUNT( 88 )
----
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT COUNT ( 88 )
----
1

query I rowsort
SELECT + ( + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT - 18 + - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - 18 + - COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT ALL - NULLIF ( - 63, SUM( - 68 ) ) col1, MIN( ALL + 61 )
----
63
61

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL - NULLIF ( - 63, SUM ( - 68 ) ) col1, MIN ( ALL + 61 )
----
63
61

query I rowsort
SELECT 16 * + 81
----
1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT + 56 * - 16 * - + ( 10 ) col0
----
8960

query I rowsort
SELECT - ( + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT COALESCE ( COUNT( * ), - - 19, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 19, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT NULLIF ( MIN( - 4 ), + CAST( 82 AS SIGNED ) ) * + 6 col1
----
-24

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT NULLIF ( MIN ( - 4 ), + CAST ( 82 AS INTEGER ) ) * + 6 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2517
SELECT + - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT COUNT( * ) / - - 56 + 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT COUNT ( * ) / - - 56 + 3 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 45 + + 50
----
5

query I rowsort
SELECT ALL + + 32 * + ( 88 ) AS col1
----
2816

query I rowsort
SELECT DISTINCT ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT 66 + - + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-2522
SELECT 66 + - + COUNT ( * ) col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + COUNT( - + 44 ) * + 1 + - - 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2523
SELECT + COUNT ( - + 44 ) * + 1 + - - 48 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - MAX( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - MAX ( ALL 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2525
SELECT COUNT( * ) AS col0, 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-2525
SELECT COUNT ( * ) AS col0, 96 col2
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + ( + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT + CAST( 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT + CAST ( 6 AS INTEGER ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT ALL - COUNT( * ) DIV + 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - COUNT ( * ) / + 12 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL 25 + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 25 + + COUNT ( * ) AS col1
----
26

query I rowsort
SELECT - - 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT + SUM( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + SUM ( ALL 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + COUNT( ALL - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + COUNT ( ALL - 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL + SUM( ALL + ( - + 46 ) ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + SUM ( ALL + ( - + 46 ) ) col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT ( CAST( - 51 AS SIGNED ) ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-2534
SELECT ( CAST ( - 51 AS INTEGER ) ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2535
SELECT + CAST( - - ( - ( + 86 ) ) AS SIGNED ) AS col2, - 62 * + 70
----
-86
-4340

skipif mysql # not compatible
query II rowsort label-2535
SELECT + CAST ( - - ( - ( + 86 ) ) AS INTEGER ) AS col2, - 62 * + 70
----
-86
-4340

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - ( + ( - 17 ) ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT DISTINCT + 29 DIV + NULLIF ( - 69, - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + 29 / + NULLIF ( - 69, - 44 )
----
0

query I rowsort
SELECT 84 + 31 * + 37
----
1231

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT COUNT( * ) + 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2540
SELECT COUNT ( * ) + 36 AS col1
----
37

query I rowsort
SELECT ALL - 52 + 22
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-2542
SELECT COUNT ( 58 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - CAST( 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - CAST ( 1 AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2544
SELECT DISTINCT + CAST( 30 AS SIGNED ) DIV - 14
----
-2

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + CAST ( 30 AS INTEGER ) / - 14
----
-2

query I rowsort
SELECT DISTINCT - - 76 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT ALL + 88 + 35 DIV 42
----
88

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 88 + 35 / 42
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ( - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2547
SELECT ( - ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - COUNT( * ) * 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2548
SELECT - COUNT ( * ) * 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + - MIN( 24 ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-2549
SELECT + - MIN ( 24 ) col0
----
-24

query I rowsort
SELECT ALL 14 * 44 AS col0
----
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT DISTINCT + 66 * + 41 + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + 66 * + 41 + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 92 * - - 20 AS col1
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL COUNT( * ) - - 73
----
74

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL COUNT ( * ) - - 73
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT - CAST( + 43 AS SIGNED ) * 55 AS col0
----
-2365

skipif mysql # not compatible
query I rowsort label-2554
SELECT - CAST ( + 43 AS INTEGER ) * 55 AS col0
----
-2365

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - COUNT( * ) * - 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - COUNT ( * ) * - 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2556
SELECT ALL - - COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2556
SELECT ALL - - COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT COUNT( * ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2557
SELECT COUNT ( * ) * - 74 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL - + 3 DIV - - 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - + 3 / - - 24 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT COUNT( * ) DIV - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2559
SELECT COUNT ( * ) / - COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT - 87 DIV 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 87 / 46 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT + + SUM( 5 ) DIV - ( + 68 ) - 65
----
-65

skipif mysql # not compatible
query I rowsort label-2561
SELECT + + SUM ( 5 ) / - ( + 68 ) - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + COALESCE ( - COUNT( * ), - + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-2562
SELECT + COALESCE ( - COUNT ( * ), - + 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT SUM( DISTINCT 65 ) + + 33 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2563
SELECT SUM ( DISTINCT 65 ) + + 33 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT + COUNT( * ) * - - 36
----
36

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + COUNT ( * ) * - - 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL COUNT( - - 42 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL COUNT ( - - 42 ) col0
----
1

query I rowsort
SELECT ALL + 45 + 24 AS col1
----
69

query I rowsort
SELECT ALL 47 + + 61 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - - 75 + - + COUNT( * ) * - 49 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-2568
SELECT - - 75 + - + COUNT ( * ) * - 49 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL + - SUM( - 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL + - SUM ( - 23 ) col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2570
SELECT SUM( - CAST( NULL AS SIGNED ) ) col0, - COUNT( * ) + + 11 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2570
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - COUNT( * ) - 55 * 6 AS col0
----
-331

skipif mysql # not compatible
query I rowsort label-2571
SELECT - COUNT ( * ) - 55 * 6 AS col0
----
-331

query II rowsort
SELECT DISTINCT 78 col1, - ( + 96 ) col1
----
78
-96

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

skipif mysql # not compatible
query I rowsort label-2573
SELECT + COUNT ( * ) * + 83 AS col0
----
83

query I rowsort
SELECT ALL - ( + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 88 * - 15 + - COUNT( * ) AS col0
----
-1321

skipif mysql # not compatible
query I rowsort label-2575
SELECT 88 * - 15 + - COUNT ( * ) AS col0
----
-1321

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - MAX( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2576
SELECT - MAX ( - 10 )
----
10

query II rowsort
SELECT - 48 AS col2, 70
----
-48
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT + MIN( DISTINCT - ( + 43 ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + MIN ( DISTINCT - ( + 43 ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - 96 + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-2579
SELECT - 96 + + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - - COUNT( ALL + + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2580
SELECT - - COUNT ( ALL + + 66 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + - 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT 63 DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT 63 / 67 AS col1
----
0

query I rowsort
SELECT 69 * - ( - + 67 ) AS col1
----
4623

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - - 89 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - - 89 * + + COUNT ( * )
----
89

query I rowsort
SELECT + + 78 + - 46 - + + 79
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT CAST( 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2586
SELECT CAST ( 39 AS INTEGER ) AS col1
----
39

query I rowsort
SELECT ALL + 41 * - 75
----
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ( + MIN( - 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2588
SELECT ( + MIN ( - 58 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - 79 * - + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 79 * - + COUNT ( * ) AS col0
----
79

query II rowsort
SELECT DISTINCT + 27, - 8 AS col0
----
27
-8

query I rowsort
SELECT ALL + ( - - 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT 57 * COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2592
SELECT 57 * COUNT ( * ) AS col1
----
57

query I rowsort
SELECT 69 + + 26
----
95

query I rowsort
SELECT 4 + - 72 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT 51 - CAST( NULL AS SIGNED ) + - ( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT 51 - CAST ( NULL AS INTEGER ) + - ( + 81 ) AS col1
----
NULL

query II rowsort
SELECT ALL 40 * 48, - 8 AS col2
----
1920
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL - 19 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - 19 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + - 62 + ( - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-2599
SELECT + - 62 + ( - COUNT ( * ) )
----
-63

query I rowsort
SELECT ALL + 96 * 27
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2601
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0, 85 col1
----
-1
85

skipif mysql # not compatible
query II rowsort label-2601
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 85 col1
----
-1
85

query I rowsort
SELECT ALL + ( 40 ) + + 29
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + CAST( 47 AS SIGNED ) col1
----
47

skipif mysql # not compatible
query I rowsort label-2604
SELECT + CAST ( 47 AS INTEGER ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT - - COUNT( * ) * CAST( + MAX( ALL 3 ) AS SIGNED ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2605
SELECT - - COUNT ( * ) * CAST ( + MAX ( ALL 3 ) AS INTEGER ) col0
----
3

query I rowsort
SELECT - 25 * - 78
----
1950

query I rowsort
SELECT ALL - - 44
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT + 19 DIV + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2608
SELECT + 19 / + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + MAX( - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2609
SELECT + MAX ( - - 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT + - COUNT( - CAST( + + 60 AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2610
SELECT + - COUNT ( - CAST ( + + 60 AS INTEGER ) ) col2
----
-1

query I rowsort
SELECT DISTINCT + 97 * - 17
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL MIN( + + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL MIN ( + + 39 ) AS col2
----
39

query II rowsort
SELECT ALL + 15 AS col1, + 26 AS col2
----
15
26

query I rowsort
SELECT ALL ( + 15 ) AS col1
----
15

query I rowsort
SELECT + - 89 * + 78
----
-6942

query I rowsort
SELECT ALL - + 62 * + 50
----
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + - 63 * + COUNT( * ) + - 5
----
-68

skipif mysql # not compatible
query I rowsort label-2617
SELECT + - 63 * + COUNT ( * ) + - 5
----
-68

query I rowsort
SELECT ( - + 99 ) col2
----
-99

query I rowsort
SELECT ( + + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL 78 * - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL 78 * - COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT - ( - + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL - 12 + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - 12 + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT COUNT( * ) * + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( * ) * + 84 AS col0
----
84

query I rowsort
SELECT 32 * - 85 col0
----
-2720

query I rowsort
SELECT ( - 58 ) * + + 62
----
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT - COUNT( * ) DIV + - 11
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - COUNT ( * ) / + - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL + COUNT( * ) * - - COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL + COUNT ( * ) * - - COUNT ( 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT ALL 54 AS col0, - COUNT( * ) AS col2
----
54
-1

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 54 AS col0, - COUNT ( * ) AS col2
----
54
-1

query II rowsort
SELECT + 65 col1, 82 + - 39
----
65
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ALL - 85 DIV - - 83
----
-1

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 85 / - - 83
----
-1

query III rowsort
SELECT + - 30 AS col1, 61, + + 5 AS col2
----
-30
61
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT + 97 - + MAX( ALL + 31 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2632
SELECT + 97 - + MAX ( ALL + 31 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT - ( + 28 ), ( - COUNT( * ) ) * + MAX( - 70 ) AS col1
----
-28
70

skipif mysql # not compatible
query II rowsort label-2633
SELECT - ( + 28 ), ( - COUNT ( * ) ) * + MAX ( - 70 ) AS col1
----
-28
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - COUNT( * ) * - - ( - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - COUNT ( * ) * - - ( - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT - COUNT( * ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - COUNT ( * ) / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL 2 + - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 2 + - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT COUNT( DISTINCT 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2637
SELECT COUNT ( DISTINCT 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT MAX( ALL + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2638
SELECT MAX ( ALL + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - + ( + SUM( ( - - 99 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - + ( + SUM ( ( - - 99 ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - 62 - - + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2640
SELECT - 62 - - + COUNT ( * ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - COUNT( * ) + - 91 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2641
SELECT - COUNT ( * ) + - 91 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + 60 + - - MAX( DISTINCT + 10 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 60 + - - MAX ( DISTINCT + 10 ) col2
----
70

query I rowsort
SELECT ALL - 90 - + 80 + + 91 AS col0
----
-79

query I rowsort
SELECT DISTINCT + - 83 col0
----
-83

query I rowsort
SELECT + - ( - + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ( + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT ( + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT ALL 57 col2, COUNT( * ) col0
----
57
1

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL 57 col2, COUNT ( * ) col0
----
57
1

query I rowsort
SELECT ALL ( - + 31 ) AS col0
----
-31

query I rowsort
SELECT ALL + - ( - + 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT COUNT( * ) - 20
----
-19

skipif mysql # not compatible
query I rowsort label-2650
SELECT COUNT ( * ) - 20
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT - MAX( ALL + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT - MAX ( ALL + 52 )
----
-52

query I rowsort
SELECT DISTINCT - ( ( + - ( + + 17 ) ) ) AS col2
----
17

query I rowsort
SELECT 42 + + - 79
----
-37

query I rowsort
SELECT 67 + - 62 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT 57 + - + COUNT( * ) + + 69 * 83
----
5783

skipif mysql # not compatible
query I rowsort label-2655
SELECT 57 + - + COUNT ( * ) + + 69 * 83
----
5783

query I rowsort
SELECT DISTINCT + 90 * + - 17
----
-1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2657
SELECT ALL COUNT( * ) + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ), 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2657
SELECT ALL COUNT ( * ) + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ), 80 AS col0
----
NULL
80

query I rowsort
SELECT - - 27 + + - 22 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ( ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2659
SELECT ( ( + COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT NULLIF ( - + 60, + + 26 ) col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2661
SELECT COALESCE ( + + 67, - CAST( NULL AS SIGNED ) DIV - - COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2661
SELECT COALESCE ( + + 67, - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) ) AS col2
----
67

query I rowsort
SELECT - 66 * + 24 AS col2
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT SUM( + + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-2663
SELECT SUM ( + + 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( * ) + - + 25
----
-24

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( * ) + - + 25
----
-24

query I rowsort
SELECT DISTINCT ( 10 ) + 24 * - ( + 4 )
----
-86

query I rowsort
SELECT 80 + + ( 83 ) + - 54 * + 15
----
-647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT AVG ( - + 41 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT AVG ( - + 41 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + - 61
----
-34

query I rowsort
SELECT - ( + 3 )
----
-3

query I rowsort
SELECT DISTINCT 57 + - 43
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + 31 - + ( COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2671
SELECT + 31 - + ( COUNT ( * ) ) AS col0
----
30

query I rowsort
SELECT ALL + ( + 21 ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2673
SELECT ALL + MIN( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + MIN ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT + + COUNT( * ) * 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT + + COUNT ( * ) * 55 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 78 AS col2
----
-78

query I rowsort
SELECT + + 45 * + 15 * 64 AS col0
----
43200

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + + 1 + + + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT( * ) END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2677
SELECT + + 1 + + + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT ( * ) END AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT 30 + - COUNT( * ) * - 50 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT 30 + - COUNT ( * ) * - 50 AS col1
----
80

query I rowsort
SELECT 55 * 4 AS col0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT COUNT( * ) * - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2680
SELECT COUNT ( * ) * - 92 AS col1
----
-92

query I rowsort
SELECT + ( - 26 ) AS col0
----
-26

query I rowsort
SELECT - 49 * + - 88 + - ( 77 )
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT ( + - CAST( NULL AS SIGNED ) ) / - + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ( + - CAST ( NULL AS INTEGER ) ) / - + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + COUNT( * ) * - NULLIF ( COUNT( * ), - - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( COUNT ( * ), - - 14 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 86 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-2685
SELECT 86 / - 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT - MAX( DISTINCT 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2686
SELECT - MAX ( DISTINCT 87 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT - - 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2688
SELECT + COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL MIN( ALL - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL MIN ( ALL - - 33 )
----
33

query I rowsort
SELECT DISTINCT - 79 * 0 AS col1
----
0

query I rowsort
SELECT - 47 - 50
----
-97

query I rowsort
SELECT ALL + + 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT - + COUNT( 26 ) + - 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2693
SELECT - + COUNT ( 26 ) + - 5 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ALL - - 78 DIV 4 - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - - 78 / 4 - COUNT ( * ) AS col0
----
18

query II rowsort
SELECT 35 col1, + 66
----
35
66

query I rowsort
SELECT - 7 - - - 57
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2697
SELECT ALL CAST( 79 AS SIGNED ) AS col1, COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL CAST ( 79 AS INTEGER ) AS col1, COUNT ( * ) AS col0
----
79
1

query II rowsort
SELECT - 29 AS col2, + 90
----
-29
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + - ( COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT COUNT( * ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-2700
SELECT COUNT ( * ) * - + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT SUM( ALL 31 ) + - + 49 * + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT SUM ( ALL 31 ) + - + 49 * + COUNT ( * )
----
-18

query II rowsort
SELECT ALL ( 98 ) AS col2, 90 * - 70
----
98
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-2703
SELECT COUNT ( * ) + 25
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ( 25 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT ( 25 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 92 ) + + - 98
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL 88 - COUNT( * ) col2
----
87

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL 88 - COUNT ( * ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT MAX( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-2707
SELECT MAX ( + 55 )
----
55

query I rowsort
SELECT DISTINCT ( 47 ) col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT + - 20 DIV + + 3 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2709
SELECT + - 20 / + + 3 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( + 56 ) AS col1
----
56

query I rowsort
SELECT ( - 87 ) AS col1
----
-87

query I rowsort
SELECT 23 * 56 AS col1
----
1288

query II rowsort
SELECT - 81 AS col2, + 17
----
-81
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT 83 DIV 50 + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-2715
SELECT 83 / 50 + - 12
----
-11

query I rowsort
SELECT 68 * + 1 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT DISTINCT 88 DIV + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT 88 / + - 9
----
-9

query I rowsort
SELECT DISTINCT 57 + + - 87
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - COUNT( * ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - COUNT ( * ) + + 23
----
22

query I rowsort
SELECT + 41 * + - 34 AS col1
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - ( + MAX( DISTINCT + + 91 ) ) + + SUM( ALL - 24 )
----
-115

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - ( + MAX ( DISTINCT + + 91 ) ) + + SUM ( ALL - 24 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + COUNT( * ) * ( + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2722
SELECT + COUNT ( * ) * ( + 64 )
----
64

query I rowsort
SELECT ( - - 70 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT - ( + COUNT( * ) ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT - ( + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 94 * + COUNT ( * )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT ALL 6 * - 11 + + 38 AS col1, CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL 6 * - 11 + + 38 AS col1, CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT + + 21 + + - 4 AS col1
----
17

query I rowsort
SELECT ( 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT + - CAST( NULL AS SIGNED ) + + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT + - CAST ( NULL AS INTEGER ) + + 45 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - ( + + COUNT( * ) ) + 0 + + 99
----
98

skipif mysql # not compatible
query I rowsort label-2730
SELECT - ( + + COUNT ( * ) ) + 0 + + 99
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT - CAST( NULL AS SIGNED ) * - MAX( - + 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT - CAST ( NULL AS INTEGER ) * - MAX ( - + 33 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT COUNT( DISTINCT 28 ) * - 81 col0
----
-81

skipif mysql # not compatible
query I rowsort label-2733
SELECT COUNT ( DISTINCT 28 ) * - 81 col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT DISTINCT 66 + + 66 DIV - 37
----
65

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT 66 + + 66 / - 37
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT 99 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-2736
SELECT 99 / + 69
----
1

query I rowsort
SELECT DISTINCT - + 86 AS col2
----
-86

query I rowsort
SELECT ALL - - 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL MAX( DISTINCT + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL MAX ( DISTINCT + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT - 99 AS col1, COUNT( * ) AS col2
----
-99
1

skipif mysql # not compatible
query II rowsort label-2740
SELECT - 99 AS col1, COUNT ( * ) AS col2
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + SUM( - + 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + SUM ( - + 53 ) AS col0
----
-53

query I rowsort
SELECT + ( + 75 ) col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - ( COUNT( DISTINCT - 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2743
SELECT - ( COUNT ( DISTINCT - 2 ) )
----
-1

query I rowsort
SELECT ALL ( - 98 )
----
-98

query I rowsort
SELECT DISTINCT ( + 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT + CAST( NULL AS SIGNED ) * + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT + CAST ( NULL AS INTEGER ) * + - 97 AS col0
----
NULL

query I rowsort
SELECT ALL 32 * - 89 AS col2
----
-2848

query I rowsort
SELECT DISTINCT 25 * + 95
----
2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT + CAST( - ( - - ( - 35 ) ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-2749
SELECT + CAST ( - ( - - ( - 35 ) ) AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL + COUNT( * ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + COUNT ( * ) * + 42
----
42

query I rowsort
SELECT 64 * - + ( 94 ) + + - 68 AS col0
----
-6084

query I rowsort
SELECT DISTINCT - + 87 + 31 AS col1
----
-56

query II rowsort
SELECT DISTINCT - - ( - 35 ) AS col1, + 23
----
-35
23

query II rowsort
SELECT - + 32 * 54 AS col0, 79 AS col2
----
-1728
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - ( MIN( - 27 ) ) + - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2755
SELECT - ( MIN ( - 27 ) ) + - - COUNT ( * )
----
28

query I rowsort
SELECT ALL + ( + + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL + MIN( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + MIN ( ALL - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT SUM( 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2758
SELECT SUM ( 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - MIN( 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2759
SELECT - MIN ( 37 ) AS col1
----
-37

query I rowsort
SELECT - 34 + - 77
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT 10 + + 32 * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT 10 + + 32 * - COUNT ( * ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT ALL 27 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL 27 / + 69
----
0

query I rowsort
SELECT - ( 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + 91 * + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2764
SELECT + 91 * + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL + SUM( 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + SUM ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COUNT( * ) - - 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COUNT ( * ) - - 42 AS col0
----
43

query I rowsort
SELECT ALL + 60 * 33 + 4
----
1984

query I rowsort
SELECT - 94 + 0 AS col0
----
-94

query I rowsort
SELECT ALL + 70 - - 13
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT COUNT( * ) * + COUNT( * ) - 3 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2770
SELECT COUNT ( * ) * + COUNT ( * ) - 3 * - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT - MIN( 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - MIN ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT COUNT( * ) + + 39 + 64 col0
----
104

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT COUNT ( * ) + + 39 + 64 col0
----
104

query I rowsort
SELECT DISTINCT ( + 0 ) + + 40
----
40

query I rowsort
SELECT ALL - - 41 AS col1
----
41

query I rowsort
SELECT ALL 73 col0
----
73

query I rowsort
SELECT ALL + + ( - - 16 ) * - 15 AS col2
----
-240

query I rowsort
SELECT DISTINCT + ( + 0 ) col0
----
0

query I rowsort
SELECT 2 * - + 10 col2
----
-20

query I rowsort
SELECT 11 * - + 14 AS col1
----
-154

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

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

query I rowsort
SELECT DISTINCT + 22 * + ( 58 ) + 76
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT MIN ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT MAX( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2783
SELECT MAX ( - 29 )
----
-29

query I rowsort
SELECT + NULLIF ( - - 97, - + 54 ) AS col0
----
97

query I rowsort
SELECT DISTINCT 13 * - ( + 33 ) AS col0
----
-429

query I rowsort
SELECT - 27 * + - 80 * - 80 AS col2
----
-172800

query I rowsort
SELECT - 78 - + + 2 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL COALESCE ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - + 33 - 9 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL COALESCE ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - + 33 - 9 ) AS col2
----
-42

query I rowsort
SELECT DISTINCT + - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL + 53 * COUNT( * ) + 89 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + 53 * COUNT ( * ) + 89 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + 54 + + + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 54 + + + COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - MAX( ALL - - 94 ) * + ( - - 74 ) AS col2
----
-6956

skipif mysql # not compatible
query I rowsort label-2792
SELECT - MAX ( ALL - - 94 ) * + ( - - 74 ) AS col2
----
-6956

query II rowsort
SELECT + - 51 AS col0, 11 AS col2
----
-51
11

query I rowsort
SELECT + 25 * + 89
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT SUM( DISTINCT - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2795
SELECT SUM ( DISTINCT - 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT - - 95 - + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - - 95 - + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT 46 * - COALESCE ( + + COUNT( * ), + - 88 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2798
SELECT 46 * - COALESCE ( + + COUNT ( * ), + - 88 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL COUNT( ALL - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL COUNT ( ALL - 93 )
----
1

query I rowsort
SELECT ALL 93 * + 76 col1
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + NULLIF ( - 51, + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2801
SELECT + NULLIF ( - 51, + COUNT ( * ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT - + 86 + - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2802
SELECT - + 86 + - COUNT ( * ) AS col1
----
-87

query I rowsort
SELECT + 2 * + 5
----
10

query I rowsort
SELECT DISTINCT ( - 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2805
SELECT - COUNT( * ) * + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT - COUNT ( * ) * + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT COUNT( * ) - + 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2806
SELECT COUNT ( * ) - + 96 AS col0
----
-95

query I rowsort
SELECT + 68 + + + 16
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT - 65 * - 72 * + ( - + 15 ) * - 93 * - 5 * COUNT( * ) - 41 + SUM( + + 88 ) * - 42 AS col1
----
-32646737

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - 65 * - 72 * + ( - + 15 ) * - 93 * - 5 * COUNT ( * ) - 41 + SUM ( + + 88 ) * - 42 AS col1
----
-32646737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT DISTINCT - 21 DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - 21 / + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT COUNT( * ) AS col2, 63
----
1
63

skipif mysql # not compatible
query II rowsort label-2810
SELECT COUNT ( * ) AS col2, 63
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 83 + - + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 83 + - + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT DISTINCT + - 81 DIV + + COUNT( * ) + + 6 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + - 81 / + + COUNT ( * ) + + 6 AS col1
----
-75

query II rowsort
SELECT ( + - 70 ) AS col1, - 55
----
-70
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT COUNT( * ) DIV - - 22 + 3 col0
----
3

skipif mysql # not compatible
query I rowsort label-2814
SELECT COUNT ( * ) / - - 22 + 3 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT + 10 * + + ( + 11 ) - - - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-2815
SELECT + 10 * + + ( + 11 ) - - - COUNT ( * )
----
109

query I rowsort
SELECT ( - 8 ) AS col1
----
-8

query I rowsort
SELECT - 26 + + + 88 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - - SUM( ALL - 36 ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-2818
SELECT - - SUM ( ALL - 36 ) col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT 19 + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + 49 * COUNT( * ) + + + 95 * - - 15 AS col0
----
1474

skipif mysql # not compatible
query I rowsort label-2820
SELECT + 49 * COUNT ( * ) + + + 95 * - - 15 AS col0
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - - COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * )
----
2

query I rowsort
SELECT - NULLIF ( 3, 70 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL COUNT( * ) * + 75 col1
----
75

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL COUNT ( * ) * + 75 col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT SUM( + 54 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-2824
SELECT SUM ( + 54 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT 12 - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2825
SELECT 12 - COUNT ( * ) AS col0
----
11

query I rowsort
SELECT + 77 * - 33
----
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT + - CAST( + 90 AS SIGNED ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-2827
SELECT + - CAST ( + 90 AS INTEGER ) col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT - CAST( NULL AS SIGNED ) + + COUNT( + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( + 49 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT MAX( + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT MAX ( + 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - 1 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT - 1 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + - 49 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT - 17 DIV + + 17 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2832
SELECT - 17 / + + 17 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT + MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + MIN ( - 39 )
----
-39

query I rowsort
SELECT DISTINCT + + 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - - ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - - ( + - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL MAX( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL MAX ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT SUM( + 18 ) + 98 * - - COUNT( * ) col0
----
116

skipif mysql # not compatible
query I rowsort label-2837
SELECT SUM ( + 18 ) + 98 * - - COUNT ( * ) col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT ALL - 88 DIV + - 26 * + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - 88 / + - 26 * + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 90 * - + 62 AS col1
----
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT SUM( ALL 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT SUM ( ALL 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT + ( COUNT( * ) ) - ( - 24 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + ( COUNT ( * ) ) - ( - 24 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2842
SELECT CAST( NULL AS SIGNED ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2842
SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + + 45 col1
----
45

query II rowsort
SELECT 57 col2, - 18 AS col0
----
57
-18

query I rowsort
SELECT DISTINCT ( + 83 ) AS col1
----
83

query I rowsort
SELECT - ( - 70 ) + + 52
----
122

query I rowsort
SELECT - + 59 * - + 5 col2
----
295

query I rowsort
SELECT ALL - ( + 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT - 72 + + 85 DIV - + COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-2849
SELECT - 72 + + 85 / - + COUNT ( * )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + + SUM( ALL 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2850
SELECT + + SUM ( ALL 91 ) AS col0
----
91

query I rowsort
SELECT DISTINCT 24 * + ( - - 51 ) col2
----
1224

query I rowsort
SELECT + ( + 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT DISTINCT COUNT( * ) AS col1, 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT COUNT ( * ) AS col1, 46 AS col1
----
1
46

query I rowsort
SELECT ALL - 42 * - 45
----
1890

query I rowsort
SELECT ALL - 1 + - + 92 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT ALL + SUM( DISTINCT + - 49 ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + SUM ( DISTINCT + - 49 ) / + 57
----
0

query I rowsort
SELECT DISTINCT + 13 * - 38 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL - MIN( + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - MIN ( + 21 ) AS col0
----
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT + MIN( - 98 ) + CAST( + - COUNT( * ) AS SIGNED ) + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-2860
SELECT + MIN ( - 98 ) + CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - COUNT( DISTINCT + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2861
SELECT - COUNT ( DISTINCT + 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - COUNT( + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - COUNT ( + 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2863
SELECT ALL + ( - COUNT( * ) ), CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL + ( - COUNT ( * ) ), CAST ( NULL AS REAL ) AS col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ( MAX( DISTINCT 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-2865
SELECT ( MAX ( DISTINCT 4 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT - 30 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 30 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL - COUNT( * ) * + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - COUNT ( * ) * + + 42
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT DISTINCT + COUNT( * ), ( - - COUNT( * ) ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2868
SELECT DISTINCT + COUNT ( * ), ( - - COUNT ( * ) ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2869
SELECT + MAX( ALL 46 ) + + 39, CAST( NULL AS SIGNED ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2869
SELECT + MAX ( ALL 46 ) + + 39, CAST ( NULL AS INTEGER ) AS col0
----
85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT DISTINCT 78 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT 78 / - 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL CAST( COUNT( ALL - 99 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL CAST ( COUNT ( ALL - 99 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT MAX( DISTINCT + - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-2872
SELECT MAX ( DISTINCT + - 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT ALL 15 DIV + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 15 / + - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL + MIN( DISTINCT + + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + MIN ( DISTINCT + + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL + COUNT( + - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + COUNT ( + - 19 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT + COUNT( * ) col1, - 23 + 84 + - 32 * SUM( DISTINCT - 59 )
----
1
1949

skipif mysql # not compatible
query II rowsort label-2876
SELECT + COUNT ( * ) col1, - 23 + 84 + - 32 * SUM ( DISTINCT - 59 )
----
1
1949

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT ALL 33 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL 33 / 24
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT COUNT( * ) + - - 14 col1
----
15

skipif mysql # not compatible
query I rowsort label-2878
SELECT COUNT ( * ) + - - 14 col1
----
15

query I rowsort
SELECT - 67 * + 46 * 11 col2
----
-33902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT CAST( NULL AS SIGNED ) / 32 / - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT CAST ( NULL AS INTEGER ) / 32 / - 53 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 43 - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2882
SELECT 43 - COUNT ( * )
----
42

query I rowsort
SELECT ALL - ( + 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT - 98 * + CAST( 84 AS SIGNED )
----
-8232

skipif mysql # not compatible
query I rowsort label-2884
SELECT - 98 * + CAST ( 84 AS INTEGER )
----
-8232

query I rowsort
SELECT + + 48 * - + 64 AS col1
----
-3072

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

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

query I rowsort
SELECT + - 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - + 41 - + - NULLIF ( + - COUNT( * ), 19 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2888
SELECT - + 41 - + - NULLIF ( + - COUNT ( * ), 19 ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2889
SELECT ALL + COUNT( * ) AS col1, - 77 DIV - 10 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-2889
SELECT ALL + COUNT ( * ) AS col1, - 77 / - 10 AS col2
----
1
7

query I rowsort
SELECT DISTINCT NULLIF ( 54, + - 82 - - 96 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - COUNT( * ) * + 80
----
-80

skipif mysql # not compatible
query I rowsort label-2891
SELECT - COUNT ( * ) * + 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL MAX( - - 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL MAX ( - - 12 ) col1
----
12

query II rowsort
SELECT 38 AS col2, - 49 AS col0
----
38
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT + + 98 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + + 98 / - 39
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT + CAST( NULL AS SIGNED ) / - 87 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + CAST ( NULL AS INTEGER ) / - 87 * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT MIN( DISTINCT - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2896
SELECT MIN ( DISTINCT - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT COUNT( * ) + - ( + 82 )
----
-81

skipif mysql # not compatible
query I rowsort label-2897
SELECT COUNT ( * ) + - ( + 82 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT CAST( 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-2898
SELECT CAST ( 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT + 36 - + + ( + + COUNT( * ) ) DIV - + 36
----
36

skipif mysql # not compatible
query I rowsort label-2899
SELECT + 36 - + + ( + + COUNT ( * ) ) / - + 36
----
36

query I rowsort
SELECT + 10 * 41 AS col1
----
410

query I rowsort
SELECT 49 * - - ( - 61 )
----
-2989

query I rowsort
SELECT ALL + ( 3 ) col0
----
3

query I rowsort
SELECT - + 87 col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT DISTINCT - COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - COUNT ( * ) )
----
-1

query II rowsort
SELECT + 80 col1, + 11
----
80
11

query I rowsort
SELECT DISTINCT - 19 * - 10 AS col0
----
190

query I rowsort
SELECT ALL NULLIF ( + + 99, - + 67 ) col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2908
SELECT - + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2908
SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT ALL + ( + + 84 ) AS col0
----
84

query I rowsort
SELECT - + 4 AS col2
----
-4

query I rowsort
SELECT DISTINCT - ( + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT - MIN( + + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - MIN ( + + 15 )
----
-15

query I rowsort
SELECT 65 + + 63 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT - 22, COUNT( * ) AS col0
----
-22
1

skipif mysql # not compatible
query II rowsort label-2914
SELECT - 22, COUNT ( * ) AS col0
----
-22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - COUNT( 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - COUNT ( 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - COUNT( * ) * + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2916
SELECT - COUNT ( * ) * + ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT + + MIN( + ( + - CAST( - - 5 AS SIGNED ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2917
SELECT + + MIN ( + ( + - CAST ( - - 5 AS INTEGER ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT MAX( DISTINCT - + 32 ) + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2918
SELECT MAX ( DISTINCT - + 32 ) + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT - ( - 32 ) col0
----
32

query I rowsort
SELECT - 18 * + 80 AS col0
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT DISTINCT + CAST( - ( - 40 ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + CAST ( - ( - 40 ) AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + SUM( + - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + SUM ( + - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + MAX( ALL - - ( + 81 ) ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2923
SELECT + MAX ( ALL - - ( + 81 ) ) col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL - CAST( + COUNT( + 74 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - CAST ( + COUNT ( + 74 ) AS INTEGER )
----
-1

query I rowsort
SELECT - ( + + 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT SUM( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT SUM ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL - 14 * - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - 14 * - COUNT ( * ) AS col1
----
14

query I rowsort
SELECT ALL 46 * 5
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT COUNT( * ) + - + 10 * + 3 + - - ( + 59 )
----
30

skipif mysql # not compatible
query I rowsort label-2929
SELECT COUNT ( * ) + - + 10 * + 3 + - - ( + 59 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL COUNT( * ) + - COUNT( * ) * 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL COUNT ( * ) + - COUNT ( * ) * 96 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2931
SELECT DISTINCT COUNT( * ) + - 55, + 76 DIV - COUNT( * ) AS col0
----
-54
-76

skipif mysql # not compatible
query II rowsort label-2931
SELECT DISTINCT COUNT ( * ) + - 55, + 76 / - COUNT ( * ) AS col0
----
-54
-76

query I rowsort
SELECT 51 + 37 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - + 40 * - COUNT( * ) + 6 col0
----
46

skipif mysql # not compatible
query I rowsort label-2933
SELECT - + 40 * - COUNT ( * ) + 6 col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT 57 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT 57 / 68
----
0

query I rowsort
SELECT ALL - ( 26 ) AS col1
----
-26

query II rowsort
SELECT 93, + COALESCE ( + 39, - 31 ) AS col0
----
93
39

query I rowsort
SELECT + 69 * - ( - 93 ) AS col0
----
6417

query I rowsort
SELECT ALL 5 * + 7 AS col1
----
35

query II rowsort
SELECT ALL - 5 AS col0, ( + - 72 ) AS col1
----
-5
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL 64 - + ( 55 ) DIV 91
----
64

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL 64 - + ( 55 ) / 91
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT MAX( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT MAX ( DISTINCT + 78 )
----
78

query I rowsort
SELECT ALL - 32 + - 77
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL - NULLIF ( COUNT( * ), - + 61 / + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - NULLIF ( COUNT ( * ), - + 61 / + + 80 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT DISTINCT 40 * 20 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT 40 * 20 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT 40 + + SUM( DISTINCT + 59 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-2945
SELECT 40 + + SUM ( DISTINCT + 59 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT 63 * + COUNT( + 26 )
----
63

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT 63 * + COUNT ( + 26 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + 83 + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2947
SELECT + 83 + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + MIN( ALL - - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + MIN ( ALL - - 84 ) AS col2
----
84

query II rowsort
SELECT ALL + 11, + 43 col0
----
11
43

query I rowsort
SELECT ( + - 35 ) AS col1
----
-35

query I rowsort
SELECT - ( + + 14 )
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2952
SELECT - 5 * 67 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT - 5 * 67 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT ALL 51 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL 51 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 97 - ( + 27 )
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT 75 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT 75 / 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT DISTINCT - SUM( - 17 ) AS col2, + 4 AS col0
----
17
4

skipif mysql # not compatible
query II rowsort label-2956
SELECT DISTINCT - SUM ( - 17 ) AS col2, + 4 AS col0
----
17
4

query II rowsort
SELECT + 64 + - 60, 99 AS col1
----
4
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - 7 + - 95 * SUM( ALL 67 ) + + - COUNT( * ) AS col2
----
-6373

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - 7 + - 95 * SUM ( ALL 67 ) + + - COUNT ( * ) AS col2
----
-6373

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT + + 31 AS col1, 63 DIV 44 DIV + COUNT( * ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-2959
SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1
----
31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT - 3 + 90 + + CAST( + - 99 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 3 + 90 + + CAST ( + - 99 AS INTEGER )
----
-12

query I rowsort
SELECT ALL + 34 * + + 90
----
3060

query I rowsort
SELECT + - 46 col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL + MIN( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + MIN ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - ( - MAX( ALL - 99 ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2964
SELECT - ( - MAX ( ALL - 99 ) ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT - CASE - 99 WHEN + 95 THEN - + 94 + - COUNT( * ) ELSE NULL END + + - 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT - CASE - 99 WHEN + 95 THEN - + 94 + - COUNT ( * ) ELSE NULL END + + - 4 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL MAX( - + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL MAX ( - + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT ALL + + AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + + AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-2968
SELECT + COUNT ( - 52 )
----
1

query I rowsort
SELECT DISTINCT 23 + + 4 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + ( + COUNT( * ) ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + ( + COUNT ( * ) ) + - 16 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT 82 + + ( - MIN( ALL - 70 ) )
----
152

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT 82 + + ( - MIN ( ALL - 70 ) )
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL + 97 + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + 97 + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT ALL - ( - 64 ) AS col1
----
64

query I rowsort
SELECT ALL + ( + + 94 )
----
94

query I rowsort
SELECT DISTINCT + ( + + 68 ) AS col0
----
68

query I rowsort
SELECT DISTINCT + NULLIF ( + 14, + 70 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL - 50 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - 50 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL MAX( + + 8 ) * 55
----
440

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL MAX ( + + 8 ) * 55
----
440

query I rowsort
SELECT ALL + - 72 AS col2
----
-72

query I rowsort
SELECT ALL - 22 * - 48
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL - ( - COUNT( * ) ) * + 16
----
16

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - ( - COUNT ( * ) ) * + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - 4 * + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 4 * + + COUNT ( * )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2984
SELECT COUNT( * ) AS col2, + 38 * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2984
SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL SUM( DISTINCT + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL SUM ( DISTINCT + - 1 )
----
-1

query I rowsort
SELECT - - 89 * - 95
----
-8455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT + + 34 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT + + 34 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT - COUNT( * ) DIV - - 4
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT - COUNT ( * ) / - - 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT CAST( NULL AS SIGNED ) * 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT CAST ( NULL AS INTEGER ) * 82 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL MAX( DISTINCT - 35 ) * + 90 col0
----
-3150

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL MAX ( DISTINCT - 35 ) * + 90 col0
----
-3150

query I rowsort
SELECT ALL - ( - + 96 ) AS col2
----
96

query I rowsort
SELECT 0 * - 46
----
0

query I rowsort
SELECT ALL 10 + 49
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT MAX( ALL 7 ) - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2994
SELECT MAX ( ALL 7 ) - + COUNT ( * )
----
6

query I rowsort
SELECT - + 99 * - 83
----
8217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT - CAST( 44 AS SIGNED ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-2996
SELECT - CAST ( 44 AS INTEGER ) col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT CAST( - 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2997
SELECT CAST ( - 16 AS INTEGER ) AS col0
----
-16

query I rowsort
SELECT + 86 * + + 32 AS col1
----
2752

query I rowsort
SELECT ALL - - 57 AS col0
----
57

query I rowsort
SELECT DISTINCT - - 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT - + ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - + MAX( + 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - + MAX ( + 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + 75 - + MIN( - 7 )
----
82

skipif mysql # not compatible
query I rowsort label-3003
SELECT + 75 - + MIN ( - 7 )
----
82

query I rowsort
SELECT + 39 + - - ( 78 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + MAX( + + ( + 48 ) ) * + 48 AS col0
----
2304

skipif mysql # not compatible
query I rowsort label-3005
SELECT + MAX ( + + ( + 48 ) ) * + 48 AS col0
----
2304

query I rowsort
SELECT ALL + + 86 AS col0
----
86

query I rowsort
SELECT - ( - 23 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL - ( MIN( 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - ( MIN ( 73 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT - CAST( + 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - CAST ( + 62 AS INTEGER ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL + 83 + - CAST( + NULLIF ( + + COUNT( * ), - - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + 83 + - CAST ( + NULLIF ( + + COUNT ( * ), - - COUNT ( * ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL ( COUNT( * ) ) * - 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL ( COUNT ( * ) ) * - 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL - SUM( ALL + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - SUM ( ALL + 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL - CAST( NULL AS SIGNED ) * - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - CAST ( NULL AS INTEGER ) * - 5 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - 56 + + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3016
SELECT - 56 + + COUNT ( * ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - MIN( + - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - MIN ( + - 34 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3018
SELECT + - COUNT( * ) + 51 - - COUNT( * ), - 94 AS col2
----
51
-94

skipif mysql # not compatible
query II rowsort label-3018
SELECT + - COUNT ( * ) + 51 - - COUNT ( * ), - 94 AS col2
----
51
-94

query I rowsort
SELECT + 30 - 68
----
-38

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL NULLIF ( 75, - CAST( + COUNT( * ) AS SIGNED ) + + ( + + 55 ) )
----
75

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL NULLIF ( 75, - CAST ( + COUNT ( * ) AS INTEGER ) + + ( + + 55 ) )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT - + COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3022
SELECT - + COUNT ( * ) / COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 85 * 9
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT MAX( DISTINCT - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3024
SELECT MAX ( DISTINCT - 42 ) AS col0
----
-42

query I rowsort
SELECT ALL + - 90 + 64
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT CAST( + + 60 AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3026
SELECT CAST ( + + 60 AS INTEGER ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - NULLIF ( - 28, + COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - NULLIF ( - 28, + COUNT ( * ) ) AS col2
----
28

query I rowsort
SELECT ALL - ( 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT COUNT( * ) + - COUNT( DISTINCT - - 45 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT COUNT ( * ) + - COUNT ( DISTINCT - - 45 ) col0
----
0

query I rowsort
SELECT DISTINCT 49 col0
----
49

query II rowsort
SELECT ALL 67 AS col0, 85
----
67
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT ( - 83 ) AS col0, + COUNT( * ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-3032
SELECT ( - 83 ) AS col0, + COUNT ( * ) AS col1
----
-83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3033
SELECT + + ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + - COUNT( + 12 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT + - COUNT ( + 12 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-3035
SELECT + CAST ( - 31 AS INTEGER )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ALL + 53 DIV + 53 + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + 53 / + 53 + - 15
----
-14

query II rowsort
SELECT + 25, 4 AS col1
----
25
4

query I rowsort
SELECT ALL - - 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL 73 * - ( - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL 73 * - ( - COUNT ( * ) )
----
73

query I rowsort
SELECT ALL - + 37 - - 30
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + MIN( ALL + - 27 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-3041
SELECT + MIN ( ALL + - 27 ) col1
----
-27

query I rowsort
SELECT ALL - ( - 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL MAX( ALL - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL MAX ( ALL - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL MIN( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL MIN ( ALL 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT ALL + - 92 AS col0, - COUNT( * )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL + - 92 AS col0, - COUNT ( * )
----
-92
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - - 27 * COUNT( ALL + - 39 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - - 27 * COUNT ( ALL + - 39 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 44 + 88
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3048
SELECT 32 AS col2, CAST( + COUNT( * ) AS SIGNED ) col1
----
32
1

skipif mysql # not compatible
query II rowsort label-3048
SELECT 32 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) col1
----
32
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 67 * + 74 AS col2, 20 AS col1
----
-4958
20

query I rowsort
SELECT DISTINCT + - 38 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL + + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ( - - 22 ) DIV - + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT ( - - 22 ) / - + 50 AS col1
----
0

query I rowsort
SELECT ALL + + 23 * - - 29 AS col0
----
667

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT COUNT( * ) AS col2, 10
----
1
10

skipif mysql # not compatible
query II rowsort label-3056
SELECT COUNT ( * ) AS col2, 10
----
1
10

query I rowsort
SELECT ALL + - 88 * 27 * + 80
----
-190080

query I rowsort
SELECT DISTINCT + 31 * + 7
----
217

query I rowsort
SELECT + 55 - 87
----
-32

query I rowsort
SELECT ALL 88 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - 75 + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 75 + + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT - + COUNT( * ) + - COUNT( * ) DIV + + 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3062
SELECT - + COUNT ( * ) + - COUNT ( * ) / + + 44 AS col2
----
-1

query II rowsort
SELECT DISTINCT - 78 AS col0, 72 AS col1
----
-78
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT COUNT( * ) - 99 col1
----
-98

skipif mysql # not compatible
query I rowsort label-3064
SELECT COUNT ( * ) - 99 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT 48 + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3065
SELECT 48 + + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( * ) * - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( * ) * - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 1 + + 41
----
42

query I rowsort
SELECT - 16 * + + 35 col1
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL COUNT ( * ) + - 80
----
-79

query I rowsort
SELECT DISTINCT + ( - 90 ) + - + ( 85 ) + - 32 AS col2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + COUNT( * ) - + + 85
----
-84

skipif mysql # not compatible
query I rowsort label-3071
SELECT + COUNT ( * ) - + + 85
----
-84

query I rowsort
SELECT ( 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT - 20 DIV - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 20 / - COUNT ( * ) AS col0
----
20

query I rowsort
SELECT DISTINCT + NULLIF ( - 59, + 66 )
----
-59

query I rowsort
SELECT DISTINCT - + 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT COUNT( * ) + - - 1
----
2

skipif mysql # not compatible
query I rowsort label-3076
SELECT COUNT ( * ) + - - 1
----
2

query I rowsort
SELECT 79 * + - 84 AS col1
----
-6636

query I rowsort
SELECT - 99 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL 39 * + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL 39 * + + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT - 72 AS col2, + COUNT( * ) AS col2
----
-72
1

skipif mysql # not compatible
query II rowsort label-3080
SELECT - 72 AS col2, + COUNT ( * ) AS col2
----
-72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL + + CAST( MAX( ALL + + ( - 68 ) ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + + CAST ( MAX ( ALL + + ( - 68 ) ) AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT COUNT( - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3082
SELECT COUNT ( - 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL NULLIF ( MIN( - + 36 ), + + 73 )
----
-36

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL NULLIF ( MIN ( - + 36 ), + + 73 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3084
SELECT - SUM( + 29 ) col1, + COUNT( * ) DIV 54 * - 72 * + - 42 AS col2
----
-29
0

skipif mysql # not compatible
query II rowsort label-3084
SELECT - SUM ( + 29 ) col1, + COUNT ( * ) / 54 * - 72 * + - 42 AS col2
----
-29
0

query I rowsort
SELECT + 38 + + 24
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT 43 DIV 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT 43 / 29 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - MAX( DISTINCT + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3087
SELECT - MAX ( DISTINCT + 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL - 85 + + - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - 85 + + - COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT DISTINCT COALESCE ( + 26, - 51 ) AS col1, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-3089
SELECT DISTINCT COALESCE ( + 26, - 51 ) AS col1, COUNT ( * ) AS col0
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT - 50 * COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT - 50 * COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3091
SELECT + - COUNT ( * ) * COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT ALL - 43 DIV + - COUNT( * ) col1
----
43

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL - 43 / + - COUNT ( * ) col1
----
43

query I rowsort
SELECT DISTINCT NULLIF ( + 19, + 0 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + 13 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + 13 * COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT + 41 DIV COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + 41 / COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3097
SELECT ALL + CAST( NULL AS DECIMAL ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + CAST ( NULL AS REAL ) * - 91
----
NULL

query I rowsort
SELECT 70 * + 5 AS col0
----
350

query I rowsort
SELECT 15 + 26
----
41

query II rowsort
SELECT 41 col0, + 38 * + + 39 AS col2
----
41
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT 79 * + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 79 * + - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + COUNT( * ) + - - 35
----
36

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + COUNT ( * ) + - - 35
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT COUNT( * ) col2, - 17
----
1
-17

skipif mysql # not compatible
query II rowsort label-3103
SELECT COUNT ( * ) col2, - 17
----
1
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT MIN( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT MIN ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT + SUM( DISTINCT 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + SUM ( DISTINCT 9 ) AS col0
----
9

query I rowsort
SELECT + + ( 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT COUNT( * ) - + CAST( + + ( - 83 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT COUNT ( * ) - + CAST ( + + ( - 83 ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + COUNT( * ) * + - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3108
SELECT + COUNT ( * ) * + - 84 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT - CAST( - - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3109
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ALL - 85 * 95
----
-8075

query I rowsort
SELECT DISTINCT + + 62 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT - 54 * - 55 DIV COUNT( * )
----
2970

skipif mysql # not compatible
query I rowsort label-3112
SELECT - 54 * - 55 / COUNT ( * )
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL - 20 * + - MIN( DISTINCT - 50 )
----
-1000

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - 20 * + - MIN ( DISTINCT - 50 )
----
-1000

query I rowsort
SELECT ( 64 ) + + + 91 col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL COUNT( DISTINCT + CAST( + 48 AS SIGNED ) ) + 34 col0
----
35

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( DISTINCT + CAST ( + 48 AS INTEGER ) ) + 34 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL 1 * + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 1 * + - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3117
SELECT + SUM ( - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + NULLIF ( + COUNT( * ), + - 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3118
SELECT + NULLIF ( + COUNT ( * ), + - 74 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT COUNT( * ) + - - AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT COUNT ( * ) + - - AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - SUM( - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3120
SELECT - SUM ( - - 61 )
----
-61

query I rowsort
SELECT ALL ( - 80 ) - - 82
----
2

query I rowsort
SELECT DISTINCT - - ( + - 46 ) AS col1
----
-46

query I rowsort
SELECT DISTINCT - - 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - - ( - COUNT( * ) ) + + + 80 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3124
SELECT - - ( - COUNT ( * ) ) + + + 80 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MAX( ALL 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3125
SELECT MAX ( ALL 72 )
----
72

query I rowsort
SELECT DISTINCT ( + 77 )
----
77

query II rowsort
SELECT 15 AS col1, - 54 AS col0
----
15
-54

query I rowsort
SELECT ALL + + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + 86 + + 23 + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-3129
SELECT + 86 + + 23 + COUNT ( * )
----
110

query I rowsort
SELECT + 44 + 98 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + 96 + - SUM( + 49 )
----
47

skipif mysql # not compatible
query I rowsort label-3131
SELECT + 96 + - SUM ( + 49 )
----
47

query I rowsort
SELECT DISTINCT ( - + 70 ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL - SUM( ( + - CAST( NULL AS SIGNED ) ) ) - + 76 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - SUM ( ( + - CAST ( NULL AS INTEGER ) ) ) - + 76 * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-3134
SELECT COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT 43 * + 21 AS col0
----
903

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT DISTINCT - 16 AS col0, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-3137
SELECT DISTINCT - 16 AS col0, COUNT ( * )
----
-16
1

query I rowsort
SELECT 53 + - - 17 AS col1
----
70

query I rowsort
SELECT - ( 91 ) AS col0
----
-91

query I rowsort
SELECT + - ( - 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3141
SELECT ALL - CAST( NULL AS SIGNED ) col1, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3141
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ( - + COUNT( * ) ) - 55
----
-56

skipif mysql # not compatible
query I rowsort label-3142
SELECT ( - + COUNT ( * ) ) - 55
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT 48 + - + 58 + - 18 DIV + 81 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3143
SELECT 48 + - + 58 + - 18 / + 81 AS col2
----
-10

query II rowsort
SELECT 36, + 55 AS col1
----
36
55

query I rowsort
SELECT DISTINCT 43 * - + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3146
SELECT ALL + + COUNT( * ) DIV + + 14, COUNT( * ) DIV - 61 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-3146
SELECT ALL + + COUNT ( * ) / + + 14, COUNT ( * ) / - 61 col1
----
0
0

query I rowsort
SELECT DISTINCT + - 0 + - - 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - COUNT( * ) * + - 2 * - - 19
----
38

skipif mysql # not compatible
query I rowsort label-3148
SELECT - COUNT ( * ) * + - 2 * - - 19
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ( - MIN( DISTINCT + 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-3149
SELECT ( - MIN ( DISTINCT + 93 ) )
----
-93

query I rowsort
SELECT ALL + 42 * - 70
----
-2940

onlyif mysql # aggregate syntax: 
query III rowsort label-3151
SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT( * ) col1
----
76
32
-1

skipif mysql # not compatible
query III rowsort label-3151
SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1
----
76
32
-1

query I rowsort
SELECT ALL 4 + 96
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT ALL 39 DIV - + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL 39 / - + COUNT ( * ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3154
SELECT ALL COUNT( * ), CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3154
SELECT ALL COUNT ( * ), CAST ( NULL AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 68 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT ALL + 39 AS col2, SUM( 18 ) AS col0
----
39
18

skipif mysql # not compatible
query II rowsort label-3156
SELECT ALL + 39 AS col2, SUM ( 18 ) AS col0
----
39
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT ALL - COUNT( * ), 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL - COUNT ( * ), 55 AS col2
----
-1
55

query I rowsort
SELECT ALL + - 67 - + 77 AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ALL + COUNT( * ) - + 16 + CAST( - + COUNT( * ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + COUNT ( * ) - + 16 + CAST ( - + COUNT ( * ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + + MIN( ALL + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3160
SELECT + + MIN ( ALL + + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ( - 65 ) + - COUNT( * ) - + + 25
----
-91

skipif mysql # not compatible
query I rowsort label-3161
SELECT ( - 65 ) + - COUNT ( * ) - + + 25
----
-91

query I rowsort
SELECT DISTINCT + 10 + - + 0 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + 17 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 17 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL ( MIN( - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL ( MIN ( - 49 ) ) AS col0
----
-49

query I rowsort
SELECT ALL - 52 * + ( + 66 ) col2
----
-3432

query I rowsort
SELECT ALL - 61 - + 99 * 26
----
-2635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT CAST( + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT CAST ( + 97 AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - MAX( DISTINCT 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3168
SELECT - MAX ( DISTINCT 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT 68 * - 61 AS col1
----
-4148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3170
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT + COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + COUNT ( * ) * - 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT + CAST( 63 AS SIGNED ) col2
----
63

skipif mysql # not compatible
query I rowsort label-3172
SELECT + CAST ( 63 AS INTEGER ) col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT - 58 + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 58 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-59

query II rowsort
SELECT 24 AS col0, 59 AS col2
----
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT SUM( DISTINCT - + 97 ) * 82 AS col2
----
-7954

skipif mysql # not compatible
query I rowsort label-3175
SELECT SUM ( DISTINCT - + 97 ) * 82 AS col2
----
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - SUM( + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - SUM ( + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - 68 + - 30 * + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 68 + - 30 * + COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT ALL ( - 41 )
----
-41

query I rowsort
SELECT ALL ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - COUNT( * ) * - 50
----
50

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - COUNT ( * ) * - 50
----
50

query I rowsort
SELECT ALL ( 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT COUNT ( + 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL + CASE - 40 WHEN 44 THEN - ( + - COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + CASE - 40 WHEN 44 THEN - ( + - COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT + CAST( - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-3184
SELECT + CAST ( - 55 AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT MIN( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT MIN ( - + 91 ) AS col1
----
-91

query I rowsort
SELECT - 11 + + + ( ( 11 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT + + 1 + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + + 1 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 79 + + 97
----
18

query I rowsort
SELECT ALL - + 76 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL 61 + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL 61 + COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL NULLIF ( - 89, + - 12 * - 58 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - MAX( - + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - MAX ( - + 14 ) AS col1
----
14

query I rowsort
SELECT 1 * + 7 * + + 23 AS col2
----
161

query I rowsort
SELECT + + 82 + + - 14 - + 14
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + SUM( ALL - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3197
SELECT + SUM ( ALL - 19 ) AS col1
----
-19

query I rowsort
SELECT - + 42 * 38
----
-1596

query I rowsort
SELECT + ( 18 )
----
18

query I rowsort
SELECT - - 15 + - - 62 AS col2
----
77

query I rowsort
SELECT DISTINCT 88 + 31 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL - 17 * - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - 17 * - COUNT ( * )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT ALL - 21 DIV + 77 + - 19 * - + 46 AS col1
----
874

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - 21 / + 77 + - 19 * - + 46 AS col1
----
874

query I rowsort
SELECT DISTINCT - ( - 18 ) * 54 AS col0
----
972

query I rowsort
SELECT ( 49 ) + - 27 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT 98 + + ( - COUNT( * ) ) + - 94 - + 29
----
-26

skipif mysql # not compatible
query I rowsort label-3206
SELECT 98 + + ( - COUNT ( * ) ) + - 94 - + 29
----
-26

query I rowsort
SELECT 37 * 59
----
2183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT 32 - - CAST( + 65 AS SIGNED ) + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 32 - - CAST ( + 65 AS INTEGER ) + - COUNT ( * )
----
96

query I rowsort
SELECT + 99 + - - ( + 50 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT + MIN( DISTINCT + 45 ) + 58
----
103

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + MIN ( DISTINCT + 45 ) + 58
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3211
SELECT CAST( NULL AS SIGNED ) AS col0, - 40 + + 41 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3211
SELECT CAST ( NULL AS INTEGER ) AS col0, - 40 + + 41 AS col2
----
NULL
1

query I rowsort
SELECT ALL + + 75 + + 96
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL COUNT( * ) AS col1, 55 + - - 52 col2
----
1
107

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL COUNT ( * ) AS col1, 55 + - - 52 col2
----
1
107

query I rowsort
SELECT + + ( - 29 )
----
-29

query I rowsort
SELECT + - 30 * - 34 AS col0
----
1020

query I rowsort
SELECT + 50 * + + 15
----
750

query I rowsort
SELECT DISTINCT + + 5 AS col2
----
5

query I rowsort
SELECT DISTINCT 27 * - + 85
----
-2295

query I rowsort
SELECT ALL + 92 + - 65
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ( COUNT( * ) ) * - ( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-3220
SELECT ( COUNT ( * ) ) * - ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - 4 * + COUNT( * ) - 96
----
-100

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 4 * + COUNT ( * ) - 96
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT 67 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3222
SELECT 67 * - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT COUNT( * ) + + COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3223
SELECT COUNT ( * ) + + COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL - CAST( 13 AS SIGNED ) + 39
----
26

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - CAST ( 13 AS INTEGER ) + 39
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT - CAST( - + 9 AS SIGNED ) + 1
----
10

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - CAST ( - + 9 AS INTEGER ) + 1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + COUNT( DISTINCT - + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3226
SELECT + COUNT ( DISTINCT - + 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT SUM( ALL + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3227
SELECT SUM ( ALL + + 85 )
----
85

query I rowsort
SELECT + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL + CASE WHEN NULL IS NULL THEN + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + CASE WHEN NULL IS NULL THEN + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL NULLIF ( - COUNT( * ), 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL NULLIF ( - COUNT ( * ), 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL - + 89 - - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - + 89 - - COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT + COUNT( * ) + + ( - 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-3232
SELECT + COUNT ( * ) + + ( - 49 )
----
-48

query II rowsort
SELECT + 75 col2, + 49
----
75
49

query I rowsort
SELECT ALL ( - - 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL - MIN( + + CAST( NULL AS SIGNED ) ) * - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) * - - 69
----
NULL

query II rowsort
SELECT ALL 35, 67 AS col1
----
35
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT - - CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-3237
SELECT - - CAST ( - 23 AS INTEGER )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ( - 2 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ( - 2 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - ( + + 57 ) AS col0, 45 AS col1
----
-57
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 61 + + MAX( ALL + 77 ) + + - 5
----
133

skipif mysql # not compatible
query I rowsort label-3240
SELECT 61 + + MAX ( ALL + 77 ) + + - 5
----
133

query I rowsort
SELECT ALL - 92 * 86 col1
----
-7912

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - 54 + + ( 88 ) * ( 96 ) * COUNT( * ) * - 63 AS col1
----
-532278

skipif mysql # not compatible
query I rowsort label-3242
SELECT - 54 + + ( 88 ) * ( 96 ) * COUNT ( * ) * - 63 AS col1
----
-532278

query I rowsort
SELECT 36 + - + 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT COUNT( * ) - 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3244
SELECT COUNT ( * ) - 28 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT + COUNT( * ) col1, 11
----
1
11

skipif mysql # not compatible
query II rowsort label-3245
SELECT + COUNT ( * ) col1, 11
----
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT - + CAST( + 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-3246
SELECT - + CAST ( + 98 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ( + + SUM( - 26 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3247
SELECT ( + + SUM ( - 26 ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT DISTINCT + MIN( ALL + 33 ) * + COUNT( * ) + - 91 AS col1, - COUNT( * ) col0
----
-58
-1

skipif mysql # not compatible
query II rowsort label-3248
SELECT DISTINCT + MIN ( ALL + 33 ) * + COUNT ( * ) + - 91 AS col1, - COUNT ( * ) col0
----
-58
-1

query I rowsort
SELECT - ( + 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL COUNT( * ) * - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL COUNT ( * ) * - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3251
SELECT ALL - 59 DIV + + COUNT( * ) + - 21
----
-80

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - 59 / + + COUNT ( * ) + - 21
----
-80

query I rowsort
SELECT - 59 * + + 26 col1
----
-1534

query I rowsort
SELECT + ( - - 13 ) AS col2
----
13

query I rowsort
SELECT DISTINCT - 17 - 65
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT MAX( - + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3255
SELECT MAX ( - + 58 ) AS col1
----
-58

query I rowsort
SELECT - - ( + 87 ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL - 46 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - 46 / + 91 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL 91 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 91 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT COUNT ( * ) * + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT COUNT( * ) + + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-3260
SELECT COUNT ( * ) + + 12 col1
----
13

query II rowsort
SELECT 0 AS col1, 58 AS col0
----
0
58

query I rowsort
SELECT ALL + 21 - + - 28 + - 25 AS col2
----
24

query I rowsort
SELECT - 30 * - 79 AS col2
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT + MAX( ALL - + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + MAX ( ALL - + 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 74 * - COUNT( * ) * + + 52 AS col0
----
-3848

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 74 * - COUNT ( * ) * + + 52 AS col0
----
-3848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT CAST( NULL AS SIGNED ) + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT CAST ( NULL AS INTEGER ) + + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT MAX( ALL + - 67 ) * - 42
----
2814

skipif mysql # not compatible
query I rowsort label-3267
SELECT MAX ( ALL + - 67 ) * - 42
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - COUNT( * ) * + + 41 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3268
SELECT - COUNT ( * ) * + + 41 + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3269
SELECT - CAST( NULL AS SIGNED ), 88 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3269
SELECT - CAST ( NULL AS INTEGER ), 88 AS col1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT MIN( ALL - + ( + 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT MIN ( ALL - + ( + 89 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - COUNT( * ) + + - 75 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3271
SELECT - COUNT ( * ) + + - 75 AS col0
----
-76

query II rowsort
SELECT 27 AS col0, + 43 AS col1
----
27
43

query I rowsort
SELECT + + 68 * + + 54 AS col1
----
3672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT + CAST( + + ( - 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-3274
SELECT + CAST ( + + ( - 90 ) AS INTEGER )
----
-90

query I rowsort
SELECT ALL ( 32 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3276
SELECT 44 * + CAST( NULL AS DECIMAL ) * - + 44 AS col2, 52 + - COUNT( * )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3276
SELECT 44 * + CAST ( NULL AS REAL ) * - + 44 AS col2, 52 + - COUNT ( * )
----
NULL
51

query I rowsort
SELECT ALL 96 + + 93
----
189

query I rowsort
SELECT - 78 * + + 58 AS col0
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + COUNT( * ) + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT ALL 37 DIV COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL 37 / COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT DISTINCT 72 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT 72 / - 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - 75 * - MIN( DISTINCT - 9 ) AS col1
----
-675

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 75 * - MIN ( DISTINCT - 9 ) AS col1
----
-675

query I rowsort
SELECT ALL + - ( + + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + COUNT ( * ) + + 10
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3285
SELECT 78 * - COUNT ( * )
----
-78

query I rowsort
SELECT ALL - NULLIF ( + + ( 16 ), - 70 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - COUNT( DISTINCT - 6 ) + - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - COUNT ( DISTINCT - 6 ) + - 34 AS col0
----
-35

query I rowsort
SELECT ALL 12 * + 4
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT + COUNT( DISTINCT + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + COUNT ( DISTINCT + + 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - ( - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3290
SELECT - ( - ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3291
SELECT - ( 86 ) DIV + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3291
SELECT - ( 86 ) / + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT + COUNT( * ) * - - 84
----
84

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + COUNT ( * ) * - - 84
----
84

query I rowsort
SELECT DISTINCT ( + 36 ) col0
----
36

query I rowsort
SELECT DISTINCT ( 48 )
----
48

query I rowsort
SELECT + - 56 AS col0
----
-56

query I rowsort
SELECT DISTINCT + - 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + + MIN( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + + MIN ( 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT SUM( ALL - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3298
SELECT SUM ( ALL - 69 ) AS col2
----
-69

query II rowsort
SELECT - 82, 93 AS col1
----
-82
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3300
SELECT ALL 53 + + COUNT( * ) DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL 53 + + COUNT ( * ) / COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT 5 - - + 89 AS col0
----
94

query I rowsort
SELECT DISTINCT - - 6 * - - 77 col2
----
462

query I rowsort
SELECT ALL - 33 * - + 99 AS col0
----
3267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL - 93 * COALESCE ( + CAST( NULL AS SIGNED ), + 45 ) AS col0
----
-4185

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 93 * COALESCE ( + CAST ( NULL AS INTEGER ), + 45 ) AS col0
----
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + NULLIF ( MIN( - 33 ), + 52 )
----
-33

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + NULLIF ( MIN ( - 33 ), + 52 )
----
-33

query I rowsort
SELECT + ( + 43 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3307
SELECT DISTINCT + COUNT( * ), CAST( 28 AS SIGNED ) AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-3307
SELECT DISTINCT + COUNT ( * ), CAST ( 28 AS INTEGER ) AS col0
----
1
28

query I rowsort
SELECT CASE 75 WHEN 83 THEN + + ( + - 20 ) WHEN 74 THEN + - 16 ELSE NULL END
----
NULL

query II rowsort
SELECT + 24, 60 AS col0
----
24
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT COUNT( * ) DIV + + 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT COUNT ( * ) / + + 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT - MAX( COALESCE ( 42, 63 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - MAX ( COALESCE ( 42, 63 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT 1 * - 13 * 97 + COUNT( - - 53 )
----
-1260

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT 1 * - 13 * 97 + COUNT ( - - 53 )
----
-1260

query I rowsort
SELECT ( - 22 ) + - 81 AS col1
----
-103

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col2
----
3

query II rowsort
SELECT ALL + 61, 28 AS col0
----
61
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL COUNT( * ) * + + 8
----
8

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL COUNT ( * ) * + + 8
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3317
SELECT DISTINCT + 28 AS col1, CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3317
SELECT DISTINCT + 28 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + COUNT( * ) + 4 + - 65
----
-60

skipif mysql # not compatible
query I rowsort label-3318
SELECT + COUNT ( * ) + 4 + - 65
----
-60

query I rowsort
SELECT - ( - 20 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL + SUM( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + SUM ( 92 ) AS col0
----
92

query I rowsort
SELECT ALL - 67 * + 76 * 67 - + + ( - + 2 ) + ( - ( - 98 ) )
----
-341064

query I rowsort
SELECT - - 71 + + 17 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( * ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( * ) * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - COUNT( DISTINCT 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - COUNT ( DISTINCT 32 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT DISTINCT - 73, - COUNT( * ) AS col2
----
-73
-1

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT - 73, - COUNT ( * ) AS col2
----
-73
-1

query I rowsort
SELECT DISTINCT - ( - 39 )
----
39

query I rowsort
SELECT + 98 * + - 48
----
-4704

query I rowsort
SELECT DISTINCT + + 53 + + - 70 AS col2
----
-17

query I rowsort
SELECT DISTINCT - 12 col1
----
-12

query I rowsort
SELECT DISTINCT + 57 + 35 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT COUNT( * ) * + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3332
SELECT COUNT ( * ) * + - 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT CAST( NULL AS SIGNED ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT 47 - - - COUNT( * ) - + 64
----
-18

skipif mysql # not compatible
query I rowsort label-3334
SELECT 47 - - - COUNT ( * ) - + 64
----
-18

query I rowsort
SELECT ALL + - ( 35 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT CAST( - - ( + - COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3336
SELECT CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3337
SELECT - SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT - SUM ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT + + SUM( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + + SUM ( ALL - 35 )
----
-35

query I rowsort
SELECT + 71 * + 21 AS col0
----
1491

query I rowsort
SELECT ALL ( + - 65 )
----
-65

query I rowsort
SELECT ALL + - 33 * 15 AS col2
----
-495

query I rowsort
SELECT DISTINCT - 11 * + 9 col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT DISTINCT + 43 AS col1, - COUNT( * ) AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1
----
43
-1

query I rowsort
SELECT 56 + - 52 AS col0
----
4

query I rowsort
SELECT - 90 * + + 35 AS col0
----
-3150

query I rowsort
SELECT ( + - 95 )
----
-95

query II rowsort
SELECT + 33 AS col1, - 66 AS col0
----
33
-66

query I rowsort
SELECT + ( - 11 ) AS col0
----
-11

query I rowsort
SELECT ALL + ( + 67 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT ALL ( + 35 ) * COALESCE ( - CAST( + 50 AS SIGNED ), - - 69 ) AS col2
----
-1750

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL ( + 35 ) * COALESCE ( - CAST ( + 50 AS INTEGER ), - - 69 ) AS col2
----
-1750

query I rowsort
SELECT ALL + 11 col2
----
11

query I rowsort
SELECT - - 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT + - COUNT( * ) + + + 95 AS col2, 40 AS col0
----
94
40

skipif mysql # not compatible
query II rowsort label-3353
SELECT + - COUNT ( * ) + + + 95 AS col2, 40 AS col0
----
94
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT + COALESCE ( - 7, - COUNT( * ) ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + COALESCE ( - 7, - COUNT ( * ) ) col1
----
-7

query I rowsort
SELECT 19 - 86
----
-67

query I rowsort
SELECT 31 - - ( + 20 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + MAX( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3357
SELECT + MAX ( - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-3358
SELECT - COUNT ( * ) + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - 95 * - - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 95 * - - COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT ALL - 32 + - + 33
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL + + MAX( DISTINCT + + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + + MAX ( DISTINCT + + 14 ) AS col0
----
14

query I rowsort
SELECT ALL ( + 31 ) * 88 AS col0
----
2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT - CAST( NULL AS SIGNED ) * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT - CAST ( NULL AS INTEGER ) * + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + CAST( ( + 21 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3365
SELECT + CAST ( ( + 21 ) AS INTEGER )
----
21

query I rowsort
SELECT - 91 * - 54
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + - MIN( ALL + - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3367
SELECT + - MIN ( ALL + - 57 )
----
57

query I rowsort
SELECT ALL + - ( + 82 )
----
-82

query I rowsort
SELECT ALL + 9 * + 17 + 54
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT COUNT( * ) * - - 30
----
30

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT COUNT ( * ) * - - 30
----
30

query I rowsort
SELECT + - 51 col2
----
-51

query I rowsort
SELECT ALL - - ( ( 15 ) )
----
15

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

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - + ( - - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3374
SELECT DISTINCT + - 51 + + 99 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT + - 51 + + 99 AS col1, CAST ( NULL AS REAL ) AS col0
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT COUNT( * ) - + 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3375
SELECT COUNT ( * ) - + 22 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT MAX( ALL + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT MAX ( ALL + 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT - 72 col1, - COUNT( * ) AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-3377
SELECT - 72 col1, - COUNT ( * ) AS col1
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + 13 * COUNT( ALL + 22 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 13 * COUNT ( ALL + 22 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL + 87 - 79 * - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL + 87 - 79 * - COUNT ( * )
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL MAX( ALL - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL MAX ( ALL - 66 ) AS col1
----
-66

query I rowsort
SELECT ALL - 43 * + - 14 * 65
----
39130

query I rowsort
SELECT + 5 + - 24
----
-19

query I rowsort
SELECT DISTINCT + + 49 AS col2
----
49

query I rowsort
SELECT ALL + ( + ( - 81 ) ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT 26 * + 42 - + + 79 * - COUNT( * ) * - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT 26 * + 42 - + + 79 * - COUNT ( * ) * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 83 * - 57
----
-4731

query I rowsort
SELECT DISTINCT 0 * + 60
----
0

query I rowsort
SELECT DISTINCT + 84 + 34
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT ( + COUNT( * ) ) + + 55 + + - CAST( - COUNT( * ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3389
SELECT ( + COUNT ( * ) ) + + 55 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT - 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - 93 * - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL + 15 * + 33 AS col2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL 42 * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 42 * + + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL ( - 82 ) + + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL ( - 82 ) + + COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT COUNT( * ) + 91 * + - ( + 9 ) AS col2
----
-818

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) + 91 * + - ( + 9 ) AS col2
----
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL ( + 77 ) * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL ( + 77 ) * - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT DISTINCT COUNT( * ), - 17 col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT COUNT ( * ), - 17 col2
----
1
-17

query I rowsort
SELECT + ( - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL + COUNT( * ) * - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + COUNT ( * ) * - COUNT ( + 76 )
----
-1

query I rowsort
SELECT DISTINCT 46 + 61
----
107

query I rowsort
SELECT + ( - + 86 ) AS col2
----
-86

query I rowsort
SELECT + ( + + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - COUNT( * ) + + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COUNT ( * ) + + - 73
----
-74

query I rowsort
SELECT DISTINCT + ( - - 39 )
----
39

query I rowsort
SELECT - - 98 * - 39 col1
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT COUNT( 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT COUNT ( 49 ) AS col2
----
1

query I rowsort
SELECT - ( + 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT ALL - 43 DIV 96 + + 6
----
6

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - 43 / 96 + + 6
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT 54 DIV + + 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3408
SELECT 54 / + + 38 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT 23 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT DISTINCT + 90 DIV + 63 col0
----
1

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + 90 / + 63 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT DISTINCT MIN( - + 32 ) AS col2, + 35 AS col0
----
-32
35

skipif mysql # not compatible
query II rowsort label-3411
SELECT DISTINCT MIN ( - + 32 ) AS col2, + 35 AS col0
----
-32
35

query I rowsort
SELECT DISTINCT 93 col2
----
93

query I rowsort
SELECT - 64 - 18
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT - + 60 DIV - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3415
SELECT - + 60 / - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + + COUNT( DISTINCT + 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3416
SELECT + + COUNT ( DISTINCT + 10 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT + COUNT( * ) * + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3417
SELECT + COUNT ( * ) * + 17 AS col1
----
17

query II rowsort
SELECT ALL + 4 AS col0, 66 col2
----
4
66

query I rowsort
SELECT - + 60 col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT - 48 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 48 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - - COUNT( * ) * - - 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3421
SELECT - - COUNT ( * ) * - - 35 + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + COUNT( - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + COUNT ( - 92 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT 13 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - 83 * - COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - 83 * - COUNT ( * ) col0
----
83

query I rowsort
SELECT ALL - + 41 col2
----
-41

query I rowsort
SELECT ALL - ( + 16 ) * - 89
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + 32 * - 8 + - COUNT( * ) AS col1
----
-257

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 32 * - 8 + - COUNT ( * ) AS col1
----
-257

query II rowsort
SELECT ALL 87 AS col0, - 86
----
87
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT 58 * - - MAX( 80 ) * + 46 AS col2
----
213440

skipif mysql # not compatible
query I rowsort label-3429
SELECT 58 * - - MAX ( 80 ) * + 46 AS col2
----
213440

query I rowsort
SELECT ALL + 17 * + 14 AS col0
----
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3431
SELECT DISTINCT 52 DIV + + SUM( DISTINCT - + 43 ) * + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT 52 / + + SUM ( DISTINCT - + 43 ) * + - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - COUNT( DISTINCT + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-3432
SELECT - COUNT ( DISTINCT + + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL 87 * COUNT( * ) * - 43
----
-3741

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL 87 * COUNT ( * ) * - 43
----
-3741

query II rowsort
SELECT + 50 AS col0, 76 AS col0
----
50
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + + MAX( DISTINCT - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3435
SELECT + + MAX ( DISTINCT - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT - COUNT( * ) * - 90 AS col0, + 79 * + COUNT( * )
----
90
79

skipif mysql # not compatible
query II rowsort label-3436
SELECT - COUNT ( * ) * - 90 AS col0, + 79 * + COUNT ( * )
----
90
79

query I rowsort
SELECT DISTINCT 47 * - - 0
----
0

query I rowsort
SELECT - 15 col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - ( - MIN( ALL - + 55 ) ) - + 30 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3439
SELECT - ( - MIN ( ALL - + 55 ) ) - + 30 AS col2
----
-85

query II rowsort
SELECT DISTINCT - 3 col2, - 74 * - ( 11 ) + + 49
----
-3
863

query I rowsort
SELECT DISTINCT 71 * + - 96 AS col1
----
-6816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT ALL 30 + + 43 DIV - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 30 + + 43 / - - COUNT ( * )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT 73 DIV - 97 * + - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT 73 / - 97 * + - 79 AS col2
----
0

query I rowsort
SELECT 57 * + 77 AS col2
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL 23 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 23 * - COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT - CAST( - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-3446
SELECT - CAST ( - 30 AS INTEGER )
----
30

query I rowsort
SELECT ALL + 8 + - 29
----
-21

query I rowsort
SELECT DISTINCT + 50 + 99 AS col0
----
149

query I rowsort
SELECT - - 87 * - 70
----
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - 23 * + + 89 * + + MAX( - ( + 4 ) )
----
8188

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 23 * + + 89 * + + MAX ( - ( + 4 ) )
----
8188

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT COUNT( * ), - 1 + + 5 * - 90 AS col0
----
1
-451

skipif mysql # not compatible
query II rowsort label-3451
SELECT COUNT ( * ), - 1 + + 5 * - 90 AS col0
----
1
-451

query II rowsort
SELECT DISTINCT 26, - 72 AS col2
----
26
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT - - 75 AS col0, ( + COUNT( * ) ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-3453
SELECT - - 75 AS col0, ( + COUNT ( * ) ) AS col0
----
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT + CAST( NULL AS SIGNED ) + + 0 * 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT + CAST ( NULL AS INTEGER ) + + 0 * 76 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL + COUNT( ALL 58 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + COUNT ( ALL 58 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL MAX( ALL + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL MAX ( ALL + 1 ) col1
----
1

query I rowsort
SELECT + 74 * - - 67
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - 89 + + + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3459
SELECT - 89 + + + COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL MAX( ALL 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL MAX ( ALL 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - 78 + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - 78 + + COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + COUNT( 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT + COUNT ( 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - ( - + MAX( DISTINCT 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-3465
SELECT - ( - + MAX ( DISTINCT 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT MAX( DISTINCT + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3466
SELECT MAX ( DISTINCT + 48 ) AS col1
----
48

query I rowsort
SELECT 61 * - 7
----
-427

query I rowsort
SELECT - ( - 90 ) - - 52
----
142

query II rowsort
SELECT ALL - - 38, + 92 + - 48 AS col1
----
38
44

query I rowsort
SELECT ALL - + ( 99 ) AS col1
----
-99

query I rowsort
SELECT ALL - - ( + + 56 ) AS col2
----
56

query II rowsort
SELECT ALL + 40 AS col1, 3
----
40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - MIN( + + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3473
SELECT - MIN ( + + 94 )
----
-94

query I rowsort
SELECT - - 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + 30 + + + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 30 + + + COUNT ( * ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT - 64 DIV - ( + 21 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3476
SELECT - 64 / - ( + 21 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT 19 + + 92 * + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-3477
SELECT 19 + + 92 * + COUNT ( * ) AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - 89 * - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 89 * - COUNT ( * ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 45 + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3479
SELECT 45 + COUNT ( * ) AS col0
----
46

query I rowsort
SELECT ALL - 63 * - 92 AS col0
----
5796

query I rowsort
SELECT 13 + 93 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + COUNT( ALL + - 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT + COUNT ( ALL + - 94 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL + CAST( + 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + CAST ( + 64 AS INTEGER ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 66 ) AS col1
----
-66

query II rowsort
SELECT 71 col0, - 74 AS col2
----
71
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + SUM( + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + SUM ( + 54 ) AS col1
----
54

query I rowsort
SELECT - 75 * - 79 AS col0
----
5925

query I rowsort
SELECT ALL + 9 col1
----
9

query I rowsort
SELECT - + 19 col1
----
-19

query I rowsort
SELECT - 66 * 70 + - - 81 AS col1
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL COUNT( - + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL COUNT ( - + 92 )
----
1

query I rowsort
SELECT DISTINCT 83 + 71
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL ( - COUNT( * ) ) * 34
----
-34

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL ( - COUNT ( * ) ) * 34
----
-34

query I rowsort
SELECT + 46 + 12
----
58

query I rowsort
SELECT - 26 + - + 71 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - MAX( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - MAX ( - 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT DISTINCT - COALESCE ( + - CAST( 17 AS SIGNED ), - 33 * + 56 * + - 10 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT - COALESCE ( + - CAST ( 17 AS INTEGER ), - 33 * + 56 * + - 10 ) col1
----
17

query I rowsort
SELECT ALL - + 66 col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3500
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1, 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3500
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1, 54
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT 33 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT 33 / - 90 AS col0
----
0

query I rowsort
SELECT ALL ( + - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT COUNT( * ) + 58 col0
----
59

skipif mysql # not compatible
query I rowsort label-3503
SELECT COUNT ( * ) + 58 col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL + CAST( NULL AS SIGNED ) / + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + CAST ( NULL AS INTEGER ) / + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT ALL + 38 col0, - COUNT( * ) AS col1
----
38
-1

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL + 38 col0, - COUNT ( * ) AS col1
----
38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + + MAX( DISTINCT - + 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3506
SELECT + + MAX ( DISTINCT - + 26 ) AS col0
----
-26

query I rowsort
SELECT DISTINCT + ( ( + 79 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + MAX( DISTINCT - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + MAX ( DISTINCT - 16 ) AS col0
----
-16

query I rowsort
SELECT - ( - + 46 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL COUNT( * ), - 91 AS col1
----
1
-91

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL COUNT ( * ), - 91 AS col1
----
1
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT CAST( 56 AS SIGNED ) * 54
----
3024

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT CAST ( 56 AS INTEGER ) * 54
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT - ( SUM( 89 ) ) DIV COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3512
SELECT - ( SUM ( 89 ) ) / COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT - ( - 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT - - 56 DIV + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3514
SELECT - - 56 / + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - + 29 + + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-3515
SELECT - + 29 + + + COUNT ( * )
----
-28

query I rowsort
SELECT - ( + ( + 74 ) ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT + COUNT( * ) + 63 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + COUNT ( * ) + 63 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ( - 2 ) - + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3518
SELECT ( - 2 ) - + COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT DISTINCT - - 24 col2
----
24

query I rowsort
SELECT ALL - + 42 AS col0
----
-42

query I rowsort
SELECT 84 + - 99
----
-15

query I rowsort
SELECT ALL 94 * 55
----
5170

query I rowsort
SELECT ALL 58 * - 43
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT COUNT( 38 ) + - - 13
----
14

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT COUNT ( 38 ) + - - 13
----
14

query I rowsort
SELECT ALL - + 90 col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 5 - 53 DIV 67 - + ( - 60 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-3526
SELECT 5 - 53 / 67 - + ( - 60 ) col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3527
SELECT 77 AS col2, - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-3527
SELECT 77 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( + 19 )
----
1

query II rowsort
SELECT DISTINCT 45 * 95, + 3 AS col1
----
4275
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL + COUNT( * ) * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + COUNT ( * ) * - 93
----
-93

query I rowsort
SELECT + 33 + + 39
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT ALL - 83 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - 83 / - 54
----
1

query I rowsort
SELECT ( 89 ) + - 5 col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - - COUNT( * ) + + ( 26 )
----
27

skipif mysql # not compatible
query I rowsort label-3535
SELECT - - COUNT ( * ) + + ( 26 )
----
27

query I rowsort
SELECT ALL + ( - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - + 18 * - + NULLIF ( - COUNT( * ), - 32 * + + 9 )
----
-18

skipif mysql # not compatible
query I rowsort label-3537
SELECT - + 18 * - + NULLIF ( - COUNT ( * ), - 32 * + + 9 )
----
-18

query I rowsort
SELECT - - 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT COUNT( * ) - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) - + 32
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - COUNT( * ) + + - ( - - 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - COUNT ( * ) + + - ( - - 94 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3541
SELECT DISTINCT COUNT( * ) AS col1, 96 DIV 9 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-3541
SELECT DISTINCT COUNT ( * ) AS col1, 96 / 9 AS col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + MIN( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-3542
SELECT + MIN ( - 67 )
----
-67

query I rowsort
SELECT + - 72 + + 26
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + MIN( - 99 ) * + 91 AS col2
----
-9009

skipif mysql # not compatible
query I rowsort label-3544
SELECT + MIN ( - 99 ) * + 91 AS col2
----
-9009

query I rowsort
SELECT - ( + 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT + + CASE WHEN NULL = NULL THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + + CASE WHEN NULL = NULL THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 75 col0
----
-75

query I rowsort
SELECT - 63 + - - 7
----
-56

query I rowsort
SELECT - ( + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - ( + MIN( 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-3550
SELECT - ( + MIN ( 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL + ( + 33 ) + - 78 * - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + ( + 33 ) + - 78 * - COUNT ( * )
----
111

query I rowsort
SELECT ALL ( 42 )
----
42

query I rowsort
SELECT ALL ( + + 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT ALL - ( + 56 ) * CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - ( + 56 ) * CAST ( NULL AS INTEGER ) * - 37
----
NULL

query I rowsort
SELECT DISTINCT + + 1 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL + - AVG ( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + - AVG ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT SUM( DISTINCT + - 37 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT SUM ( DISTINCT + - 37 ) col0
----
-37

query I rowsort
SELECT - 82 * - 7 AS col0
----
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT - 0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - 0 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT 17 + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-3560
SELECT 17 + - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT COUNT( * ) - 77 + + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT COUNT ( * ) - 77 + + COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + - MAX( + + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - MAX ( + + 39 ) AS col0
----
-39

query I rowsort
SELECT 27 + - + 24 col1
----
3

query II rowsort
SELECT 57, + 9 AS col2
----
57
9

query I rowsort
SELECT ALL 79 * - 85
----
-6715

query I rowsort
SELECT ( 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL + COUNT( * ) * 18 + 93
----
111

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + COUNT ( * ) * 18 + 93
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT DISTINCT + 65 * SUM( DISTINCT 63 DIV - 88 ) - - 82
----
82

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + 65 * SUM ( DISTINCT 63 / - 88 ) - - 82
----
82

query I rowsort
SELECT ALL ( + 46 )
----
46

query I rowsort
SELECT ALL + - 54 + - 1
----
-55

query I rowsort
SELECT - + ( + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT MIN( DISTINCT + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3572
SELECT MIN ( DISTINCT + 96 ) AS col2
----
96

query I rowsort
SELECT 58 * - + 41
----
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL CAST( NULL AS SIGNED ) * - - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL CAST ( NULL AS INTEGER ) * - - 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT ALL - 14 + + - CAST( 49 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - 14 + + - CAST ( 49 AS INTEGER ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT CAST( + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT CAST ( + 31 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT MIN( ALL + 30 ) DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3577
SELECT MIN ( ALL + 30 ) / - 35 AS col1
----
0

query I rowsort
SELECT ALL + 14 * - 96 AS col0
----
-1344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3579
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3580
SELECT + 93 AS col0, COUNT( * ) + - ( + CAST( NULL AS SIGNED ) )
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3580
SELECT + 93 AS col0, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) )
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL 20 * - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 20 * - COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT DISTINCT ( - 88 ) * + ( - ( 22 ) )
----
1936

query I rowsort
SELECT DISTINCT 36 * - 99
----
-3564

query I rowsort
SELECT + ( + 56 ) * - 53 AS col2
----
-2968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT CAST( - 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( - 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - CAST( NULL AS SIGNED ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( NULL AS INTEGER ) * - 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT CAST( ( 29 ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3587
SELECT CAST ( ( 29 ) AS INTEGER )
----
29

query I rowsort
SELECT ALL + + 75 AS col1
----
75

query I rowsort
SELECT ALL + + 2
----
2

query II rowsort
SELECT 51, - 38 AS col2
----
51
-38

query I rowsort
SELECT + ( - 7 ) + + - ( - 64 ) + - ( 36 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT SUM( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3592
SELECT SUM ( 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL 88 + + 76 + + - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL 88 + + 76 + + - COUNT ( * )
----
163

query I rowsort
SELECT DISTINCT - 7 + 2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3595
SELECT ALL COUNT( * ) * + MIN( DISTINCT + ( - 7 ) ), + CAST( NULL AS SIGNED ) AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT + ( - 7 ) ), + CAST ( NULL AS INTEGER ) AS col1
----
-7
NULL

query II rowsort
SELECT ALL 97 - 44, + 1 AS col2
----
53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + COUNT( * ) + - ( + 55 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3597
SELECT + COUNT ( * ) + - ( + 55 ) AS col0
----
-54

query II rowsort
SELECT - 14 AS col0, 84 AS col2
----
-14
84

query I rowsort
SELECT 61 + - ( - 34 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3600
SELECT MIN( + 5 ) AS col1, 7
----
5
7

skipif mysql # not compatible
query II rowsort label-3600
SELECT MIN ( + 5 ) AS col1, 7
----
5
7

query I rowsort
SELECT ALL + - 20 AS col1
----
-20

query I rowsort
SELECT ALL ( - - 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT - COUNT( * ) * - + 34
----
34

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT - COUNT ( * ) * - + 34
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT - 29, + CAST( NULL AS SIGNED ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-3604
SELECT - 29, + CAST ( NULL AS INTEGER ) AS col2
----
-29
NULL

query I rowsort
SELECT - 4 - - - 75
----
-79

query I rowsort
SELECT ALL ( + COALESCE ( + - 54, - 62 ) ) AS col0
----
-54

query I rowsort
SELECT DISTINCT ( - + 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT + - 31 * + + COUNT( * ) + 39 - 49 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + - 31 * + + COUNT ( * ) + 39 - 49 AS col0
----
-41

query I rowsort
SELECT + ( - 79 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT DISTINCT COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + 80 + - + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3611
SELECT + 80 + - + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL 39 + + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 39 + + + COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT CAST( - 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT CAST ( - 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ( - + 5 ) * COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3614
SELECT ( - + 5 ) * COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - COUNT( ALL - - 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-3615
SELECT - COUNT ( ALL - - 88 )
----
-1

query I rowsort
SELECT DISTINCT - + 65 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - COUNT( * ) + + ( - COUNT( * ) ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - COUNT ( * ) + + ( - COUNT ( * ) ) col1
----
-2

query I rowsort
SELECT ALL - + 15 * 57 AS col0
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + COUNT( * ) + + 92
----
93

skipif mysql # not compatible
query I rowsort label-3620
SELECT + COUNT ( * ) + + 92
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT DISTINCT 81 DIV 24 col2
----
3

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT 81 / 24 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT COUNT( * ) - 47 - 27
----
-73

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT COUNT ( * ) - 47 - 27
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT + + 50 + 42 DIV - ( - 25 )
----
51

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + + 50 + 42 / - ( - 25 )
----
51

query I rowsort
SELECT + - ( + + 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT + COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT 50 * + ( - COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT 50 * + ( - COUNT ( * ) )
----
-50

query I rowsort
SELECT ALL - 25 * + 87 AS col2
----
-2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT - COUNT( + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT - COUNT ( + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 50 * + + 49 AS col2
----
2450

query I rowsort
SELECT - - 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + - 11 + - + SUM( ALL + 30 )
----
-41

skipif mysql # not compatible
query I rowsort label-3631
SELECT + - 11 + - + SUM ( ALL + 30 )
----
-41

query I rowsort
SELECT ALL + ( - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + 85 * + - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 85 * + - COUNT ( * )
----
-85

query I rowsort
SELECT ALL - 49 * + 47
----
-2303

query I rowsort
SELECT + ( - + 71 ) AS col1
----
-71

query I rowsort
SELECT 30 * - - ( 26 ) AS col1
----
780

query I rowsort
SELECT ALL - 40 * - + 48
----
1920

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT DISTINCT COUNT( * ) AS col0, + 41 AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT COUNT ( * ) AS col0, + 41 AS col1
----
1
41

query I rowsort
SELECT 21 * - + 60
----
-1260

query I rowsort
SELECT DISTINCT - ( 59 ) * + 97 col0
----
-5723

query II rowsort
SELECT - 83 col0, 17 AS col0
----
-83
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL NULLIF ( + COUNT( * ), - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL + COUNT( 40 ) * + 29 + MAX( - - 13 )
----
42

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL + COUNT ( 40 ) * + 29 + MAX ( - - 13 )
----
42

query I rowsort
SELECT + - 57 * - 27
----
1539

query I rowsort
SELECT DISTINCT + ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT SUM( - + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3646
SELECT SUM ( - + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT SUM( + + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3647
SELECT SUM ( + + 80 )
----
80

query I rowsort
SELECT ALL 21 + 74
----
95

query II rowsort
SELECT 90, 18 + - + 24 - - - 79 * 66 * - 54 AS col1
----
90
281550

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - + NULLIF ( + + ( + COUNT( * ) ), + 62 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - + NULLIF ( + + ( + COUNT ( * ) ), + 62 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL - - MIN( 63 ) col0
----
63

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - - MIN ( 63 ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT SUM( + 23 ) - - + MIN( + ( - + ( - 96 ) ) ) col1
----
119

skipif mysql # not compatible
query I rowsort label-3652
SELECT SUM ( + 23 ) - - + MIN ( + ( - + ( - 96 ) ) ) col1
----
119

query I rowsort
SELECT ( + 91 ) AS col0
----
91

query I rowsort
SELECT ALL 14 * - 49 AS col0
----
-686

query I rowsort
SELECT + 54 + + + 51
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3656
SELECT - COUNT( * ) * + 25 + + MAX( DISTINCT ( + CAST( NULL AS DECIMAL ) ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) * + 25 + + MAX ( DISTINCT ( + CAST ( NULL AS REAL ) ) ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL + 45 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 45 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 99 AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT ALL 11 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL 11 / 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT + 55 DIV + 17 - - ( + - COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + 55 / + 17 - - ( + - COUNT ( * ) ) AS col2
----
2

query I rowsort
SELECT + ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT 67 * + 91 * - COUNT( * ) AS col1
----
-6097

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 67 * + 91 * - COUNT ( * ) AS col1
----
-6097

query I rowsort
SELECT ALL - 42 * 13
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + NULLIF ( - - 79, 87 ) * + + 14 * - COUNT( * ) AS col0
----
-1106

skipif mysql # not compatible
query I rowsort label-3664
SELECT + NULLIF ( - - 79, 87 ) * + + 14 * - COUNT ( * ) AS col0
----
-1106

query I rowsort
SELECT ALL 91 + + 27 - + - 88 * + + 4
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT - COUNT( * ) * + - 94 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - COUNT ( * ) * + - 94 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - CAST ( NULL AS INTEGER ) * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT + ( - - COUNT( ALL + - 6 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + ( - - COUNT ( ALL + - 6 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + + SUM( - + 69 ) + + 27
----
-42

skipif mysql # not compatible
query I rowsort label-3669
SELECT + + SUM ( - + 69 ) + + 27
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT - COUNT( * ) + + + 35 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3670
SELECT - COUNT ( * ) + + + 35 AS col1
----
34

query I rowsort
SELECT ALL + 26 + - 23 * 97
----
-2205

query I rowsort
SELECT DISTINCT 4 + - 96 AS col1
----
-92

query II rowsort
SELECT ALL - 47, 52 * + 97 - + 23 AS col2
----
-47
5021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL + 13 + + - 64 - - CAST( NULL AS SIGNED ) * - + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 13 + + - 64 - - CAST ( NULL AS INTEGER ) * - + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT + CAST( - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3675
SELECT + CAST ( - 46 AS INTEGER )
----
-46

query I rowsort
SELECT DISTINCT - ( + + 14 )
----
-14

query I rowsort
SELECT + - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT MAX( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT MAX ( 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT ALL 3 DIV ( - MAX( 41 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL 3 / ( - MAX ( 41 ) ) AS col1
----
0

query I rowsort
SELECT ALL ( + + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - COUNT( * ) + - 35 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3681
SELECT - COUNT ( * ) + - 35 AS col1
----
-36

query I rowsort
SELECT ALL + - 21 AS col0
----
-21

query I rowsort
SELECT ALL 34 * - 85 col1
----
-2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT ( - + AVG ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT ( - + AVG ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT DISTINCT ( + 28 ), + COUNT( * ) col1
----
28
1

skipif mysql # not compatible
query II rowsort label-3686
SELECT DISTINCT ( + 28 ), + COUNT ( * ) col1
----
28
1

query I rowsort
SELECT ALL ( - + 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - COUNT( * ) - 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3688
SELECT - COUNT ( * ) - 32 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT - 37 * + - ( + - MIN( - 9 ) ) AS col1, - 49 AS col2
----
333
-49

skipif mysql # not compatible
query II rowsort label-3689
SELECT - 37 * + - ( + - MIN ( - 9 ) ) AS col1, - 49 AS col2
----
333
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT MIN( - ( + - 55 ) ) + + + 60
----
115

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT MIN ( - ( + - 55 ) ) + + + 60
----
115

query I rowsort
SELECT DISTINCT + - 21 + + 83 + - - ( - 35 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) * + 40
----
40

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) * + 40
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT 42 * + 62 + + - CAST( NULL AS SIGNED ) / - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT 42 * + 62 + + - CAST ( NULL AS INTEGER ) / - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( * ) * + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) * + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + 19 - + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 19 - + COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT ALL + - SUM( 60 ) DIV + - 68 - - 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL + - SUM ( 60 ) / + - 68 - - 74 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL + CAST( NULL AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + CAST ( NULL AS INTEGER ) * 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) + - 3 * 92 DIV - + COUNT( * ) AS col2
----
276

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) + - 3 * 92 / - + COUNT ( * ) AS col2
----
276

query I rowsort
SELECT DISTINCT + 29 + 97
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3700
SELECT DISTINCT 55 + + - CAST( - + 94 AS SIGNED ) col1, 63 AS col1
----
149
63

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1
----
149
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL + CAST( + MIN( - 38 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + CAST ( + MIN ( - 38 ) AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT COUNT( DISTINCT + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT COUNT ( DISTINCT + 91 )
----
1

query I rowsort
SELECT ALL + 80 * - + 33 + + 56 AS col1
----
-2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT + COUNT( + + 12 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT + COUNT ( + + 12 ) / - 95
----
0

query I rowsort
SELECT ALL 8 * - 0
----
0

query I rowsort
SELECT ALL + ( + - 97 )
----
-97

query II rowsort
SELECT + - 10 AS col0, 91 AS col1
----
-10
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3708
SELECT ALL - MAX( - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - MAX ( - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT - 77 DIV - 1 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3709
SELECT - 77 / - 1 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL - COUNT( * ) * - 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - COUNT ( * ) * - 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT 28 + + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3712
SELECT 28 + + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT + ( - 58 ) + + - 66 - 70
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + COUNT( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( + - 73 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT COUNT( DISTINCT + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT COUNT ( DISTINCT + 68 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT - 14 + - MIN( - 52 ) * - - CAST( - + COUNT( * ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-3716
SELECT - 14 + - MIN ( - 52 ) * - - CAST ( - + COUNT ( * ) AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + MAX( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + MAX ( 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT + CAST( 25 AS SIGNED ) + + - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + CAST ( 25 AS INTEGER ) + + - 22 AS col0
----
3

query I rowsort
SELECT ALL 31 + + + 45
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT COUNT( DISTINCT - + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-3720
SELECT COUNT ( DISTINCT - + 55 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - COUNT( * ) * + 29 * + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COUNT ( * ) * + 29 * + - COUNT ( * ) AS col2
----
29

query I rowsort
SELECT + ( - - 56 ) + - 33
----
23

query I rowsort
SELECT + ( + 26 ) AS col2
----
26

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 47, - - 49 ) AS col0
----
-47

query I rowsort
SELECT ALL ( + 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3727
SELECT ALL 13 DIV + MAX( - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL 13 / + MAX ( - 33 )
----
0

query I rowsort
SELECT - 79 * + 74 AS col2
----
-5846

query I rowsort
SELECT DISTINCT + + 18
----
18

query I rowsort
SELECT DISTINCT + + 57 AS col1
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3731
SELECT DISTINCT + 58 + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + 58 + CAST ( - CAST ( NULL AS REAL ) AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT COUNT( * ) * - - 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT COUNT ( * ) * - - 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL + SUM( DISTINCT + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + SUM ( DISTINCT + 7 ) AS col2
----
7

query II rowsort
SELECT 56 AS col0, 30
----
56
30

query II rowsort
SELECT + 85 AS col0, - 27 AS col0
----
85
-27

query I rowsort
SELECT + 60 col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT DISTINCT 13 DIV COUNT( * ) DIV + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT 13 / COUNT ( * ) / + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + MAX( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + MAX ( - 89 ) AS col2
----
-89

query I rowsort
SELECT ALL + ( 64 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT DISTINCT + CAST( 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT + CAST ( 7 AS INTEGER )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT - - 42 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-3741
SELECT - - 42 / - 40
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT CAST( CAST( - + 39 AS SIGNED ) AS SIGNED ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-3742
SELECT CAST ( CAST ( - + 39 AS INTEGER ) AS INTEGER ) col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT 7 - - - COUNT( * ) * + - 88
----
95

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT 7 - - - COUNT ( * ) * + - 88
----
95

query I rowsort
SELECT - 8 - - + 60
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT COUNT( * ) DIV - + COALESCE ( + 82, AVG ( - + 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT COUNT ( * ) / - + COALESCE ( + 82, AVG ( - + 73 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL COUNT( - + 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL COUNT ( - + 10 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - 6 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3747
SELECT - 6 + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT ALL COUNT( * ) AS col2, + 64 + - 39 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL COUNT ( * ) AS col2, + 64 + - 39 AS col0
----
1
25

query I rowsort
SELECT ALL + 18 + + 49
----
67

query I rowsort
SELECT DISTINCT + ( + - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + COUNT( * ) * + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-3751
SELECT + COUNT ( * ) * + - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + NULLIF ( + + COUNT( * ), - 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT + NULLIF ( + + COUNT ( * ), - 84 ) AS col0
----
1

query I rowsort
SELECT ALL - 14 * - - 34 AS col0
----
-476

query I rowsort
SELECT DISTINCT - 97 * - 10
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL + MAX( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + MAX ( 40 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT - CAST( - - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-3756
SELECT - CAST ( - - 33 AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - NULLIF ( + + 35, + COUNT( * ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - NULLIF ( + + 35, + COUNT ( * ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT COUNT( * ) - + NULLIF ( + COUNT( * ), + COUNT( * ) * 20 ) * - ( 43 )
----
44

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT COUNT ( * ) - + NULLIF ( + COUNT ( * ), + COUNT ( * ) * 20 ) * - ( 43 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT + 3 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + 3 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT + 13 DIV - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + 13 / - 87 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT COUNT( * ) DIV 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT COUNT ( * ) / 8 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL COALESCE ( COUNT( 19 ), CAST( + COUNT( * ) AS SIGNED ) ) + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL COALESCE ( COUNT ( 19 ), CAST ( + COUNT ( * ) AS INTEGER ) ) + 57 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT CAST( NULL AS SIGNED ) * - SUM( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( 63 )
----
NULL

query I rowsort
SELECT DISTINCT + 18 * 85 AS col1
----
1530

query I rowsort
SELECT 79 + 60 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - MIN( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - MIN ( DISTINCT 83 )
----
-83

query I rowsort
SELECT ALL - + ( 8 ) + + 38 * - 35 AS col0
----
-1338

query I rowsort
SELECT - 76 + 65 * - 91
----
-5991

query I rowsort
SELECT - 90 + 11
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT COUNT( * ) + + 75 DIV COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3770
SELECT COUNT ( * ) + + 75 / COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - 32 + COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3771
SELECT - 32 + COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT - 13 * 16 AS col2
----
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT ALL COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), 50 * 62 )
----
3100

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), 50 * 62 )
----
3100

query I rowsort
SELECT + ( + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + + 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + + 86 * + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT + - 61 + - + CAST( 88 AS SIGNED )
----
-149

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + - 61 + - + CAST ( 88 AS INTEGER )
----
-149

query I rowsort
SELECT ALL + 68 col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT 66 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT 66 / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL + 57 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 57 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - ( + 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT DISTINCT - CAST( - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - CAST ( - 86 AS INTEGER )
----
86

query II rowsort
SELECT 82 col0, 38 AS col0
----
82
38

query I rowsort
SELECT DISTINCT - ( 90 )
----
-90

query I rowsort
SELECT 18 + - 29
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT COUNT( + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT COUNT ( + 85 ) AS col2
----
1

query I rowsort
SELECT ALL + ( - 60 ) AS col2
----
-60

query I rowsort
SELECT COALESCE ( - - 26, - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT COUNT( * ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT COUNT ( * ) * + 95
----
95

query II rowsort
SELECT 27, + 68 AS col1
----
27
68

query I rowsort
SELECT ( - 68 ) AS col0
----
-68

query I rowsort
SELECT - - 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT + SUM( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + SUM ( DISTINCT - 83 )
----
-83

query I rowsort
SELECT ALL - 44 * + 56 AS col2
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT 83 * - COALESCE ( + - COUNT( * ), + 17 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT 83 * - COALESCE ( + - COUNT ( * ), + 17 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ( + + COUNT( * ) ) * - 1, - 43 AS col2
----
-1
-43

skipif mysql # not compatible
query II rowsort label-3796
SELECT ( + + COUNT ( * ) ) * - 1, - 43 AS col2
----
-1
-43

query I rowsort
SELECT ALL 96 - - 96
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - 5 * - COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - 5 * - COUNT ( * ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT - - MAX( ( - + 92 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - - MAX ( ( - + 92 ) ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT - CAST( + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - CAST ( + 8 AS INTEGER )
----
-8

query I rowsort
SELECT - ( - + 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - SUM( ALL 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3802
SELECT - SUM ( ALL 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - COUNT( ALL + 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - COUNT ( ALL + 54 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 65 * - + 84
----
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL + CAST( 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + CAST ( 48 AS INTEGER ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT - CAST( NULL AS SIGNED ) * - 45 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT - CAST ( NULL AS INTEGER ) * - 45 + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT NULLIF ( COUNT( * ), + + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT NULLIF ( COUNT ( * ), + + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + 40 * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - 95 + - 75 + - COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-3809
SELECT - 95 + - 75 + - COUNT ( * )
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT + + CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL + + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + COUNT( * ) * + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3812
SELECT + COUNT ( * ) * + - 90 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT ALL - COUNT( * ) * + CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - COUNT ( * ) * + CAST ( + 22 AS INTEGER )
----
-22

query I rowsort
SELECT ( - 94 ) * 45 col2
----
-4230

query II rowsort
SELECT + + 83, + 79 AS col1
----
83
79

query I rowsort
SELECT 46 + + + 22
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT DISTINCT - - CAST( - - AVG ( - - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - - CAST ( - - AVG ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL 47 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL 47 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - MAX( DISTINCT + 67 ) - + - 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3820
SELECT - MAX ( DISTINCT + 67 ) - + - 66 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + 0 - - 88 + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3821
SELECT + 0 - - 88 + COUNT ( * ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT - 8 DIV + ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT - 8 / + ( + 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL COUNT( * ) * + + 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL COUNT ( * ) * + + 38 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT + + 9 * - CAST( + - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT + + 9 * - CAST ( + - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + 85 * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3826
SELECT + 85 * + COUNT ( * )
----
85

query I rowsort
SELECT - - 81 * 23 + 65 AS col2
----
1928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + + COUNT( * ) / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + + COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT DISTINCT 8 + - ( + 81 ) DIV + 58
----
7

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT 8 + - ( + 81 ) / + 58
----
7

query I rowsort
SELECT DISTINCT + - 61 + + 89 + - + 93
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT + 3 col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT + 3 col2, COUNT ( * )
----
3
1

query I rowsort
SELECT ALL 99 + + 32 AS col2
----
131

query I rowsort
SELECT ALL + 37 + 2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT 13 + + MIN( - 69 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3834
SELECT 13 + + MIN ( - 69 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT + COUNT( * ) AS col0, + 57
----
1
57

skipif mysql # not compatible
query II rowsort label-3835
SELECT + COUNT ( * ) AS col0, + 57
----
1
57

query I rowsort
SELECT - - 97 + + 84 AS col2
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT - 6 DIV COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3837
SELECT - 6 / COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT - 58 - + + 37 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT COUNT( * ) * + MAX( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT COUNT ( * ) * + MAX ( - 22 ) AS col0
----
-22

query I rowsort
SELECT DISTINCT - - 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - + MIN( DISTINCT 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + MIN ( DISTINCT 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT SUM ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT SUM( DISTINCT ( - - 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-3843
SELECT SUM ( DISTINCT ( - - 67 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL 23 * + 81 * COUNT( * ) AS col0
----
1863

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL 23 * + 81 * COUNT ( * ) AS col0
----
1863

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - MIN( ALL 35 ) + 2 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3846
SELECT - MIN ( ALL 35 ) + 2 AS col0
----
-33

query I rowsort
SELECT DISTINCT ( - - 25 )
----
25

query I rowsort
SELECT ALL + + 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT CAST( 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3849
SELECT CAST ( 96 AS INTEGER )
----
96

query I rowsort
SELECT - ( + - 64 ) AS col2
----
64

query I rowsort
SELECT ALL ( - - 99 ) + - NULLIF ( + 65, 24 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL COUNT( * ) + - + 36 * + 84 * - ( - - 18 ) AS col0
----
54433

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL COUNT ( * ) + - + 36 * + 84 * - ( - - 18 ) AS col0
----
54433

query I rowsort
SELECT DISTINCT - 7 * + + 43 AS col1
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + COALESCE ( + MIN( DISTINCT + - 58 ), + MAX( - 31 ) ) * - + 4
----
232

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + COALESCE ( + MIN ( DISTINCT + - 58 ), + MAX ( - 31 ) ) * - + 4
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + MAX( DISTINCT - 15 ) * + 3 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3855
SELECT + MAX ( DISTINCT - 15 ) * + 3 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT + ( - - COUNT( 71 ) ) + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + ( - - COUNT ( 71 ) ) + - 2 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT - AVG ( ALL + - CAST( NULL AS SIGNED ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL - ( - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT + 66 * + 20 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 66 * + 20 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + - 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT 66 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL + 25 * ( MAX( DISTINCT + 64 ) ) AS col0
----
1600

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + 25 * ( MAX ( DISTINCT + 64 ) ) AS col0
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - COUNT( DISTINCT 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3864
SELECT - COUNT ( DISTINCT 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + - SUM( ALL - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3865
SELECT + - SUM ( ALL - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + COUNT( DISTINCT + 48 ) * - + ( + + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3866
SELECT + COUNT ( DISTINCT + 48 ) * - + ( + + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL + ( + + 67 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3868
SELECT ALL ( + SUM( - - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL ( + SUM ( - - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT - COUNT( DISTINCT + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-3869
SELECT - COUNT ( DISTINCT + 27 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3870
SELECT ALL + 44 DIV + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + 44 / + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT + 3 * - + 72 col1
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT - AVG ( 46 ) / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - AVG ( 46 ) / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 + + ( - 81 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - MAX( DISTINCT 33 ) - - - NULLIF ( 47, + + 36 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - MAX ( DISTINCT 33 ) - - - NULLIF ( 47, + + 36 ) AS col0
----
-80

query I rowsort
SELECT ALL + ( + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT - + SUM( 80 ) * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3876
SELECT - + SUM ( 80 ) * + COUNT ( * )
----
-80

query I rowsort
SELECT + - 95 + - + 31 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT - COUNT( * ) AS col0, 70 col1
----
-1
70

skipif mysql # not compatible
query II rowsort label-3878
SELECT - COUNT ( * ) AS col0, 70 col1
----
-1
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT + 55 + - CAST( - 96 AS SIGNED )
----
151

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 55 + - CAST ( - 96 AS INTEGER )
----
151

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3880
SELECT CAST( + CAST( + 52 AS DECIMAL ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-3880
SELECT CAST ( + CAST ( + 52 AS REAL ) AS INTEGER )
----
52

query I rowsort
SELECT ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL + + MAX( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + + MAX ( 79 ) AS col1
----
79

query I rowsort
SELECT DISTINCT - - 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + 13 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3884
SELECT + 13 * COUNT ( * )
----
13

query I rowsort
SELECT ALL - 2 + + 24
----
22

query I rowsort
SELECT 76 - - 52
----
128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3887
SELECT + CAST( NULL AS DECIMAL ) + + - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + CAST ( NULL AS REAL ) + + - ( COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + 24 * COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 24 * COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - COUNT ( * ) * - 0
----
0

query I rowsort
SELECT + 25 * + 35
----
875

query I rowsort
SELECT ALL + 64 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT SUM( + - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3894
SELECT SUM ( + - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + COUNT( * ) + + + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) + + + 6 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT - 71 DIV - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 71 / - COUNT ( * ) AS col2
----
71

query I rowsort
SELECT ALL ( + - 16 ) + - 22
----
-38

query I rowsort
SELECT DISTINCT - - 17 col2
----
17

query I rowsort
SELECT + + ( - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( * ) * + ( - + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( * ) * + ( - + 56 ) AS col1
----
-56

query I rowsort
SELECT 10 + - 85 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( * ) * + 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( * ) * + 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - + ( COUNT( - 0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - + ( COUNT ( - 0 ) )
----
-1

query I rowsort
SELECT 4 * 60
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL - CAST( - 14 AS SIGNED ) col2
----
14

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - CAST ( - 14 AS INTEGER ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT - MIN( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT - MIN ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT COUNT( * ) + + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT COUNT ( * ) + + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 35 + 78 AS col1
----
113

query I rowsort
SELECT DISTINCT ( + 10 ) AS col2
----
10

query I rowsort
SELECT DISTINCT + - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + MAX( + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + MAX ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - 59 + + - ( + + COUNT( * ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 59 + + - ( + + COUNT ( * ) ) AS col0
----
-60

query I rowsort
SELECT DISTINCT ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - SUM( ALL + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3914
SELECT - SUM ( ALL + 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL + COUNT( DISTINCT 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + COUNT ( DISTINCT 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL + MIN( ALL - 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + MIN ( ALL - 52 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - COUNT( * ) * - + 94
----
94

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - COUNT ( * ) * - + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( * ) + + COUNT( * ) + + 52
----
54

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + 52
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3919
SELECT MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) * + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL COUNT( ALL 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL COUNT ( ALL 7 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MAX( ALL - 89 ) * 36 - + COUNT( * )
----
-3205

skipif mysql # not compatible
query I rowsort label-3921
SELECT MAX ( ALL - 89 ) * 36 - + COUNT ( * )
----
-3205

query II rowsort
SELECT - 69 AS col2, 73
----
-69
73

query I rowsort
SELECT ( 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + + 44 - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3924
SELECT + + 44 - - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT + 72 + - - 52 AS col2, + COUNT( * ) AS col1
----
124
1

skipif mysql # not compatible
query II rowsort label-3925
SELECT + 72 + - - 52 AS col2, + COUNT ( * ) AS col1
----
124
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + + COUNT( ALL - 34 ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-3926
SELECT + + COUNT ( ALL - 34 ) + 37
----
38

query I rowsort
SELECT - ( - + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - COUNT( * ) + + - 82
----
-83

skipif mysql # not compatible
query I rowsort label-3928
SELECT - COUNT ( * ) + + - 82
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT DISTINCT CAST( - 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT CAST ( - 87 AS INTEGER ) AS col0
----
-87

query I rowsort
SELECT + 78 * - ( + 71 ) AS col0
----
-5538

query I rowsort
SELECT ALL - 99 * - - 99
----
-9801

query I rowsort
SELECT - 51 * - ( - 50 )
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT 14 + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3933
SELECT 14 + + COUNT ( * ) AS col2
----
15

query I rowsort
SELECT ALL - - 50 AS col2
----
50

query I rowsort
SELECT DISTINCT - + 90 AS col1
----
-90

query I rowsort
SELECT ALL + ( + - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col1, + 93 * - ( COUNT( * ) )
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col1, + 93 * - ( COUNT ( * ) )
----
NULL
-93

query I rowsort
SELECT DISTINCT NULLIF ( + + 46, - - 53 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT DISTINCT COUNT( * ), - 62 AS col0
----
1
-62

skipif mysql # not compatible
query II rowsort label-3939
SELECT DISTINCT COUNT ( * ), - 62 AS col0
----
1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL - 71 + 48 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - 71 + 48 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 44 * + 8 col0
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-3942
SELECT + COUNT ( * ) * + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT + 56 * + - SUM( - 40 ) * - ( ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + 56 * + - SUM ( - 40 ) * - ( ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-3944
SELECT + COUNT ( * ) + + 60
----
61

query I rowsort
SELECT ALL 94 * - ( + 12 )
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - COUNT( * ) * ( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-3946
SELECT - COUNT ( * ) * ( - 58 )
----
58

query I rowsort
SELECT DISTINCT - - 51 + + 18 AS col1
----
69

query I rowsort
SELECT ( + 85 ) AS col0
----
85

query I rowsort
SELECT DISTINCT - ( 69 ) AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL - 62 DIV 9
----
-6

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - 62 / 9
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL - - 1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL - - 1, COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT + + COUNT( * ) + + ( + 4 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + + COUNT ( * ) + + ( + 4 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + 84 - + - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 84 - + - COUNT ( * ) AS col1
----
85

query I rowsort
SELECT 99 * - 32
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL - 12 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - 12 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT - 84 AS col2, 67 - - COUNT( * )
----
-84
68

skipif mysql # not compatible
query II rowsort label-3956
SELECT - 84 AS col2, 67 - - COUNT ( * )
----
-84
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-3957
SELECT COUNT ( * ) * + 1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3958
SELECT CAST( NULL AS DECIMAL ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT CAST ( NULL AS REAL ) + + 68
----
NULL

query I rowsort
SELECT - 66 + - - 27
----
-39

query I rowsort
SELECT ALL + + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - COUNT( * ) * - 49 col2
----
49

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - COUNT ( * ) * - 49 col2
----
49

query II rowsort
SELECT DISTINCT ( - 89 ) col2, 90 * - + 20
----
-89
-1800

query I rowsort
SELECT ALL ( - 40 ) col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT + - 40 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT + - 40 / - + 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT + SUM( - + 95 ) + - - 77, 19 * - - 33 AS col0
----
-18
627

skipif mysql # not compatible
query II rowsort label-3965
SELECT + SUM ( - + 95 ) + - - 77, 19 * - - 33 AS col0
----
-18
627

query I rowsort
SELECT ( + - 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3967
SELECT + 12 + + - COUNT( * ) DIV MIN( + 72 ) DIV 32
----
12

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 12 + + - COUNT ( * ) / MIN ( + 72 ) / 32
----
12

query I rowsort
SELECT - 12 + + 43
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + 73 * - - 59 * + 42 * COUNT( * )
----
180894

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + 73 * - - 59 * + 42 * COUNT ( * )
----
180894

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + + COUNT( * ) * 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + + COUNT ( * ) * 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT ALL - COUNT( - 34 ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL - COUNT ( - 34 ) AS col2, - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-3972
SELECT + COUNT ( * ) + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL 33 - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 33 - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT + 15 + - 96
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - ( + MAX( DISTINCT ( ( 36 ) ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3976
SELECT - ( + MAX ( DISTINCT ( ( 36 ) ) ) ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT + CAST( NULL AS SIGNED ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT + CAST ( NULL AS INTEGER ) + 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3978
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + MIN( ALL + 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-3979
SELECT + MIN ( ALL + 58 ) col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - MAX( ( 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3980
SELECT - MAX ( ( 89 ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT + + ( + ( CAST( 65 AS SIGNED ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3981
SELECT + + ( + ( CAST ( 65 AS INTEGER ) ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT COUNT( * ) * - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT COUNT ( * ) * - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT DISTINCT COUNT( * ) / 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT COUNT ( * ) / 82 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT - ( - SUM( 79 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - ( - SUM ( 79 ) ) AS col1
----
79

query I rowsort
SELECT ALL + 36 * 87 AS col2
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT + 18 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + 18 * COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3988
SELECT COUNT( CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT COUNT ( CAST ( NULL AS REAL ) ) AS col2
----
0

query I rowsort
SELECT 94 * + 79
----
7426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT + 2 / + + COUNT( * ) - - + CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 2 / + + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL - COUNT( * ) col2, COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL - COUNT ( * ) col2, COUNT ( * ) col1
----
-1
1

query I rowsort
SELECT DISTINCT + 16 * 16
----
256

query I rowsort
SELECT DISTINCT - - 80 AS col1
----
80

query I rowsort
SELECT + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT 69 + + + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 69 + + + COUNT ( * ) AS col1
----
70

query I rowsort
SELECT ALL COALESCE ( + 71, + 1, - - 51 ) AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT - 77 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 77 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 58 * - 89 AS col2
----
-5162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3999
SELECT - COUNT( * ) * - 97 AS col0, CAST( NULL AS SIGNED ) AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3999
SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
97
NULL

query I rowsort
SELECT + 99 * + 66 AS col1
----
6534

query I rowsort
SELECT DISTINCT + - 59 AS col1
----
-59

query I rowsort
SELECT + ( - 22 ) AS col0
----
-22

query I rowsort
SELECT ALL - 11 + 46
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 12 * + - 41 col0
----
-492

query I rowsort
SELECT 62 * ( - 45 )
----
-2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT 33 * + COUNT( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT 33 * + COUNT ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + 87 + + 68
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT 79 - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4009
SELECT 79 - + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + + COUNT( 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT + + COUNT ( 29 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT 27 * - + CAST( NULL AS SIGNED ) * + - ( + - 41 ) / 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT 27 * - + CAST ( NULL AS INTEGER ) * + - ( + - 41 ) / 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT ALL - ( + - COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL - ( + - COUNT ( * ) ), COUNT ( * )
----
1
1

query I rowsort
SELECT 33 + 29 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - SUM( - ( - 37 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4014
SELECT - SUM ( - ( - 37 ) ) AS col1
----
-37

query I rowsort
SELECT DISTINCT 96 col1
----
96

query I rowsort
SELECT + 32 * 85 * - 68 + 24
----
-184936

query I rowsort
SELECT - 91 + 46 * 8
----
277

query I rowsort
SELECT ALL + - 65 AS col0
----
-65

query I rowsort
SELECT ALL + 88 * - - 51
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL + MAX( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + MAX ( ALL 55 )
----
55

query I rowsort
SELECT - 40 - + 6 AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4022
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 10 col2
----
10

query I rowsort
SELECT + - 66 + + - 19 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL MIN( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL MIN ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT + + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-4027
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 89 AS col2
----
NULL
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + - 43 * 66 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - 43 * 66 + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT - SUM( - + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - SUM ( - + 18 ) AS col2
----
18

query I rowsort
SELECT DISTINCT + ( 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT + 16 DIV - 8 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4031
SELECT + 16 / - 8 col1
----
-2

query I rowsort
SELECT ALL 69 + - 34 AS col0
----
35

query II rowsort
SELECT DISTINCT - 32 AS col1, - 34
----
-32
-34

query II rowsort
SELECT + 76 AS col2, 76 AS col1
----
76
76

query I rowsort
SELECT ALL 69 - - 24
----
93

query I rowsort
SELECT - + ( - 78 ) col1
----
78

query I rowsort
SELECT DISTINCT 75 + + + 97
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT 52 * + + CAST( - COUNT( * ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-4038
SELECT 52 * + + CAST ( - COUNT ( * ) AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ( + 23 ) + + MIN( DISTINCT + 66 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4039
SELECT ( + 23 ) + + MIN ( DISTINCT + 66 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + MAX( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + MAX ( 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL ( + + SUM( ALL 74 ) )
----
74

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL ( + + SUM ( ALL 74 ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT - CAST( NULL AS SIGNED ) * + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - CAST ( NULL AS INTEGER ) * + + 0
----
NULL

query I rowsort
SELECT DISTINCT - 90 * + 27
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - - 5 * + MAX( ALL + - ( + 98 ) )
----
-490

skipif mysql # not compatible
query I rowsort label-4044
SELECT - - 5 * + MAX ( ALL + - ( + 98 ) )
----
-490

query I rowsort
SELECT ALL + ( - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT MAX( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT MAX ( 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ( - - COUNT( * ) ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4047
SELECT ( - - COUNT ( * ) ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - ( - 43 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT + 26 DIV COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4049
SELECT + 26 / COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT + COUNT( * ) DIV - 15 * 4 - + - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COUNT ( * ) / - 15 * 4 - + - 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - COUNT( - 60 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4051
SELECT - COUNT ( - 60 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT( * ) ) AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT ( * ) ) AS col2
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT MAX( - - 6 ) + - - 71
----
77

skipif mysql # not compatible
query I rowsort label-4053
SELECT MAX ( - - 6 ) + - - 71
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - 75 * + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 75 * + COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 75 * COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + 63 + + + SUM( ALL + 22 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-4056
SELECT + 63 + + + SUM ( ALL + 22 ) col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT + MAX( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + MAX ( DISTINCT - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + MAX( ALL + + ( - 53 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + MAX ( ALL + + ( - 53 ) ) AS col1
----
-53

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

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

query I rowsort
SELECT - 93 * 38 col2
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - MAX( ALL + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4061
SELECT - MAX ( ALL + 74 )
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT 0 + - COUNT( * ) * COUNT( * ) * + 78 + - COUNT( + - 19 )
----
-79

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 0 + - COUNT ( * ) * COUNT ( * ) * + 78 + - COUNT ( + - 19 )
----
-79

query I rowsort
SELECT - - ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT COUNT( * ) * + 44 * - 50
----
-2200

skipif mysql # not compatible
query I rowsort label-4065
SELECT COUNT ( * ) * + 44 * - 50
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + MIN( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4066
SELECT + MIN ( ALL + 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT ALL CAST( NULL AS SIGNED ) * + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL CAST ( NULL AS INTEGER ) * + + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL NULLIF ( + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ), + - 86 ) - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL NULLIF ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), + - 86 ) - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 40 + - 11 col1
----
29

query II rowsort
SELECT - 42, 41 AS col1
----
-42
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT - 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 75 / 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT - 63 * + - COUNT( * ) AS col0, COUNT( * ) AS col2
----
63
1

skipif mysql # not compatible
query II rowsort label-4073
SELECT - 63 * + - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + 96 + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 96 + - COUNT ( * ) AS col0
----
95

query I rowsort
SELECT NULLIF ( + 40, 78 * 8 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + + 32 + - - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + 32 + - - COUNT ( * ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4077
SELECT CAST( NULL AS SIGNED ) AS col0, - 59 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4077
SELECT CAST ( NULL AS INTEGER ) AS col0, - 59 AS col1
----
NULL
-59

query I rowsort
SELECT + ( 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - 99 * COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - 99 * COUNT ( * )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT CAST( - + 4 AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4080
SELECT CAST ( - + 4 AS INTEGER ) AS col2
----
-4

query I rowsort
SELECT + 4 + 37
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT + SUM( 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-4082
SELECT + SUM ( 63 ) col2
----
63

query I rowsort
SELECT ALL + ( + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT - 7 * + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - 7 * + COUNT ( * ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - 89 + 31 + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - 89 + 31 + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL 53 * + 69 + + 61 col1, COUNT( * )
----
3718
1

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL 53 * + 69 + + 61 col1, COUNT ( * )
----
3718
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 0 + + + SUM( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 0 + + + SUM ( + 77 )
----
77

query I rowsort
SELECT ALL 3 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4089
SELECT DISTINCT - 76 AS col1, COUNT( * ) DIV + 86
----
-76
0

skipif mysql # not compatible
query II rowsort label-4089
SELECT DISTINCT - 76 AS col1, COUNT ( * ) / + 86
----
-76
0

query I rowsort
SELECT + 53 + 32 AS col2
----
85

query II rowsort
SELECT - 32, 35 AS col0
----
-32
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT ( + MIN( + 0 ) ) - - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT ( + MIN ( + 0 ) ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT SUM( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT SUM ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT COUNT( * ) DIV + + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT COUNT ( * ) / + + 87 AS col0
----
0

query I rowsort
SELECT - 95 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT - 4 col2, COUNT( * ) AS col2
----
-4
1

skipif mysql # not compatible
query II rowsort label-4097
SELECT - 4 col2, COUNT ( * ) AS col2
----
-4
1

query I rowsort
SELECT DISTINCT + 17 col1
----
17

query I rowsort
SELECT ( - 39 ) col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + MAX( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4100
SELECT + MAX ( 18 ) AS col0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4101
SELECT + - CAST( NULL AS DECIMAL ) - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + - CAST ( NULL AS REAL ) - - 78 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - COUNT( * ) + + + 68 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4103
SELECT - COUNT ( * ) + + + 68 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 82 + - COUNT( * ) + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4104
SELECT 82 + - COUNT ( * ) + COUNT ( * ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT ALL 22 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 22 / - + 53
----
0

query I rowsort
SELECT DISTINCT 64 + 95
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 74 * + COUNT( * ) * - + 56 AS col0
----
-4144

skipif mysql # not compatible
query I rowsort label-4107
SELECT 74 * + COUNT ( * ) * - + 56 AS col0
----
-4144

query I rowsort
SELECT + ( + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT COUNT( * ) AS col0, 79 AS col1
----
1
79

skipif mysql # not compatible
query II rowsort label-4109
SELECT COUNT ( * ) AS col0, 79 AS col1
----
1
79

query I rowsort
SELECT ALL - + NULLIF ( 28, 59 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT NULLIF ( + COUNT( * ), + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT + ( MIN( ALL - + 98 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + ( MIN ( ALL - + 98 ) ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4113
SELECT - 35 + - 8 col1, - COUNT( CAST( NULL AS SIGNED ) )
----
-43
0

skipif mysql # not compatible
query II rowsort label-4113
SELECT - 35 + - 8 col1, - COUNT ( CAST ( NULL AS INTEGER ) )
----
-43
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL CAST( - + 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL CAST ( - + 33 AS INTEGER )
----
-33

query I rowsort
SELECT ALL NULLIF ( + ( + 64 ), 55 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT + COUNT( * ) + 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT + COUNT ( * ) + 10 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT ALL - COUNT( * ) DIV - 30 + + 61 * + + COUNT( * ) * + COUNT( * ) + - 92 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - COUNT ( * ) / - 30 + + 61 * + + COUNT ( * ) * + COUNT ( * ) + - 92 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4118
SELECT COALESCE ( + CAST( + + MAX( + 72 ) AS SIGNED ), + 69 ) AS col0, - 7 col2
----
72
-7

skipif mysql # not compatible
query II rowsort label-4118
SELECT COALESCE ( + CAST ( + + MAX ( + 72 ) AS INTEGER ), + 69 ) AS col0, - 7 col2
----
72
-7

query II rowsort
SELECT - - 13 AS col0, - 31
----
13
-31

query I rowsort
SELECT DISTINCT + + ( - 94 ) + + - 82 AS col1
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - CAST( 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - CAST ( 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - MAX( ALL - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4122
SELECT - MAX ( ALL - 73 ) AS col0
----
73

query I rowsort
SELECT 89 * + ( - 59 ) AS col0
----
-5251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL + + CAST( - 32 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + + CAST ( - 32 AS INTEGER ) AS col1
----
-32

query II rowsort
SELECT + 95 AS col2, 62 AS col1
----
95
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT - COUNT( * ) * + + ( + - 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4126
SELECT - COUNT ( * ) * + + ( + - 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - 39 + 48 * + COUNT( DISTINCT + 7 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4127
SELECT - 39 + 48 * + COUNT ( DISTINCT + 7 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT COUNT( * ) DIV COUNT( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( * ) / COUNT ( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT CAST( 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4129
SELECT CAST ( 83 AS INTEGER ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL + NULLIF ( + + 42, + 99 + - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + NULLIF ( + + 42, + 99 + - COUNT ( * ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT CAST( - MAX( DISTINCT 74 ) AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4131
SELECT CAST ( - MAX ( DISTINCT 74 ) AS INTEGER ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - COUNT( * ) * 35 * + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - COUNT ( * ) * 35 * + COUNT ( * )
----
-35

query I rowsort
SELECT ( - ( + 44 ) ) AS col2
----
-44

query I rowsort
SELECT ( + ( + + 54 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - + COUNT( * ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-4135
SELECT - + COUNT ( * ) * - 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL 76 + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL 76 + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT DISTINCT - ( 12 )
----
-12

query I rowsort
SELECT - + 31 col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT MIN( ALL - + 32 ) * 35 AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-4139
SELECT MIN ( ALL - + 32 ) * 35 AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT - 54 AS col0, COUNT( * ) AS col1
----
-54
1

skipif mysql # not compatible
query II rowsort label-4140
SELECT - 54 AS col0, COUNT ( * ) AS col1
----
-54
1

query I rowsort
SELECT DISTINCT - 80 * + 36
----
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT ALL - 83, - COUNT( * ) AS col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-4142
SELECT ALL - 83, - COUNT ( * ) AS col1
----
-83
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT 22 DIV + - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT 22 / + - 76 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT 12 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT 12 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + + 43 - + SUM( DISTINCT - 65 ) + - 89
----
19

skipif mysql # not compatible
query I rowsort label-4145
SELECT + + 43 - + SUM ( DISTINCT - 65 ) + - 89
----
19

query I rowsort
SELECT - ( 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - COUNT( * ) * 68
----
-68

skipif mysql # not compatible
query I rowsort label-4147
SELECT - COUNT ( * ) * 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL - ( + COUNT( * ) ) - - - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - ( + COUNT ( * ) ) - - - 55 AS col0
----
-56

query I rowsort
SELECT + ( + + 24 )
----
24

query I rowsort
SELECT DISTINCT + + ( 64 )
----
64

query I rowsort
SELECT + + 97 + 90 col0
----
187

query I rowsort
SELECT DISTINCT 0 * - - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - 63 * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 63 * + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 41 )
----
-41

query I rowsort
SELECT + ( + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT 3 * COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4157
SELECT 3 * COUNT ( * ) AS col0
----
3

query II rowsort
SELECT - 75, 32 AS col1
----
-75
32

query I rowsort
SELECT + 40 * + 81 - - ( - 84 ) AS col2
----
3156

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 48 * - - 69 + + - COUNT( * )
----
3311

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 48 * - - 69 + + - COUNT ( * )
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + + COUNT( DISTINCT + 79 ) - + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT + + COUNT ( DISTINCT + 79 ) - + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL + MAX( - 12 ), - 28 AS col1
----
-12
-28

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL + MAX ( - 12 ), - 28 AS col1
----
-12
-28

query I rowsort
SELECT + + 46 AS col0
----
46

query II rowsort
SELECT + 93, 24 AS col0
----
93
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + 18 * - COUNT( * ) + + 51 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 18 * - COUNT ( * ) + + 51 AS col1
----
33

query I rowsort
SELECT DISTINCT - 31 + + ( - + 71 )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT ALL + ( - NULLIF ( + + COUNT( * ), - COUNT( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) DIV - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + ( - NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) / - - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT ALL - CAST( NULL AS SIGNED ) * - - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - - 96 AS col1
----
-8256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4170
SELECT ALL CAST( NULL AS SIGNED ) col0, - 80 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-4170
SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0
----
NULL
-80

query I rowsort
SELECT - ( - + 21 )
----
21

query I rowsort
SELECT + + 25 * + 56 AS col1
----
1400

query II rowsort
SELECT ALL + 17 col0, - 11 * - + 5 AS col2
----
17
55

query I rowsort
SELECT + ( - + 33 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT 88 DIV - ( + COUNT( * ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4175
SELECT 88 / - ( + COUNT ( * ) ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - COUNT( * ) + + - 62
----
-63

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - COUNT ( * ) + + - 62
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT 37 * - ( + COUNT( * ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 37 * - ( + COUNT ( * ) ) col1
----
-37

query I rowsort
SELECT - + ( + 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4179
SELECT ALL - COUNT( * ) + CAST( NULL AS DECIMAL ) + + - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - COUNT ( * ) + CAST ( NULL AS REAL ) + + - 76 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - - COUNT( + - 11 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4180
SELECT - - COUNT ( + - 11 ) col1
----
1

query I rowsort
SELECT DISTINCT + ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT + COUNT( * ) AS col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4182
SELECT + COUNT ( * ) AS col1, COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + ( - 48 ) AS col0
----
-48

query I rowsort
SELECT + 36 * 30 + 25 - + 86
----
1019

query I rowsort
SELECT ( + + 40 ) AS col2
----
40

query I rowsort
SELECT DISTINCT + 86 + - - 90
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT - 95 + + 18 DIV COUNT( * ) * 30 AS col1
----
445

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 95 + + 18 / COUNT ( * ) * 30 AS col1
----
445

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT + 41 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + 41 * + COUNT ( * )
----
41

query I rowsort
SELECT - ( - ( + 20 ) ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - 54 + - - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 54 + - - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL SUM( + COALESCE ( 40, + 24 + - 74 ) )
----
40

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL SUM ( + COALESCE ( 40, + 24 + - 74 ) )
----
40

query I rowsort
SELECT - 99 * - 24
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT + + CAST( + + 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4194
SELECT + + CAST ( + + 81 AS INTEGER )
----
81

query I rowsort
SELECT ALL + + ( - ( - ( 47 ) ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - 78 + - 45 * COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 78 + - 45 * COUNT ( * )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + COUNT( * ) + + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + COUNT ( * ) + + + 56 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4198
SELECT ALL CAST( NULL AS SIGNED ), + MAX( DISTINCT + 54 ) AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL CAST ( NULL AS INTEGER ), + MAX ( DISTINCT + 54 ) AS col2
----
NULL
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4199
SELECT + COUNT( * ), ( - CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4199
SELECT + COUNT ( * ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

query I rowsort
SELECT + + 81 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL 20 + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 36 - 57 + - 52 * - - 67 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 20 + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 36 - 57 + - 52 * - - 67 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 14 + - - 37 col1
----
51

query I rowsort
SELECT DISTINCT 52 + - 79 AS col0
----
-27

query I rowsort
SELECT DISTINCT - - 84 AS col1
----
84

query I rowsort
SELECT 75 * - 76
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT 81 + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-4206
SELECT 81 + COUNT ( * ) col2
----
82

query I rowsort
SELECT ALL 97 * ( - - 89 )
----
8633

query I rowsort
SELECT + ( + + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT MIN( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4209
SELECT MIN ( ALL + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + COUNT( DISTINCT - 59 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4210
SELECT + COUNT ( DISTINCT - 59 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL - 18 + - ( SUM( + - 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - 18 + - ( SUM ( + - 19 ) ) AS col0
----
1

query II rowsort
SELECT - + 63 + - 13 AS col0, 10
----
-76
10

query I rowsort
SELECT ( - 73 ) AS col0
----
-73

query I rowsort
SELECT DISTINCT 86 * - 50 AS col0
----
-4300

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT MAX( 6 ) * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4215
SELECT MAX ( 6 ) * COUNT ( * ) AS col0
----
6

query I rowsort
SELECT 56 * 54
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL + 47 * + MAX( 66 )
----
3102

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + 47 * + MAX ( 66 )
----
3102

query I rowsort
SELECT - 49 + + 34
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT - COUNT( * ) + - 10 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - COUNT ( * ) + - 10 AS col2
----
-11

query I rowsort
SELECT 80 - + 20 * - 50
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + 74 - + COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-4221
SELECT + 74 - + COUNT ( * ) col1
----
73

query I rowsort
SELECT 84 + - 53 AS col2
----
31

query I rowsort
SELECT 91 * - - 61 * 34 col2
----
188734

query I rowsort
SELECT ALL + ( - + 85 ) * 41 AS col0
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + MAX( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4225
SELECT + MAX ( 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4226
SELECT + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT SUM( DISTINCT - 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT SUM ( DISTINCT - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL - 84 * - + SUM( - - 74 ) col1
----
6216

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - 84 * - + SUM ( - - 74 ) col1
----
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL COUNT( DISTINCT 49 )
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL COUNT ( DISTINCT 49 )
----
1

query I rowsort
SELECT 84 + - + 24
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4232
SELECT CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT - CAST( 99 AS SIGNED ) * + - ( + - 57 ) - 17
----
-5660

skipif mysql # not compatible
query I rowsort label-4233
SELECT - CAST ( 99 AS INTEGER ) * + - ( + - 57 ) - 17
----
-5660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT 84 DIV - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4234
SELECT 84 / - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT 19 * + - COUNT( * ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-4235
SELECT 19 * + - COUNT ( * ) col1
----
-19

query I rowsort
SELECT ( - 41 ) * + 25
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + SUM( DISTINCT + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4237
SELECT + SUM ( DISTINCT + 58 )
----
58

query I rowsort
SELECT DISTINCT + 69 * + 9 AS col1
----
621

query II rowsort
SELECT - 25, - 91 + + 59 AS col0
----
-25
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL MIN( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL MIN ( 51 )
----
51

query II rowsort
SELECT - 39, 4 + 7 AS col0
----
-39
11

query I rowsort
SELECT DISTINCT - ( - 89 ) - + 25
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - 67 + + MAX( + - 14 )
----
-81

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 67 + + MAX ( + - 14 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT 64 * + COUNT( * ) + + 51 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-4244
SELECT 64 * + COUNT ( * ) + + 51 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + + ( 17 ) * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4245
SELECT + + ( 17 ) * - COUNT ( * )
----
-17

query I rowsort
SELECT DISTINCT ( - - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT DISTINCT 98 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT 98 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + 15 * 73 * - + COUNT( * )
----
-1095

skipif mysql # not compatible
query I rowsort label-4248
SELECT + 15 * 73 * - + COUNT ( * )
----
-1095

query I rowsort
SELECT ALL ( + 4 ) AS col2
----
4

query I rowsort
SELECT DISTINCT ( 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - 32 * - 98 * COUNT( * )
----
3136

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - 32 * - 98 * COUNT ( * )
----
3136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT ALL + 59 DIV + COUNT( * ) * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + 59 / + COUNT ( * ) * - COUNT ( * )
----
-59

query I rowsort
SELECT DISTINCT - 29 col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + COUNT( * ) * - 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4254
SELECT + COUNT ( * ) * - 52 AS col0
----
-52

query I rowsort
SELECT 54 * 94
----
5076

query I rowsort
SELECT ALL + - 36 * - 16
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT - 75 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 75 / + 69
----
-1

query I rowsort
SELECT - 21 * - 82 AS col2
----
1722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + + COUNT( * ) + + + 59 col2
----
60

skipif mysql # not compatible
query I rowsort label-4261
SELECT + + COUNT ( * ) + + + 59 col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT + CAST( + CAST( + 23 AS SIGNED ) AS SIGNED ) * COUNT( DISTINCT - 33 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4262
SELECT + CAST ( + CAST ( + 23 AS INTEGER ) AS INTEGER ) * COUNT ( DISTINCT - 33 ) AS col1
----
23

query I rowsort
SELECT DISTINCT + + 7
----
7

query I rowsort
SELECT + ( - 15 ) col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4265
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT COALESCE ( + COUNT( * ), 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4266
SELECT COALESCE ( + COUNT ( * ), 68 ) AS col1
----
1

query II rowsort
SELECT - - 22 AS col1, COALESCE ( + + 27, 18 ) col2
----
22
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT + + MIN( - 6 ) * + + 7
----
-42

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + + MIN ( - 6 ) * + + 7
----
-42

query I rowsort
SELECT ALL 59 + + 77
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT - COUNT( * ) * 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - COUNT ( * ) * 33 AS col0
----
-33

query I rowsort
SELECT 63 * - 5 AS col1
----
-315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT + COUNT( * ) DIV + COUNT( * ) * - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4272
SELECT + COUNT ( * ) / + COUNT ( * ) * - ( - - COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT DISTINCT + 67 AS col0, + 66
----
67
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + COALESCE ( - 31, + COUNT( * ), - COUNT( * ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + COALESCE ( - 31, + COUNT ( * ), - COUNT ( * ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT COUNT( DISTINCT 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT COUNT ( DISTINCT 84 )
----
1

query I rowsort
SELECT DISTINCT + ( - 5 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ( CAST( + 39 AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-4277
SELECT ( CAST ( + 39 AS INTEGER ) )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT + 74 + - 99 - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT + 74 + - 99 - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4279
SELECT CAST( + 13 AS SIGNED ), COUNT( * ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-4279
SELECT CAST ( + 13 AS INTEGER ), COUNT ( * ) AS col1
----
13
1

query I rowsort
SELECT - ( + - 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4281
SELECT ( - MIN( DISTINCT - - 62 ) ) DIV - + 67 + - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4281
SELECT ( - MIN ( DISTINCT - - 62 ) ) / - + 67 + - + COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT DISTINCT + 97 DIV 7
----
13

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT + 97 / 7
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) * + 31 AS col0
----
NULL

query II rowsort
SELECT ALL - + 65 AS col1, + 84 col2
----
-65
84

query I rowsort
SELECT ALL 3 - 52
----
-49

query I rowsort
SELECT - 70 col1
----
-70

query I rowsort
SELECT DISTINCT - 67 + + 68
----
1

query I rowsort
SELECT DISTINCT - 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + COUNT( + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + COUNT ( + 51 ) AS col1
----
1

query I rowsort
SELECT - 80 * - ( 21 )
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT - 97 DIV - - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4291
SELECT - 97 / - - 25 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + - 69 + + + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4292
SELECT + - 69 + + + COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT DISTINCT 39 * - 34
----
-1326

query I rowsort
SELECT ALL ( + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + - COUNT( * ) - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4295
SELECT + - COUNT ( * ) - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT DISTINCT + + 42 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + MIN( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + MIN ( - 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4298
SELECT ALL CAST( - - 35 AS SIGNED ) * - 29 AS col2, + COUNT( * ) col0
----
-1015
1

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL CAST ( - - 35 AS INTEGER ) * - 29 AS col2, + COUNT ( * ) col0
----
-1015
1

query I rowsort
SELECT ALL - + 27 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT ALL 44 + - 77 DIV 11 col0
----
37

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 44 + - 77 / 11 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL COUNT( * ) + + + 35 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL COUNT ( * ) + + + 35 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT COUNT( * ) + + + ( + COUNT( DISTINCT - 68 ) ) + 54 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT COUNT ( * ) + + + ( + COUNT ( DISTINCT - 68 ) ) + 54 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL MAX( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL MAX ( - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - COUNT( ALL + 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - COUNT ( ALL + 98 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4305
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + 3
----
2

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + 3
----
2

query I rowsort
SELECT - 28 col1
----
-28

query I rowsort
SELECT ALL + + 64 * - 25 AS col1
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL - 61 * - ( 13 ) * + COUNT( * ) DIV COUNT( * ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - 61 * - ( 13 ) * + COUNT ( * ) / COUNT ( * ) AS col2
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + SUM( + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + SUM ( + 98 ) AS col0
----
98

query I rowsort
SELECT + 73 + - ( - 80 )
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT ALL 58, - COUNT( * ) AS col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-4312
SELECT ALL 58, - COUNT ( * ) AS col0
----
58
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT( * ) * + 9
----
-18
122

skipif mysql # not compatible
query II rowsort label-4313
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT ( * ) * + 9
----
-18
122

query I rowsort
SELECT + 19 + - ( - - 43 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + SUM( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + SUM ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL - + COUNT( * ) + - 95 + + 78 * - 52
----
-4152

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - + COUNT ( * ) + - 95 + + 78 * - 52
----
-4152

query I rowsort
SELECT ALL 16 * + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT 36 * + - COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-4318
SELECT 36 * + - COUNT ( * ) col2
----
-36

query I rowsort
SELECT ALL 62 * 78 AS col0
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT 26 * COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4320
SELECT 26 * COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT - MIN( ALL 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - MIN ( ALL 41 )
----
-41

query I rowsort
SELECT ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - COUNT( * ) * + 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COUNT ( * ) * + 30 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT DISTINCT 3 DIV - + 30 + + + 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT 3 / - + 30 + + + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT + MAX( ALL 45 ) * - 19
----
-855

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + MAX ( ALL 45 ) * - 19
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - MIN( + + 44 ) + + 42 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4326
SELECT - MIN ( + + 44 ) + + 42 col1
----
-2

query I rowsort
SELECT ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + COUNT( * ) * - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-4330
SELECT + COUNT ( * ) * - + 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + ( - COUNT( * ) ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-4331
SELECT + ( - COUNT ( * ) ) + 69
----
68

query I rowsort
SELECT + 57 * - + 77 col2
----
-4389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL + COUNT( * ) + - 2 * + COUNT( * ) - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + COUNT ( * ) + - 2 * + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4334
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4334
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 98
----
NULL
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT + + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT + + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-4336
SELECT + COUNT ( * ) * - 28
----
-28

query I rowsort
SELECT ALL - + ( + - 80 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL 87 / - - COUNT( * ) - + SUM( + 92 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 87 / - - COUNT ( * ) - + SUM ( + 92 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 40 AS col2, - 22
----
40
-22

query I rowsort
SELECT ALL + - 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL + - ( + + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL ( + COUNT( * ) ) * + - 7 * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL ( + COUNT ( * ) ) * + - 7 * COUNT ( * )
----
-7

query I rowsort
SELECT ALL ( - 38 ) AS col0
----
-38

query I rowsort
SELECT - 90 + - 44
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL + 19 * - CAST( - - 46 AS SIGNED ) AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + 19 * - CAST ( - - 46 AS INTEGER ) AS col0
----
-874

query I rowsort
SELECT ALL + + 74 col1
----
74

query I rowsort
SELECT DISTINCT + 5 * + 45
----
225

query I rowsort
SELECT 11 + + 26 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT - + COUNT( * ) AS col1, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4350
SELECT - + COUNT ( * ) AS col1, + COUNT ( * )
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT 43 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT 43 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 25 - - 65 AS col1
----
40

query I rowsort
SELECT DISTINCT - + 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT DISTINCT + ( - COUNT( * ) ), MIN( 52 ) AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-4354
SELECT DISTINCT + ( - COUNT ( * ) ), MIN ( 52 ) AS col2
----
-1
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - 67 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT - 67 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 76 * + + 44
----
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - COUNT( * ) + + - 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4357
SELECT - COUNT ( * ) + + - 1 AS col0
----
-2

query I rowsort
SELECT - - ( + 62 ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4359
SELECT - COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4360
SELECT 28 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT 28 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT ALL + COUNT( * ) AS col2, 23 AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-4361
SELECT ALL + COUNT ( * ) AS col2, 23 AS col0
----
1
23

query I rowsort
SELECT ALL 21 + + 62
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT 39 + - ( MAX( ALL + 91 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-4363
SELECT 39 + - ( MAX ( ALL + 91 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT 8 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT 8 / - 64 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL CAST( NULL AS SIGNED ) * 8 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL CAST ( NULL AS INTEGER ) * 8 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( - + 18 ) * + 53
----
-954

query I rowsort
SELECT - + 91 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - 15 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - 15 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT + MAX( DISTINCT + - ( + 22 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + MAX ( DISTINCT + - ( + 22 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT + 60 + 56, + COUNT( * ) AS col0
----
116
1

skipif mysql # not compatible
query II rowsort label-4370
SELECT + 60 + 56, + COUNT ( * ) AS col0
----
116
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL 27 * + COUNT( * ) + + - COUNT( * ) + - 43 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL 27 * + COUNT ( * ) + + - COUNT ( * ) + - 43 AS col1
----
-17

query I rowsort
SELECT - 26 * ( - + 95 )
----
2470

query I rowsort
SELECT DISTINCT - - 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT + 21 + + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + 21 + + - COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL - + CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - + CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4376
SELECT - 41, - ( CAST( NULL AS SIGNED ) ) AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-4376
SELECT - 41, - ( CAST ( NULL AS INTEGER ) ) AS col1
----
-41
NULL

query I rowsort
SELECT ALL - + 98 AS col0
----
-98

query I rowsort
SELECT + ( - 47 ) col2
----
-47

query I rowsort
SELECT + - ( + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - COUNT ( * ) + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - + MIN( - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - + MIN ( - 60 ) AS col0
----
60

query II rowsort
SELECT ALL 90 * + 95, + 46 AS col2
----
8550
46

query I rowsort
SELECT ALL ( + - 1 )
----
-1

query I rowsort
SELECT - + 20 * 44 AS col0
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + + MIN( + + 95 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + + MIN ( + + 95 ) col0
----
95

query I rowsort
SELECT DISTINCT - 26 * + 48 AS col1
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT + CAST( + + 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + CAST ( + + 29 AS INTEGER ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4388
SELECT COUNT( * ) DIV + CAST( 77 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT COUNT ( * ) / + CAST ( 77 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT COUNT( * ) * 78 * - MAX( - 68 )
----
5304

skipif mysql # not compatible
query I rowsort label-4389
SELECT COUNT ( * ) * 78 * - MAX ( - 68 )
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT 65 * + 59 * + + COUNT( * )
----
3835

skipif mysql # not compatible
query I rowsort label-4390
SELECT 65 * + 59 * + + COUNT ( * )
----
3835

query I rowsort
SELECT - 8 - + + 16 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + COUNT( * ) * - - 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4392
SELECT + COUNT ( * ) * - - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + + 27 + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4393
SELECT + + 27 + - COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT MIN( - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4394
SELECT MIN ( - 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT + + 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT + + 81 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL + MIN( DISTINCT 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + MIN ( DISTINCT 62 ) AS col0
----
62

query I rowsort
SELECT ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT COUNT( * ) + 65 + 35
----
101

skipif mysql # not compatible
query I rowsort label-4398
SELECT COUNT ( * ) + 65 + 35
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT ALL - COUNT( * ) AS col2, + 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL - COUNT ( * ) AS col2, + 1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 69 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 69 + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - ( - 60 ) AS col2
----
60

query I rowsort
SELECT - + 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4403
SELECT - + 82 AS col0, + COUNT( * ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-4403
SELECT - + 82 AS col0, + COUNT ( * ) AS col2
----
-82
1

query I rowsort
SELECT 33 + - 82 * - 17
----
1427

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT SUM( ALL 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4406
SELECT SUM ( ALL 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT MAX( ALL + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4407
SELECT MAX ( ALL + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL COUNT( * ) * + 49 + - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL COUNT ( * ) * + 49 + - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL COUNT( ALL + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL COUNT ( ALL + 36 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - MIN( DISTINCT - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-4410
SELECT - MIN ( DISTINCT - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + COUNT( * ) - + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4411
SELECT + COUNT ( * ) - + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT 17 AS col0, + COUNT( * ) AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-4412
SELECT 17 AS col0, + COUNT ( * ) AS col1
----
17
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT 75 + - - 41 AS col2
----
116

query I rowsort
SELECT ALL - - 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL - - ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - - ( - + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT + + 36 AS col2
----
36

query I rowsort
SELECT DISTINCT - + 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - + COUNT( * ) + + ( - 95 )
----
-96

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - + COUNT ( * ) + + ( - 95 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL + + 54 * CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + + 54 * CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 65 AS col1, + 28
----
-65
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 8 * - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4422
SELECT 8 * - COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT 93 AS col2, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT 93 AS col2, COUNT ( * )
----
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL + COUNT( + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + COUNT ( + 7 )
----
1

query I rowsort
SELECT - 33 * - 9
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT COUNT( + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4426
SELECT COUNT ( + 60 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4427
SELECT DISTINCT ( + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT ( + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) col0
----
NULL

query I rowsort
SELECT ALL ( - 26 ) AS col0
----
-26

query I rowsort
SELECT ALL ( - 34 )
----
-34

query I rowsort
SELECT - 7 + + 79 * ( 7 ) AS col2
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL CAST( - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL CAST ( - 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - MIN( - 27 ) * 96 AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-4432
SELECT - MIN ( - 27 ) * 96 AS col2
----
2592

query I rowsort
SELECT ( + 89 ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT + CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4434
SELECT + CAST ( + 91 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL + SUM( 86 ) * - 35
----
-3010

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + SUM ( 86 ) * - 35
----
-3010

query I rowsort
SELECT DISTINCT + ( ( + 92 ) ) * - 9
----
-828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT - COUNT( 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT - COUNT ( 12 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL - ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - ( - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL ( COUNT( * ) ) + + + 98
----
99

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL ( COUNT ( * ) ) + + + 98
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT CAST( + ( 82 ) AS SIGNED ) * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4441
SELECT CAST ( + ( 82 ) AS INTEGER ) * COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT - 82 * - 36
----
2952

query I rowsort
SELECT ALL - 31 + - - 71
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL + 20 * COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + 20 * COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + + ( + 9 ) + - + COUNT( * ) * - + 50 col0
----
59

skipif mysql # not compatible
query I rowsort label-4445
SELECT + + ( + 9 ) + - + COUNT ( * ) * - + 50 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL 86 - - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL 86 - - + COUNT ( * )
----
87

query I rowsort
SELECT ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL NULLIF ( - + COUNT( * ), + MIN( DISTINCT + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL NULLIF ( - + COUNT ( * ), + MIN ( DISTINCT + 47 ) ) AS col2
----
-1

query I rowsort
SELECT - ( - + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + - COUNT( * ) + - 45 col2
----
-46

skipif mysql # not compatible
query I rowsort label-4450
SELECT + - COUNT ( * ) + - 45 col2
----
-46

query I rowsort
SELECT - - ( 74 ) col0
----
74

query I rowsort
SELECT - - ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL 67 + - + COUNT( ALL - 18 )
----
66

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL 67 + - + COUNT ( ALL - 18 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - COUNT( - - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - COUNT ( - - 83 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - COUNT( DISTINCT + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - COUNT ( DISTINCT + 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT COUNT( * ) * 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT COUNT ( * ) * 1 AS col1
----
1

query I rowsort
SELECT ALL + 84 col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + COUNT( * ) * - ( 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4461
SELECT + COUNT ( * ) * - ( 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - COUNT( * ) * + + 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - COUNT ( * ) * + + 75 AS col1
----
-75

query I rowsort
SELECT + + ( + 37 )
----
37

query I rowsort
SELECT DISTINCT - 89 * - 26
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT( * ) ) + 49 AS col2
----
-1591

skipif mysql # not compatible
query I rowsort label-4465
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT ( * ) ) + 49 AS col2
----
-1591

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT 11 DIV - - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT 11 / - - 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 40 + + + 51 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT - 43 + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - 43 + COUNT ( * )
----
-42

query II rowsort
SELECT 61 AS col2, 23 col2
----
61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL - COUNT( * ) * - 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL - COUNT ( * ) * - 81 AS col1
----
81

query I rowsort
SELECT 40 * + 95 AS col2
----
3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT ALL 36 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL 36 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - ( + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT - ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT + SUM( DISTINCT + - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + SUM ( DISTINCT + - 69 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT + 78 AS col0
----
78

query I rowsort
SELECT + ( - + 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4478
SELECT + CAST( NULL AS DECIMAL ) + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT + CAST ( NULL AS REAL ) + 41 AS col2
----
NULL

query I rowsort
SELECT ALL + 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - ( + + COUNT( ALL - 55 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT - ( + + COUNT ( ALL - 55 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT NULLIF ( 42, - + COUNT( * ) * + 48 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4481
SELECT NULLIF ( 42, - + COUNT ( * ) * + 48 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL + SUM( ALL + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + SUM ( ALL + - 45 )
----
-45

query I rowsort
SELECT DISTINCT - 81 * 9
----
-729

query II rowsort
SELECT - + 78 col1, 45
----
-78
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL - 5 * + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 5 * + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT 20 DIV + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4486
SELECT 20 / + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT 46 + - SUM( - 55 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4487
SELECT 46 + - SUM ( - 55 ) AS col1
----
101

query I rowsort
SELECT ALL - 65 * + 30 * 7 AS col0
----
-13650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT + CAST ( NULL AS INTEGER ) + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - + 42 * MAX( DISTINCT 24 ) AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-4490
SELECT - + 42 * MAX ( DISTINCT 24 ) AS col1
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT + 87 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + 87 / - 62 AS col1
----
-1

query II rowsort
SELECT DISTINCT + 38 AS col0, 92 AS col1
----
38
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT - + COUNT( * ), 88 DIV - ( + COUNT( * ) ) AS col1
----
-1
-88

skipif mysql # not compatible
query II rowsort label-4493
SELECT - + COUNT ( * ), 88 / - ( + COUNT ( * ) ) AS col1
----
-1
-88

query I rowsort
SELECT ( - 24 )
----
-24

query I rowsort
SELECT ALL + ( 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT MAX( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT MAX ( DISTINCT - 75 )
----
-75

query I rowsort
SELECT ALL ( + 68 )
----
68

query I rowsort
SELECT ALL 12 + - 83
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT MAX( 35 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-4499
SELECT MAX ( 35 ) col0
----
35

query I rowsort
SELECT DISTINCT - - 52 + 89 AS col0
----
141

query I rowsort
SELECT + 8 * 7 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL COUNT( * ) * 57
----
57

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL COUNT ( * ) * 57
----
57

query I rowsort
SELECT DISTINCT + ( 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT DISTINCT COUNT( + + 39 ), + 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-4504
SELECT DISTINCT COUNT ( + + 39 ), + 93 AS col1
----
1
93

query I rowsort
SELECT DISTINCT - 87 + + + 59
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4506
SELECT ALL - COUNT( * ) + - 91 DIV - + CAST( - MAX( ALL + 3 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - COUNT ( * ) + - 91 / - + CAST ( - MAX ( ALL + 3 ) AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL 59 * - COUNT( * ) * - 67 AS col2
----
3953

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 59 * - COUNT ( * ) * - 67 AS col2
----
3953

query I rowsort
SELECT + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + - COUNT( * ) + + ( + 69 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4509
SELECT + - COUNT ( * ) + + ( + 69 ) AS col0
----
68

query I rowsort
SELECT ( + 79 ) * + 67 AS col2
----
5293

query I rowsort
SELECT + ( + 92 ) AS col0
----
92

query I rowsort
SELECT ( + 90 ) * 81 AS col1
----
7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 10 AS col1
----
-10

query I rowsort
SELECT + - 95 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - - MAX( 46 ) * 6 + + 12
----
288

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - MAX ( 46 ) * 6 + + 12
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT COUNT( * ), - 90 AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-4517
SELECT COUNT ( * ), - 90 AS col2
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-4518
SELECT - 60 * - COUNT ( * )
----
60

query I rowsort
SELECT ALL ( - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4520
SELECT 24 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-4520
SELECT 24 AS col2, COUNT ( * )
----
24
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT + CAST( NULL AS SIGNED ) / + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT + CAST ( NULL AS INTEGER ) / + - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT + CAST( - AVG ( DISTINCT + 55 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-4522
SELECT + CAST ( - AVG ( DISTINCT + 55 ) AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 77 + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT - MIN( 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - MIN ( 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL COUNT( * ) * - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL COUNT ( * ) * - ( + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - + NULLIF ( + + COUNT( * ), + 88 + - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - + NULLIF ( + + COUNT ( * ), + 88 + - 30 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4527
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4528
SELECT ALL 54 AS col2, CAST( NULL AS DECIMAL ) col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL 54 AS col2, CAST ( NULL AS REAL ) col1
----
54
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4529
SELECT - 78 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 78 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 42 * - 30
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT ( - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL + - CAST( NULL AS SIGNED ) * + 26 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 26 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 - 1 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL COUNT( * ) / + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 81, + 70 AS col1
----
-81
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT 44 + - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT 44 + - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT MAX( - 85 ) + - 30 + - - 94
----
-21

skipif mysql # not compatible
query I rowsort label-4537
SELECT MAX ( - 85 ) + - 30 + - - 94
----
-21

query I rowsort
SELECT 34 + 94 col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4539
SELECT COUNT( - CAST( NULL AS SIGNED ) ) DIV COALESCE ( + 80, - - COUNT( * ) + - + 36 ) DIV + - 53 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-4539
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) / COALESCE ( + 80, - - COUNT ( * ) + - + 36 ) / + - 53 - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - 3 - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - 3 - - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT COUNT( * ) * - - COALESCE ( 20, - + COUNT( * ) * + 45 * + + 52 + + + 74 )
----
20

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( * ) * - - COALESCE ( 20, - + COUNT ( * ) * + 45 * + + 52 + + + 74 )
----
20

query I rowsort
SELECT ALL NULLIF ( + 71, - 27 )
----
71

query I rowsort
SELECT - 32 * + 9 - - 20
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + COUNT( + - 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + COUNT ( + - 4 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT COUNT( - - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT COUNT ( - - 22 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT ALL - COUNT( * ) DIV - + MIN( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - COUNT ( * ) / - + MIN ( 94 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 16 * - 79 AS col0
----
-1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT - 70 DIV + COALESCE ( 92, 69 - + COUNT( * ) + - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT - 70 / + COALESCE ( 92, 69 - + COUNT ( * ) + - 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT + SUM( ALL - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4549
SELECT + SUM ( ALL - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL + 54 * + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + 54 * + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 44 * - + 23
----
1012

query I rowsort
SELECT DISTINCT - ( + 32 ) AS col0
----
-32

query I rowsort
SELECT 33 + 61 * - 68 AS col1
----
-4115

query I rowsort
SELECT 68 + - ( 86 ) AS col2
----
-18

query I rowsort
SELECT 87 * 71 AS col2
----
6177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT ALL + 24 DIV COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + 24 / COUNT ( * )
----
24

query I rowsort
SELECT ALL + - 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT MAX( - 95 ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-4558
SELECT MAX ( - 95 ) col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT - 26 * + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - 26 * + COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT ALL ( - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL COUNT( * ) + + COUNT( * ) + - 54
----
-52

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 54
----
-52

query I rowsort
SELECT ALL + - ( - 71 )
----
71

query I rowsort
SELECT DISTINCT + 5 * 54 AS col2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( * ) + + 37 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT - - 41 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - - 41 / 92 AS col2
----
0

query I rowsort
SELECT ALL 65 + - + 84
----
-19

query I rowsort
SELECT + 19 * + + 94 + 5 + + 95 + - + ( 95 )
----
1791

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT 55 AS col1, - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-4568
SELECT 55 AS col1, - COUNT ( * )
----
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT ALL 87 AS col0, - COUNT( * ) AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL 87 AS col0, - COUNT ( * ) AS col2
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT MAX ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ( MIN( DISTINCT + - 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4571
SELECT ( MIN ( DISTINCT + - 77 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + MIN( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + MIN ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + ( + 15 ) - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4573
SELECT + ( + 15 ) - COUNT ( * )
----
14

query I rowsort
SELECT ( + 47 ) * - + 13 AS col0
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - 34 * COUNT( * ) * - 29
----
986

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 34 * COUNT ( * ) * - 29
----
986

query I rowsort
SELECT ALL - 96 + + - 25 AS col0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT - + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT - + CAST ( NULL AS INTEGER ) + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL - 55 + NULLIF ( 44, COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - 55 + NULLIF ( 44, COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT MAX( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT MAX ( DISTINCT 66 ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + 40 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 40 / + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + - 54 - + 87 * COUNT( ALL + 74 ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-4581
SELECT + - 54 - + 87 * COUNT ( ALL + 74 ) AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX( DISTINCT + ( + 0 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX ( DISTINCT + ( + 0 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - 61 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 61 + COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT DISTINCT + + 99 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + + 99 / - 52 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4585
SELECT COUNT( * ) * 69 + + ( - 31 ) col2, CAST( NULL AS SIGNED )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4585
SELECT COUNT ( * ) * 69 + + ( - 31 ) col2, CAST ( NULL AS INTEGER )
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL ( COUNT( * ) ) + ( + COUNT( * ) ) - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL ( COUNT ( * ) ) + ( + COUNT ( * ) ) - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT DISTINCT 84 + + - 86 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL + 17 + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + 17 + - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 24 * - - COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT 98 * + 89
----
8722

query I rowsort
SELECT ALL + ( - 2 )
----
-2

query I rowsort
SELECT ALL + ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COUNT( * ) * + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( * ) * + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL ( ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL ( ( COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT - 22 - - 39
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT ALL MIN( ALL + 35 ) DIV + COUNT( * ) - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL MIN ( ALL + 35 ) / + COUNT ( * ) - + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT ALL 13 DIV - COUNT( ALL 75 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL 13 / - COUNT ( ALL 75 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4600
SELECT + - ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL 6 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 6 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 24 + + 77
----
101

query I rowsort
SELECT ALL - + 10 - + 57
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL + 84 * + ( - SUM( 70 ) ) * - 19 AS col1
----
111720

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 84 * + ( - SUM ( 70 ) ) * - 19 AS col1
----
111720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL - CAST( - - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - CAST ( - - 83 AS INTEGER )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT + SUM( DISTINCT - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT + SUM ( DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - 79 * + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 79 * + COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL + MIN( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + MIN ( + 92 ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT + ( 58 ) DIV 10
----
5

skipif mysql # not compatible
query I rowsort label-4609
SELECT + ( 58 ) / 10
----
5

query I rowsort
SELECT ALL ( - COALESCE ( 61, 19 ) ) AS col0
----
-61

query I rowsort
SELECT ALL ( - 47 ) col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT - CAST( - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4612
SELECT - CAST ( - 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + MIN( + - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-4613
SELECT + MIN ( + - 32 ) col0
----
-32

query I rowsort
SELECT - - 7 + + + 41 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 48 * - - COUNT ( * )
----
48

query I rowsort
SELECT ALL + ( 96 )
----
96

query I rowsort
SELECT - 22 * + ( + 92 )
----
-2024

query I rowsort
SELECT ALL 57 * + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT - SUM( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - SUM ( 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT 99 * + - 53 * + + COUNT( * ) AS col1
----
-5247

skipif mysql # not compatible
query I rowsort label-4620
SELECT 99 * + - 53 * + + COUNT ( * ) AS col1
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT 50 * + COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-4621
SELECT 50 * + COUNT ( * ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( * ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) * - 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT 50 * + - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4624
SELECT 50 * + - COUNT ( * ) AS col2
----
-50

query I rowsort
SELECT + ( + - 18 ) AS col2
----
-18

query I rowsort
SELECT DISTINCT - + 49 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT ALL + 91 + - COUNT( * ) - CAST( NULL AS SIGNED ) + 54 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + 91 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 54 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4628
SELECT - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + 7 + CAST( 36 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-4629
SELECT + 7 + CAST ( 36 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4630
SELECT ALL COUNT( * ) DIV - + 85 AS col2, 60 AS col2
----
0
60

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT NULLIF ( - COUNT( * ), - - CAST( 84 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4631
SELECT NULLIF ( - COUNT ( * ), - - CAST ( 84 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( ( - 6 ), + + 37 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT + NULLIF ( + 65, + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + NULLIF ( + 65, + COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - MAX( DISTINCT + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4634
SELECT - MAX ( DISTINCT + 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + - 73 * - COUNT( * ) * - 61 col2
----
-4453

skipif mysql # not compatible
query I rowsort label-4635
SELECT + - 73 * - COUNT ( * ) * - 61 col2
----
-4453

query I rowsort
SELECT + 34 + - 24 * - 93 AS col1
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - MAX( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4637
SELECT - MAX ( ALL - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4638
SELECT + CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT ALL - COUNT( * ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - COUNT ( * ) / - 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT 25 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT 25 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 66 + + COUNT( ( + 56 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4641
SELECT 66 + + COUNT ( ( + 56 ) ) AS col2
----
67

query I rowsort
SELECT 50 * 51
----
2550

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

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

query I rowsort
SELECT DISTINCT - - 41
----
41

query I rowsort
SELECT - + 91 col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT 41 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 41 / 32
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4647
SELECT ALL 39 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 39 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + - COUNT( * ) + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4648
SELECT + - COUNT ( * ) + 82 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 40 * - + COUNT( * ) - - 22 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 40 * - + COUNT ( * ) - - 22 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT 4 AS col2, + 60 + + COUNT( * ) AS col2
----
4
61

skipif mysql # not compatible
query II rowsort label-4650
SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2
----
4
61

query I rowsort
SELECT DISTINCT ( + ( + 8 ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT + 63 - + CAST( + MAX( - 26 ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4652
SELECT + 63 - + CAST ( + MAX ( - 26 ) AS INTEGER ) AS col2
----
89

query II rowsort
SELECT ALL + + 5 col1, 30
----
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + COUNT( - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4654
SELECT + COUNT ( - - 19 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT CAST( + 82 AS SIGNED ) + - + 95
----
-13

skipif mysql # not compatible
query I rowsort label-4655
SELECT CAST ( + 82 AS INTEGER ) + - + 95
----
-13

query I rowsort
SELECT - 78 - 56
----
-134

query I rowsort
SELECT DISTINCT - - ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT DISTINCT - - COUNT( * ) DIV + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - - COUNT ( * ) / + - ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 92 * 3 + - 16 AS col0
----
260

query I rowsort
SELECT + 85 + + 19 * 49
----
1016

query I rowsort
SELECT 84 - - 74 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - + COUNT( * ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - COUNT( - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4663
SELECT - COUNT ( - 73 ) AS col0
----
-1

query I rowsort
SELECT + ( - 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT COUNT( * ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4665
SELECT COUNT ( * ) col1, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT COUNT( ( 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4666
SELECT COUNT ( ( 26 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4668
SELECT ALL 68 AS col2, - 86 DIV - COUNT( * )
----
68
86

skipif mysql # not compatible
query II rowsort label-4668
SELECT ALL 68 AS col2, - 86 / - COUNT ( * )
----
68
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT DISTINCT - COUNT( * ), 49 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-4669
SELECT DISTINCT - COUNT ( * ), 49 AS col0
----
-1
49

query I rowsort
SELECT ( 25 ) AS col1
----
25

query II rowsort
SELECT + 88 * - 26 AS col1, - 97 AS col2
----
-2288
-97

query I rowsort
SELECT ( 29 ) AS col0
----
29

query I rowsort
SELECT - - ( 41 ) AS col1
----
41

query I rowsort
SELECT DISTINCT - - 96 AS col0
----
96

query I rowsort
SELECT ALL 48 * 15
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL + 26 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + 26 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT SUM( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4677
SELECT SUM ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT( * ) ) col0
----
-5977

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT ( * ) ) col0
----
-5977

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL COUNT( DISTINCT - - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL COUNT ( DISTINCT - - 26 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4680
SELECT + CAST( + 28 AS SIGNED ) col0, ( - 54 ) AS col1
----
28
-54

skipif mysql # not compatible
query II rowsort label-4680
SELECT + CAST ( + 28 AS INTEGER ) col0, ( - 54 ) AS col1
----
28
-54

query I rowsort
SELECT ALL + 23 + + 9
----
32

query I rowsort
SELECT - 29 * 24 AS col2
----
-696

query I rowsort
SELECT ( - - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + MIN( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4684
SELECT + MIN ( DISTINCT - 30 )
----
-30

query I rowsort
SELECT ALL + - 74 AS col1
----
-74

query I rowsort
SELECT + 59 + + 23
----
82

query I rowsort
SELECT - - 44 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT - 47 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 47 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( * ) + + 39
----
38

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( * ) + + 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT - 11 * + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - 11 * + COUNT ( * ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT - 34 DIV 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT - 34 / 51 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - MIN( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - MIN ( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

query I rowsort
SELECT 22 + + ( - + 84 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL MAX( ALL - 40 ) * - ( + 98 )
----
3920

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL MAX ( ALL - 40 ) * - ( + 98 )
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL COUNT( * ) * 55 * + - 76 col0
----
-4180

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL COUNT ( * ) * 55 * + - 76 col0
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - COUNT( + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4696
SELECT - COUNT ( + 15 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + MAX( DISTINCT - 34 ) * 55 AS col2
----
-1870

skipif mysql # not compatible
query I rowsort label-4697
SELECT + MAX ( DISTINCT - 34 ) * 55 AS col2
----
-1870

query II rowsort
SELECT + 29 AS col1, 34
----
29
34

query I rowsort
SELECT ALL + ( - - 29 ) col2
----
29

query I rowsort
SELECT ALL + - 70 col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT DISTINCT CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT CAST ( 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL + COUNT( DISTINCT - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + COUNT ( DISTINCT - 6 ) AS col0
----
1

query I rowsort
SELECT + - 42 col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL + 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT ( + + SUM( ALL + - 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT ( + + SUM ( ALL + - 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT - - COUNT( 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4707
SELECT - - COUNT ( 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - COUNT ( * ) * - 87
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 62 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4710
SELECT ALL 94, CAST( NULL AS SIGNED ) AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4710
SELECT ALL 94, CAST ( NULL AS INTEGER ) AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - + MAX( DISTINCT - + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4712
SELECT - + MAX ( DISTINCT - + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT COUNT( * ) AS col1, COUNT( * ) + + COUNT( * )
----
1
2

skipif mysql # not compatible
query II rowsort label-4713
SELECT COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * )
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + + COUNT( * ) * 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + + COUNT ( * ) * 24 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - COUNT( ( 0 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4715
SELECT - COUNT ( ( 0 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ( - ( MIN( + 51 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4716
SELECT ( - ( MIN ( + 51 ) ) )
----
-51

query I rowsort
SELECT DISTINCT + 5 col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT ALL + COUNT( * ) AS col1, - 78
----
1
-78

skipif mysql # not compatible
query II rowsort label-4718
SELECT ALL + COUNT ( * ) AS col1, - 78
----
1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT - COUNT( DISTINCT + 60 ) + - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - COUNT ( DISTINCT + 60 ) + - COUNT ( * ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT COUNT( * ) + + 58 + 34 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4720
SELECT COUNT ( * ) + + 58 + 34 AS col0
----
93

query II rowsort
SELECT ALL - 11 AS col0, - ( - 86 ) AS col2
----
-11
86

query I rowsort
SELECT 1 * - - 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL COUNT( * ) * 79 col1
----
79

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL COUNT ( * ) * 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - COUNT( * ) * COALESCE ( - 48, + COUNT( * ) ) * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - COUNT ( * ) * COALESCE ( - 48, + COUNT ( * ) ) * - COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT ALL + 84 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4726
SELECT ( - + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT ALL 4 * - 83 AS col2
----
-332

query II rowsort
SELECT + 36 + + 96 AS col0, 2
----
132
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL + ( + + ( + + CAST( + + 85 AS SIGNED ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + ( + + ( + + CAST ( + + 85 AS INTEGER ) ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT + + COUNT( * ) * - MIN( - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + + COUNT ( * ) * - MIN ( - 82 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT DISTINCT CAST( + COUNT( + 58 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT CAST ( + COUNT ( + 58 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL 70 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 70 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - MAX( 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4734
SELECT - MAX ( 91 ) AS col2
----
-91

query I rowsort
SELECT ALL - 74 * 44 * + ( 77 ) AS col0
----
-250712

query I rowsort
SELECT DISTINCT - 23 * - 98 col0
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - + COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4737
SELECT - + COUNT ( * ) * + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL + - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT + 41 + + 50 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT - COUNT( * ) * 1 * 12 - 89 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - COUNT ( * ) * 1 * 12 - 89 AS col1
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL - CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - CAST ( NULL AS INTEGER ) * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT MAX( - 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-4742
SELECT MAX ( - 14 ) col1
----
-14

query I rowsort
SELECT ALL 4 * 80
----
320

query I rowsort
SELECT DISTINCT - 84 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT CAST( NULL AS SIGNED ) / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT CAST ( NULL AS INTEGER ) / - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( 98 ) AS col0
----
98

query I rowsort
SELECT + 86 + 57 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + COUNT( * ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COUNT ( * ) + 27 AS col0
----
28

query I rowsort
SELECT ALL 97 + - 5 AS col1
----
92

query I rowsort
SELECT ALL ( + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL + - CAST( + 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + - CAST ( + 63 AS INTEGER ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - MIN( DISTINCT - + 34 ) - 74 * + 87
----
-6404

skipif mysql # not compatible
query I rowsort label-4752
SELECT - MIN ( DISTINCT - + 34 ) - 74 * + 87
----
-6404

query I rowsort
SELECT ALL - + 67 * + 90 * 60
----
-361800

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - - 2 + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - 2 + + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 16 * - + 18
----
-288

query I rowsort
SELECT ALL + + 2 - 78
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + + COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + + COUNT ( * ) * + 11
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT ALL - 51, COUNT( * ) + - + COUNT( + 1 ) AS col2
----
-51
0

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL - 51, COUNT ( * ) + - + COUNT ( + 1 ) AS col2
----
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - 76 * - - COUNT( ALL + 1 )
----
-76

skipif mysql # not compatible
query I rowsort label-4759
SELECT - 76 * - - COUNT ( ALL + 1 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL NULLIF ( + COUNT( * ), - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL NULLIF ( + COUNT ( * ), - 20 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT + 78 DIV - COUNT( * ) + - - ( + 45 )
----
-33

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 78 / - COUNT ( * ) + - - ( + 45 )
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4762
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4763
SELECT ALL - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - MAX( ALL + - ( + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - MAX ( ALL + - ( + 86 ) )
----
86

query I rowsort
SELECT ALL - NULLIF ( - 41, - 1 ) + + + 1 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT + SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + SUM ( 16 )
----
16

query I rowsort
SELECT ALL 94 + + + 45 * 15
----
769

query I rowsort
SELECT ALL - ( - 96 ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT CAST( NULL AS SIGNED ) - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT CAST ( NULL AS INTEGER ) - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL - COUNT( * ) * + 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - COUNT ( * ) * + 4 AS col1
----
-4

query I rowsort
SELECT ALL - + 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT MIN( + 58 ) * + 5 AS col1
----
290

skipif mysql # not compatible
query I rowsort label-4773
SELECT MIN ( + 58 ) * + 5 AS col1
----
290

query I rowsort
SELECT 44 + - - 89
----
133

query I rowsort
SELECT 96 * - - 42
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 9 * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - COUNT( DISTINCT 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-4777
SELECT - COUNT ( DISTINCT 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL + + ( - COUNT( * ) ) * + - 33 - - 81 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + + ( - COUNT ( * ) ) * + - 33 - - 81 AS col2
----
114

query I rowsort
SELECT DISTINCT + - 72
----
-72

query I rowsort
SELECT ALL + - 13
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT DISTINCT + COUNT( * ), 34 AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT + COUNT ( * ), 34 AS col1
----
1
34

query I rowsort
SELECT ALL ( 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - COUNT( * ) + - COUNT( * ) * + COUNT( * ) * - 88
----
87

skipif mysql # not compatible
query I rowsort label-4783
SELECT - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) * - 88
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT DISTINCT 39 AS col1, - ( - COUNT( * ) )
----
39
1

skipif mysql # not compatible
query II rowsort label-4784
SELECT DISTINCT 39 AS col1, - ( - COUNT ( * ) )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - MIN( - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4785
SELECT - MIN ( - 50 )
----
50

query I rowsort
SELECT ALL + + 10 AS col0
----
10

query I rowsort
SELECT DISTINCT + 93 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + COUNT( * ) * 82 * 77 col0
----
6314

skipif mysql # not compatible
query I rowsort label-4788
SELECT + COUNT ( * ) * 82 * 77 col0
----
6314

query I rowsort
SELECT ALL - 72 + - - 59 + - 66 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL COUNT ( * ) * + 1
----
1

query I rowsort
SELECT DISTINCT 57 + + 53
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT COUNT( * ) + + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( * ) + + - 22
----
-21

query I rowsort
SELECT DISTINCT - - NULLIF ( - 83, - + AVG ( DISTINCT + 29 ) * + 42 ) * 79
----
-6557

query I rowsort
SELECT + 83 * - + 37
----
-3071

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT + 95 AS col0, - COUNT( * ) AS col1
----
95
-1

skipif mysql # not compatible
query II rowsort label-4795
SELECT + 95 AS col0, - COUNT ( * ) AS col1
----
95
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 50 * + + COUNT( * ) + 25 col1
----
75

skipif mysql # not compatible
query I rowsort label-4796
SELECT 50 * + + COUNT ( * ) + 25 col1
----
75

query I rowsort
SELECT + 8 + + 17 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT SUM( DISTINCT - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT SUM ( DISTINCT - 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + COUNT( ALL + + 39 ) * - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4799
SELECT + COUNT ( ALL + + 39 ) * - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - COUNT( * ) * + - ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - COUNT ( * ) * + - ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - COUNT( * ) + + MAX( + ( 63 ) ) * + 44
----
2771

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - COUNT ( * ) + + MAX ( + ( 63 ) ) * + 44
----
2771

query II rowsort
SELECT ALL 85 AS col2, 9
----
85
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + 19 + COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + 19 + COUNT ( * ) col2
----
20

query I rowsort
SELECT ALL + 25 + + - 46 AS col2
----
-21

query I rowsort
SELECT ALL - - 53 + + 78 * 14
----
1145

query I rowsort
SELECT ALL - + ( 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT + 40 + - MAX( 26 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 40 + - MAX ( 26 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT + ( - COUNT( * ) ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + ( - COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - ( + 14 ) + + ( + + ( + 50 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT - COUNT( * ) AS col0, - 68 * - 52
----
-1
3536

skipif mysql # not compatible
query II rowsort label-4810
SELECT - COUNT ( * ) AS col0, - 68 * - 52
----
-1
3536

query II rowsort
SELECT DISTINCT + - 32 AS col2, + 27 * - + 80 AS col1
----
-32
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - 15 * ( - COUNT( * ) ) - - ( COUNT( * ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 15 * ( - COUNT ( * ) ) - - ( COUNT ( * ) ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL - - 33 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - - 33 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - - 56 - COUNT( * ) + - + 10
----
45

skipif mysql # not compatible
query I rowsort label-4814
SELECT - - 56 - COUNT ( * ) + - + 10
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + + 4 * - COUNT( 69 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4815
SELECT + + 4 * - COUNT ( 69 ) AS col0
----
-4

query I rowsort
SELECT - 64 * + 70 AS col1
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT + COUNT( * ) + 4 + - MAX( + - 90 ) * + 9 * + 82 col2
----
66425

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + COUNT ( * ) + 4 + - MAX ( + - 90 ) * + 9 * + 82 col2
----
66425

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL MIN( - ( + + 86 ) ) + - + 24 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL MIN ( - ( + + 86 ) ) + - + 24 AS col2
----
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4819
SELECT CAST( NULL AS DECIMAL ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT CAST ( NULL AS REAL ) * 80
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4820
SELECT CAST( NULL AS DECIMAL ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT CAST ( NULL AS REAL ) + 60
----
NULL

query I rowsort
SELECT - 36 * 12
----
-432

query I rowsort
SELECT ALL - - 12 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4823
SELECT ALL 43, + ( + - ( + 55 ) ) * CAST( NULL AS SIGNED ) AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL 43, + ( + - ( + 55 ) ) * CAST ( NULL AS INTEGER ) AS col0
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - - SUM( DISTINCT - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - - SUM ( DISTINCT - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - COUNT( * ) * + 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4825
SELECT - COUNT ( * ) * + 91 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - 92 DIV 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - 92 / 69 AS col2
----
-1

query I rowsort
SELECT ALL 61 * + 82
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + ( + 19 ) * - + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4828
SELECT + ( + 19 ) * - + COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + COUNT ( * ) * - 89
----
-89

query I rowsort
SELECT + + 15 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4831
SELECT + CAST ( - 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL CAST ( 21 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - COUNT( * ) * + 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - COUNT ( * ) * + 1 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT ALL - - 60 DIV 13 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - - 60 / 13 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - - SUM( - - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4835
SELECT - - SUM ( - - 47 ) AS col1
----
47

query I rowsort
SELECT DISTINCT - ( + - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT COUNT( * ) * - + 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4837
SELECT COUNT ( * ) * - + 88 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT ALL CAST( - 44 AS SIGNED ) - 19
----
-63

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL CAST ( - 44 AS INTEGER ) - 19
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT - MIN( + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4840
SELECT - MIN ( + 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL + CAST( NULL AS SIGNED ) + + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + COUNT( * ) + 49 col2
----
50

skipif mysql # not compatible
query I rowsort label-4842
SELECT + COUNT ( * ) + 49 col2
----
50

query I rowsort
SELECT ALL - ( - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT SUM( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4844
SELECT SUM ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL COUNT( * ) + - ( + 79 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL COUNT ( * ) + - ( + 79 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - SUM( + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4846
SELECT - SUM ( + 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 42 + - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - 54 - COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - 54 - COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT - 41 DIV MIN( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4849
SELECT - 41 / MIN ( DISTINCT - 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT SUM( DISTINCT 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT SUM ( DISTINCT 75 ) AS col0
----
75

query I rowsort
SELECT ALL - 37 - - ( + 99 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT - COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT - COUNT ( * ) / 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT + MIN( + 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + MIN ( + 62 ) col1
----
62

query I rowsort
SELECT - 44 + 72
----
28

query I rowsort
SELECT - + 95 + + 84
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4856
SELECT - + COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-4856
SELECT - + COUNT ( * ) / - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - COUNT( DISTINCT 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4857
SELECT - COUNT ( DISTINCT 35 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + COUNT( * ) + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4858
SELECT + COUNT ( * ) + - 73 AS col1
----
-72

query I rowsort
SELECT - 57 + - 25 AS col1
----
-82

query I rowsort
SELECT - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT COUNT( * ) + 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4861
SELECT COUNT ( * ) + 55 AS col2
----
56

query I rowsort
SELECT DISTINCT 25 - - 15
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - MAX( + 81 ) + + - 57
----
-138

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - MAX ( + 81 ) + + - 57
----
-138

query I rowsort
SELECT 24 * + - 83 AS col0
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT - COUNT( * ) * + + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4865
SELECT - COUNT ( * ) * + + 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + COUNT( - - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + COUNT ( - - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - ( + 67 ) - - ( - + 95 ) + COUNT( * ) AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-4867
SELECT - ( + 67 ) - - ( - + 95 ) + COUNT ( * ) AS col1
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4868
SELECT - 79 + + ( 19 ) AS col0, AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4868
SELECT - 79 + + ( 19 ) AS col0, AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
-60
NULL

query I rowsort
SELECT DISTINCT ( 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + MIN( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + MIN ( ALL 52 ) AS col0
----
52

query I rowsort
SELECT + + 75 * + - 70
----
-5250

query I rowsort
SELECT DISTINCT 2 * + 76 * - - COALESCE ( + 58, - 40 ) AS col0
----
8816

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4873
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, 5
----
NULL
5

query I rowsort
SELECT 57 - 25
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL - 94 * COUNT( * ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - 94 * COUNT ( * ) col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT DISTINCT MAX( + 72 ), + COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT MAX ( + 72 ), + COUNT ( * ) AS col0
----
72
1

query I rowsort
SELECT 11 * 27
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT CAST( NULL AS SIGNED ) - NULLIF ( + 44, 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( + 44, 22 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 73 AS col2
----
73

query I rowsort
SELECT ALL - - ( + + 89 ) AS col1
----
89

query I rowsort
SELECT ALL + ( 63 )
----
63

query I rowsort
SELECT ALL + ( 20 )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4883
SELECT ALL + CAST( NULL AS DECIMAL ), 86 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL + CAST ( NULL AS REAL ), 86 AS col0
----
NULL
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4884
SELECT + AVG ( ALL - - ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT + AVG ( ALL - - ( - + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT MAX( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT MAX ( DISTINCT - 32 )
----
-32

query I rowsort
SELECT DISTINCT ( 33 ) AS col1
----
33

query I rowsort
SELECT + 2 + - 91 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - MAX( - - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4888
SELECT - MAX ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + COALESCE ( - - COUNT( * ), + + COUNT( * ) ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COALESCE ( - - COUNT ( * ), + + COUNT ( * ) ) * 82 AS col2
----
82

query I rowsort
SELECT ALL ( - - 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + SUM( - 44 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-4891
SELECT + SUM ( - 44 ) col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + COUNT( 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4892
SELECT + COUNT ( 15 ) AS col2
----
1

query I rowsort
SELECT ALL - 25 * 23
----
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT ALL - 40 DIV - - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - 40 / - - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT + COUNT( * ) DIV - - 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + COUNT ( * ) / - - 37 col2
----
0

query I rowsort
SELECT ALL ( 20 ) AS col2
----
20

query I rowsort
SELECT DISTINCT + ( - - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - 18 + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 18 + + COUNT ( * )
----
-17

query I rowsort
SELECT DISTINCT 4 + + 87 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - MAX( + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - MAX ( + 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL ( + 29 ) - + COUNT( * ) + - + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL ( + 29 ) - + COUNT ( * ) + - + COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4902
SELECT - - CAST( + - COUNT( DISTINCT - - 15 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4902
SELECT - - CAST ( + - COUNT ( DISTINCT - - 15 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4903
SELECT ALL 32, - COUNT( * ) AS col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-4903
SELECT ALL 32, - COUNT ( * ) AS col1
----
32
-1

query I rowsort
SELECT ALL ( + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT ALL + COUNT( ALL - 11 ) AS col2, - 50
----
1
-50

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL + COUNT ( ALL - 11 ) AS col2, - 50
----
1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - 66 - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4906
SELECT - 66 - - COUNT ( * )
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-4907
SELECT ALL + ( - + 93 ) AS col2, - 59 DIV + 65 AS col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-4907
SELECT ALL + ( - + 93 ) AS col2, - 59 / + 65 AS col2
----
-93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + COUNT ( * ) * + 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL SUM( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL SUM ( ALL 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL - SUM( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - SUM ( - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + 80 * - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + 80 * - + COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT CAST( NULL AS SIGNED ) + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT CAST ( NULL AS INTEGER ) + - 5 AS col0
----
NULL

query I rowsort
SELECT 46 * - - 2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COUNT ( * ) * 64
----
64

query I rowsort
SELECT 40 + + 1 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT ALL + 59 DIV - - 14 col2
----
4

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + 59 / - - 14 col2
----
4

query I rowsort
SELECT 14 * - 37
----
-518

query I rowsort
SELECT - 43 + + + 89
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - CASE + 27 WHEN + 94 / - 79 - - COUNT( * ) THEN + - 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - CASE + 27 WHEN + 94 / - 79 - - COUNT ( * ) THEN + - 91 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( - 7 )
----
-7

query I rowsort
SELECT ALL 48 * + 31
----
1488

query I rowsort
SELECT ALL + + 14 AS col2
----
14

query I rowsort
SELECT ALL + 54 * + 92 AS col1
----
4968

query I rowsort
SELECT - 91 + - 77
----
-168

query I rowsort
SELECT - 67 + - 30 AS col1
----
-97

query I rowsort
SELECT - 79 * 84
----
-6636

query I rowsort
SELECT ALL ( - - 10 ) col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT COUNT( * ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - 6 + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - 6 + COUNT ( * ) col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT - COUNT( * ) AS col2, - 87
----
-1
-87

skipif mysql # not compatible
query II rowsort label-4931
SELECT - COUNT ( * ) AS col2, - 87
----
-1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL - COUNT( * ) * - - 66
----
-66

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - COUNT ( * ) * - - 66
----
-66

query I rowsort
SELECT - + ( - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT COUNT( * ), + 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-4934
SELECT COUNT ( * ), + 81 AS col1
----
1
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT MAX( ALL 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4936
SELECT MAX ( ALL 87 ) AS col0
----
87

query I rowsort
SELECT ALL ( - 62 )
----
-62

query I rowsort
SELECT DISTINCT 71 col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT + CAST( ( + ( COUNT( * ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4939
SELECT + CAST ( ( + ( COUNT ( * ) ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT 80 - 75 DIV - + 27 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4940
SELECT 80 - 75 / - + 27 AS col1
----
82

query I rowsort
SELECT - - 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + - COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - MAX( ALL + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4943
SELECT - MAX ( ALL + 92 )
----
-92

query I rowsort
SELECT ALL 21 * 18
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT COUNT( ALL 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4945
SELECT COUNT ( ALL 90 )
----
1

query I rowsort
SELECT - - ( 35 ) + 32
----
67

query I rowsort
SELECT - 42 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + SUM( ALL - - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4948
SELECT + SUM ( ALL - - 62 ) AS col0
----
62

query I rowsort
SELECT - + ( + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + MAX( ( + 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4950
SELECT + MAX ( ( + 68 ) ) AS col0
----
68

query I rowsort
SELECT DISTINCT + 7 col0
----
7

query I rowsort
SELECT + 39 * + 27
----
1053

query I rowsort
SELECT ALL 15 * 58 AS col0
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT COUNT( * ) + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4954
SELECT COUNT ( * ) + 33 AS col1
----
34

query I rowsort
SELECT + - 9 col2
----
-9

query I rowsort
SELECT - 74 * + 56 AS col0
----
-4144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT + + COUNT( * ) DIV + - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + + COUNT ( * ) / + - 4 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT - 73 DIV - + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4958
SELECT - 73 / - + 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - COUNT( ALL - - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4959
SELECT - COUNT ( ALL - - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT 21 + COUNT( * ) + 39
----
61

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 21 + COUNT ( * ) + 39
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - 86 * 2 - - COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - 86 * 2 - - COUNT ( * )
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4962
SELECT + 48 + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT - - SUM( - - 29 ) - - 46
----
75

skipif mysql # not compatible
query I rowsort label-4963
SELECT - - SUM ( - - 29 ) - - 46
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4964
SELECT DISTINCT 0, - CAST( - + 82 AS SIGNED ) AS col1
----
0
82

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT 0, - CAST ( - + 82 AS INTEGER ) AS col1
----
0
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - ( - COUNT( * ) ) + - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - ( - COUNT ( * ) ) + - 96 AS col0
----
-95

query I rowsort
SELECT ALL ( + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT MAX( + - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT MAX ( + - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL ( NULLIF ( + - 24, - + COUNT( * ) ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL ( NULLIF ( + - 24, - + COUNT ( * ) ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL - + COUNT( * ) * - NULLIF ( 27, + - COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - + COUNT ( * ) * - NULLIF ( 27, + - COUNT ( * ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT - 65 * + + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - 65 * + + COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT COUNT( 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4971
SELECT COUNT ( 21 )
----
1

query I rowsort
SELECT 44 * + + 32 AS col2
----
1408

query I rowsort
SELECT ALL - 69 * - + 99 AS col2
----
6831

query I rowsort
SELECT ALL - + ( + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT 78 + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4975
SELECT 78 + COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - 13 + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 13 + - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - MAX( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-4977
SELECT - MAX ( + 48 )
----
-48

query I rowsort
SELECT ALL 42 + - ( + - 66 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + SUM( DISTINCT 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4979
SELECT + SUM ( DISTINCT 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL - 51 - + + ( + CAST( NULL AS SIGNED ) ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - 51 - + + ( + CAST ( NULL AS INTEGER ) ) * 64
----
NULL

query I rowsort
SELECT + 75 * - 99
----
-7425

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

skipif mysql # not compatible
query I rowsort label-4982
SELECT - COUNT ( * ) / - - 42
----
0

query I rowsort
SELECT ALL - 49 * + ( + 17 ) AS col2
----
-833

query II rowsort
SELECT DISTINCT + 41 AS col1, 66 AS col1
----
41
66

query I rowsort
SELECT DISTINCT + ( - 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT DISTINCT + 66 AS col2, + COUNT( * ) AS col0
----
66
1

skipif mysql # not compatible
query II rowsort label-4987
SELECT DISTINCT + 66 AS col2, + COUNT ( * ) AS col0
----
66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + + 78 + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4989
SELECT + + 78 + + COUNT ( * )
----
79

query I rowsort
SELECT ALL - 39 - + 10 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT - + 33 DIV + 17
----
-1

skipif mysql # not compatible
query I rowsort label-4991
SELECT - + 33 / + 17
----
-1

query I rowsort
SELECT 49 * + - 33
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT 72 DIV MAX( 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT 72 / MAX ( 91 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT - 58 + + COUNT( DISTINCT 77 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - 58 + + COUNT ( DISTINCT 77 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT ALL - ( + 86 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL - ( + 86 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL + MIN( ALL - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + MIN ( ALL - - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT + COUNT( * ) * 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + COUNT ( * ) * 9 col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL + NULLIF ( 50, - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
50

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + NULLIF ( 50, - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
50

query I rowsort
SELECT - 51 * + - 30 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + MAX( DISTINCT ( - - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-5000
SELECT + MAX ( DISTINCT ( - - 76 ) )
----
76

query I rowsort
SELECT DISTINCT + + 4 AS col2
----
4

query I rowsort
SELECT ALL ( + - 91 ) AS col1
----
-91

query I rowsort
SELECT ALL 38 + + 38 + - 22
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT - CAST( - 62 AS SIGNED ) col1
----
62

skipif mysql # not compatible
query I rowsort label-5004
SELECT - CAST ( - 62 AS INTEGER ) col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT ALL - 38 DIV + 4 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 38 / + 4 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL 73 * + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 73 * + + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT + COUNT( * ) AS col1, - MIN( + - 7 ) - - 29 col2
----
1
36

skipif mysql # not compatible
query II rowsort label-5008
SELECT + COUNT ( * ) AS col1, - MIN ( + - 7 ) - - 29 col2
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL 90 * COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL 90 * COUNT ( * ) AS col1
----
90

query I rowsort
SELECT ALL 54 + 70
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT DISTINCT + 42 DIV + - 11 col1
----
-3

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT + 42 / + - 11 col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT ALL COUNT( * ) col1, + 34 * + COUNT( * )
----
1
34

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL COUNT ( * ) col1, + 34 * + COUNT ( * )
----
1
34

query I rowsort
SELECT DISTINCT ( 44 ) AS col1
----
44

query I rowsort
SELECT ALL ( + 15 )
----
15

query I rowsort
SELECT DISTINCT - 43 + ( 87 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT MIN( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5016
SELECT MIN ( - 64 )
----
-64

query I rowsort
SELECT DISTINCT - + 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + COUNT( * ) + + - MAX( ALL + 31 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5018
SELECT + COUNT ( * ) + + - MAX ( ALL + 31 ) AS col2
----
-30

query I rowsort
SELECT ALL - + 93 AS col2
----
-93

query I rowsort
SELECT ALL - ( 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT COUNT( * ) AS col0, + ( - COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-5021
SELECT COUNT ( * ) AS col0, + ( - COUNT ( * ) )
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL 46 * - 23 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL 46 * - 23 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 84 AS col0, + 85
----
84
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT COUNT( + ( + 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5024
SELECT COUNT ( + ( + 95 ) )
----
1

query I rowsort
SELECT ALL - 66 - + 1 AS col1
----
-67

query II rowsort
SELECT - + 76, 14 col1
----
-76
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT ( - - MAX( + 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT ( - - MAX ( + 24 ) ) AS col2
----
24

query II rowsort
SELECT ALL + ( 40 ) AS col2, 92
----
40
92

query I rowsort
SELECT + 31 + - + 58
----
-27

query I rowsort
SELECT + 58 * - + 39 AS col0
----
-2262

query I rowsort
SELECT + - 26 * - 98 * ( + 79 )
----
201292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT CAST( - + CAST( 38 AS SIGNED ) AS SIGNED ) * + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5032
SELECT CAST ( - + CAST ( 38 AS INTEGER ) AS INTEGER ) * + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT - MIN( - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - MIN ( - 19 )
----
19

query I rowsort
SELECT - ( - + 99 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL + CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + CAST ( 75 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + 9 - + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + 9 - + - COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) * - 40
----
NULL

query I rowsort
SELECT DISTINCT 78 * - + 24 AS col1
----
-1872

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL - 3 DIV 5 col0
----
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - 3 / 5 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + 59 + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 59 + + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT ALL - 44 * - + 65 + 18 * + 10
----
3040

query I rowsort
SELECT - 19 + 25 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT DISTINCT + COUNT( * ) col2, 44 col2
----
1
44

skipif mysql # not compatible
query II rowsort label-5043
SELECT DISTINCT + COUNT ( * ) col2, 44 col2
----
1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL - 4 * - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - 4 * - COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + COUNT( ALL + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( ALL + + 28 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT DISTINCT COUNT( * ) AS col2, - 8 AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-5046
SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL COUNT( * ) * - 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL COUNT ( * ) * - 58 AS col2
----
-58

query I rowsort
SELECT DISTINCT 43 + + + 98
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT CAST( NULL AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT CAST ( NULL AS INTEGER ) + + 70
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 80 ) AS col1
----
80

query II rowsort
SELECT 92 * 31 AS col1, - 62 AS col1
----
2852
-62

query I rowsort
SELECT DISTINCT + - ( - 97 ) * - 83
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL MIN( ALL + 33 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL MIN ( ALL + 33 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + COUNT( * ) * + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + COUNT ( * ) * + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + + SUM( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + + SUM ( 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT + + COALESCE ( COUNT( * ), - - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT + + COALESCE ( COUNT ( * ), - - 85 )
----
1

query I rowsort
SELECT - 96 + + + 56 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL + ( ( + 32 ) ) - + + MIN( ALL - 28 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + ( ( + 32 ) ) - + + MIN ( ALL - 28 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 81 - + 51 col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - 83 * - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5060
SELECT - 83 * - + COUNT ( * )
----
83

query I rowsort
SELECT 85 + 40
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT 3 DIV 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT 3 / 11 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT 0 * - MAX( ALL 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT 0 * - MAX ( ALL 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT 44 * + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5064
SELECT 44 * + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT DISTINCT + 7 + 20
----
27

query I rowsort
SELECT 31 + - 54 * 43 AS col1
----
-2291

query I rowsort
SELECT ALL - + 60 * 7 AS col1
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL - - 68 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - - 68 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 44 + + - 44
----
0

query I rowsort
SELECT ALL ( 55 ) col1
----
55

query I rowsort
SELECT ALL 68 col0
----
68

query I rowsort
SELECT - + 42 + + - 82 AS col0
----
-124

query I rowsort
SELECT DISTINCT + + 96 AS col0
----
96

query I rowsort
SELECT ALL + 59 * - 74
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + SUM( DISTINCT + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5075
SELECT + SUM ( DISTINCT + - 49 )
----
-49

query I rowsort
SELECT - NULLIF ( + 22, + 60 ) col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + COUNT( * ) * - - 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + COUNT ( * ) * - - 69 AS col2
----
69

query I rowsort
SELECT ALL ( + + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL - - CAST( 29 AS SIGNED ) * + - CAST( NULL AS SIGNED ) / 47 + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL - - CAST ( 29 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / 47 + 53 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 54 ) AS col0
----
-54

query I rowsort
SELECT ALL - 34 * + 63
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + COUNT( - - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-5082
SELECT + COUNT ( - - 67 )
----
1

query I rowsort
SELECT ALL + 55 * + 76
----
4180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT ALL ( - - CAST( + COUNT( * ) AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT SUM( + - 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT SUM ( + - 72 ) AS col1
----
-72

query I rowsort
SELECT - 32 col0
----
-32

query I rowsort
SELECT 0 + + 34
----
34

query I rowsort
SELECT - 65 * + 57
----
-3705

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT ALL + 4 AS col2, - COUNT( * )
----
4
-1

skipif mysql # not compatible
query II rowsort label-5089
SELECT ALL + 4 AS col2, - COUNT ( * )
----
4
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + SUM( - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-5090
SELECT + SUM ( - + 75 )
----
-75

query I rowsort
SELECT ALL 40 + + + 28 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT - CAST( + 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-5092
SELECT - CAST ( + 60 AS INTEGER )
----
-60

query II rowsort
SELECT ALL ( + + 22 ), ( 62 ) AS col0
----
22
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL NULLIF ( - 66, + ( CAST( NULL AS SIGNED ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL NULLIF ( - 66, + ( CAST ( NULL AS INTEGER ) ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT DISTINCT CAST( + SUM( 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT CAST ( + SUM ( 42 ) AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT - CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT - CAST ( NULL AS INTEGER ) * - 88
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5097
SELECT - CAST( NULL AS DECIMAL ) * + CAST( - + 98 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT - CAST ( NULL AS REAL ) * + CAST ( - + 98 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ( - 47 ) - + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5098
SELECT ( - 47 ) - + + COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT COUNT( + 73 ) + - 49 col1, - ( + ( 60 ) ) AS col0
----
-48
-60

skipif mysql # not compatible
query II rowsort label-5099
SELECT COUNT ( + 73 ) + - 49 col1, - ( + ( 60 ) ) AS col0
----
-48
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT 23 - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5100
SELECT 23 - COUNT ( * )
----
22

query I rowsort
SELECT 49 * + 37 * - 98 AS col0
----
-177674

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT - + COUNT( ALL 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - + COUNT ( ALL 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - + 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - + 27 + + COUNT ( * )
----
-26

query I rowsort
SELECT ALL - + 13 AS col2
----
-13

query I rowsort
SELECT DISTINCT 40 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL COUNT( * ) + ( + + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL COUNT ( * ) + ( + + COUNT ( * ) )
----
2

query I rowsort
SELECT ALL - - 18 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT - 1 DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 1 / + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 56 AS col1
----
56

query I rowsort
SELECT ALL + - ( - + 75 ) AS col0
----
75

query I rowsort
SELECT DISTINCT + + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT ALL + COUNT( * ) col1, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL + COUNT ( * ) col1, 54
----
1
54

query I rowsort
SELECT ALL ( 16 ) AS col1
----
16

query I rowsort
SELECT - 60 * + 3
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT + + CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5115
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ALL + 63 * + + 17
----
1071

query II rowsort
SELECT ALL - 32 AS col0, - 88 AS col2
----
-32
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / - 33
----
NULL

query I rowsort
SELECT + 3 * 27
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT + + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-5120
SELECT + + CAST ( + + 2 AS INTEGER )
----
2

query II rowsort
SELECT + 56, + 10 AS col1
----
56
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5122
SELECT + COUNT( * ) DIV + - 64
----
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT + COUNT ( * ) / + - 64
----
0

query I rowsort
SELECT + ( - 72 ) col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ALL - 29 DIV + + 93 * 70
----
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - 29 / + + 93 * 70
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT + MAX( ALL - 11 ) AS col2, - 35 * + ( - 54 ) * ( - COUNT( * ) )
----
-11
-1890

skipif mysql # not compatible
query II rowsort label-5125
SELECT + MAX ( ALL - 11 ) AS col2, - 35 * + ( - 54 ) * ( - COUNT ( * ) )
----
-11
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + MAX( + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5126
SELECT + MAX ( + - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + + SUM( - 82 ) + + ( - - 97 )
----
15

skipif mysql # not compatible
query I rowsort label-5127
SELECT + + SUM ( - 82 ) + + ( - - 97 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL + MAX( - - 92 ) + - - 92 AS col1
----
184

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL + MAX ( - - 92 ) + - - 92 AS col1
----
184

query I rowsort
SELECT ALL - ( - - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 11 AS col0, + 47 AS col2
----
11
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + 8 + COUNT( - + 64 ) * + + 43
----
51

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 8 + COUNT ( - + 64 ) * + + 43
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT - COUNT( DISTINCT - 18 ) + 46
----
45

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - COUNT ( DISTINCT - 18 ) + 46
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL COUNT( * ) - + - MIN( ALL + 28 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL COUNT ( * ) - + - MIN ( ALL + 28 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - MIN( ALL + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - MIN ( ALL + 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5136
SELECT 8 AS col0, 87 DIV + 47 + COUNT( * )
----
8
2

skipif mysql # not compatible
query II rowsort label-5136
SELECT 8 AS col0, 87 / + 47 + COUNT ( * )
----
8
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5137
SELECT - ( + + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT - ( + + CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT - - ( + 79 )
----
79

query I rowsort
SELECT ALL + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL 88 * + + COUNT( * ) * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL 88 * + + COUNT ( * ) * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT + 85 DIV - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5141
SELECT + 85 / - + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL - COUNT( 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - COUNT ( 84 )
----
-1

query I rowsort
SELECT - ( + - 99 )
----
99

query I rowsort
SELECT - 65 + - 6 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT CAST( - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5145
SELECT CAST ( - 59 AS INTEGER )
----
-59

query I rowsort
SELECT ALL + ( - 21 ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT ALL - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + - 58 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT ALL COUNT( * ), 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-5149
SELECT ALL COUNT ( * ), 90 AS col0
----
1
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT + + COUNT( DISTINCT + + 99 ), - MIN( - 39 ) AS col2
----
1
39

skipif mysql # not compatible
query II rowsort label-5150
SELECT + + COUNT ( DISTINCT + + 99 ), - MIN ( - 39 ) AS col2
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL 29 + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL 29 + - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - COUNT( - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5152
SELECT - COUNT ( - 25 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 39 col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT DISTINCT - ( - NULLIF ( + 50, + + CAST( NULL AS SIGNED ) ) ) - - COUNT( * ) - + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - ( - NULLIF ( + 50, + + CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) - + + COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - SUM( + + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5155
SELECT - SUM ( + + 65 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT - + 0, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-5156
SELECT - + 0, + COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT + 62 * - NULLIF ( + 51, 90 * - ( - + COUNT( * ) ) * ( 77 ) ) col1
----
-3162

skipif mysql # not compatible
query I rowsort label-5157
SELECT + 62 * - NULLIF ( + 51, 90 * - ( - + COUNT ( * ) ) * ( 77 ) ) col1
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT COUNT( * ) * + 79 - 77 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT COUNT ( * ) * + 79 - 77 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT ( + SUM( DISTINCT - 64 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT ( + SUM ( DISTINCT - 64 ) ) AS col0
----
-64

query I rowsort
SELECT DISTINCT - - 19 * + 50
----
950

query I rowsort
SELECT ALL + 30 + - - 45 AS col1
----
75

query I rowsort
SELECT - 57 * 79 + 57 * 36
----
-2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT CAST( COUNT( * ) AS SIGNED ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5163
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT CAST( COUNT( * ) AS SIGNED ) * 86 col0
----
86

skipif mysql # not compatible
query I rowsort label-5164
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 86 col0
----
86

query I rowsort
SELECT ALL + 75 + 95 col1
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5166
SELECT COUNT( * ) AS col1, + 50 DIV + SUM( + 42 )
----
1
1

skipif mysql # not compatible
query II rowsort label-5166
SELECT COUNT ( * ) AS col1, + 50 / + SUM ( + 42 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + COUNT( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-5167
SELECT + COUNT ( + 49 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5168
SELECT + + CAST( NULL AS SIGNED ) - - 1 AS col2, 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5168
SELECT + + CAST ( NULL AS INTEGER ) - - 1 AS col2, 41 AS col0
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + 3 - - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + 3 - - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + 20 * + MAX( + 63 ) AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 20 * + MAX ( + 63 ) AS col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT MIN( ALL - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5171
SELECT MIN ( ALL - - 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL + ( - SUM( ( + 2 ) ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + ( - SUM ( ( + 2 ) ) ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT COALESCE ( + - SUM( - - 78 ), - + CAST( NULL AS SIGNED ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5173
SELECT COALESCE ( + - SUM ( - - 78 ), - + CAST ( NULL AS INTEGER ) ) AS col1
----
-78

query I rowsort
SELECT + 6 + + + 67 col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT 47 AS col0, - COUNT( * )
----
47
-1

skipif mysql # not compatible
query II rowsort label-5175
SELECT 47 AS col0, - COUNT ( * )
----
47
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5176
SELECT + 18 + + 9 DIV - - 17
----
18

skipif mysql # not compatible
query I rowsort label-5176
SELECT + 18 + + 9 / - - 17
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5177
SELECT ALL ( - - 6 ) AS col1, CAST( NULL AS DECIMAL ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5177
SELECT ALL ( - - 6 ) AS col1, CAST ( NULL AS REAL ) AS col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + ( COUNT( ALL - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5178
SELECT + ( COUNT ( ALL - 51 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT - CAST( COUNT( * ) AS SIGNED ) * 10 + + + 67 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 10 + + + 67 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL - SUM( DISTINCT - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL - SUM ( DISTINCT - 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL CAST( NULL AS SIGNED ) * - ( + + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + + 69 )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 3 )
----
-3

query I rowsort
SELECT ALL - - 37 col2
----
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5184
SELECT DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT + 49 * COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 49 * COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 46 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT MAX( ALL + 65 ) + - - 77 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-5187
SELECT MAX ( ALL + 65 ) + - - 77 AS col1
----
142

query I rowsort
SELECT DISTINCT 69 * - + 96 AS col1
----
-6624

query I rowsort
SELECT - - 0 + + - 93 + + 32 AS col2
----
-61

query I rowsort
SELECT ALL + - ( - + 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT + 77 col0, COUNT( * ) AS col1
----
77
1

skipif mysql # not compatible
query II rowsort label-5191
SELECT + 77 col0, COUNT ( * ) AS col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL - 68 + - - COUNT( * ) + - COUNT( * ) * - 33 + + + 32
----
-2

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - 68 + - - COUNT ( * ) + - COUNT ( * ) * - 33 + + + 32
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT - COUNT( * ) col0, - 20
----
-1
-20

skipif mysql # not compatible
query II rowsort label-5193
SELECT - COUNT ( * ) col0, - 20
----
-1
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ALL CAST( + - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL CAST ( + - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL + CAST( 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + CAST ( 65 AS INTEGER )
----
65

query I rowsort
SELECT + 89 + + - 28 * - - 70 AS col1
----
-1871

query I rowsort
SELECT DISTINCT - 24 * 10
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT MIN( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5198
SELECT MIN ( 95 ) AS col2
----
95

query II rowsort
SELECT + 90, 84 col1
----
90
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT 95 - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5200
SELECT 95 - - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT 16 - + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5201
SELECT 16 - + COUNT ( * ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT 47 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT 47 / + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + - COUNT( * ) * SUM( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + - COUNT ( * ) * SUM ( DISTINCT - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + COUNT( * ) * - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + COUNT ( * ) * - 2 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5205
SELECT + COUNT( ALL - ( + + 12 ) ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT + COUNT ( ALL - ( + + 12 ) ) / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL CAST ( - 81 AS INTEGER )
----
-81

query I rowsort
SELECT 1 * + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - 57 * - - COUNT( * ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-5208
SELECT - 57 * - - COUNT ( * ) col1
----
-57

query I rowsort
SELECT 71 + - 94
----
-23

query I rowsort
SELECT 61 + 15 + 28
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - + ( - - NULLIF ( - - COUNT( * ), + - 15 * - 34 * 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5211
SELECT - + ( - - NULLIF ( - - COUNT ( * ), + - 15 * - 34 * 92 ) )
----
-1

query I rowsort
SELECT - 71 - + 17 + + 45 + + + 20 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT + MAX( ALL + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + MAX ( ALL + 8 ) AS col1
----
8

query I rowsort
SELECT ALL + ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - MIN( DISTINCT - ( 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5215
SELECT - MIN ( DISTINCT - ( 47 ) ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL CAST( NULL AS SIGNED ) / - - 16 - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL CAST ( NULL AS INTEGER ) / - - 16 - + 42
----
NULL

query I rowsort
SELECT DISTINCT + + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + 56 * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT 56 * + + ( + - COUNT( * ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5219
SELECT 56 * + + ( + - COUNT ( * ) ) AS col2
----
-56

query I rowsort
SELECT DISTINCT - 62 + + - 68 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT - + COUNT( * ) + + 85
----
84

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - + COUNT ( * ) + + 85
----
84

query I rowsort
SELECT ALL - 29 + + + ( - ( - 22 ) ) AS col2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5223
SELECT CAST( NULL AS DECIMAL ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT CAST ( NULL AS REAL ) + - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT + - 31 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + - 31 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + - 83, - 10 - 14 AS col1
----
-83
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - SUM( DISTINCT 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - SUM ( DISTINCT 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT DISTINCT + 14, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5227
SELECT DISTINCT + 14, COUNT ( * ) AS col2
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL COUNT( DISTINCT ( - + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL COUNT ( DISTINCT ( - + 37 ) )
----
1

query I rowsort
SELECT DISTINCT 36 * - NULLIF ( + 34, + 73 )
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( DISTINCT - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( DISTINCT - - 19 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL + + COUNT( + + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + + COUNT ( + + 2 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT - + 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT - + 12 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - 59 + + 88 * COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 59 + + 88 * COUNT ( * ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-5234
SELECT + COUNT ( * ) * - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - COUNT( * ) + - 88 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5235
SELECT - COUNT ( * ) + - 88 AS col1
----
-89

query II rowsort
SELECT - 5 col2, 67 AS col2
----
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL COUNT( * ) + + + 72
----
73

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL COUNT ( * ) + + + 72
----
73

query I rowsort
SELECT 89 + 40
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ( 69 ) + - COUNT( - + 45 ) + + COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-5239
SELECT ( 69 ) + - COUNT ( - + 45 ) + + COUNT ( * ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 63 + - + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5240
SELECT 63 + - + COUNT ( * ) AS col2
----
62

query I rowsort
SELECT + 84 + ( 22 ) * 60 + + 7
----
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT MAX( ALL + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5242
SELECT MAX ( ALL + + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT NULLIF ( + COUNT( * ), + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT - NULLIF ( - + 35, COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5244
SELECT - NULLIF ( - + 35, COUNT ( * ) ) AS col0
----
35

query I rowsort
SELECT DISTINCT 77 - - - 76
----
1

query I rowsort
SELECT ALL - + 82 * - - 75 AS col2
----
-6150

query I rowsort
SELECT + ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL - 25 * + 69
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT + COUNT( * ) * - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + COUNT ( * ) * - 30 AS col0
----
-30

query I rowsort
SELECT DISTINCT ( 0 ) AS col2
----
0

query I rowsort
SELECT + 75 * 29 AS col2
----
2175

query I rowsort
SELECT DISTINCT ( + 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - + COUNT( * ) + + ( + 74 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5253
SELECT - + COUNT ( * ) + + ( + 74 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT MIN( + - 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT MIN ( + - 31 ) col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT + - 29 - 60 AS col2, MAX( DISTINCT 0 ) AS col0
----
-89
0

skipif mysql # not compatible
query II rowsort label-5255
SELECT + - 29 - 60 AS col2, MAX ( DISTINCT 0 ) AS col0
----
-89
0

query I rowsort
SELECT ALL - ( - 92 )
----
92

query I rowsort
SELECT ALL 59 * - 95
----
-5605

query I rowsort
SELECT - - 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL + - 43 * - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + - 43 * - COUNT ( * ) AS col0
----
43

query I rowsort
SELECT DISTINCT + 23 * ( - 33 ) * 54 AS col2
----
-40986

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL - MIN( - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - MIN ( - 31 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5262
SELECT ALL - COUNT( * ) * + COUNT( * ) * - CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - CAST ( - 23 AS INTEGER )
----
-23

query I rowsort
SELECT + 74 + + ( + + ( - - 11 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - 88 + + + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 88 + + + COUNT ( * ) AS col1
----
-87

query I rowsort
SELECT DISTINCT ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL SUM( DISTINCT + - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL SUM ( DISTINCT + - 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT + - COUNT( * ) + 16 + - CAST( NULL AS SIGNED ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT + - COUNT ( * ) + 16 + - CAST ( NULL AS INTEGER ) * - 97 AS col0
----
NULL

query I rowsort
SELECT + 18 * - 5
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL + 57 DIV 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + 57 / 90 col1
----
0

query I rowsort
SELECT - 47 * + - 57 AS col0
----
2679

query I rowsort
SELECT DISTINCT + + 95 - 88 AS col0
----
7

query I rowsort
SELECT NULLIF ( + 4, 33 ) + ( - - 46 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT DISTINCT + - 47 DIV + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + - 47 / + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT COUNT( * ) * + 30 * - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5274
SELECT COUNT ( * ) * + 30 * - COUNT ( * ) AS col1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5275
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) AS col2, + 18 * - 88 - 89
----
NULL
-1673

skipif mysql # not compatible
query II rowsort label-5275
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) AS col2, + 18 * - 88 - 89
----
NULL
-1673

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL + 65 + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + 65 + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT - MIN( - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5277
SELECT - MIN ( - + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5278
SELECT - MAX( DISTINCT + CAST( - 45 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-5278
SELECT - MAX ( DISTINCT + CAST ( - 45 AS INTEGER ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 95 - 31 AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT 36 DIV ( 86 ) + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5281
SELECT 36 / ( 86 ) + 76 AS col1
----
76

query I rowsort
SELECT ALL + ( - ( + 38 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + COUNT( * ) * + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5283
SELECT + COUNT ( * ) * + 17 AS col2
----
17

query I rowsort
SELECT DISTINCT 17 * - 97 col1
----
-1649

query I rowsort
SELECT ALL + + 1 * + 68 + 95
----
163

query I rowsort
SELECT + 82 * + 83
----
6806

query I rowsort
SELECT DISTINCT - - 86 * + + 37 * 46
----
146372

query I rowsort
SELECT ALL 89 + - - 76 col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT COUNT ( * ) * + 34
----
34

query I rowsort
SELECT ALL - 73 * - 18
----
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT 38 + + - COUNT( * ) * - + 48 col0
----
86

skipif mysql # not compatible
query I rowsort label-5291
SELECT 38 + + - COUNT ( * ) * - + 48 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - COUNT( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - COUNT ( - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT 74 + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 74 + - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT ALL - 88 + 67 + - 39 + + - 59
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT + COUNT( * ) * 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT + COUNT ( * ) * 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + 5 * + 93 + MAX( + 96 )
----
561

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + 5 * + 93 + MAX ( + 96 )
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT DISTINCT CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT CAST ( + 16 AS INTEGER )
----
16

query I rowsort
SELECT ALL 17 * + 76 AS col0
----
1292

query I rowsort
SELECT ALL + ( 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT - 46, + COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT - 46, + COUNT ( * ) col2
----
-46
1

query I rowsort
SELECT - 0 * + 97
----
0

query I rowsort
SELECT DISTINCT + ( + ( - 45 ) ) AS col1
----
-45

query II rowsort
SELECT DISTINCT - 94, + 24 AS col2
----
-94
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT ALL COUNT( * ) + COUNT( * ) AS col1, SUM( DISTINCT + 11 ) col2
----
2
11

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1, SUM ( DISTINCT + 11 ) col2
----
2
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT COUNT( * ) * + + ( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5305
SELECT COUNT ( * ) * + + ( 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT MIN( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT MIN ( DISTINCT + 43 )
----
43

query I rowsort
SELECT 50 * - 59 AS col0
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - COUNT( * ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5308
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + COUNT( ALL + 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5309
SELECT + COUNT ( ALL + 12 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT + COUNT( * ) col1, - ( + - 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-5310
SELECT + COUNT ( * ) col1, - ( + - 22 )
----
1
22

query I rowsort
SELECT + ( + 57 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 85 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT SUM( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT SUM ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL MIN ( + 14 )
----
14

query I rowsort
SELECT ALL - 32 + 97
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + 82 + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + 82 + - COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT - CAST( NULL AS SIGNED ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT - CAST ( NULL AS INTEGER ) / + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT + COUNT( DISTINCT - + ( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT + COUNT ( DISTINCT - + ( CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT DISTINCT + 10 * + + 13
----
130

query I rowsort
SELECT + - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL - MAX( DISTINCT + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - MAX ( DISTINCT + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL 39 * - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL 39 * - COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT ALL - + 57 col2
----
-57

query I rowsort
SELECT ALL 84 + + - 3
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5326
SELECT DISTINCT MIN( + CAST( - 62 AS SIGNED ) ), - 7 AS col0
----
-62
-7

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT MIN ( + CAST ( - 62 AS INTEGER ) ), - 7 AS col0
----
-62
-7

query I rowsort
SELECT - ( + + 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5328
SELECT + 49 DIV + 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5328
SELECT + 49 / + 16 AS col1
----
3

query I rowsort
SELECT + + ( + + 60 ) AS col0
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5330
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - 0 + - 20 + + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5331
SELECT - 0 + - 20 + + COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT ALL NULLIF ( - 64, - 79 + - - 84 )
----
-64

query I rowsort
SELECT DISTINCT ( - - 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT DISTINCT + 51 DIV + + SUM( ALL - - 83 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + 51 / + + SUM ( ALL - - 83 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + 40 - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5335
SELECT + 40 - + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT COUNT( * ) col2, 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-5336
SELECT COUNT ( * ) col2, 25 AS col1
----
1
25

query I rowsort
SELECT DISTINCT + 26 * - 67
----
-1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + - 33 ) * - COUNT( * ) / + SUM( - + ( + - 12 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + - 33 ) * - COUNT ( * ) / + SUM ( - + ( + - 12 ) )
----
NULL

query I rowsort
SELECT 8 * - - 22 AS col2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT 90 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT 90 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT 94 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5341
SELECT 94 + COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT + - 32 * - 11 + + 2 AS col1
----
354

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5344
SELECT ALL - CAST( NULL AS DECIMAL ) / + ( ( - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - CAST ( NULL AS REAL ) / + ( ( - 86 ) )
----
NULL

query I rowsort
SELECT + - ( + 74 ) - ( + - 12 )
----
-62

query I rowsort
SELECT ALL + ( - 15 ) col1
----
-15

query I rowsort
SELECT NULLIF ( + - 27, 16 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL CAST( 7 AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL CAST ( 7 AS INTEGER ) AS col1
----
7

query I rowsort
SELECT DISTINCT + ( - 29 ) * - 34 AS col1
----
986

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT + 80 DIV - 42 + + 30 col0
----
29

skipif mysql # not compatible
query I rowsort label-5350
SELECT + 80 / - 42 + + 30 col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT DISTINCT - COUNT( * ) DIV 55 + - + MAX( DISTINCT + + 43 ) + - 99 * - - 22
----
-2221

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - COUNT ( * ) / 55 + - + MAX ( DISTINCT + + 43 ) + - 99 * - - 22
----
-2221

query I rowsort
SELECT ALL 52 * - 60 AS col0
----
-3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT + CAST( COUNT( ALL + + ( - 95 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5353
SELECT + CAST ( COUNT ( ALL + + ( - 95 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT - COUNT( * ) - + 76 + - + 38 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT - COUNT ( * ) - + 76 + - + 38 AS col0
----
-115

query I rowsort
SELECT 65 * + - 58 AS col0
----
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT COUNT( * ) * - + SUM( - - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5356
SELECT COUNT ( * ) * - + SUM ( - - 49 )
----
-49

query II rowsort
SELECT 12, + 83 AS col1
----
12
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT 74 + - CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT 74 + - CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 4 + + 21
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT + 75 * COUNT( * ) * + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + 75 * COUNT ( * ) * + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT NULLIF ( - COUNT( - 64 ), + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5362
SELECT NULLIF ( - COUNT ( - 64 ), + 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT + 11 DIV - COUNT( * ) + 40 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 11 / - COUNT ( * ) + 40 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT - MAX( ALL + ( + 97 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5364
SELECT - MAX ( ALL + ( + 97 ) ) AS col0
----
-97

query I rowsort
SELECT ALL - 25 * - 49 - + - 5 AS col0
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - + MIN( ALL - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - + MIN ( ALL - 62 ) AS col1
----
62

query I rowsort
SELECT ALL 53 col0
----
53

query I rowsort
SELECT ALL ( - - 81 )
----
81

query I rowsort
SELECT ALL 81 + + - 29 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL 27 + + COUNT( * ) * 52
----
79

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 27 + + COUNT ( * ) * 52
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - SUM( + 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5371
SELECT - SUM ( + 53 ) AS col1
----
-53

query I rowsort
SELECT DISTINCT 53 * + 38 AS col0
----
2014

query I rowsort
SELECT ALL + + 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT + COUNT( ALL + - 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT + COUNT ( ALL + - 55 ) AS col0
----
1

query I rowsort
SELECT ALL - 44 + + - 13 AS col1
----
-57

query I rowsort
SELECT - 80 * - 11
----
880

query I rowsort
SELECT DISTINCT ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL 44 * + + COUNT( * ) * - + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL 44 * + + COUNT ( * ) * - + COUNT ( * ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT - COUNT( * ) AS col2, + COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5379
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + MIN( DISTINCT + NULLIF ( 6, 20 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5380
SELECT + MIN ( DISTINCT + NULLIF ( 6, 20 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT ALL + - 32, COUNT( * ) AS col1
----
-32
1

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL + - 32, COUNT ( * ) AS col1
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL + - COUNT( ALL + 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + - COUNT ( ALL + 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL SUM( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL SUM ( 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5384
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-5384
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1, - 20
----
NULL
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL CAST( - - 70 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL CAST ( - - 70 AS INTEGER ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT ALL - 87 DIV - - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - 87 / - - COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL MIN( ALL + 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL MIN ( ALL + 48 ) col2
----
48

query I rowsort
SELECT - + 24 + 42 AS col1
----
18

query I rowsort
SELECT 68 * - 39
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT + COUNT( - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-5390
SELECT + COUNT ( - 14 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5391
SELECT DISTINCT 97 AS col2, 98 DIV - 93
----
97
-1

skipif mysql # not compatible
query II rowsort label-5391
SELECT DISTINCT 97 AS col2, 98 / - 93
----
97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT - COUNT( * ) AS col0, 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-5392
SELECT - COUNT ( * ) AS col0, 70
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL - + 38 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - + 38 + - COUNT ( * )
----
-39

query I rowsort
SELECT DISTINCT - - 96 * 19
----
1824

query I rowsort
SELECT DISTINCT + 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT MAX( + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5396
SELECT MAX ( + 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT + CAST( 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-5397
SELECT + CAST ( 72 AS INTEGER )
----
72

query I rowsort
SELECT ALL + - 42
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT + COUNT( * ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT + COUNT ( * ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-5400
SELECT COUNT ( * ) + - 98
----
-97

query I rowsort
SELECT DISTINCT - 70 + 87
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT ALL 75 DIV 32 + + - 42 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL 75 / 32 + + - 42 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT - COUNT( * ) DIV - - 44 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-5403
SELECT - COUNT ( * ) / - - 44 - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - SUM( ALL - 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5404
SELECT - SUM ( ALL - 28 ) AS col0
----
28

query I rowsort
SELECT DISTINCT - 93 + + 12 + - 83 * - 78 AS col1
----
6393

query I rowsort
SELECT ALL + - 44 + + 72 AS col0
----
28

query II rowsort
SELECT ALL + 86 + 78 AS col0, + 54
----
164
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT ALL + CAST( - AVG ( 39 ) AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL + CAST ( - AVG ( 39 ) AS INTEGER ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL + + 80 * + CAST( NULL AS SIGNED ) * + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + + 80 * + CAST ( NULL AS INTEGER ) * + 46 col2
----
NULL

query II rowsort
SELECT 58, 5 AS col0
----
58
5

query I rowsort
SELECT 22 + + 92
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT - COUNT( * ) DIV + 52 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( * ) / + 52 - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT DISTINCT COUNT( * ) * - 40
----
-40

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT COUNT ( * ) * - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - MAX( 75 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-5415
SELECT - MAX ( 75 ) col0
----
-75

query II rowsort
SELECT + 61 AS col1, 23 col2
----
61
23

query I rowsort
SELECT + - 81 * - 22 AS col2
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL + SUM( + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + SUM ( + 11 ) AS col0
----
11

query I rowsort
SELECT ALL - 55 - + 15 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5420
SELECT + 21 + + COUNT ( * )
----
22

query I rowsort
SELECT - 91 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL - COUNT( * ) * + 2 * - - 31
----
-62

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - COUNT ( * ) * + 2 * - - 31
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - COUNT( ALL 99 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5423
SELECT - COUNT ( ALL 99 ) col0
----
-1

query I rowsort
SELECT ALL + - 89 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT - 80 * + COUNT( * ) + 17
----
-63

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT - 80 * + COUNT ( * ) + 17
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL - CAST( + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - CAST ( + 78 AS INTEGER )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( * ) + + 25
----
26

query I rowsort
SELECT 80 + 47 AS col2
----
127

query I rowsort
SELECT 93 * + - 24
----
-2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT CAST( - 80 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT CAST ( - 80 AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5432
SELECT - COUNT( * ) DIV - 70 - + 21 DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5432
SELECT - COUNT ( * ) / - 70 - + 21 / COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT COUNT( * ) AS col1, + ( + - 31 )
----
1
-31

skipif mysql # not compatible
query II rowsort label-5433
SELECT COUNT ( * ) AS col1, + ( + - 31 )
----
1
-31

query I rowsort
SELECT ALL ( + - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - - COUNT( * ) - + 88 * + - ( - COUNT( * ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5435
SELECT - - COUNT ( * ) - + 88 * + - ( - COUNT ( * ) ) AS col0
----
-87

query I rowsort
SELECT DISTINCT 26 * + 2 + - 73
----
-21

query I rowsort
SELECT 55 * - 58 AS col2
----
-3190

query I rowsort
SELECT 70 + - 1
----
69

query I rowsort
SELECT ALL 55 col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5440
SELECT ALL - 72 + + - ( - COUNT( * ) ), - 79 DIV - - 79 AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-5440
SELECT ALL - 72 + + - ( - COUNT ( * ) ), - 79 / - - 79 AS col0
----
-71
-1

query I rowsort
SELECT 39 * 69 col1
----
2691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( + 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( + 89 AS INTEGER ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT SUM( + ( + 16 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT SUM ( + ( + 16 ) ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT COUNT( ALL - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( ALL - - 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + COUNT( * ) * + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-5445
SELECT + COUNT ( * ) * + - 91
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5446
SELECT - COUNT( * ) * - COUNT( * ) DIV + - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT - COUNT ( * ) * - COUNT ( * ) / + - 6 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - MAX( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - MAX ( - 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5448
SELECT + COUNT( DISTINCT + 98 ) AS col0, CAST( NULL AS SIGNED ) + 5
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5448
SELECT + COUNT ( DISTINCT + 98 ) AS col0, CAST ( NULL AS INTEGER ) + 5
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - MAX( ALL - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - MAX ( ALL - 26 )
----
26

query II rowsort
SELECT - 61 col0, 52
----
-61
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT 85 + + 26 AS col0, COUNT( * ) * + 91
----
111
91

skipif mysql # not compatible
query II rowsort label-5451
SELECT 85 + + 26 AS col0, COUNT ( * ) * + 91
----
111
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - COUNT( * ) * + COUNT( ALL - 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - COUNT ( * ) * + COUNT ( ALL - 9 )
----
-1

query I rowsort
SELECT - 2 * - + 8 AS col0
----
16

query I rowsort
SELECT - 97 - - COALESCE ( + + 51, + 71 ) AS col0
----
-46

query I rowsort
SELECT DISTINCT ( + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT + + 32 DIV + SUM( - + 33 ) + 69
----
69

skipif mysql # not compatible
query I rowsort label-5456
SELECT + + 32 / + SUM ( - + 33 ) + 69
----
69

query I rowsort
SELECT DISTINCT + + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT + SUM( + - ( + 82 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + SUM ( + - ( + 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + MIN( DISTINCT - + ( - ( - + 4 ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + MIN ( DISTINCT - + ( - ( - + 4 ) ) ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT + ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + ( + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT + - 9 + - 27 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL MAX( + - ( 2 ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL MAX ( + - ( 2 ) ) col0
----
-2

query I rowsort
SELECT ( 73 ) AS col1
----
73

query II rowsort
SELECT + 38 AS col0, 78 * + + 41 col0
----
38
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT - SUM( ALL + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT - SUM ( ALL + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - COUNT( * ) * SUM( ALL - 94 ) * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5466
SELECT - COUNT ( * ) * SUM ( ALL - 94 ) * - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT - 32 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - 32 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 55 + + - 94
----
-149

query I rowsort
SELECT 80 * - 7 + + 14
----
-546

query I rowsort
SELECT 50 * - 22 AS col1
----
-1100

query I rowsort
SELECT 79 + 97 AS col1
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT ALL 93 DIV COUNT( DISTINCT 23 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL 93 / COUNT ( DISTINCT 23 ) AS col0
----
93

query I rowsort
SELECT 75 * - 71 AS col0
----
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL 51 * COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 51 * COUNT ( * ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL COUNT ( * ) + 91
----
92

query I rowsort
SELECT DISTINCT - + ( 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT - - MIN( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5477
SELECT - - MIN ( 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - 57 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 57 * COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT MIN( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT MIN ( - + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT MIN( + 28 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT MIN ( + 28 ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT + COUNT( * ) * + - NULLIF ( ( + 29 ), - COUNT( * ) ) + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + COUNT ( * ) * + - NULLIF ( ( + 29 ), - COUNT ( * ) ) + - COUNT ( * )
----
-30

query I rowsort
SELECT + 2 - + - 28 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + SUM( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + SUM ( ALL - 54 )
----
-54

query I rowsort
SELECT + 16 + 80
----
96

query I rowsort
SELECT ALL - 56 + - ( - + 87 )
----
31

query I rowsort
SELECT - 32 + - + 60 col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL + CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + CAST ( - 74 AS INTEGER )
----
-74

query I rowsort
SELECT DISTINCT + 31 * 47
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - MIN( 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - MIN ( 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + - COUNT( * ) + + 69 col2
----
68

skipif mysql # not compatible
query I rowsort label-5490
SELECT + - COUNT ( * ) + + 69 col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL - CAST( 2 AS SIGNED ) * + 87 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - CAST ( 2 AS INTEGER ) * + 87 AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - ( + + ( + - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - ( + + ( + - COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT COUNT( * ) - - 59
----
60

skipif mysql # not compatible
query I rowsort label-5493
SELECT COUNT ( * ) - - 59
----
60

query I rowsort
SELECT ALL - - ( + - 66 )
----
-66

query I rowsort
SELECT ( - 37 ) * - 12 * + - 19
----
-8436

query II rowsort
SELECT ALL 80, 29 * + 40 AS col0
----
80
1160

query I rowsort
SELECT + - 44 col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL + 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + 94 - + COUNT ( * )
----
93

query I rowsort
SELECT DISTINCT + ( - 78 ) * - 16 - 92
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL - MIN( DISTINCT - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - MIN ( DISTINCT - 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT + 72 + - + COUNT( * ) DIV + 52 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5501
SELECT + 72 + - + COUNT ( * ) / + 52 AS col1
----
72

query I rowsort
SELECT - + 63 + + + 32 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL CAST( + - 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL CAST ( + - 29 AS INTEGER ) AS col1
----
-29

query I rowsort
SELECT - 7 + ( + ( + + 96 ) ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + - COALESCE ( 36, + 67, - 23 * - + COUNT( * ) * + + 17 ) * + 48 AS col1
----
-1728

skipif mysql # not compatible
query I rowsort label-5505
SELECT + - COALESCE ( 36, + 67, - 23 * - + COUNT ( * ) * + + 17 ) * + 48 AS col1
----
-1728

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT DISTINCT - COUNT( * ) AS col2, - 6
----
-1
-6

skipif mysql # not compatible
query II rowsort label-5506
SELECT DISTINCT - COUNT ( * ) AS col2, - 6
----
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT COUNT( * ) * - 47 + 6 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5507
SELECT COUNT ( * ) * - 47 + 6 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL - CAST( + + ( - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL - CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - COALESCE ( - - 97, - - COUNT( * ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5509
SELECT - COALESCE ( - - 97, - - COUNT ( * ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - 91 * - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5510
SELECT - 91 * - COUNT ( * )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5511
SELECT + CAST( + 27 AS SIGNED ) col2, + 20 AS col0
----
27
20

skipif mysql # not compatible
query II rowsort label-5511
SELECT + CAST ( + 27 AS INTEGER ) col2, + 20 AS col0
----
27
20

query I rowsort
SELECT DISTINCT + ( 77 ) AS col2
----
77

query I rowsort
SELECT ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + NULLIF ( - 46, + - COUNT( * ) + + 67 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5514
SELECT + NULLIF ( - 46, + - COUNT ( * ) + + 67 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT COALESCE ( COUNT( - ( - 52 ) ), - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5515
SELECT COALESCE ( COUNT ( - ( - 52 ) ), - 71 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5516
SELECT 4 * + 87 DIV - - COUNT( * )
----
348

skipif mysql # not compatible
query I rowsort label-5516
SELECT 4 * + 87 / - - COUNT ( * )
----
348

query I rowsort
SELECT 14 * + + 5
----
70

query I rowsort
SELECT 47 * + 76 AS col1
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - SUM( - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - SUM ( - 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT COUNT( * ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT COUNT ( * ) / - 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT + + CAST( NULL AS SIGNED ) * MIN( + 26 ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + + CAST ( NULL AS INTEGER ) * MIN ( + 26 ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT + COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT - + 0 col0
----
0

query I rowsort
SELECT - - 90 + + 52 + 51 AS col1
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5525
SELECT ALL + 85 - + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + 85 - + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT ALL ( - 84 ) AS col2, - COUNT( * ) AS col0
----
-84
-1

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL ( - 84 ) AS col2, - COUNT ( * ) AS col0
----
-84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT ( - - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + COUNT( * ) * + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5528
SELECT + COUNT ( * ) * + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL - + ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - + ( COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL - - 84 AS col1
----
84

query I rowsort
SELECT + + 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT 69 AS col1, + COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-5532
SELECT 69 AS col1, + COUNT ( * )
----
69
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5533
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT DISTINCT - COUNT( * ) AS col0, + SUM( - 9 )
----
-1
-9

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT - COUNT ( * ) AS col0, + SUM ( - 9 )
----
-1
-9

query I rowsort
SELECT - 96 + + + 90 AS col2
----
-6

query I rowsort
SELECT + 95 * - 80
----
-7600

query I rowsort
SELECT ALL ( 97 ) col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5538
SELECT ALL + COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) ) + ( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + COUNT ( * ) / - ( - CAST ( NULL AS REAL ) ) + ( + 84 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5539
SELECT 13 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT 13 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 81 + - + 84 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) + MIN( ALL - - 53 ) + + ( COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) + MIN ( ALL - - 53 ) + + ( COUNT ( * ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL COUNT( * ) - - 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL COUNT ( * ) - - 76 AS col1
----
77

query I rowsort
SELECT ( - 85 ) AS col0
----
-85

query I rowsort
SELECT 14 * 39 * + - 41 - - 25
----
-22361

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + MIN( ALL - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-5546
SELECT + MIN ( ALL - - 56 )
----
56

query I rowsort
SELECT ALL ( - 6 )
----
-6

query I rowsort
SELECT ALL 99 - - 59
----
158

query II rowsort
SELECT DISTINCT 24 AS col2, 29 - 71 AS col0
----
24
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL + SUM( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + SUM ( ALL + 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5551
SELECT ALL SUM( DISTINCT - 81 ) * + 44 + COUNT( ALL + - CAST( NULL AS DECIMAL ) ) + + 3
----
-3561

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL SUM ( DISTINCT - 81 ) * + 44 + COUNT ( ALL + - CAST ( NULL AS REAL ) ) + + 3
----
-3561

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + - SUM( DISTINCT 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5552
SELECT + - SUM ( DISTINCT 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL 71 * 48 - - + COUNT( * ) AS col1
----
3409

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 71 * 48 - - + COUNT ( * ) AS col1
----
3409

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - 11 * - - SUM( + - ( + 60 ) ) AS col2
----
660

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - 11 * - - SUM ( + - ( + 60 ) ) AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL SUM( + 98 ) + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL SUM ( + 98 ) + - COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT - ( + 35 ) AS col1
----
-35

query I rowsort
SELECT + - 17 AS col0
----
-17

query I rowsort
SELECT ALL - - 48 * - 56
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT COUNT( * ) + - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5559
SELECT COUNT ( * ) + - 85 AS col2
----
-84

query I rowsort
SELECT ALL - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT COUNT( * ) - - 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5561
SELECT COUNT ( * ) - - 30 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT ALL - - 58 AS col0, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL - - 58 AS col0, COUNT ( * ) AS col0
----
58
1

query I rowsort
SELECT 66 * - 78 AS col1
----
-5148

query I rowsort
SELECT DISTINCT + + 97
----
97

query I rowsort
SELECT - 79 * + - 88
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - SUM( DISTINCT + ( + 38 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-5566
SELECT - SUM ( DISTINCT + ( + 38 ) ) col0
----
-38

query I rowsort
SELECT - 53 + + - 20
----
-73

query I rowsort
SELECT ( - + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + SUM( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5569
SELECT + SUM ( DISTINCT + 29 ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL CAST( 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL CAST ( 16 AS INTEGER ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT - 83 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT - 83 / 97 AS col2
----
0

query I rowsort
SELECT DISTINCT + 40 * 41
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - - SUM( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - - SUM ( 95 ) AS col2
----
95

query II rowsort
SELECT ALL - + 77, 50 AS col1
----
-77
50

query I rowsort
SELECT ALL - 25 * 72
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT 57 * + ( - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT 57 * + ( - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 75 - + NULLIF ( - 11, - 49 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT COUNT( * ) * 39 + + 63 - 6 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5578
SELECT COUNT ( * ) * 39 + + 63 - 6 AS col0
----
96

query I rowsort
SELECT ALL + 84 - + 15 * - - ( - - 26 )
----
-306

query I rowsort
SELECT - + 88 col0
----
-88

query I rowsort
SELECT ALL ( + 73 ) AS col0
----
73

query I rowsort
SELECT ( + 95 ) AS col2
----
95

query I rowsort
SELECT - 74 + 51
----
-23

query I rowsort
SELECT + + 1 + + 13 AS col0
----
14

query I rowsort
SELECT ALL + + 66 col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT ALL + 66 DIV 12 col1
----
5

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + 66 / 12 col1
----
5

query I rowsort
SELECT ALL + 11 + 89 AS col1
----
100

query I rowsort
SELECT - - 43 AS col1
----
43

query I rowsort
SELECT CASE - 81 WHEN 4 THEN + - 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT - COUNT( DISTINCT - 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - COUNT ( DISTINCT - 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - - MIN( + + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - - MIN ( + + 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT COUNT( * ) * - + CAST( - + 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT COUNT ( * ) * - + CAST ( - + 68 AS INTEGER ) AS col2
----
68

query I rowsort
SELECT - 47 * - + 20 - - 84
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT 42 + - - COUNT( * ) + - + 16 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT 42 + - - COUNT ( * ) + - + 16 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT + 22 AS col2, - 88 * - - SUM( - 64 )
----
22
5632

skipif mysql # not compatible
query II rowsort label-5595
SELECT + 22 AS col2, - 88 * - - SUM ( - 64 )
----
22
5632

query I rowsort
SELECT ( + 8 ) + - 31 AS col0
----
-23

query I rowsort
SELECT - ( 97 ) AS col1
----
-97

query I rowsort
SELECT 86 * + 58 * + 90
----
448920

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT - + 56 DIV + - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT - + 56 / + - 67 AS col2
----
0

query I rowsort
SELECT - + 50 col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5601
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5601
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ( 21 ) AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 83 * COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT + 57 + 0 * MIN( 1 ) DIV + 15
----
57

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 57 + 0 * MIN ( 1 ) / + 15
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - - MIN( - + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5605
SELECT - - MIN ( - + 19 ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5606
SELECT DISTINCT 19 * - + 50 AS col2, CAST( NULL AS SIGNED ) * + - 41 / CAST( NULL AS SIGNED )
----
-950
NULL

skipif mysql # not compatible
query II rowsort label-5606
SELECT DISTINCT 19 * - + 50 AS col2, CAST ( NULL AS INTEGER ) * + - 41 / CAST ( NULL AS INTEGER )
----
-950
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT CAST( NULL AS SIGNED ) + - ( - 57 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT CAST ( NULL AS INTEGER ) + - ( - 57 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - MAX( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5608
SELECT - MAX ( - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT 42 - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT 42 - + COUNT ( * )
----
41

query I rowsort
SELECT COALESCE ( + 30, + ( + 19 ) - 73 + + + 86 ) - + 72 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - + SUM( ALL - + ( 57 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - + SUM ( ALL - + ( 57 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT + NULLIF ( + + MAX( - 3 ), 10 )
----
-3

skipif mysql # not compatible
query I rowsort label-5612
SELECT + NULLIF ( + + MAX ( - 3 ), 10 )
----
-3

query I rowsort
SELECT + + ( + 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL + + COUNT( - 27 ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + + COUNT ( - 27 ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5615
SELECT ALL - 4 DIV - CAST( + 46 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - 4 / - CAST ( + 46 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL ( + - NULLIF ( + COUNT( * ), COUNT( * ) ) ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL ( + - NULLIF ( + COUNT ( * ), COUNT ( * ) ) ) / 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT - 95 * - - 77 DIV - + COUNT( * )
----
7315

skipif mysql # not compatible
query I rowsort label-5617
SELECT - 95 * - - 77 / - + COUNT ( * )
----
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5618
SELECT - CAST( - COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5618
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
1

query I rowsort
SELECT DISTINCT ( - + 34 ) AS col1
----
-34

query I rowsort
SELECT ALL ( 82 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5621
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5621
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5622
SELECT ALL - CAST( NULL AS DECIMAL ) / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - CAST ( NULL AS REAL ) / + 83
----
NULL

query I rowsort
SELECT 8 + + 67
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT + 35 * - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT + 35 * - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT COUNT( * ) DIV + 35 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT COUNT ( * ) / + 35 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 98 * + + ( - + COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-5626
SELECT 98 * + + ( - + COUNT ( * ) )
----
-98

query I rowsort
SELECT DISTINCT 19 + + 83 AS col1
----
102

query I rowsort
SELECT ALL + ( - - 33 ) + 29 AS col0
----
62

query I rowsort
SELECT 87 + + 49 AS col0
----
136

query I rowsort
SELECT - ( + 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT 10 + - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5632
SELECT 10 + - - COUNT ( * )
----
11

query II rowsort
SELECT + 99 + 88, - 96 AS col1
----
187
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT + COUNT( + 77 ) * + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + COUNT ( + 77 ) * + 7 AS col1
----
7

query I rowsort
SELECT ALL + - 45 AS col2
----
-45

query II rowsort
SELECT + 97, + 50 AS col2
----
97
50

query II rowsort
SELECT - 96 AS col2, 86
----
-96
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL + SUM( ALL 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + SUM ( ALL 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT + CAST( + 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5639
SELECT + CAST ( + 37 AS INTEGER ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - NULLIF ( + COUNT( + 46 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT - NULLIF ( + COUNT ( + 46 ), + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT - CAST( - + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-5641
SELECT - CAST ( - + 38 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + COUNT( ALL - + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + COUNT ( ALL - + 5 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT ALL - COUNT( * ), 65 AS col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL - COUNT ( * ), 65 AS col0
----
-1
65

query II rowsort
SELECT ALL - 69 AS col0, + 80 AS col2
----
-69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT 55 - + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT 55 - + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT COUNT( * ) DIV + - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5646
SELECT COUNT ( * ) / + - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL - COUNT( * ) * 64 * - 58
----
3712

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - COUNT ( * ) * 64 * - 58
----
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - MIN( + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5648
SELECT - MIN ( + 95 ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT + - 12 * 35 DIV - 16
----
26

skipif mysql # not compatible
query I rowsort label-5649
SELECT + - 12 * 35 / - 16
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - - COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - COUNT ( * ) + + 53
----
54

query I rowsort
SELECT DISTINCT 82 + + 43 AS col1
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT DISTINCT + 49 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + 49 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + - 11 * + SUM( 62 )
----
-682

skipif mysql # not compatible
query I rowsort label-5653
SELECT + - 11 * + SUM ( 62 )
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT SUM( ALL + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5654
SELECT SUM ( ALL + 12 )
----
12

query I rowsort
SELECT ALL ( + 26 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT - 8 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 8 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + 52 * + ( COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + 52 * + ( COUNT ( * ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT DISTINCT + CAST( 3 AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + CAST ( 3 AS INTEGER ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT CAST( NULL AS SIGNED ) + + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT CAST ( NULL AS INTEGER ) + + + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT DISTINCT - 31 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - 31 / 60
----
0

query I rowsort
SELECT DISTINCT - - 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT COUNT( * ) - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT COUNT ( * ) - + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT 48 DIV - 88 * 89
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT 48 / - 88 * 89
----
0

query I rowsort
SELECT ALL 65 + - 39
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + COUNT( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5666
SELECT + COUNT ( ALL + 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT COUNT( * ) AS col0, + 97
----
1
97

skipif mysql # not compatible
query II rowsort label-5667
SELECT COUNT ( * ) AS col0, + 97
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - - 31 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - - 31 * COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - COUNT( 74 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5669
SELECT - COUNT ( 74 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + SUM( DISTINCT + 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + SUM ( DISTINCT + 21 ) col0
----
21

query I rowsort
SELECT DISTINCT - 62 * + 50
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT DISTINCT + COUNT( 46 ) + - CAST( NULL AS SIGNED ) * - 28 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + COUNT ( 46 ) + - CAST ( NULL AS INTEGER ) * - 28 + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT + 90 - - COUNT( * ) * + 47
----
137

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + 90 - - COUNT ( * ) * + 47
----
137

query I rowsort
SELECT DISTINCT ( - 11 )
----
-11

query I rowsort
SELECT ALL + 14 * 19 * + 99 AS col1
----
26334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT ( 20 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT ( 20 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL COUNT( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL COUNT ( ALL 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5678
SELECT ALL - 3 AS col1, + COUNT( * ) AS col1
----
-3
1

skipif mysql # not compatible
query II rowsort label-5678
SELECT ALL - 3 AS col1, + COUNT ( * ) AS col1
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT 93 * - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5679
SELECT 93 * - COUNT ( * ) AS col2
----
-93

query I rowsort
SELECT DISTINCT 92 + + 34
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT - 21 DIV - 3
----
7

skipif mysql # not compatible
query I rowsort label-5681
SELECT - 21 / - 3
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL COUNT( * ) + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL COUNT ( * ) + 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - 39 * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 39 * COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + COUNT( * ) - - 88
----
89

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( * ) - - 88
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5685
SELECT + + 66 * - COALESCE ( 9, 76 * CAST( NULL AS SIGNED ) ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-5685
SELECT + + 66 * - COALESCE ( 9, 76 * CAST ( NULL AS INTEGER ) ) AS col2
----
-594

query I rowsort
SELECT - 26 * + + 62 AS col0
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT CAST( ( COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5687
SELECT CAST ( ( COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT 29 + - - 93
----
122

query I rowsort
SELECT + NULLIF ( + - 83, + 47 ) col1
----
-83

query I rowsort
SELECT - - 77 AS col0
----
77

query I rowsort
SELECT DISTINCT - - 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT COUNT( * ) * 78 col0
----
78

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( * ) * 78 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL COUNT( * ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL COUNT ( * ) * - 73
----
-73

query I rowsort
SELECT ALL ( + 90 ) + - 80
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT COUNT( * ) * - - ( 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5695
SELECT COUNT ( * ) * - - ( 67 ) AS col0
----
67

query I rowsort
SELECT ALL - 89 * + 98 + - - 53
----
-8669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL 28 * - ( - - AVG ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL 28 * - ( - - AVG ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5698
SELECT - 67 DIV + - 50 AS col1, + 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-5698
SELECT - 67 / + - 50 AS col1, + 40 AS col1
----
1
40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT - + COUNT( * ) DIV + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT - + COUNT ( * ) / + 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT 51 * - 89 * 10 + + - ( COUNT( * ) ) AS col0
----
-45391

skipif mysql # not compatible
query I rowsort label-5701
SELECT 51 * - 89 * 10 + + - ( COUNT ( * ) ) AS col0
----
-45391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT + - CAST( NULL AS SIGNED ) * + 28
----
NULL

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

query I rowsort
SELECT + 7 + - 91
----
-84

query I rowsort
SELECT 46 + + ( - - 23 )
----
69

query I rowsort
SELECT DISTINCT + - 58 * - - 9 AS col2
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - + SUM( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - + SUM ( - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT - + SUM( ALL + + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - + SUM ( ALL + + 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT COUNT( * ) - COUNT( * ) + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5708
SELECT COUNT ( * ) - COUNT ( * ) + 82 AS col2
----
82

query I rowsort
SELECT ALL - 15 + 43 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT 37 + + + 81 * - COUNT( * ) - 31
----
-75

skipif mysql # not compatible
query I rowsort label-5710
SELECT 37 + + + 81 * - COUNT ( * ) - 31
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ( + + SUM( ALL - + 65 ) ) * 70 AS col1
----
-4550

skipif mysql # not compatible
query I rowsort label-5711
SELECT ( + + SUM ( ALL - + 65 ) ) * 70 AS col1
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + COUNT ( * ) * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT DISTINCT 25 - 6 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT 25 - 6 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT 17 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT 17 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - MIN( DISTINCT - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5715
SELECT - MIN ( DISTINCT - 56 ) AS col0
----
56

query I rowsort
SELECT ALL - - 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT 92 * + - MAX( + 67 )
----
-6164

skipif mysql # not compatible
query I rowsort label-5717
SELECT 92 * + - MAX ( + 67 )
----
-6164

query I rowsort
SELECT + - 10 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL 72 - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 72 - - COUNT ( * )
----
73

query I rowsort
SELECT - 54 + - 56 AS col0
----
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5721
SELECT + 11 * + CAST( NULL AS DECIMAL ) / 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 11 * + CAST ( NULL AS REAL ) / 93 AS col2
----
NULL

query I rowsort
SELECT - 49 * + 40 col1
----
-1960

query II rowsort
SELECT + 85, + 77 AS col2
----
85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + 5 * COUNT( + 3 )
----
5

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + 5 * COUNT ( + 3 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT MAX( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5725
SELECT MAX ( - 60 )
----
-60

query I rowsort
SELECT - 77 * - + 98
----
7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT - 87 + - CAST( - + 54 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 87 + - CAST ( - + 54 AS INTEGER )
----
-33

query I rowsort
SELECT + + ( + 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT - - ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT - COUNT( * ) * + - NULLIF ( + 23, COUNT( + 11 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - COUNT ( * ) * + - NULLIF ( + 23, COUNT ( + 11 ) ) AS col2
----
23

query I rowsort
SELECT ALL 37 * + 45 AS col0
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 96 + + - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5732
SELECT 96 + + - COUNT ( * ) AS col1
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5733
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - ( - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT - + 85, - COUNT( * ) AS col0
----
-85
-1

skipif mysql # not compatible
query II rowsort label-5735
SELECT - + 85, - COUNT ( * ) AS col0
----
-85
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT + + 62, COUNT( + 53 ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-5737
SELECT + + 62, COUNT ( + 53 ) AS col2
----
62
1

query I rowsort
SELECT ALL - + ( - + 85 ) col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT MIN( DISTINCT 8 ) * + 5 * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5740
SELECT MIN ( DISTINCT 8 ) * + 5 * COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT - COUNT( * ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-5741
SELECT - COUNT ( * ) + - 97
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + SUM( DISTINCT - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5742
SELECT + SUM ( DISTINCT - 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT + 18 * + - CAST( - - 53 AS SIGNED )
----
-954

skipif mysql # not compatible
query I rowsort label-5743
SELECT + 18 * + - CAST ( - - 53 AS INTEGER )
----
-954

query II rowsort
SELECT ALL - 16 + - 97, - 28 AS col0
----
-113
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT + COUNT( - - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5745
SELECT + COUNT ( - - 30 ) AS col2
----
1

query I rowsort
SELECT + 31 * - 61
----
-1891

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT + SUM( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + SUM ( - 39 )
----
-39

query I rowsort
SELECT ALL + ( + - 64 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT DISTINCT 89 DIV - 14
----
-6

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT 89 / - 14
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT CAST( - - 48 AS SIGNED ) * - 65
----
-3120

skipif mysql # not compatible
query I rowsort label-5750
SELECT CAST ( - - 48 AS INTEGER ) * - 65
----
-3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT 98 + + - CAST( - COUNT( * ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-5751
SELECT 98 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL COUNT( DISTINCT + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL COUNT ( DISTINCT + 8 ) AS col2
----
1

query I rowsort
SELECT 71 * - 25 AS col2
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 5 * + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT + COUNT( * ) AS col2, + 82
----
1
82

skipif mysql # not compatible
query II rowsort label-5755
SELECT + COUNT ( * ) AS col2, + 82
----
1
82

query I rowsort
SELECT ALL - 77 - - 10
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - 18 + - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5757
SELECT - 18 + - + COUNT ( * )
----
-19

query II rowsort
SELECT + 98 col0, - 31
----
98
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT DISTINCT + + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + + ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT 29 * - 81 * + - 73
----
171477

query I rowsort
SELECT ( - - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT + + SUM( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + + SUM ( + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT - CAST( 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5763
SELECT - CAST ( 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT ALL ( + 10 ) col0
----
10

query I rowsort
SELECT ALL - - 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT ALL COUNT( * ) * + + 11 AS col2, 22 + + + COUNT( * ) col0
----
11
23

skipif mysql # not compatible
query II rowsort label-5766
SELECT ALL COUNT ( * ) * + + 11 AS col2, 22 + + + COUNT ( * ) col0
----
11
23

query I rowsort
SELECT DISTINCT - + ( - 93 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT 55 DIV - + 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5768
SELECT 55 / - + 34 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5769
SELECT ALL 18 * - - CAST( - 98 AS SIGNED ) AS col1, 54 AS col0
----
-1764
54

skipif mysql # not compatible
query II rowsort label-5769
SELECT ALL 18 * - - CAST ( - 98 AS INTEGER ) AS col1, 54 AS col0
----
-1764
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT CAST( NULL AS SIGNED ) + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT CAST ( NULL AS INTEGER ) + - 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + COUNT( * ) * - 75 * + 98
----
-7350

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + COUNT ( * ) * - 75 * + 98
----
-7350

query I rowsort
SELECT ALL + + 12 * + - 46 AS col1
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT + COUNT( * ), + 31 + + + 92 AS col2
----
1
123

skipif mysql # not compatible
query II rowsort label-5773
SELECT + COUNT ( * ), + 31 + + + 92 AS col2
----
1
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + 80 + + - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + 80 + + - COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5775
SELECT DISTINCT - 17 DIV - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - 17 / - COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT NULLIF ( + 91, + - 35 ) AS col2
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT DISTINCT + CAST( + - 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + CAST ( + - 96 AS INTEGER ) AS col1
----
-96

query I rowsort
SELECT COALESCE ( - - 90, + ( - 48 ) ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT COUNT( - 29 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5780
SELECT COUNT ( - 29 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 47 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL ( - - COUNT( ALL 70 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL ( - - COUNT ( ALL 70 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + 93 * 37 * + COUNT( * ) col2
----
3441

skipif mysql # not compatible
query I rowsort label-5783
SELECT + 93 * 37 * + COUNT ( * ) col2
----
3441

query I rowsort
SELECT DISTINCT + - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + SUM( ALL - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-5785
SELECT + SUM ( ALL - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL + ( COUNT( * ) ) * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + ( COUNT ( * ) ) * + 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT MAX( DISTINCT + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT MAX ( DISTINCT + 21 ) AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT - 72 * - 0 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 72 * - 0 / 39 AS col0
----
0

query I rowsort
SELECT - 39 - 99
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5790
SELECT DISTINCT + + 64 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + + 64 + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ( + + 13 ) * + 58 - + COUNT( * ) * - 74
----
828

skipif mysql # not compatible
query I rowsort label-5791
SELECT ( + + 13 ) * + 58 - + COUNT ( * ) * - 74
----
828

query I rowsort
SELECT ( 54 ) - 49 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) * 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT MAX( DISTINCT - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-5794
SELECT MAX ( DISTINCT - - 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT MIN( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5795
SELECT MIN ( - 33 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT ALL - CAST( - SUM( + 19 ) AS SIGNED ) + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - CAST ( - SUM ( + 19 ) AS INTEGER ) + COUNT ( * ) AS col0
----
20

query I rowsort
SELECT ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ( + + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5798
SELECT ( + + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT NULLIF ( + ( COUNT( * ) ), + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5799
SELECT NULLIF ( + ( COUNT ( * ) ), + - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT - ( - CAST( - 12 AS SIGNED ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5800
SELECT - ( - CAST ( - 12 AS INTEGER ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5801
SELECT ALL NULLIF ( CAST( + - ( - COUNT( * ) ) AS SIGNED ), + 49 ) DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL NULLIF ( CAST ( + - ( - COUNT ( * ) ) AS INTEGER ), + 49 ) / 53 AS col1
----
0

query I rowsort
SELECT + ( + 14 ) AS col0
----
14

query I rowsort
SELECT DISTINCT + 41 * - + 62
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT MAX( + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5804
SELECT MAX ( + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT COUNT( DISTINCT - + 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5805
SELECT COUNT ( DISTINCT - + 88 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT + COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5807
SELECT + COUNT ( * ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - - 44 - + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - - 44 - + ( + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + COUNT( * ) + - 80 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + COUNT ( * ) + - 80 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5810
SELECT + - COUNT( * ) DIV + 33, + COUNT( * ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-5810
SELECT + - COUNT ( * ) / + 33, + COUNT ( * ) col0
----
0
1

query I rowsort
SELECT - - 85 * - - ( + - ( + - 38 ) ) col1
----
3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT DISTINCT CAST( - 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT CAST ( - 50 AS INTEGER )
----
-50

query I rowsort
SELECT 99 + 46
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT - 21 * + CAST( 31 AS SIGNED ) AS col2
----
-651

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - 21 * + CAST ( 31 AS INTEGER ) AS col2
----
-651

query I rowsort
SELECT ALL + 30 * 30
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - 31 * COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 31 * COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT DISTINCT - - 33 AS col1
----
33

query I rowsort
SELECT DISTINCT - 24 - + 88 col1
----
-112

query I rowsort
SELECT - 59 * 7 AS col2
----
-413

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5820
SELECT DISTINCT COUNT( * ) AS col1, + 62 + + CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5820
SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 64 + 79 AS col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5822
SELECT + CAST( + ( + + NULLIF ( - COUNT( * ), - 99 ) ) AS SIGNED ) col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5822
SELECT + CAST ( + ( + + NULLIF ( - COUNT ( * ), - 99 ) ) AS INTEGER ) col2, - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT ALL - COUNT( * ) AS col2, - 46 AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-5823
SELECT ALL - COUNT ( * ) AS col2, - 46 AS col2
----
-1
-46

query I rowsort
SELECT 87 - + 71
----
16

query I rowsort
SELECT ALL 70 - - 29 AS col2
----
99

query I rowsort
SELECT ALL - 19 * + 60 AS col1
----
-1140

query I rowsort
SELECT DISTINCT - ( + - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + NULLIF ( - COUNT( * ), + + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-5828
SELECT + NULLIF ( - COUNT ( * ), + + 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + COUNT( DISTINCT 48 ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + COUNT ( DISTINCT 48 ) + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT COUNT( * ) * + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT COUNT ( * ) * + - 93
----
-93

query I rowsort
SELECT DISTINCT + 85 * + 88
----
7480

query I rowsort
SELECT + ( 81 ) * + - 41 AS col0
----
-3321

query I rowsort
SELECT DISTINCT + ( 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT + CAST( + + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5834
SELECT + CAST ( + + 31 AS INTEGER ) AS col1
----
31

query I rowsort
SELECT ALL + ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - COUNT( DISTINCT - - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COUNT ( DISTINCT - - 81 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT + 62 DIV - - 25
----
2

skipif mysql # not compatible
query I rowsort label-5837
SELECT + 62 / - - 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL + - COUNT( * ) + - 90 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + - COUNT ( * ) + - 90 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL - MAX( + + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - MAX ( + + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT MAX( - 19 ), 54 * + - 68 AS col2
----
-19
-3672

skipif mysql # not compatible
query II rowsort label-5840
SELECT MAX ( - 19 ), 54 * + - 68 AS col2
----
-19
-3672

query I rowsort
SELECT ALL ( + + 37 ) AS col0
----
37

query I rowsort
SELECT ALL - 98 * 78 AS col2
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + 46 + + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5843
SELECT + 46 + + - COUNT ( * ) AS col0
----
45

query I rowsort
SELECT ALL 28 * - ( + 22 )
----
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT ALL - COUNT( * ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - COUNT ( * ) / - COUNT ( * )
----
1

query I rowsort
SELECT - ( 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL 78 * - SUM( + 14 ) + - 52
----
-1144

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL 78 * - SUM ( + 14 ) + - 52
----
-1144

query I rowsort
SELECT ALL ( 84 )
----
84

query I rowsort
SELECT DISTINCT + 12 * - + 93 AS col1
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT ALL 41 DIV + 94 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL 41 / + 94 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + MAX( - ( 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + MAX ( - ( 23 ) )
----
-23

query I rowsort
SELECT 17 + - 79
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5853
SELECT 66 * - COUNT ( * )
----
-66

query I rowsort
SELECT DISTINCT 0 * + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL COUNT ( * ) * 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL + COUNT( DISTINCT + 94 ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + COUNT ( DISTINCT + 94 ) + - 9
----
-8

query I rowsort
SELECT DISTINCT - + 71 AS col0
----
-71

query I rowsort
SELECT - ( - 2 )
----
2

query I rowsort
SELECT DISTINCT - + 10 AS col1
----
-10

query I rowsort
SELECT DISTINCT - + 84
----
-84

query I rowsort
SELECT 90 + + - 5 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT - COUNT( * ) AS col1, ( - - ( + 37 ) ) AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-5862
SELECT - COUNT ( * ) AS col1, ( - - ( + 37 ) ) AS col2
----
-1
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5863
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT - - COUNT( * ) AS col0, - ( - 17 ) col2
----
1
17

skipif mysql # not compatible
query II rowsort label-5864
SELECT - - COUNT ( * ) AS col0, - ( - 17 ) col2
----
1
17

query II rowsort
SELECT ALL + - 50 AS col1, - 98
----
-50
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT DISTINCT + SUM( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + SUM ( DISTINCT - 0 )
----
0

query I rowsort
SELECT DISTINCT ( + - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + COUNT( * ) * - - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5868
SELECT + COUNT ( * ) * - - 49 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT + CAST( - + 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5869
SELECT + CAST ( - + 66 AS INTEGER ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT ALL + 51 col0, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL + 51 col0, COUNT ( * )
----
51
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT + CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-5871
SELECT + CAST ( - 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - + SUM( COALESCE ( - 86, + + 88 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5872
SELECT - + SUM ( COALESCE ( - 86, + + 88 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT - MIN( ALL 21 ) + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT - MIN ( ALL 21 ) + COUNT ( * ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 93
----
NULL

query I rowsort
SELECT ALL - 8 + + 79 AS col0
----
71

query I rowsort
SELECT 50 * - + 1
----
-50

query I rowsort
SELECT ALL - 47 * - 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT COUNT( * ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-5878
SELECT COUNT ( * ) + + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT COUNT( DISTINCT 55 ) + + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5879
SELECT COUNT ( DISTINCT 55 ) + + 22 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - MAX( ALL + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - MAX ( ALL + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT + COUNT( DISTINCT + ( - 33 ) ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + COUNT ( DISTINCT + ( - 33 ) ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL 60 + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL 60 + COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - - MIN( ALL + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5883
SELECT - - MIN ( ALL + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT ( 28 ) * + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT ( 28 ) * + - COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - 7 * 64 + - MAX( - + 72 )
----
-376

skipif mysql # not compatible
query I rowsort label-5885
SELECT - 7 * 64 + - MAX ( - + 72 )
----
-376

query I rowsort
SELECT ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT MIN( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT MIN ( + 40 ) AS col0
----
40

query I rowsort
SELECT ( - ( - 71 ) ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - + 92 + - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5889
SELECT - + 92 + - COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT + - 17 + - 28 AS col1
----
-45

query I rowsort
SELECT + + 90 + - 39 AS col1
----
51

query I rowsort
SELECT 84 - - 47 AS col2
----
131

query I rowsort
SELECT DISTINCT ( + 16 ) * 92
----
1472

query I rowsort
SELECT ALL + ( - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT - MAX( ALL - + NULLIF ( 74, - + 94 * + - ( CAST( NULL AS SIGNED ) ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-5895
SELECT - MAX ( ALL - + NULLIF ( 74, - + 94 * + - ( CAST ( NULL AS INTEGER ) ) ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT COUNT( * ) * - - 77 * + COUNT( * ) + - NULLIF ( - COUNT( * ), + - 82 ) - + + 72 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5896
SELECT COUNT ( * ) * - - 77 * + COUNT ( * ) + - NULLIF ( - COUNT ( * ), + - 82 ) - + + 72 AS col1
----
6

query I rowsort
SELECT ALL - ( + 32 ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5898
SELECT + COUNT( * ), - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5898
SELECT + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT - + 63 * - 37 AS col2
----
2331

query I rowsort
SELECT ALL + 77 + + 73 AS col0
----
150

query I rowsort
SELECT ALL + + 4 AS col0
----
4

query I rowsort
SELECT DISTINCT + + ( + 45 ) AS col1
----
45

query I rowsort
SELECT ALL ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT - COUNT( * ), ( + - COUNT( * ) )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5904
SELECT - COUNT ( * ), ( + - COUNT ( * ) )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT + 91 - + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 91 - + COUNT ( * ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT - CAST( NULL AS SIGNED ) * - AVG ( ALL 14 ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( ALL 14 ) * + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT ALL + 31 DIV - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + 31 / - COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT 15 + 74 AS col2
----
89

query I rowsort
SELECT 54 + 48
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT ( 45 ) + - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT ( 45 ) + - COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL 30 * + COUNT( - 58 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL 30 * + COUNT ( - 58 ) AS col1
----
30

query I rowsort
SELECT DISTINCT 86 - 7 * 80 AS col2
----
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT 29 + - COUNT( * ) * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5913
SELECT 29 + - COUNT ( * ) * - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - - ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5914
SELECT - - ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT - 14 * + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT - 14 * + COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT - - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - 57 * 67 AS col1
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ( + MAX( 42 ) ) + + 55
----
97

skipif mysql # not compatible
query I rowsort label-5918
SELECT ( + MAX ( 42 ) ) + + 55
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT + 20 + COALESCE ( + ( CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) ) + 24 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 20 + COALESCE ( + ( CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) ) + 24 * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - COUNT( ALL - + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-5920
SELECT - COUNT ( ALL - + 31 )
----
-1

query I rowsort
SELECT - + 91 + + 76 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - 76 * + 76 * COUNT( * )
----
-5776

skipif mysql # not compatible
query I rowsort label-5922
SELECT - 76 * + 76 * COUNT ( * )
----
-5776

query I rowsort
SELECT + 68 + - 94
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-5924
SELECT 63 AS col2, 4 DIV - 5 col1
----
63
0

skipif mysql # not compatible
query II rowsort label-5924
SELECT 63 AS col2, 4 / - 5 col1
----
63
0

query I rowsort
SELECT + - 24 + - 71 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ( - NULLIF ( + + COUNT( * ), + COUNT( * ) + - SUM( DISTINCT + ( - 5 ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5926
SELECT ( - NULLIF ( + + COUNT ( * ), + COUNT ( * ) + - SUM ( DISTINCT + ( - 5 ) ) ) )
----
-1

query I rowsort
SELECT DISTINCT + 21 * + 76
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT 10 + - - MIN( - 39 )
----
-29

skipif mysql # not compatible
query I rowsort label-5928
SELECT 10 + - - MIN ( - 39 )
----
-29

query I rowsort
SELECT ALL 15 + - 59 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - SUM( ALL 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - SUM ( ALL 15 ) AS col2
----
-15

query II rowsort
SELECT - 69, 46 AS col2
----
-69
46

query I rowsort
SELECT DISTINCT + ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + MAX( ALL + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5933
SELECT + MAX ( ALL + 68 ) AS col2
----
68

query I rowsort
SELECT ALL 17 * + + 19 AS col0
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL NULLIF ( COUNT( * ), + 18 * - COUNT( * ) * + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL NULLIF ( COUNT ( * ), + 18 * - COUNT ( * ) * + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + 36 + + + 77 * SUM( ALL - 5 )
----
-349

skipif mysql # not compatible
query I rowsort label-5936
SELECT + 36 + + + 77 * SUM ( ALL - 5 )
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 50 + + - 40 + - + COUNT( * ) * - - 60 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 50 + + - 40 + - + COUNT ( * ) * - - 60 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL + COUNT( * ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + COUNT ( * ) * + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + MAX( DISTINCT - + 14 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-5939
SELECT + MAX ( DISTINCT - + 14 ) col2
----
-14

query I rowsort
SELECT DISTINCT + ( 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT + 50 * COUNT( * ) + - 62 * + 93
----
-5716

skipif mysql # not compatible
query I rowsort label-5941
SELECT + 50 * COUNT ( * ) + - 62 * + 93
----
-5716

query I rowsort
SELECT + - 60 + 37 AS col1
----
-23

query I rowsort
SELECT - - ( + + 81 ) * 52
----
4212

query I rowsort
SELECT ALL - - 22 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL - + ( + + COALESCE ( 98, + COUNT( * ) * + 78, 7 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - + ( + + COALESCE ( 98, + COUNT ( * ) * + 78, 7 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + COUNT( * ) + + - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + COUNT ( * ) + + - 62 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT DISTINCT ( + - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT ( + - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT - 73, 1 AS col0
----
-73
1

query I rowsort
SELECT + + 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT - COUNT( * ) + 85 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5950
SELECT - COUNT ( * ) + 85 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT - ( - - 1 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - ( - - 1 ) * + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT ALL - 27 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - 27 / 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT + + COUNT( ALL - 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5953
SELECT + + COUNT ( ALL - 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - + 55 + - - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5954
SELECT - + 55 + - - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT COUNT( * ) DIV + - COUNT( ALL 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5955
SELECT COUNT ( * ) / + - COUNT ( ALL 23 ) AS col0
----
-1

query I rowsort
SELECT ALL - - 46 AS col2
----
46

query I rowsort
SELECT 22 * + 46 AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL - 36 * COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - 36 * COUNT ( * ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT - CAST( + + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - CAST ( + + 15 AS INTEGER )
----
-15

query I rowsort
SELECT 72 + - 4
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 20 + 96
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT - COUNT( * ) + + 40 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5963
SELECT - COUNT ( * ) + + 40 AS col0
----
39

query I rowsort
SELECT DISTINCT + + 57 * 1
----
57

query I rowsort
SELECT - 45 * - 95
----
4275

query I rowsort
SELECT DISTINCT 74 * - + 84
----
-6216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL 23 * CAST( NULL AS SIGNED ) * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 23 * CAST ( NULL AS INTEGER ) * + 69
----
NULL

query I rowsort
SELECT ( + 93 )
----
93

query I rowsort
SELECT + 93 + 53
----
146

query I rowsort
SELECT ( - 78 ) col0
----
-78

query I rowsort
SELECT ( + - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - COUNT( * ) * + 22
----
-22

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) * + 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT 78 * - 90 DIV - COUNT( * ) * + COUNT( * ) AS col1
----
7020

skipif mysql # not compatible
query I rowsort label-5973
SELECT 78 * - 90 / - COUNT ( * ) * + COUNT ( * ) AS col1
----
7020

query I rowsort
SELECT ALL 84 + + 28 col2
----
112

query II rowsort
SELECT 1, + 60 AS col2
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5976
SELECT - - CAST( NULL AS SIGNED ) AS col0, + 93 + - SUM( + - 48 ) AS col0
----
NULL
141

skipif mysql # not compatible
query II rowsort label-5976
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0
----
NULL
141

query I rowsort
SELECT - + ( + 3 ) col2
----
-3

query I rowsort
SELECT ( - + 84 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT 53 + - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5980
SELECT 53 + - COUNT ( * ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT + CAST( NULL AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT + CAST ( NULL AS INTEGER ) + - 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT ALL - CAST( 22 AS SIGNED ) + 32 col2
----
10

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - CAST ( 22 AS INTEGER ) + 32 col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT + 93 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-5983
SELECT + 93 / + - 50
----
-1

query I rowsort
SELECT ( + 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT DISTINCT + 46 AS col2, - COUNT( * )
----
46
-1

skipif mysql # not compatible
query II rowsort label-5985
SELECT DISTINCT + 46 AS col2, - COUNT ( * )
----
46
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT 77 col0, + COUNT( + 67 )
----
77
1

skipif mysql # not compatible
query II rowsort label-5986
SELECT 77 col0, + COUNT ( + 67 )
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + COUNT( DISTINCT + - 22 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5987
SELECT + COUNT ( DISTINCT + - 22 ) col1
----
1

query I rowsort
SELECT - - ( 37 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT ALL + 84 DIV + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + 84 / + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL - + ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - + ( - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL - ( - MAX( ALL - 76 ) ) - + 67
----
-143

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - ( - MAX ( ALL - 76 ) ) - + 67
----
-143

query I rowsort
SELECT DISTINCT - ( 62 ) col0
----
-62

query II rowsort
SELECT DISTINCT 10 AS col2, 54 * - 72 AS col0
----
10
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT SUM( DISTINCT - + 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-5994
SELECT SUM ( DISTINCT - + 8 ) col1
----
-8

query I rowsort
SELECT ( + 59 ) * + 84 - - + 67
----
5023

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - MIN( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - MIN ( DISTINCT 48 ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT + CAST( + 5 AS SIGNED ) * 19 col0
----
95

skipif mysql # not compatible
query I rowsort label-5997
SELECT + CAST ( + 5 AS INTEGER ) * 19 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5998
SELECT - COUNT( * ), + 96 / + MIN( 35 ) * + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5998
SELECT - COUNT ( * ), + 96 / + MIN ( 35 ) * + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

query I rowsort
SELECT ALL 4 + 83 AS col2
----
87

query I rowsort
SELECT DISTINCT 97 * - 94 AS col2
----
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + COUNT( * ) + 34
----
35

skipif mysql # not compatible
query I rowsort label-6001
SELECT + COUNT ( * ) + 34
----
35

query I rowsort
SELECT + + 96 col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT ALL COUNT( ALL + - 71 ) DIV 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL COUNT ( ALL + - 71 ) / 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + MIN( ALL + + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + MIN ( ALL + + 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL + + COUNT( 54 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + + COUNT ( 54 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT - CAST( + - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-6006
SELECT - CAST ( + - 30 AS INTEGER )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT DISTINCT CAST( - ( + 94 ) AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT CAST ( - ( + 94 ) AS INTEGER ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT - + CAST( NULL AS SIGNED ) * + - 69 * + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT - + CAST ( NULL AS INTEGER ) * + - 69 * + + 21 AS col0
----
NULL

query I rowsort
SELECT ALL + - 4 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT ALL 40 DIV + - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 40 / + - 39 AS col2
----
-1

query I rowsort
SELECT 36 * 54
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT - - COUNT( - + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - - COUNT ( - + 35 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT 97 + - - CAST( - 67 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6013
SELECT 97 + - - CAST ( - 67 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT 22 + - 91 + - 32 col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT SUM( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-6015
SELECT SUM ( DISTINCT - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL COUNT( * ) + 99 col0
----
100

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL COUNT ( * ) + 99 col0
----
100

query I rowsort
SELECT - ( - + 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT - COUNT( * ) - - - ( 40 ) - - COUNT( * ) - - COUNT( * ) + + 60 DIV + 11 + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6018
SELECT - COUNT ( * ) - - - ( 40 ) - - COUNT ( * ) - - COUNT ( * ) + + 60 / + 11 + + COUNT ( * )
----
-33

query I rowsort
SELECT ALL 10 * - 22 col0
----
-220

query I rowsort
SELECT ( + + 30 ) AS col2
----
30

query II rowsort
SELECT - + 3, 31 AS col0
----
-3
31

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

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

query I rowsort
SELECT ALL - ( - + 1 ) AS col0
----
1

query I rowsort
SELECT - - ( - 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6025
SELECT + 42, + CAST( - + 94 AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6025
SELECT + 42, + CAST ( - + 94 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col0
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT COUNT( * ) + + 94 col1
----
95

skipif mysql # not compatible
query I rowsort label-6026
SELECT COUNT ( * ) + + 94 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT COUNT( + + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT COUNT ( + + 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - 51 + + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 51 + + - COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - MIN( - + ( - 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6029
SELECT - MIN ( - + ( - 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6030
SELECT - 39 * - COUNT ( * )
----
39

query I rowsort
SELECT + 78 * + 10 * - - 78 AS col0
----
60840

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT ( - - 61 ) AS col1, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-6032
SELECT ( - - 61 ) AS col1, COUNT ( * )
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - COUNT( * ) + 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6033
SELECT - COUNT ( * ) + 90 AS col0
----
89

query I rowsort
SELECT DISTINCT - - 97 AS col1
----
97

query I rowsort
SELECT + ( + - 26 ) col1
----
-26

query I rowsort
SELECT 6 + 64 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT COUNT( * ) * 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6037
SELECT COUNT ( * ) * 13 AS col0
----
13

query I rowsort
SELECT 39 * - 59 * + 78 AS col0
----
-179478

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT SUM( ALL + - ( + + 40 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6039
SELECT SUM ( ALL + - ( + + 40 ) ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + + MAX( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-6040
SELECT + + MAX ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT ALL - ( - 10 ) AS col1
----
10

query I rowsort
SELECT ALL - - ( - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - NULLIF ( + COUNT( * ), - - ( - - 25 ) ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - NULLIF ( + COUNT ( * ), - - ( - - 25 ) ) * 88 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT ALL 38 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL 38 / - 73
----
0

query I rowsort
SELECT DISTINCT + + 9 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT ALL - + CAST( - 55 AS SIGNED ) * COUNT( * ) * - NULLIF ( + - 54, 5 ) - 49
----
2921

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - + CAST ( - 55 AS INTEGER ) * COUNT ( * ) * - NULLIF ( + - 54, 5 ) - 49
----
2921

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT DISTINCT COUNT( * ) AS col2, + ( - 94 ) AS col1
----
1
-94

skipif mysql # not compatible
query II rowsort label-6047
SELECT DISTINCT COUNT ( * ) AS col2, + ( - 94 ) AS col1
----
1
-94

query I rowsort
SELECT DISTINCT ( + 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL + 97 + + - CAST( + COUNT( * ) AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + 97 + + - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
96

query I rowsort
SELECT + + 10 * + 42
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-6051
SELECT COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT ALL + - ( 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL - MIN( + 58 ) * + 30 col1
----
-1740

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - MIN ( + 58 ) * + 30 col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL - - NULLIF ( 38, + - ( + - COUNT( * ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - - NULLIF ( 38, + - ( + - COUNT ( * ) ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT 92 * - + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT 92 * - + COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT - - 64 AS col2
----
64

query I rowsort
SELECT ALL + 11 * - - 2
----
22

query I rowsort
SELECT ALL - 20 * - 30
----
600

query I rowsort
SELECT ALL + + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL 38 * - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL 38 * - COUNT ( * ) AS col2
----
-38

query II rowsort
SELECT 96, - 15 col2
----
96
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT + - 10 + + - MAX( DISTINCT - 90 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6062
SELECT + - 10 + + - MAX ( DISTINCT - 90 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT 70 col0, COUNT( * ) AS col2
----
70
1

skipif mysql # not compatible
query II rowsort label-6063
SELECT 70 col0, COUNT ( * ) AS col2
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL + COUNT( * ) * + 51 * + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + COUNT ( * ) * + 51 * + - COUNT ( * )
----
-51

query I rowsort
SELECT DISTINCT - 51 * - 34 AS col0
----
1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - - 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - ( 46 ) - - - COUNT( DISTINCT + 95 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6068
SELECT - ( 46 ) - - - COUNT ( DISTINCT + 95 ) AS col1
----
-47

query I rowsort
SELECT ALL 98 * - 45
----
-4410

query I rowsort
SELECT DISTINCT - 50 col0
----
-50

query I rowsort
SELECT ALL 62 * 97 col0
----
6014

query I rowsort
SELECT 72 - 60 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT ALL - - 30 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - - 30 / - 43
----
0

query I rowsort
SELECT + + 22 + + 98 col0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL + 36 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL + 36 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + - 59 AS col0
----
118

query I rowsort
SELECT + - ( + + 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6079
SELECT + CAST( NULL AS SIGNED ) col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-6079
SELECT + CAST ( NULL AS INTEGER ) col1, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT 33 AS col2, + COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-6080
SELECT 33 AS col2, + COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - 95 + - + NULLIF ( + 98, COUNT( * ) ) AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - 95 + - + NULLIF ( + 98, COUNT ( * ) ) AS col0
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + - + 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + - + 34 AS col1
----
-33

query I rowsort
SELECT - 36 * + 82 AS col1
----
-2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT CAST( NULL AS SIGNED ) / + 74 * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT CAST ( NULL AS INTEGER ) / + 74 * + + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT DISTINCT 91 + - 68 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT 91 + - 68 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - - COUNT( DISTINCT + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - - COUNT ( DISTINCT + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT 90 + MAX( + + 88 ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-6087
SELECT 90 + MAX ( + + 88 ) AS col1
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT ( + - CAST( NULL AS SIGNED ) ) + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ( + - CAST ( NULL AS INTEGER ) ) + - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - MAX( + + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-6089
SELECT - MAX ( + + 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL CAST( + - 5 AS SIGNED ) + + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL CAST ( + - 5 AS INTEGER ) + + COUNT ( * ) AS col1
----
-4

query II rowsort
SELECT ALL 54, - 25 * + + 32 AS col0
----
54
-800

query II rowsort
SELECT - 96 AS col0, - ( 14 ) AS col0
----
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + 73 * COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6093
SELECT + 73 * COUNT ( * ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT - 69, COUNT( * ) col0
----
-69
1

skipif mysql # not compatible
query II rowsort label-6094
SELECT - 69, COUNT ( * ) col0
----
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - COUNT( * ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT - 1 + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT - 1 + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - - 83 - + ( + + 88 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT + CAST( NULL AS SIGNED ) + + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT + CAST ( NULL AS INTEGER ) + + + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT 14 + - + NULLIF ( + 80, - + COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6099
SELECT 14 + - + NULLIF ( + 80, - + COUNT ( * ) )
----
-66

query I rowsort
SELECT 58 + ( ( + - 39 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + 53 + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 53 + + COUNT ( * ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT ALL 19 * - + 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL 19 * - + 83 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT ALL - 89 DIV + 20 + + MAX( DISTINCT 83 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - 89 / + 20 + + MAX ( DISTINCT 83 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT + 58 DIV + 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6104
SELECT + 58 / + 33 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT 63 AS col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-6105
SELECT 63 AS col0, COUNT ( * )
----
63
1

query I rowsort
SELECT - ( 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + COUNT( * ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6107
SELECT + COUNT ( * ) + + - 23 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL + MAX( + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + MAX ( + 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-6109
SELECT - COUNT ( * ) + + 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + COUNT( * ) + - + ( - MIN( - 65 ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-6110
SELECT + COUNT ( * ) + - + ( - MIN ( - 65 ) ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 83 * - + MIN( ALL COALESCE ( - - 12, - - 55 ) )
----
-996

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 83 * - + MIN ( ALL COALESCE ( - - 12, - - 55 ) )
----
-996

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT + - 44 DIV - 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6112
SELECT + - 44 / - 37 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT - COUNT( * ) * - ( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6113
SELECT - COUNT ( * ) * - ( 64 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6114
SELECT + COUNT( * ) col0, - 48 DIV + 33 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6114
SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT + - 48 * + + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6115
SELECT + - 48 * + + COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT ALL - COUNT( * ) DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - COUNT ( * ) / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL - COUNT( + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - COUNT ( + 33 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT COUNT( * ) DIV - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT COUNT ( * ) / - COUNT ( * ) * - COUNT ( * )
----
1

query II rowsort
SELECT ALL - 47 * 32 AS col0, - 39
----
-1504
-39

query I rowsort
SELECT DISTINCT ( 61 ) AS col1
----
61

query I rowsort
SELECT ALL 62 * + 58 AS col0
----
3596

query I rowsort
SELECT 68 * 8 AS col0
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - SUM( ALL + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6123
SELECT - SUM ( ALL + 63 )
----
-63

query I rowsort
SELECT ALL 75 * 93 col2
----
6975

query I rowsort
SELECT - 22 * 41
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - 32 + + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 32 + + COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6127
SELECT + COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ( MIN( DISTINCT - 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6128
SELECT ( MIN ( DISTINCT - 14 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COUNT ( * ) * + 3 AS col2
----
3

query I rowsort
SELECT 75 * 9 + - 72
----
603

query I rowsort
SELECT + 93 * + 72
----
6696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6132
SELECT DISTINCT + 5 + + CAST( MAX( + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + 5 + + CAST ( MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 38 + 81
----
119

query I rowsort
SELECT ALL ( - 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT ALL + COUNT( * ) * + + ( + CAST( 82 AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + COUNT ( * ) * + + ( + CAST ( 82 AS INTEGER ) ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT CAST( + 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6136
SELECT CAST ( + 20 AS INTEGER ) AS col0
----
20

query I rowsort
SELECT DISTINCT - + 87 AS col2
----
-87

query I rowsort
SELECT ALL - + 5
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT DISTINCT 31 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT 31 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * - 91
----
-6006

query I rowsort
SELECT ALL 39 + - 81 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT COUNT( * ) + + 10 * - COUNT( * ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6142
SELECT COUNT ( * ) + + 10 * - COUNT ( * ) col2
----
-9

query I rowsort
SELECT ALL - ( - + 12 ) + + 50
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - - ( - ( 35 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - - ( - ( 35 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT COUNT( * ) + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT COUNT ( * ) + 18 AS col2
----
19

query I rowsort
SELECT - ( 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-6147
SELECT + COUNT ( * ) * - 46
----
-46

query I rowsort
SELECT ALL + 52 * 30 AS col0
----
1560

query I rowsort
SELECT 20 * 66
----
1320

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT ALL COUNT( * ) AS col0, - 65 * 12 AS col2
----
1
-780

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL COUNT ( * ) AS col0, - 65 * 12 AS col2
----
1
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6151
SELECT CAST ( + 86 AS INTEGER ) AS col2
----
86

query I rowsort
SELECT 39 + + + 34 AS col1
----
73

query I rowsort
SELECT DISTINCT ( - 12 ) col0
----
-12

query I rowsort
SELECT ALL - ( 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT MAX( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6155
SELECT MAX ( - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + - COUNT( * ) + + 68 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6156
SELECT + - COUNT ( * ) + + 68 AS col1
----
67

query I rowsort
SELECT DISTINCT - ( - 0 )
----
0

query I rowsort
SELECT - - 37 * 15 col1
----
555

query I rowsort
SELECT ALL ( + + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - 85 * + COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6160
SELECT - 85 * + COUNT ( * ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT - 12 * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT - 12 * + COUNT ( * )
----
-12

query I rowsort
SELECT ( - - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + SUM( DISTINCT + ( - 27 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + SUM ( DISTINCT + ( - 27 ) ) AS col2
----
-27

query I rowsort
SELECT - - ( - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT 44 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT 44 * COUNT ( * )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6166
SELECT 2 + - MIN( 95 ) DIV - 76
----
3

skipif mysql # not compatible
query I rowsort label-6166
SELECT 2 + - MIN ( 95 ) / - 76
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - + 4
----
NULL

query I rowsort
SELECT ALL - ( - 77 )
----
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - COUNT( * ) * + - 48
----
48

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - COUNT ( * ) * + - 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT CAST( NULL AS SIGNED ) * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT CAST ( NULL AS INTEGER ) * 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT COUNT( * ) * + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6175
SELECT COUNT ( * ) * + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL COUNT ( * ) * - 30
----
-30

query I rowsort
SELECT DISTINCT - + ( 96 )
----
-96

query II rowsort
SELECT ALL - - 73 AS col1, 11
----
73
11

query I rowsort
SELECT - 72 + 3 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + COUNT( - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6180
SELECT + COUNT ( - 29 ) AS col1
----
1

query I rowsort
SELECT - + 87 AS col2
----
-87

query I rowsort
SELECT DISTINCT 86 - 37 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 42 * - COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 42 * - COUNT ( * ) col1
----
42

query I rowsort
SELECT + ( - 66 ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + + COUNT( DISTINCT + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6185
SELECT + + COUNT ( DISTINCT + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT COALESCE ( + 23, - 66 ) + + + COUNT( * ) + 53 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6186
SELECT COALESCE ( + 23, - 66 ) + + + COUNT ( * ) + 53 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT CAST( + 71 AS SIGNED ) + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT CAST ( + 71 AS INTEGER ) + + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT - SUM( + 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT - SUM ( + 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + + COUNT( * ) + + MAX( + - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + + COUNT ( * ) + + MAX ( + - 53 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL + + COUNT( * ) - - CAST( + COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + + COUNT ( * ) - - CAST ( + COUNT ( * ) AS INTEGER )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6191
SELECT + 16 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 16 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT DISTINCT - CAST( + 45 AS SIGNED ) * + - 81
----
3645

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) * + - 81
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT MIN( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6193
SELECT MIN ( + 66 ) AS col2
----
66

query I rowsort
SELECT 93 * + - 25
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL MIN( ALL + 34 ) + + + 27
----
61

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL MIN ( ALL + 34 ) + + + 27
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT + 68 + - ( - COUNT( * ) ) + - - 56
----
125

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT + 68 + - ( - COUNT ( * ) ) + - - 56
----
125

query I rowsort
SELECT 36 * - 75
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT + + COALESCE ( COUNT( 60 ), - MIN( - 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT + + COALESCE ( COUNT ( 60 ), - MIN ( - 11 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT SUM( DISTINCT - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6199
SELECT SUM ( DISTINCT - - 41 )
----
41

query I rowsort
SELECT ALL ( + + 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT DISTINCT CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT CAST ( 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + COUNT( * ) + ( COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6202
SELECT + COUNT ( * ) + ( COUNT ( * ) ) AS col1
----
2

query I rowsort
SELECT 14 * + - 74 AS col1
----
-1036

query I rowsort
SELECT 52 + 78
----
130

query I rowsort
SELECT DISTINCT + 86 * ( + 80 ) AS col2
----
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - ( - + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + 30 + 59
----
89

query I rowsort
SELECT - + 75 col1
----
-75

query I rowsort
SELECT ( - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT + 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT + 55 * - COUNT ( * ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT ( CAST( CAST( 58 AS SIGNED ) AS SIGNED ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6211
SELECT ( CAST ( CAST ( 58 AS INTEGER ) AS INTEGER ) ) AS col0
----
58

query I rowsort
SELECT - ( 11 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL 98 DIV + 42
----
2

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL 98 / + 42
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT 94 + - - COUNT( * ) + + 45
----
140

skipif mysql # not compatible
query I rowsort label-6214
SELECT 94 + - - COUNT ( * ) + + 45
----
140

query I rowsort
SELECT ALL - ( + 38 )
----
-38

query I rowsort
SELECT 81 * + 68
----
5508

query I rowsort
SELECT 30 * 6 AS col2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT CAST( + 99 AS SIGNED ) + - 16 col2
----
83

skipif mysql # not compatible
query I rowsort label-6218
SELECT CAST ( + 99 AS INTEGER ) + - 16 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - SUM( + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-6219
SELECT - SUM ( + 18 ) col0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6220
SELECT 3 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT 3 / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT MAX( DISTINCT - + 55 ), + 30 AS col1
----
-55
30

skipif mysql # not compatible
query II rowsort label-6221
SELECT MAX ( DISTINCT - + 55 ), + 30 AS col1
----
-55
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT 83 * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6222
SELECT 83 * + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + SUM( + + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + SUM ( + + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL - COUNT( - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - COUNT ( - 0 )
----
-1

query I rowsort
SELECT DISTINCT CASE + 78 WHEN + 86 THEN - - 22 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT MIN( DISTINCT + 69 ) + - + 75 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6227
SELECT MIN ( DISTINCT + 69 ) + - + 75 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL + CAST( NULL AS SIGNED ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + CAST ( NULL AS INTEGER ) - - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT 53 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6229
SELECT 53 + - COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT + + ( + 52 ) * - 72 col1
----
-3744

query I rowsort
SELECT ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - MAX( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6232
SELECT - MAX ( ALL 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + COUNT( 84 )
----
1

skipif mysql # not compatible
query I rowsort label-6233
SELECT + COUNT ( 84 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL 12 DIV 25 * + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 12 / 25 * + 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT + ( - MAX( 29 ) ) + COUNT( * ) * 10 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + ( - MAX ( 29 ) ) + COUNT ( * ) * 10 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT + 56 + - COUNT( * ) * 22
----
34

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + 56 + - COUNT ( * ) * 22
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - MAX( ALL - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6238
SELECT - MAX ( ALL - 86 )
----
86

query I rowsort
SELECT ALL ( - 59 ) col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT - CAST( + 90 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6240
SELECT -